/* ===== Font Notes ===== */
/* Using system-installed Avenir Next (available on macOS/iOS natively).
   Font files in /Fonts/ folder serve as backup for non-Apple devices.
   Avenir Next supports weights: Ultra Light (100), Regular (400),
   Medium (500), Demi Bold (600), Bold (700) */

/* ===== CSS Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --brand-navy: #183964;
    --brand-navy-deep: #183964;
    --brand-navy-light: #183964;
    --brand-red: #e03b27;
    --brand-red-dark: #c7331f;
    --brand-red-glow: rgba(224, 59, 39, 0.15);

    /* Primary/Background Colors */
    --primary-bg: #ffffff;
    --secondary-bg: #f4f6f9;
    --tertiary-bg: #e8ecf2;

    /* Text Colors */
    --text-dark: #1a1a2e;
    --text-medium: #4a4a5a;
    --text-gray: #6b7280;
    --text-light: #9ca3af;

    /* Borders & Shadows */
    --border-light: rgba(24, 57, 100, 0.08);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 16px rgba(24, 57, 100, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 40px rgba(24, 57, 100, 0.12), 0 4px 8px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 60px rgba(24, 57, 100, 0.15), 0 8px 16px rgba(0, 0, 0, 0.06);

    /* Typography — Avenir family, system-installed on macOS */
    --font-heading: 'Avenir Next', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Avenir Next', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;

    /* Transitions */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing */
    --section-padding: 100px;
    --container-max: 1200px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: url('cursor-transparent.png') 16 16, auto;
}

a, button, .hamburger, .btn-primary, .nav-link {
    cursor: url('cursor-transparent.png') 16 16, pointer;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.01em;
    color: var(--text-medium);
    background-color: var(--primary-bg);
    overflow-x: hidden;
   -webkit-text-stroke: 0.2px rgba(0, 0, 0, 0.1);
}

::selection {
    background-color: rgba(224, 59, 39, 0.12);
    color: var(--brand-navy);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.navbar {
    background-color: var(--brand-navy);
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--primary-bg);
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 42px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-fast);
}

.logo-img:hover {
    opacity: 0.9;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 300;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 16px;
    border-radius: 6px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--brand-red);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 1px;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link:hover {
    color: #ffffff;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 4px;
    gap: 5px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.9);
    transition: var(--transition);
    border-radius: 1px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Hero Section ===== */
.hero {
    background: #f7f7f7;
    color: var(--text-dark);
    padding: 200px 0 140px;
    margin-top: 72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-navy), var(--brand-red), var(--brand-navy));
    opacity: 0.7;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-logo-full {
    max-width: 480px;
    width: 90%;
    height: auto;
    margin-bottom: 2.5rem;
}

.hero-divider {
    width: 60px;
    height: 2px;
    background: var(--brand-red);
    margin: 0 auto 2rem;
    border-radius: 1px;
}

.hero-text {
    font-size: 1.05rem;
    margin-bottom: 2.5rem;
    color: var(--text-gray);
    font-weight: 400;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-style: italic;
    letter-spacing: 0.02em;
}

.btn-primary {
    display: inline-block;
    padding: 14px 42px;
    background-color: var(--brand-red);
    color: var(--primary-bg);
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 0.78rem;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    background-color: var(--brand-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(224, 59, 39, 0.35);
}

.btn-primary:hover::before {
    left: 100%;
}

/* ===== Section Styles ===== */
.section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--brand-navy);
    letter-spacing: 4px;
    line-height: 1.2;
    text-transform: uppercase;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
}

.section-title-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 3.5rem;
}

.section-title-bar::before,
.section-title-bar::after {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--brand-red);
    border-radius: 1px;
}

/* ===== About Section ===== */
.about-section {
    background-color: var(--primary-bg);
    border-bottom: 1px solid var(--border-light);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 1.75rem;
    color: var(--text-medium);
}

.lead-text {
    font-size: 1.05rem !important;
    font-weight: 400;
    color: var(--text-dark) !important;
    line-height: 1.75 !important;
}

.highlight-text {
    font-size: 0.95rem !important;
    font-weight: 400;
    color: var(--brand-navy) !important;
    padding: 24px 32px;
    background: rgba(24, 57, 100, 0.04);
    border-left: 3px solid var(--brand-red);
    border-radius: 0 8px 8px 0;
    margin-top: 2.5rem;
    line-height: 1.8 !important;
    text-align: left;
}

/* ===== Biography Section ===== */
.biography-section {
    background-color: var(--secondary-bg);
    position: relative;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.biography-content {
    max-width: 920px;
    margin: 0 auto;
}

.bio-header {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-light);
}

.bio-image {
    position: relative;
    flex-shrink: 0;
}

.bio-image img {
    width: 180px;
    height: 180px;
    border-radius: 12px;
    object-fit: cover;
    display: none;
    box-shadow: var(--shadow-md);
}

.bio-image img.loaded {
    display: block;
}

.image-placeholder {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-navy-light) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: var(--shadow-md);
}

.bio-image img.loaded + .image-placeholder {
    display: none;
}

.bio-intro h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 400;
    color: var(--brand-navy);
    margin-bottom: 0.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.bio-title {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0.75rem;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: var(--transition-fast);
}

.linkedin-link:hover {
    color: #0a66c2;
}

.linkedin-icon {
    width: 16px;
    height: 16px;
}

.bio-text p {
    font-size: 0.95rem;
    line-height: 1.75;
    margin-bottom: 1.4rem;
    color: var(--text-medium);
}

.bio-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.bio-section h4 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--brand-navy);
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.education-item {
    margin-bottom: 1.25rem;
    padding-left: 16px;
    border-left: 2px solid rgba(24, 57, 100, 0.15);
}

.edu-degree {
    font-weight: 400;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
    font-size: 0.92rem;
}

.edu-school {
    color: var(--text-gray);
    font-size: 0.95rem;
}

.simple-list {
    list-style: none;
}

.simple-list li {
    padding: 0.65rem 0;
    color: var(--text-medium);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.98rem;
}

.simple-list li:last-child {
    border-bottom: none;
}

/* ===== Experience Section ===== */
.experience-section {
    background-color: var(--primary-bg);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
    margin-bottom: 4rem;
}

.experience-item {
    background-color: var(--secondary-bg);
    padding: 1.5rem 1.75rem;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    border-left: 3px solid var(--brand-red);
    box-shadow: none;
    transition: var(--transition);
    position: relative;
}

.experience-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-left-color: var(--brand-navy);
    background-color: var(--primary-bg);
}

.experience-item p {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--text-medium);
}

.experience-additional {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-light);
}

.exp-column h3 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--brand-navy);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.exp-column ul {
    list-style: none;
}

.exp-column ul li {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-medium);
    line-height: 1.6;
    font-size: 0.88rem;
}

.exp-column ul li:last-child {
    border-bottom: none;
}

/* ===== Contact Section ===== */
.contact-section {
    background: linear-gradient(160deg, var(--brand-navy-deep) 0%, var(--brand-navy) 40%, var(--brand-navy-light) 100%);
    position: relative;
    overflow: hidden;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.contact-section .section-title {
    color: var(--primary-bg);
}

.contact-section .section-title-bar::before,
.contact-section .section-title-bar::after {
    background: var(--brand-red);
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.contact-text {
    font-size: 0.98rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
    letter-spacing: 0.02em;
}

.contact-info {
    padding: 2.5rem 3rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.contact-email {
    font-size: 1.25rem;
}

.contact-email a {
    color: var(--primary-bg);
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 400;
    transition: var(--transition);
    letter-spacing: 0.5px;
}

.contact-email a:hover {
    color: var(--brand-red);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--brand-navy-deep);
    color: var(--primary-bg);
    text-align: center;
    padding: 1.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer p {
    opacity: 0.5;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
}

/* ===== Scroll Animations ===== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    :root {
        --section-padding: 72px;
    }

   body {
        -webkit-font-smoothing: subpixel-antialiased;
    }
   
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: 72px;
        flex-direction: column;
        background-color: var(--brand-navy-deep);
        width: 100%;
        text-align: center;
        padding: 1.5rem 0;
        gap: 0;
        transform: translateY(-120%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .nav-menu li {
        padding: 0.25rem 0;
    }

    .nav-link {
        padding: 12px 24px;
        display: block;
        font-size: 0.9rem;
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        padding: 140px 0 100px;
    }

    .hero-logo-full {
        max-width: 340px;
    }

    .hero-text {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .bio-header {
        flex-direction: column;
        text-align: center;
    }

    .bio-image {
        margin: 0 auto;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .bio-sections {
        grid-template-columns: 1fr;
    }

    .experience-additional {
        grid-template-columns: 1fr;
    }

    .contact-info {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    :root {
        --section-padding: 56px;
    }

    .hero {
        padding: 120px 0 80px;
    }

    .hero-logo-full {
        max-width: 280px;
    }

    .navbar .container {
        height: 64px;
    }

    .hero {
        margin-top: 64px;
    }

    .nav-menu {
        top: 64px;
    }

    .nav-brand {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 32px;
    }

    .bio-image img,
    .image-placeholder {
        width: 140px;
        height: 140px;
    }

    .contact-email {
        font-size: 1.2rem;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Print Styles ===== */
@media print {
    .navbar, .hamburger, .btn-primary {
        display: none;
    }

    .hero {
        margin-top: 0;
        padding: 40px 0;
        background: white;
        color: var(--text-dark);
    }

    .section {
        padding: 30px 0;
    }
}
