/* CSS Variables - Blue Ocean Theme */
:root {
    --primary-blue: #375D8E;
    --primary-dark: #2a4a70;
    --navy-deep: #0a1628;
    --navy-mid: #122744;
    --navy-light: #1a3a5c;
    --ocean-accent: #4a90d9;
    --text-dark: #333333;
    --text-body: #4a4a4a;
    --text-light: #666666;
    --text-white: #ffffff;
    --text-white-muted: rgba(255, 255, 255, 0.7);
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-section: #fafbfc;
    --border-color: #d0d5da;
    --border-light: rgba(255, 255, 255, 0.1);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-body);
    line-height: 1.7;
    background-color: var(--bg-white);
    font-size: 16px;
}

/* Container */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   HEADER - Dark Ocean Style
   ============================================ */
.header {
    background: var(--navy-deep);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 12px;
    flex-shrink: 0;
    min-width: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.logo-box {
    background: #375D8E;
    color: var(--text-white);
    padding: clamp(6px, 0.6vw, 8px) clamp(10px, 1vw, 12px);
    font-family: "Didot", "Didot LT STD", "Hoefler Text", "Garamond", "Times New Roman", serif;
    font-size: clamp(0.65rem, 1.5vw, 1rem);
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.logo-text {
    font-family: "Didot", "Didot LT STD", "Hoefler Text", "Garamond", "Times New Roman", serif;
    font-size: clamp(0.65rem, 1.5vw, 1rem);
    font-weight: 400;
    color: var(--text-white-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    line-height: 1;
}

/* Navigation - Centered */
.nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin-left: clamp(120px, 15vw, 200px);
    transition: left 0.4s ease, transform 0.4s ease, margin-left 0.4s ease;
}

/* Header states based on scroll position - Desktop only */
/* At top: no logo, centered menu */
@media (min-width: 993px) {
    .header:not(.scrolled) .logo {
        opacity: 0;
        visibility: hidden;
        transform: translateX(100px);
        pointer-events: none;
    }

    .header:not(.scrolled) .nav {
        left: 50%;
        transform: translateX(-50%);
        margin-left: 0;
    }

    /* Scrolled past threshold: logo fades in from right, menu moves to right */
    .header.scrolled .logo {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }

    .header.scrolled .nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin-left: clamp(120px, 15vw, 200px);
    }
}

.nav-list {
    display: flex;
    list-style: none;
    gap: clamp(20px, 3.5vw, 45px);
}

.nav-link {
    text-decoration: none;
    color: var(--text-white-muted);
    font-size: clamp(0.7rem, 1vw, 0.88rem);
    font-weight: 500;
    transition: color 0.2s ease;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: clamp(28px, 7vw, 32px);
    height: clamp(28px, 7vw, 32px);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    position: relative;
}

.hamburger-line {
    width: 100%;
    height: clamp(2.5px, 0.6vw, 3px);
    background-color: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
    display: block;
    position: absolute;
}

.hamburger-line:nth-child(1) {
    top: 25%;
}

.hamburger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-line:nth-child(3) {
    bottom: 25%;
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* ============================================
   HERO SECTION - Blue Ocean with Parallax
   ============================================ */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        var(--navy-deep) 0%, 
        var(--navy-mid) 40%, 
        var(--navy-light) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 80px; /* Account for fixed header */
    position: relative;
    overflow: hidden;
}

/* Subtle wave texture overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
}

.hero-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 50px 0;
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Hero Logo - 2x bigger than header logo */
.hero-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    gap: 24px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(40px) scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero-logo.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.hero-logo-box {
    background: #375D8E;
    color: var(--text-white);
    padding: clamp(18px, 1.8vw, 24px) clamp(30px, 3vw, 36px);
    font-family: "Didot", "Didot LT STD", "Hoefler Text", "Garamond", "Times New Roman", serif;
    font-size: clamp(1.95rem, 4.5vw, 3rem); /* 50% bigger */
    font-weight: 600;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.hero-logo-text {
    font-family: "Didot", "Didot LT STD", "Hoefler Text", "Garamond", "Times New Roman", serif;
    font-size: clamp(1.95rem, 4.5vw, 3rem); /* 50% bigger */
    font-weight: 400;
    color: var(--text-white-muted);
    letter-spacing: 4px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    line-height: 1;
}

.hero-text {
    max-width: 700px;
    margin-top: 1%; /* Moved up by 2% from 5% */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-text.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.hero-title {
    font-size: 2.448rem; /* 20% bigger than 2.04rem */
    font-weight: 600;
    color: var(--text-white);
    line-height: 1.15;
    margin-bottom: 14px; /* 50% of 28px */
    letter-spacing: -1.5px;
}

.hero-description {
    font-size: 0.828rem; /* 20% bigger than 0.69rem */
    color: var(--text-white-muted);
    line-height: 1.85;
    margin-bottom: 0;
}

/* Hero Image Band - Full Width Parallax */
.hero-image-band {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    will-change: transform;
    margin-top: 40px;
}

.hero-image-band img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 34px;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--ocean-accent);
    color: var(--text-white);
    border: 1px solid var(--ocean-accent);
}

.btn-primary:hover {
    background: transparent;
    border-color: var(--text-white);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-body);
}

.btn-outline:hover {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--bg-white);
}

/* ============================================
   STATS SECTION
   ============================================ */
.stats-section {
    padding: 90px 0;
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.stat-item {
    padding: 40px 50px;
    border-left: 1px solid var(--border-color);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-item:first-child {
    border-left: none;
}

.stat-number {
    font-size: 4.5rem;
    font-weight: 300;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 20px;
    letter-spacing: -3px;
    text-align: center;
}

.stat-prefix,
.stat-suffix {
    font-size: 2.2rem;
    font-weight: 400;
    vertical-align: top;
    letter-spacing: 0;
}

.stat-prefix {
    margin-right: 2px;
}

.stat-suffix {
    margin-left: 2px;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
    text-align: center;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    text-align: center;
}

/* ============================================
   CONTENT SECTIONS
   ============================================ */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-section);
}

.section-title {
    font-family: var(--font-sans);
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.section-title-center {
    text-align: center;
}

/* About / Who We Are Section */
.about-intro {
    font-size: 1.15rem;
    color: var(--text-body);
    line-height: 1.9;
    max-width: 800px;
    margin-bottom: 70px;
}

/* Leadership Section */
.leadership-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.leadership-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    align-items: stretch;
}

.leader-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.leader-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.leader-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

/* Animation styles only apply when inside leader-card */
.leader-card .leader-name {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.leader-card.animate-in .leader-name {
    opacity: 1;
    transform: translateX(0);
}

.leader-title {
    font-size: 0.95rem;
    color: var(--primary-blue);
    font-weight: 500;
    margin-bottom: 20px;
}

/* Animation styles only apply when inside leader-card */
.leader-card .leader-title {
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}

.leader-card.animate-in .leader-title {
    opacity: 1;
    transform: translateX(0);
}

.btn-more-detail {
    display: inline-block;
    padding: 12px 24px;
    border: 1px solid var(--primary-blue);
    color: var(--primary-blue);
    text-decoration: none;
    font-family: Georgia, serif;
    font-size: 0.9rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 32px;
    align-self: flex-start;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.4s, transform 0.5s ease 0.4s, background-color 0.2s ease, color 0.2s ease;
}

.leader-card.animate-in .btn-more-detail {
    opacity: 1;
    transform: translateY(0);
}

.btn-more-detail:hover {
    background-color: var(--primary-blue);
    color: var(--text-white);
}

.leader-role {
    font-size: 0.95rem;
    color: var(--text-body);
    margin-bottom: 15px;
    font-style: italic;
}

.leader-bio {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Animation styles only apply when inside leader-card */
.leader-card .leader-bio {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.2s, transform 0.5s ease 0.2s;
}

.leader-card.animate-in .leader-bio {
    opacity: 1;
    transform: translateY(0);
}

/* What We Do Section */
.services-intro {
    font-size: 1.15rem;
    color: var(--text-body);
    line-height: 1.9;
    max-width: 800px;
    margin-bottom: 50px;
}

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

.services-list li {
    font-size: 1.05rem;
    color: var(--text-body);
    padding: 18px 0;
    border-bottom: 1px solid var(--border-color);
}

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

.services-list li strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Blue Highlight Section */
.blue-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-deep) 100%);
}

.blue-content {
    max-width: 800px;
}

.blue-title {
    font-size: 2.4rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 25px;
    line-height: 1.3;
    letter-spacing: -0.5px;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.blue-title.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.blue-text {
    font-size: 1.15rem;
    color: var(--text-white-muted);
    line-height: 1.8;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.blue-text.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* Reports Section */
.reports-intro {
    font-size: 1.1rem;
    color: var(--text-body);
    margin-bottom: 40px;
    max-width: 600px;
}

.reports-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .reports-grid {
        grid-template-columns: 1fr;
    }
}

.report-item {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    padding: 28px;
    text-decoration: none;
    color: var(--text-body);
    transition: all 0.2s ease;
    cursor: pointer;
    text-align: left;
    width: 100%;
    font-family: inherit;
    opacity: 0;
    transform: translateY(30px);
    animation-fill-mode: forwards;
}

.report-item.animate-in {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.report-item:hover {
    border-color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.report-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.report-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.report-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* Download Modal */
.download-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.download-modal-content {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.download-modal-content h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.download-modal-content p {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 30px;
    line-height: 1.6;
}

.download-modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-download-confirm {
    background: var(--primary-blue);
    color: var(--text-white);
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-download-confirm:hover {
    background: var(--primary-dark);
}

.btn-download-cancel {
    background: transparent;
    color: var(--text-body);
    border: 1px solid var(--border-color);
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-download-cancel:hover {
    border-color: var(--text-dark);
    color: var(--text-dark);
}

/* Contact Section */
.contact-text {
    font-size: 1.1rem;
    color: var(--text-body);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: 40px;
}

.contact-info {
    font-size: 1rem;
    color: var(--text-body);
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: var(--primary-blue);
    text-decoration: none;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--navy-deep);
    padding: 45px 0;
    text-align: center;
}

.footer-content {
    color: var(--text-white-muted);
    font-size: 0.85rem;
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: var(--navy-mid);
    color: var(--text-white);
    border: 1px solid var(--border-light);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--ocean-accent);
}

/* ============================================
   DETAIL PAGES
   ============================================ */
.detail-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.detail-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 20px;
    background: var(--bg-light);
}

.detail-title {
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-align: center;
    margin-bottom: 20px;
}

.back-link {
    display: inline-block;
    color: var(--primary-blue);
    text-decoration: none;
    font-size: 1rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Login Section */
.login-section {
    padding: 100px 20px;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
}

.login-box {
    background: var(--bg-white);
    padding: 50px;
    max-width: 400px;
    width: 100%;
    border: 1px solid var(--border-color);
    text-align: center;
}

.login-box h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 30px;
}

.login-box p {
    color: var(--text-light);
    margin-bottom: 20px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .hero-inner {
        padding: 60px 30px 50px;
    }
    
    .hero-title {
        font-size: 2.016rem; /* 20% bigger than 1.68rem */
    }
    
    .hero-description {
        font-size: 0.828rem; /* 20% bigger than 0.69rem */
    }
}

@media (max-width: 1200px) {
    .nav {
        margin-left: clamp(100px, 12vw, 180px);
    }
    
    .logo-box {
        font-size: clamp(0.6rem, 1.8vw, 0.95rem);
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .logo-text {
        font-size: clamp(0.6rem, 1.8vw, 0.95rem);
        display: flex;
        align-items: center;
        line-height: 1;
    }
}

@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        gap: clamp(15px, 2.5vw, 20px);
        padding: 0 clamp(15px, 3vw, 20px);
        align-items: center;
    }
    
    .logo {
        justify-content: center;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .logo-box {
        font-size: clamp(0.65rem, 2vw, 0.9rem);
        padding: clamp(5px, 1vw, 8px) clamp(8px, 1.5vw, 12px);
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .logo-text {
        font-size: clamp(0.65rem, 2vw, 0.9rem);
        display: flex;
        align-items: center;
        line-height: 1;
    }
    
    .nav {
        position: static;
        transform: none;
        margin-left: 0;
        width: 100%;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    /* Header states based on scroll position - Tablet/Mobile (992px and below) */
    /* At top: no logo, menu visible */
    .header:not(.scrolled) .logo {
        opacity: 0;
        visibility: hidden;
        transform: translateY(30px); /* Start below */
        pointer-events: none;
    }

    /* Scrolled past threshold: logo fades in and moves up from below */
    .header.scrolled .logo {
        opacity: 1;
        visibility: visible;
        transform: translateY(0); /* Move up to position */
        pointer-events: auto;
    }

    .nav-list {
        gap: clamp(12px, 2.5vw, 20px);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-link {
        font-size: clamp(0.65rem, 2vw, 0.85rem);
        white-space: nowrap;
    }
    
    .hero {
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 0;
    }
    
    .hero-inner {
        text-align: center;
        padding: 40px 20px 0;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 1.728rem; /* 20% bigger than 1.44rem */
    }
    
    .hero-description {
        font-size: 0.828rem; /* 20% bigger than 0.69rem */
    }
    
    .hero-image-band {
        margin-top: 30px;
    }

    .leadership-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

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

    .stat-item {
        border-left: none;
        border-bottom: 1px solid var(--border-color);
        padding: 40px 20px;
        text-align: center;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .stat-number {
        font-size: 4rem;
    }

    .blue-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 70px 0;
    }

    .hero-title {
        font-size: 1.44rem; /* 20% bigger than 1.2rem */
    }

    .hero-description {
        font-size: 0.756rem; /* 20% bigger than 0.63rem */
    }
    
    .hero-image-band img {
        height: 280px;
    }

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

    .stats-section {
        padding: 50px 0;
    }

    .stat-number {
        font-size: 3.5rem;
    }

    .stat-prefix,
    .stat-suffix {
        font-size: 2rem;
    }

    .blue-section {
        padding: 70px 0;
    }

    .blue-title {
        font-size: 1.7rem;
    }

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

/* Disable parallax on touch devices for performance */
@media (hover: none) {
    .hero-image-band {
        transform: none !important;
    }
}

/* ============================================
   MOBILE MENU - 480px and below
   ============================================ */
@media (max-width: 480px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 0 clamp(12px, 4vw, 20px);
        position: relative;
        gap: clamp(30px, 7.5vw, 45px);
        z-index: 1004;
    }
    
    body.menu-open .header-container {
        z-index: 1004;
    }
    
    .logo {
        flex-shrink: 0;
        order: 1;
        position: relative;
        z-index: 1004;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }
    
    .logo-box {
        font-size: clamp(0.6rem, 3.5vw, 0.75rem);
        padding: clamp(4px, 1.2vw, 6px) clamp(6px, 2vw, 10px);
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .logo-text {
        font-size: clamp(0.6rem, 3.5vw, 0.75rem);
        display: flex;
        align-items: center;
        line-height: 1;
    }
    
    /* Header states based on scroll position - Mobile (480px and below) */
    /* At top: no logo */
    .header:not(.scrolled) .logo {
        opacity: 0;
        visibility: hidden;
        transform: translateX(100px); /* Start from right */
        pointer-events: none;
    }

    /* Scrolled past threshold: logo fades in from right to left */
    .header.scrolled .logo {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
        pointer-events: auto;
    }
    
    /* Make hero logo 30% smaller on mobile */
    .hero-logo-box {
        padding: clamp(12.6px, 1.26vw, 16.8px) clamp(21px, 2.1vw, 25.2px); /* 30% smaller */
        font-size: clamp(1.365rem, 3.15vw, 2.1rem); /* 30% smaller than 1.95rem-3rem */
        opacity: 1; /* Always visible on mobile */
        transform: translateY(0) scale(1); /* No initial transform on mobile */
        transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }
    
    .hero-logo-box.animate-in {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    
    .hero-logo-text {
        font-size: clamp(1.365rem, 3.15vw, 2.1rem); /* 30% smaller than 1.95rem-3rem */
        opacity: 1; /* Always visible on mobile */
        transform: translateY(0) scale(1); /* No initial transform on mobile */
        transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex;
        align-items: center;
        line-height: 1;
    }
    
    .hero-logo-text.animate-in {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    
    /* Hero logo animation for mobile - override desktop styles */
    .hero-logo {
        opacity: 1; /* Keep visible on mobile */
        transform: none; /* No transform on parent */
    }
    
    /* Move everything up by 17% on mobile */
    .hero-inner {
        transform: translateY(-17%);
    }
    
    .mobile-menu-toggle {
        width: clamp(28px, 7vw, 32px);
        height: clamp(28px, 7vw, 32px);
        flex-shrink: 0;
        order: 2;
        position: relative;
        z-index: 1001;
        transition: transform 0.4s ease;
    }
    
    /* Center menu button when logo is hidden (at top) */
    .header:not(.scrolled) .header-container {
        justify-content: center;
    }
    
    .header:not(.scrolled) .mobile-menu-toggle {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    
    /* When scrolled, menu button returns to normal position */
    .header.scrolled .mobile-menu-toggle {
        position: relative;
        left: auto;
        transform: none;
    }
    
    /* Ensure toggle button is above menu when open */
    body.menu-open .mobile-menu-toggle {
        z-index: 1004;
        position: relative;
    }
    
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: var(--navy-deep);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1002;
        padding-top: 80px;
        overflow-y: auto;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        visibility: hidden;
    }
    
    .nav.is-open {
        transform: translateX(0);
        visibility: visible;
    }
    
    /* Keep header fixed and visible when menu is open */
    body.menu-open .header {
        z-index: 1003;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: clamp(15px, 4vw, 25px);
        padding: 40px 20px;
        width: 85%;
        max-width: 85%;
        display: flex !important;
        list-style: none;
        margin: 0;
        margin-top: 20px;
    }
    
    .nav-list li {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        font-size: clamp(1.1rem, 5.5vw, 1.4rem);
        color: var(--text-white);
        padding: 15px 0;
        display: block;
        width: 100%;
        text-align: center;
        white-space: nowrap;
        text-decoration: none;
    }
    
    .nav-link:hover {
        color: var(--ocean-accent);
        transition: color 0.2s ease;
    }
    
    .nav-link.active {
        color: var(--ocean-accent);
        font-weight: 600;
    }
}

/* ============================================
   FUNCTION PASSWORD - REMOVE WHEN SERVER IS READY
   Prompt: "Remove Function Password"
   ============================================ */
.password-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.password-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.password-container {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-width: 400px;
    width: 90%;
    text-align: center;
}

.password-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 24px;
    font-family: var(--font-sans);
}

.password-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.password-input {
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: var(--font-sans);
    transition: border-color 0.2s ease;
    outline: none;
}

.password-input:focus {
    border-color: var(--primary-blue);
}

.password-submit {
    padding: 12px 24px;
    background: var(--primary-blue);
    color: var(--text-white);
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    font-family: var(--font-sans);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.password-submit:hover {
    background: var(--primary-dark);
}

.password-error {
    color: #d32f2f;
    font-size: 0.9rem;
    margin-top: 12px;
    min-height: 20px;
    font-family: var(--font-sans);
}
/* ============================================
   END FUNCTION PASSWORD
   ============================================ */
