/* --- Design System & Variables --- */
:root {
    --bg-color: #FAF9F6;       /* Premium Minimal Off-White */
    --text-main: #1A1A1A;      /* Deep Charcoal for great contrast */
    --text-muted: #5A5A5A;     /* Soft slate for details */
    --accent: #2B6CB0;         /* Refined corporate cobalt blue */
    --accent-light: #EBF8FF;
    --border-color: #E2E8F0;
    --max-width: 900px;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.containers {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- Utilities --- */
.section {
    padding: 1rem 0;
}
.divider {
    border: 0;
    height: 1px;
    background: var(--border-color);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}
.btn-primary {
    background-color: var(--text-main);
    color: var(--bg-color);
}
.btn-primary:hover {
    background-color: var(--accent);
    transform: translateY(-2px);
}
.btn-secondary {
    border: 1px solid var(--text-main);
    color: var(--text-main);
}
.btn-secondary:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
}
.btn-link {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
}
.btn-link:hover {
    color: var(--accent);
}

/* --- Header & Nav --- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(250, 249, 246, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: var(--transition-smooth);
}
.header.scrolled {
    border-bottom-color: var(--border-color);
}
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-main);
    text-decoration: none;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition-smooth);
}
.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

/* --- Hero Section --- */
.hero-title {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}
.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 1.5rem;
}
.hero-highlights {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    display: grid;
    gap: 0.8rem;
    max-width: 720px;
}
.hero-highlights li {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 1.8rem;
}
.hero-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}
.summary-text {
    max-width: 720px;
    color: var(--text-main);
    margin-bottom: 1rem;
}
.summary-highlights {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
    display: grid;
    gap: 0.8rem;
    max-width: 720px;
}
.summary-highlights li {
    color: var(--text-main);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    padding-left: 1.8rem;
}
.summary-highlights li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-size: 1.2rem;
    line-height: 1;
}
.hero-cta {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* --- Metrics Section --- */
.metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0 4rem 0;
}
.metric-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
}
.metric-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- Impact Highlights --- */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1.5rem;
}
.impact-card {
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.03);
}
.impact-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.75rem;
}
.impact-card p {
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- Sections Common --- */
.section-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 3rem;
    letter-spacing: -0.01em;
}

/* --- Skills Matrix --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.5rem;
}
.skills-category h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}
.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}
.skill-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.9rem;
    background: var(--accent-light);
    color: var(--text-main);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 500;
}
.skills-category p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Experience Timeline --- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.job-title {
    font-size: 1.25rem;
    font-weight: 600;
}
.company {
    color: var(--accent);
    font-weight: 500;
    font-size: 0.95rem;
}
.date {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.job-details {
    list-style-position: inside;
    padding-left: 0.5rem;
}
.job-details li {
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

/* --- Contact & Footer --- */
.contact {
    text-align: center;
}
.contact-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 2rem auto;
}
.email-link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
}
.email-link:hover {
    color: var(--accent);
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
}
.social-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}
.social-links a:hover {
    color: var(--text-main);
}
.footer {
    text-align: center;
    padding: 3rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* --- Micro Animation Engine --- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title { font-size: 2.25rem; }
    .metrics { grid-template-columns: 1fr; gap: 1.5rem; }
    .skills-grid { grid-template-columns: 1fr; gap: 2rem; }
    .timeline-header { flex-direction: column; gap: 0.25rem; }
    .nav-links a:not(.btn) { display: none; } /* Kept simple for mobile context */
}

/* --- Print Styles --- */
@media print {
    @page {
        size: A4;
        margin: 1.2cm;
    }

    html, body {
        background: #ffffff !important;
        color: #000000 !important;
    }

    body {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .header,
    .nav,
    .nav-links,
    .hero-cta,
    .btn,
    .footer,
    .social-links,
    .divider {
        display: none !important;
    }

    .containers {
        max-width: 100% !important;
        padding: 0 !important;
    }

    .section {
        padding: 1rem 0 !important;
    }

    .section-title {
        margin-bottom: 1rem !important;
        font-size: 1.5rem !important;
    }

    .hero-title {
        font-size: 2rem !important;
    }

    .hero-subtitle,
    .summary-text,
    .job-details li,
    .impact-card p,
    .skills-category p,
    .contact-text,
    .email-link {
        color: #000000 !important;
    }

    .fade-in {
        opacity: 1 !important;
        transform: none !important;
    }

    .impact-card,
    .skills-category,
    .timeline-item,
    .contact,
    .summary,
    .impact,
    .skills,
    .experience {
        page-break-inside: avoid !important;
    }

    .metric-card,
    .impact-card,
    .skills-category,
    .timeline-item {
        border: 1px solid #ddd !important;
        box-shadow: none !important;
        background: #ffffff !important;
    }
}
