/* Simple and Clean Resume Stylesheet */

:root {
    --primary-color: #2563eb;
    --primary: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text-dark: #1e293b;
    --text-medium: #334155;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

/* Ensure sections with inline dark backgrounds work properly */
.section[style*="background"] {
    background-attachment: scroll !important;
}

/* Ensure text is visible on dark backgrounds */
.section[style*="background"] * {
    color: inherit;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: 100vh;
}

/* Header */
.header {
    background: white !important;
    border-bottom: 2px solid #e2e8f0 !important;
    padding: 1.5rem 0 !important;
    margin-bottom: 0 !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    width: 100% !important;
}

/* Exclude header containers from main container styles */
.header .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 2rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    box-shadow: none !important;
    min-height: auto !important;
}

.header .logo {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.header .logo h1 {
    font-size: 1.75rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.header .logo h1 a {
    color: inherit !important;
    text-decoration: none !important;
}

.header .logo .tagline {
    font-size: 0.875rem !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.4 !important;
}

.header .nav {
    display: flex !important;
    gap: 1.5rem !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.header .nav a {
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    padding: 0.5rem 0 !important;
    transition: color 0.2s !important;
    white-space: nowrap !important;
}

.header .nav a:hover {
    color: #2563eb !important;
}

.mobile-menu-btn {
    display: none !important;
    background: none !important;
    border: none !important;
    font-size: 1.5rem !important;
    cursor: pointer !important;
    color: #1e293b !important;
    padding: 0.5rem !important;
    line-height: 1 !important;
}

.mobile-nav {
    display: none !important;
    flex-direction: column !important;
    gap: 0 !important;
    padding: 1rem 2rem !important;
    background: white !important;
    border-top: 1px solid #e2e8f0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.mobile-nav.active {
    display: flex !important;
}

.mobile-nav a {
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 0.9375rem !important;
    font-weight: 600 !important;
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid #f1f5f9 !important;
    display: block !important;
}

.mobile-nav a:last-child {
    border-bottom: none !important;
}

.mobile-nav a:hover {
    color: #2563eb !important;
}

/* Simple header for index page (without nav) */
.header:not(:has(.nav)),
body:not(:has(.header .nav)) .header {
    border-bottom: 3px solid #2563eb;
    padding-bottom: 2rem;
    margin-bottom: 3rem;
    position: relative !important;
}

.header:not(:has(.nav)) h1,
body:not(:has(.header .nav)) .header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.header:not(:has(.nav)) .tagline,
body:not(:has(.header .nav)) .header .tagline {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.contact {
    margin-top: 1.5rem;
}

.contact p {
    margin: 0.5rem 0;
    font-size: 1rem;
    color: #334155;
}

.contact a {
    color: #2563eb;
    text-decoration: none;
}

.contact a:hover {
    text-decoration: underline;
}

/* Sections */
.section {
    margin-bottom: 3rem;
}

/* Override section styles for dark background sections */
.section[style*="background"] {
    margin-bottom: 0 !important;
}

.section[style*="background"] .container {
    background: transparent !important;
    box-shadow: none !important;
    max-width: 1200px !important;
    padding: 0 2rem !important;
}

.section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}

/* Ensure text is visible on dark backgrounds */
.section[style*="background"] h2,
.section[style*="background"] h1,
.section[style*="background"] h3,
.section[style*="background"] p {
    color: inherit !important;
}

/* Skills */
.skills {
    display: grid;
    gap: 1.5rem;
}

.skill-category {
    padding: 1.5rem;
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.skill-category p {
    color: #64748b;
    line-height: 1.7;
}

/* Experience */
.experience {
    display: grid;
    gap: 2rem;
}

.experience-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-left: 4px solid #10b981;
    border-radius: 4px;
}

.experience-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.company {
    font-size: 0.9375rem;
    color: #2563eb;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.experience-item > p:last-child {
    color: #64748b;
    line-height: 1.7;
}

/* Tools */
.tools {
    display: grid;
    gap: 2rem;
}

.tool-item {
    padding: 1.5rem;
    background: #f8fafc;
    border-left: 4px solid #8b5cf6;
    border-radius: 4px;
}

.tool-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tool-item h3 a {
    color: #1e293b;
    text-decoration: none;
}

.tool-item h3 a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.tool-item p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.tool-link {
    margin-top: 1rem;
}

.tool-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.tool-link a:hover {
    text-decoration: underline;
}

/* About Content */
.about-content {
    padding: 1.5rem;
    background: #f8fafc;
    border-left: 4px solid #2563eb;
    border-radius: 4px;
}

.about-content p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Contact Section */
.contact-section {
    padding: 1.5rem;
    background: #f8fafc;
    border-left: 4px solid #10b981;
    border-radius: 4px;
}

.contact-section .contact {
    margin-top: 1rem;
}

/* Interests */
.interests {
    padding: 1.5rem;
    background: #f8fafc;
    border-left: 4px solid #10b981;
    border-radius: 4px;
}

.interests p {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* Footer */
.footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: center;
    font-size: 0.875rem;
    color: #64748b;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content p {
    margin: 0;
    line-height: 1.6;
}

.footer a {
    color: #2563eb;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #1e40af;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1.5rem;
    }

    .header .container {
        padding: 0 1.5rem !important;
        flex-wrap: wrap !important;
    }

    .header .nav {
        display: none !important;
    }

    .mobile-menu-btn {
        display: block !important;
    }

    .header:not(:has(.nav)) h1,
    body:not(:has(.header .nav)) .header h1 {
        font-size: 2rem;
    }

    .header .logo h1 {
        font-size: 1.5rem !important;
    }

    .header .logo .tagline {
        font-size: 0.8125rem !important;
    }

    .tagline {
        font-size: 1rem;
    }

    .section h2 {
        font-size: 1.5rem;
    }

    .skill-category,
    .experience-item,
    .tool-item {
        padding: 1.25rem;
    }
}
