/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
   :root {
    /* Colors extracted from logo */
    --color-teal: #71d1d6;
    --color-teal-glow: rgba(113, 209, 214, 0.4);
    --color-blue: #287fb3;
    
    /* Dark Mode Palette */
    --bg-dark: #070b14;
    --bg-card: rgba(20, 28, 45, 0.6);
    --bg-card-hover: rgba(30, 42, 65, 0.8);
    
    --text-main: #f0f4f8;
    --text-muted: #a0aec0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.section {
    padding: 100px 0;
    position: relative;
    z-index: 2;
}

.section-dark {
    background: linear-gradient(180deg, rgba(7,11,20,0) 0%, rgba(10,16,30,0.8) 50%, rgba(7,11,20,0) 100%);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Glassmorphism Utilities
   ========================================================================== */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px var(--color-teal-glow);
    border-color: rgba(113, 209, 214, 0.2);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
    color: #fff;
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(40, 127, 179, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(113, 209, 214, 0.6);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-main);
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
}

.btn-secondary:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
    background: rgba(113, 209, 214, 0.05);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(7, 11, 20, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 90px;
    object-fit: contain;
    filter: brightness(1.5); /* Make it brighter */
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-main);
    transition: color 0.3s ease;
}

.nav-links a:hover:not(.btn-primary) {
    color: var(--color-teal);
}

.lang-switch {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.lang-switch:hover {
    border-color: var(--color-teal);
    color: var(--color-teal);
    background: rgba(113, 209, 214, 0.1);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background-color: var(--text-main);
    transition: 0.3s;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Gradient overlay to ensure text is readable */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(7, 11, 20, 0.8), transparent);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    text-align: left;
}

.hero-text-wrapper {
    max-width: 650px;
}

.hero-hud {
    position: absolute;
    top: 100px;
    right: 2rem;
    z-index: 2;
    font-family: monospace;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.6);
    background: rgba(10, 15, 25, 0.4);
    border: 1px solid rgba(113, 209, 214, 0.2);
    padding: 1rem;
    border-radius: 8px;
    backdrop-filter: blur(4px);
}

.hud-item {
    margin-bottom: 0.5rem;
}

.hud-item:last-child {
    margin-bottom: 0;
}

.glow-text {
    color: var(--color-teal);
    text-shadow: 0 0 8px var(--color-teal-glow);
    font-weight: bold;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(113, 209, 214, 0.1);
    border: 1px solid rgba(113, 209, 214, 0.3);
    border-radius: 20px;
    color: var(--color-teal);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-top: 4rem; /* Replaces the badge space and adds more distance from logo */
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

.hero-keypoints {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 3rem;
}

.keypoint {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
}

.icon-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-teal);
    box-shadow: 0 0 10px var(--color-teal);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

/* ==========================================================================
   What We Do
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.card-icon {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px rgba(113, 209, 214, 0.5);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.project-showcase {
    display: flex;
    gap: 4rem;
    align-items: center;
    padding: 4rem;
}

.project-content {
    flex: 1;
}

.badge-accent {
    color: var(--color-teal);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.project-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.project-status {
    color: var(--color-teal);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.project-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.detail-block h4 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: #fff;
}

.detail-block p {
    color: var(--text-muted);
}

.styled-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-muted);
}

.styled-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-blue);
}

.project-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-visual {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-visual .core {
    background: linear-gradient(135deg, var(--color-blue), var(--color-teal));
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    z-index: 3;
    box-shadow: 0 0 30px var(--color-teal-glow);
}

.abstract-visual .ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(113, 209, 214, 0.3);
    animation: rotate 20s linear infinite;
}

.abstract-visual .ring-1 {
    width: 200px;
    height: 200px;
    border-top: 1px solid var(--color-teal);
}

.abstract-visual .ring-2 {
    width: 280px;
    height: 280px;
    border-bottom: 1px solid var(--color-blue);
    animation-direction: reverse;
    animation-duration: 30s;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ==========================================================================
   Technology Pipeline
   ========================================================================== */
.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.pipeline-item {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 2rem;
    position: relative;
}

.pipeline-item::before {
    content: '';
    position: absolute;
    left: -4px;
    top: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--color-teal);
}

.pipeline-header h3 {
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Why Hainan
   ========================================================================== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-text h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.split-text .lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-list li {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature-list strong {
    color: #fff;
    font-size: 1.1rem;
}

.feature-list span {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.split-visual h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.split-visual p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.approach-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.step {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
    font-size: 0.9rem;
}

.step-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-teal), transparent);
    margin: 0 10px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-box {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem;
}

.contact-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-box p {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.1rem;
}

.contact-info {
    display: inline-block;
    padding: 2rem 4rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.email-link {
    font-size: 2rem;
    font-weight: 600;
    color: var(--color-teal);
    transition: all 0.3s ease;
    display: block;
}

.email-link:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--color-teal-glow);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    background: rgba(7, 11, 20, 0.8);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.logo-img-small {
    height: 50px;
    filter: brightness(1.5); /* Make it brighter */
}

.footer-copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Utility
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .cards-grid, .pipeline-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .project-showcase, .split-layout {
        flex-direction: column;
        gap: 3rem;
    }
    
    .project-showcase {
        padding: 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
}


/* Make project and Hainan content cards lighter so the background remains visible. */
.third .glass-card,
.fifth .glass-card {
    background: rgba(20, 28, 45, 0.34);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-color: rgba(255, 255, 255, 0.12);
}

.third .glass-card:hover,
.fifth .glass-card:hover {
    background: rgba(30, 42, 65, 0.46);
}

#hero .hero-title {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .cards-grid, .pipeline-grid, .split-layout {
        grid-template-columns: 1fr;
    }
    
    .nav-links {
        display: none; /* Add mobile menu logic in JS if needed */
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions a {
        text-align: center;
    }
    
    .contact-box {
        padding: 2rem 1rem;
    }
    
    .email-link {
        font-size: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .hero-hud {
        top: 80px;
        right: 1rem;
        font-size: 0.75rem;
        padding: 0.8rem;
    }
}


/* ==========================================================================
   Full-page sliding section animation integration
   Added for the sliding-div section transition. Existing visual styles above
   are preserved; this layer only controls the full-screen section stage.
   ========================================================================== */
html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    overscroll-behavior: none;
}

.navbar {
    left: 0;
    right: 0;
}

.slide-section {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
    min-height: 100svh;
    padding: 0;
    visibility: hidden;
    overflow: hidden;
    z-index: 1;
}

.slide-section:first-of-type {
    visibility: visible;
}

.slide-outer,
.slide-inner,
.slide-bg {
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: transform;
}

.slide-bg {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    background-size: cover;
    background-position: center;
}

.slide-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.62) 0%, rgba(7, 11, 20, 0.42) 55%, rgba(7, 11, 20, 0.76) 100%),
        url('polina-bg.webp');
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 25% 35%, rgba(113, 209, 214, 0.18), transparent 32%),
                radial-gradient(circle at 78% 62%, rgba(40, 127, 179, 0.20), transparent 38%);
    pointer-events: none;
}

.first .slide-bg::before {
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.30) 0%, rgba(7, 11, 20, 0.24) 52%, rgba(7, 11, 20, 0.72) 100%);
    background-color: var(--bg-dark);
}

.second .slide-bg::before {
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.62) 0%, rgba(7, 11, 20, 0.42) 50%, rgba(7, 11, 20, 0.80) 100%),
        url('second-page-ocean-wind.webp');
    background-position: center;
}


.fourth .slide-bg::before {
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.72) 0%, rgba(7, 11, 20, 0.55) 50%, rgba(7, 11, 20, 0.86) 100%),
        url('matthieu-bg.webp');
}

.sixth .slide-bg::before {
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.60) 0%, rgba(7, 11, 20, 0.38) 42%, rgba(7, 11, 20, 0.82) 100%),
        url('contact-phones.webp');
    background-position: center;
}


.third .slide-bg::before {
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.42) 0%, rgba(7, 11, 20, 0.30) 50%, rgba(7, 11, 20, 0.68) 100%),
        url('polina-bg.webp');
}

.fifth .slide-bg::before {
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.38) 0%, rgba(7, 11, 20, 0.26) 50%, rgba(7, 11, 20, 0.68) 100%),
        url('hainan-coast-road.webp');
    background-position: center;
}

.slide-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-height: 100svh;
    overflow-y: auto;
    scrollbar-width: none;
}

.slide-content::-webkit-scrollbar {
    display: none;
}

/* Keep the original hero layout: 3D canvas behind, HUD floating, content centered. */
#hero .slide-content {
    position: relative;
    height: 100%;
    overflow: hidden;
}

#hero .slide-content > #canvas-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

#hero .slide-content > .hero-hud {
    position: absolute;
    top: 100px;
    right: 2rem;
    left: auto;
    width: auto;
    max-width: 340px;
    z-index: 3;
}

#hero .slide-content > .hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero,
.section {
    min-height: 100svh;
}

.section .container,
.hero-content {
    padding-top: 110px;
    padding-bottom: 80px;
}

#contact .slide-content {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    justify-content: center;
}

#contact .footer {
    margin-top: 40px;
}

.section-dots {
    position: fixed;
    top: 50%;
    right: 24px;
    transform: translateY(-50%);
    z-index: 120;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.section-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.section-dot.active {
    transform: scale(1.45);
    background: var(--color-teal);
    border-color: var(--color-teal);
    box-shadow: 0 0 12px var(--color-teal-glow);
}


/* Make project and Hainan content cards lighter so the background remains visible. */
.third .glass-card,
.fifth .glass-card {
    background: rgba(20, 28, 45, 0.34);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    border-color: rgba(255, 255, 255, 0.12);
}

.third .glass-card:hover,
.fifth .glass-card:hover {
    background: rgba(30, 42, 65, 0.46);
}

#hero .hero-title {
    margin-top: 0;
}

@media (max-width: 1024px) {
    html,
    body {
        overflow: auto;
    }

    .slide-section {
        position: relative;
        visibility: visible !important;
        height: auto;
        min-height: 100svh;
    }

    .slide-outer,
    .slide-inner,
    .slide-bg {
        height: auto;
        min-height: 100svh;
        transform: none !important;
    }

    .slide-content {
        max-height: none;
        overflow: visible;
    }

    .section-dots {
        display: none;
    }
}

/* ==========================================================================
   V3 readability fixes requested: clearer Why Hainan text + transparent navy nav
   ========================================================================== */
.navbar {
    background: rgba(5, 16, 31, 0.58);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    border-bottom: 1px solid rgba(113, 209, 214, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.navbar.scrolled {
    background: rgba(5, 16, 31, 0.66);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid rgba(113, 209, 214, 0.14);
}

/* Make the Hainan background visible but add a left-side readability layer. */
.fifth .slide-bg::after {
    background:
        linear-gradient(90deg, rgba(3, 12, 24, 0.68) 0%, rgba(3, 12, 24, 0.46) 34%, rgba(3, 12, 24, 0.18) 62%, rgba(3, 12, 24, 0.08) 100%),
        radial-gradient(circle at 18% 35%, rgba(113, 209, 214, 0.16), transparent 34%),
        radial-gradient(circle at 78% 62%, rgba(40, 127, 179, 0.12), transparent 38%);
}

.fifth .split-text h2,
.fifth .split-text .lead,
.fifth .feature-list strong,
.fifth .feature-list span {
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.72), 0 1px 2px rgba(0, 0, 0, 0.8);
}

.fifth .split-text h2 {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.fifth .split-text .lead {
    color: rgba(245, 250, 255, 0.94);
    font-weight: 500;
}

.fifth .feature-list strong {
    color: #ffffff;
    font-weight: 800;
}

.fifth .feature-list span {
    color: rgba(245, 250, 255, 0.92);
    font-weight: 500;
}

.fifth .split-visual.glass-card {
    background: rgba(5, 18, 34, 0.48);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

/* ==========================================================================
   V5 request: keep the navigation content/links, remove only the top bar frame
   ========================================================================== */
.navbar,
.navbar.scrolled {
    display: block !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   V6 fixes: center floating nav content + prevent first/contact page overlap
   ========================================================================== */
.navbar,
.navbar.scrolled {
    padding: 1.45rem 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.nav-container {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 clamp(2rem, 5.8vw, 7rem) !important;
    display: grid !important;
    grid-template-columns: minmax(170px, 1fr) auto minmax(170px, 1fr) !important;
    align-items: center !important;
    position: relative !important;
}

.logo {
    grid-column: 1 !important;
    justify-self: start !important;
}

.logo-img {
    height: 78px !important;
}

.nav-links {
    grid-column: 2 !important;
    justify-self: center !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(1.45rem, 2.15vw, 2.35rem) !important;
}

.nav-links > li:last-child {
    position: fixed !important;
    right: clamp(2rem, 5.8vw, 7rem) !important;
    top: 2rem !important;
    z-index: 130 !important;
}

.lang-switch {
    position: static !important;
    transform: none !important;
}

/* Give every full-page panel enough top safety space for the floating nav. */
.section .container,
.hero-content {
    padding-top: clamp(125px, 14vh, 155px) !important;
    padding-bottom: clamp(58px, 8vh, 92px) !important;
}

/* First page: keep the HUD below the floating nav and keep hero content clear. */
#hero .slide-content > .hero-hud {
    top: clamp(120px, 14vh, 145px) !important;
    right: clamp(1.4rem, 4vw, 3rem) !important;
}

#hero .slide-content > .hero-content {
    align-items: center !important;
    padding-top: clamp(135px, 15vh, 165px) !important;
    padding-bottom: clamp(65px, 8vh, 100px) !important;
}

/* Last/contact page: separate the contact card from the footer and nav. */
#contact .slide-content {
    min-height: 100svh !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    overflow: hidden !important;
}

#contact .slide-content > .container {
    flex: 1 1 auto !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: clamp(120px, 13vh, 150px) !important;
    padding-bottom: clamp(24px, 4vh, 48px) !important;
}

#contact .contact-box {
    margin: 0 auto !important;
    padding: clamp(2rem, 4vh, 3.4rem) clamp(2rem, 5vw, 4rem) !important;
    max-width: 820px !important;
}

#contact .contact-box h2 {
    font-size: clamp(2rem, 3.4vw, 2.9rem) !important;
}

#contact .contact-box p {
    margin-bottom: clamp(1.8rem, 4vh, 3rem) !important;
}

#contact .contact-info {
    padding: clamp(1.4rem, 3vh, 2rem) clamp(2rem, 5vw, 4rem) !important;
}

#contact .footer {
    flex: 0 0 auto !important;
    width: 100% !important;
    margin-top: 0 !important;
    padding: 1.35rem 0 !important;
    background: transparent !important;
    border-top: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

@media (max-width: 1050px) {
    .nav-container {
        grid-template-columns: auto 1fr auto !important;
        padding: 0 2rem !important;
    }

    .nav-links {
        gap: 1.2rem !important;
    }

    .logo-img {
        height: 66px !important;
    }

    .nav-links > li:last-child {
        right: 2rem !important;
        top: 1.75rem !important;
    }
}


/* ==========================================================================
   V8 request: use the uploaded cat image for the final contact section
   ========================================================================== */
.sixth .slide-bg::after {
    background:
        linear-gradient(90deg, rgba(3, 12, 24, 0.40) 0%, rgba(3, 12, 24, 0.22) 38%, rgba(3, 12, 24, 0.18) 64%, rgba(3, 12, 24, 0.42) 100%),
        radial-gradient(circle at 24% 32%, rgba(113, 209, 214, 0.10), transparent 30%),
        radial-gradient(circle at 76% 68%, rgba(40, 127, 179, 0.12), transparent 36%);
}


/* ==========================================================================
   V9 request: use uploaded vintage phone image for final contact section
   ========================================================================== */
.sixth .slide-bg::after {
    background:
        linear-gradient(90deg, rgba(3, 12, 24, 0.46) 0%, rgba(3, 12, 24, 0.28) 38%, rgba(3, 12, 24, 0.20) 64%, rgba(3, 12, 24, 0.48) 100%),
        radial-gradient(circle at 24% 32%, rgba(113, 209, 214, 0.08), transparent 30%),
        radial-gradient(circle at 76% 68%, rgba(40, 127, 179, 0.10), transparent 36%);
}


/* ==========================================================================
   V12 readability refinements: clearer Hainan hierarchy, clearer page-2 subtitle,
   and LinkedIn added to the contact section
   ========================================================================== */
.second .slide-bg::after {
    background:
        linear-gradient(180deg, rgba(3, 10, 20, 0.38) 0%, rgba(3, 10, 20, 0.18) 26%, rgba(3, 10, 20, 0.08) 50%, rgba(3, 10, 20, 0.28) 100%),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.06), transparent 22%),
        radial-gradient(circle at 18% 40%, rgba(113, 209, 214, 0.10), transparent 30%),
        radial-gradient(circle at 82% 60%, rgba(40, 127, 179, 0.10), transparent 34%);
}

.second .section-header h2 {
    color: #ffffff;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.second .section-header p {
    color: rgba(248, 251, 255, 0.96);
    font-weight: 500;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.50), 0 1px 2px rgba(0, 0, 0, 0.45);
}

.fifth .feature-list {
    gap: 2rem;
}

.fifth .feature-list li {
    gap: 0.75rem;
}

.fifth .feature-list strong {
    display: block;
    color: #ffffff;
    font-weight: 800;
    font-size: 1.28rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 0.1rem;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.76), 0 1px 2px rgba(0, 0, 0, 0.82);
}

.fifth .feature-list span {
    display: block;
    color: rgba(239, 246, 255, 0.92);
    font-weight: 500;
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 42rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.68), 0 1px 2px rgba(0, 0, 0, 0.76);
}

.contact-divider {
    width: 100%;
    height: 1px;
    margin: 1.35rem 0 1.15rem;
    background: linear-gradient(90deg, transparent, rgba(113, 209, 214, 0.45), transparent);
}

.linkedin-label {
    margin-bottom: 0.45rem !important;
    color: rgba(240, 246, 255, 0.88) !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.02em;
}

.linkedin-link {
    display: block;
    color: rgba(113, 209, 214, 0.98);
    font-size: clamp(1rem, 2vw, 1.35rem);
    line-height: 1.35;
    font-weight: 600;
    word-break: break-word;
    text-shadow: 0 0 10px rgba(113, 209, 214, 0.18);
    transition: color 0.25s ease, text-shadow 0.25s ease;
}

.linkedin-link:hover {
    color: #ffffff;
    text-shadow: 0 0 12px rgba(113, 209, 214, 0.36);
}


/* ==========================================================================
   V13 fixes: keep footer visible on final page after adding LinkedIn,
   and match LinkedIn label styling to the contact label
   ========================================================================== */
#contact .slide-content {
    position: relative !important;
    justify-content: flex-start !important;
    padding-bottom: 0 !important;
}

#contact .slide-content > .container {
    align-items: center !important;
    justify-content: center !important;
    padding-top: clamp(116px, 12.5vh, 144px) !important;
    padding-bottom: clamp(110px, 12vh, 132px) !important;
}

#contact .contact-box {
    max-width: 900px !important;
}

#contact .footer {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 3 !important;
}

.linkedin-label {
    color: var(--text-muted) !important;
    font-size: 0.9rem !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;
    margin-bottom: 0.5rem !important;
    text-transform: none !important;
    text-shadow: none !important;
}


/* ==========================================================================
   V15 tweak: reduce the final-page footer height
   ========================================================================== */
#contact .slide-content > .container {
    padding-bottom: clamp(84px, 9vh, 102px) !important;
}

#contact .footer {
    padding: 0.58rem 0 0.72rem !important;
}

#contact .footer .container {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

#contact .footer-content {
    min-height: 0 !important;
    gap: 0.75rem !important;
    align-items: center !important;
}

#contact .footer-logo {
    gap: 0.7rem !important;
    font-size: 0.92rem !important;
}

#contact .logo-img-small {
    height: 34px !important;
}

#contact .footer-copyright {
    font-size: 0.85rem !important;
    line-height: 1.2 !important;
}


/* ========================================================================== 
   FINAL MOBILE FIX — S3 ready responsive layer
   Keeps desktop full-page animation, but makes phones use natural scrolling.
   ========================================================================== */
@media (max-width: 1024px) {
    html,
    body {
        width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        -webkit-text-size-adjust: 100%;
    }

    body {
        position: static !important;
        touch-action: pan-y !important;
    }

    .navbar,
    .navbar.scrolled {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 999 !important;
        padding: 0.65rem 0 !important;
        background: rgba(5, 16, 31, 0.72) !important;
        backdrop-filter: blur(14px) saturate(130%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
    }

    .nav-container {
        display: flex !important;
        width: 100% !important;
        padding: 0 1rem !important;
        justify-content: space-between !important;
        align-items: center !important;
        grid-template-columns: none !important;
    }

    .logo,
    .logo-img {
        position: relative !important;
        z-index: 1001 !important;
    }

    .logo-img {
        height: 52px !important;
        max-width: 150px !important;
    }

    .mobile-menu-btn {
        display: flex !important;
        position: relative !important;
        z-index: 1001 !important;
        width: 40px !important;
        height: 40px !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 5px !important;
        padding: 0 !important;
    }

    .mobile-menu-btn span {
        width: 24px !important;
        height: 2px !important;
        display: block !important;
        background: #ffffff !important;
        transform-origin: center !important;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0 !important;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    .nav-links {
        display: none !important;
        position: fixed !important;
        top: 72px !important;
        left: 1rem !important;
        right: 1rem !important;
        width: auto !important;
        max-width: none !important;
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        gap: 0.35rem !important;
        padding: 1rem !important;
        border-radius: 18px !important;
        background: rgba(5, 16, 31, 0.93) !important;
        border: 1px solid rgba(113, 209, 214, 0.20) !important;
        box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38) !important;
    }

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

    .nav-links li,
    .nav-links a,
    .nav-links .btn-primary {
        width: 100% !important;
        text-align: center !important;
    }

    .nav-links a,
    .lang-switch {
        display: block !important;
        padding: 0.78rem 1rem !important;
        font-size: 0.98rem !important;
    }

    .nav-links > li:last-child {
        position: static !important;
        right: auto !important;
        top: auto !important;
        z-index: auto !important;
        width: 100% !important;
    }

    .lang-switch {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        margin: 0.25rem 0 0 !important;
    }

    .section-dots {
        display: none !important;
    }

    .slide-section,
    .slide-section:first-of-type,
    .hero,
    .section {
        position: relative !important;
        inset: auto !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        padding: 0 !important;
        overflow: visible !important;
        z-index: 1 !important;
        transform: none !important;
    }

    .slide-outer,
    .slide-inner,
    .slide-bg {
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        transform: none !important;
    }

    .slide-bg {
        align-items: stretch !important;
        padding: 0 !important;
    }

    .slide-bg::before {
        position: absolute !important;
        inset: 0 !important;
        transform: none !important;
        background-attachment: scroll !important;
    }

    .slide-content,
    #hero .slide-content,
    #contact .slide-content {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-height: none !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        opacity: 1 !important;
        transform: none !important;
        padding: 0 !important;
    }

    .container,
    .section .container,
    .hero-content,
    #hero .slide-content > .hero-content,
    #contact .slide-content > .container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 1.15rem !important;
        padding-right: 1.15rem !important;
        padding-top: 96px !important;
        padding-bottom: 64px !important;
        margin: 0 auto !important;
    }

    #hero .slide-content > .hero-content {
        min-height: 100svh !important;
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        text-align: left !important;
    }

    .hero-text-wrapper {
        max-width: 100% !important;
    }

    .hero-title {
        font-size: clamp(2.15rem, 11vw, 3rem) !important;
        line-height: 1.05 !important;
        margin: 0 0 1rem !important;
        letter-spacing: -0.04em !important;
    }

    .hero-subtitle,
    .split-text .lead,
    .section-header p,
    .contact-box p {
        font-size: 1rem !important;
        line-height: 1.62 !important;
    }

    .hero-keypoints {
        gap: 0.75rem !important;
        margin-bottom: 1.5rem !important;
    }

    .keypoint {
        font-size: 0.96rem !important;
        align-items: flex-start !important;
    }

    .icon-dot {
        flex: 0 0 9px !important;
        margin-top: 0.45rem !important;
    }

    .hero-actions {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.8rem !important;
        width: 100% !important;
    }

    .hero-actions a,
    .btn-primary,
    .btn-secondary {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    #hero .slide-content > .hero-hud {
        display: none !important;
    }

    #canvas-container {
        opacity: 0.45 !important;
        pointer-events: none !important;
    }

    .section-header {
        margin-bottom: 2rem !important;
        text-align: left !important;
    }

    .section-header h2,
    .project-content h2,
    .split-text h2,
    .contact-box h2 {
        font-size: clamp(1.85rem, 8vw, 2.35rem) !important;
        line-height: 1.12 !important;
    }

    .cards-grid,
    .pipeline-grid,
    .split-layout,
    .project-showcase {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .project-showcase,
    .glass-card,
    #contact .contact-box {
        padding: 1.35rem !important;
        border-radius: 18px !important;
    }

    .project-visual {
        min-height: 210px !important;
    }

    .abstract-visual {
        width: 220px !important;
        height: 220px !important;
        margin: 0 auto !important;
    }

    .abstract-visual .ring-1 {
        width: 150px !important;
        height: 150px !important;
    }

    .abstract-visual .ring-2 {
        width: 210px !important;
        height: 210px !important;
    }

    .pipeline-item {
        padding-left: 1.15rem !important;
    }

    .approach-steps {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 0.75rem !important;
    }

    .step-line {
        display: none !important;
    }

    .contact-info,
    #contact .contact-info {
        display: block !important;
        width: 100% !important;
        padding: 1.1rem !important;
    }

    .email-link,
    .linkedin-link {
        font-size: clamp(0.96rem, 4.8vw, 1.2rem) !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    #contact .footer {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        width: 100% !important;
        padding: 1rem 0 1.25rem !important;
        background: rgba(5, 16, 31, 0.52) !important;
    }

    #contact .footer .container {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .footer-content,
    #contact .footer-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 0.65rem !important;
    }

    .footer-logo {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }

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

@media (max-width: 430px) {
    .container,
    .section .container,
    .hero-content,
    #hero .slide-content > .hero-content,
    #contact .slide-content > .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .logo-img {
        height: 46px !important;
        max-width: 136px !important;
    }

    .nav-links {
        top: 66px !important;
    }
}

/* ========================================================================== 
   V23 mobile tap / anchor fix
   Ensures mobile menu links and hero buttons receive taps and scroll correctly.
   ========================================================================== */
@media (max-width: 1024px) {
    html.mobile-scroll-mode,
    html.mobile-scroll-mode body {
        height: auto !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .nav-links {
        z-index: 1002 !important;
        pointer-events: auto !important;
    }

    .nav-links.active,
    .nav-links.active * {
        pointer-events: auto !important;
    }

    .mobile-menu-btn {
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    .hero-actions,
    .hero-actions a,
    .btn-primary,
    .btn-secondary,
    .linkedin-link,
    .email-link {
        position: relative !important;
        z-index: 20 !important;
        pointer-events: auto !important;
        touch-action: manipulation !important;
    }

    #canvas-container,
    .slide-bg::before,
    .hero-hud {
        pointer-events: none !important;
    }
}


/* ==========================================================================
   V24 navigation click fix
   Force phones/tablets and narrow browser previews into normal scroll mode.
   ========================================================================== */
@media (max-width: 1024px), (pointer: coarse) {
    html,
    body {
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        touch-action: pan-y !important;
    }

    .navbar {
        pointer-events: auto !important;
        z-index: 5000 !important;
    }

    .nav-container,
    .logo,
    .mobile-menu-btn,
    .nav-links,
    .nav-links * {
        pointer-events: auto !important;
    }

    .nav-links {
        z-index: 5001 !important;
    }

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

    .nav-links a {
        cursor: pointer !important;
        touch-action: manipulation !important;
        -webkit-tap-highlight-color: rgba(113, 209, 214, 0.25) !important;
    }

    .slide-section,
    .slide-outer,
    .slide-inner,
    .slide-bg,
    .slide-content {
        pointer-events: auto !important;
        transform: none !important;
    }

    #canvas-container,
    .hero-hud,
    .section-dots,
    .slide-bg::before {
        pointer-events: none !important;
    }
}


/* ========================================================================== 
   V25 mobile native-scroll hard fix
   Keep anchor clicks working, but allow real finger/trackpad scroll on phones/tablets.
   ========================================================================== */
@media (max-width: 1180px), (pointer: coarse) {
    html,
    body,
    html.mobile-scroll-mode,
    html.mobile-scroll-mode body,
    body.mobile-scroll-mode {
        width: 100% !important;
        height: auto !important;
        min-height: 100% !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        position: static !important;
        touch-action: pan-y !important;
        overscroll-behavior-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .slide-section,
    .slide-section:first-of-type,
    .hero,
    .section {
        position: relative !important;
        inset: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        display: block !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        overflow: visible !important;
        transform: none !important;
    }

    .slide-outer,
    .slide-inner,
    .slide-bg,
    .slide-content,
    #hero .slide-content,
    #contact .slide-content {
        position: relative !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        transform: none !important;
        touch-action: pan-y !important;
    }

    #hero .slide-content > .hero-content {
        min-height: 100svh !important;
    }

    .section-dots {
        display: none !important;
        pointer-events: none !important;
    }
}

/* ========================================================================== 
   V26 mobile hero animation restore
   Keep native mobile scrolling, but restore the first-page visual animation layer.
   ========================================================================== */
@media (max-width: 1180px), (pointer: coarse) {
    #hero {
        min-height: 100svh !important;
        overflow: hidden !important;
        background: #061223 !important;
    }

    #hero .slide-content {
        position: relative !important;
        min-height: 100svh !important;
        overflow: hidden !important;
        isolation: isolate !important;
    }

    #hero .slide-bg {
        position: relative !important;
        min-height: 100svh !important;
        overflow: hidden !important;
    }

    #hero .slide-content > #canvas-container,
    #canvas-container {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        min-height: 100svh !important;
        opacity: 0.82 !important;
        z-index: 0 !important;
        pointer-events: none !important;
        transform: none !important;
    }

    #canvas-container canvas {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
    }

    #hero .slide-content > .hero-content {
        position: relative !important;
        z-index: 2 !important;
    }

    #hero .slide-content > .hero-hud {
        display: block !important;
        position: absolute !important;
        top: 92px !important;
        right: 1rem !important;
        left: auto !important;
        width: auto !important;
        max-width: 190px !important;
        padding: 0.55rem 0.65rem !important;
        font-size: 0.62rem !important;
        line-height: 1.25 !important;
        opacity: 0.72 !important;
        z-index: 2 !important;
        pointer-events: none !important;
    }

    #hero .hero-title,
    #hero .hero-subtitle,
    #hero .hero-keypoints,
    #hero .hero-actions {
        animation-name: mobileHeroRise;
        animation-duration: 820ms;
        animation-fill-mode: both;
        animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    }

    #hero .hero-title { animation-delay: 80ms; }
    #hero .hero-subtitle { animation-delay: 210ms; }
    #hero .hero-keypoints { animation-delay: 340ms; }
    #hero .hero-actions { animation-delay: 470ms; }

    #hero .icon-dot {
        animation: mobileDotPulse 2.4s ease-in-out infinite;
    }
}

@media (max-width: 430px) {
    #hero .slide-content > .hero-hud {
        top: 88px !important;
        right: 0.85rem !important;
        max-width: 160px !important;
        font-size: 0.56rem !important;
        padding: 0.45rem 0.55rem !important;
    }
}

@keyframes mobileHeroRise {
    from {
        opacity: 0;
        transform: translate3d(0, 22px, 0) scale(0.985);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0) scale(1);
        filter: blur(0);
    }
}

@keyframes mobileDotPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 10px var(--color-teal);
    }
    50% {
        transform: scale(1.35);
        box-shadow: 0 0 20px var(--color-teal);
    }
}


/* ========================================================================== 
   V27 mobile menu close behavior polish
   Menu can be dismissed by tapping blank page area or swiping/scrolling.
   ========================================================================== */
@media (max-width: 1180px), (pointer: coarse) {
    .nav-links.active {
        pointer-events: auto !important;
    }

    body:has(.nav-links.active) .slide-section,
    body:has(.nav-links.active) .hero-actions,
    body:has(.nav-links.active) .slide-content {
        touch-action: pan-y !important;
    }

    .mobile-menu-btn:focus,
    .mobile-menu-btn:focus-visible {
        outline: 1px solid rgba(113, 209, 214, 0.45) !important;
        outline-offset: 4px !important;
        box-shadow: none !important;
    }
}


/* ========================================================================== 
   V28 sticky top-right mobile menu tab
   Makes the hamburger feel like an attached/floating tag in the upper-right.
   ========================================================================== */
@media (max-width: 1180px), (pointer: coarse) {
    .navbar,
    .navbar.scrolled {
        overflow: visible !important;
    }

    .nav-container {
        position: relative !important;
        overflow: visible !important;
    }

    .mobile-menu-btn {
        position: fixed !important;
        top: max(18px, env(safe-area-inset-top)) !important;
        right: max(18px, env(safe-area-inset-right)) !important;
        width: 58px !important;
        height: 58px !important;
        z-index: 7000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 6px !important;
        padding: 0 !important;
        border-radius: 18px 0 0 18px !important;
        border: 1px solid rgba(113, 209, 214, 0.35) !important;
        border-right: 0 !important;
        background: linear-gradient(135deg, rgba(7, 22, 42, 0.92), rgba(6, 33, 58, 0.82)) !important;
        box-shadow: -10px 12px 28px rgba(0, 0, 0, 0.38), inset 0 0 22px rgba(113, 209, 214, 0.08) !important;
        backdrop-filter: blur(14px) saturate(140%) !important;
        -webkit-backdrop-filter: blur(14px) saturate(140%) !important;
        transform: translateX(6px) !important;
        transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease, box-shadow 0.22s ease !important;
        cursor: pointer !important;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:active,
    .mobile-menu-btn.active {
        transform: translateX(0) !important;
        border-color: rgba(113, 209, 214, 0.78) !important;
        background: linear-gradient(135deg, rgba(8, 31, 56, 0.98), rgba(17, 74, 94, 0.90)) !important;
        box-shadow: -12px 16px 34px rgba(0, 0, 0, 0.44), 0 0 22px rgba(113, 209, 214, 0.16) !important;
    }

    .mobile-menu-btn span {
        width: 28px !important;
        height: 2px !important;
        border-radius: 999px !important;
        background: #ffffff !important;
        box-shadow: 0 0 8px rgba(113, 209, 214, 0.22) !important;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg) !important;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg) !important;
    }

    .nav-links {
        top: calc(max(18px, env(safe-area-inset-top)) + 68px) !important;
        right: max(18px, env(safe-area-inset-right)) !important;
        left: auto !important;
        width: min(330px, calc(100vw - 36px)) !important;
        max-width: min(330px, calc(100vw - 36px)) !important;
        border-radius: 22px 0 22px 22px !important;
        transform-origin: top right !important;
        border-color: rgba(113, 209, 214, 0.30) !important;
        box-shadow: -18px 24px 58px rgba(0, 0, 0, 0.46), inset 0 0 24px rgba(113, 209, 214, 0.055) !important;
    }

    .nav-links.active {
        animation: unilanMenuDropV28 0.20s ease-out both !important;
    }

    .nav-links.active::before {
        content: "";
        position: absolute;
        top: -10px;
        right: 0;
        width: 58px;
        height: 10px;
        background: rgba(7, 22, 42, 0.93);
        border-left: 1px solid rgba(113, 209, 214, 0.30);
        border-top: 1px solid rgba(113, 209, 214, 0.30);
        border-radius: 14px 0 0 0;
        pointer-events: none;
    }
}

@keyframes unilanMenuDropV28 {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ========================================================================== 
   V29 minimalist mobile menu + clickable logo home
   ========================================================================== */
.logo-home,
.logo-home:visited {
    display: inline-flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: inherit !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent !important;
}

.logo-home:hover .logo-img,
.logo-home:focus-visible .logo-img {
    filter: brightness(1.65) drop-shadow(0 0 10px rgba(113, 209, 214, 0.18)) !important;
}

@media (max-width: 1180px), (pointer: coarse) {
    .mobile-menu-btn {
        position: fixed !important;
        top: max(22px, calc(env(safe-area-inset-top) + 14px)) !important;
        right: max(22px, calc(env(safe-area-inset-right) + 18px)) !important;
        width: 46px !important;
        height: 46px !important;
        z-index: 7000 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-direction: column !important;
        gap: 7px !important;
        padding: 0 !important;
        margin: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        transform: none !important;
        outline: none !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
        transition: opacity 0.18s ease, transform 0.18s ease !important;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:active,
    .mobile-menu-btn.active {
        transform: none !important;
        border: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        opacity: 0.92 !important;
    }

    .mobile-menu-btn:focus,
    .mobile-menu-btn:focus-visible {
        outline: none !important;
        box-shadow: none !important;
    }

    .mobile-menu-btn span {
        width: 31px !important;
        height: 2px !important;
        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.94) !important;
        box-shadow: 0 0 10px rgba(113, 209, 214, 0.16) !important;
        transform-origin: center !important;
        transition: transform 0.22s ease, opacity 0.18s ease, width 0.18s ease !important;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg) !important;
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0 !important;
        width: 0 !important;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg) !important;
    }

    .nav-links {
        top: calc(max(22px, calc(env(safe-area-inset-top) + 14px)) + 58px) !important;
        right: max(18px, env(safe-area-inset-right)) !important;
        left: auto !important;
        width: min(320px, calc(100vw - 36px)) !important;
        max-width: min(320px, calc(100vw - 36px)) !important;
        border-radius: 20px !important;
        transform-origin: top right !important;
        border: 1px solid rgba(113, 209, 214, 0.24) !important;
        box-shadow: -14px 20px 48px rgba(0, 0, 0, 0.42), inset 0 0 22px rgba(113, 209, 214, 0.045) !important;
    }

    .nav-links.active::before {
        display: none !important;
    }
}

/* ========================================================================== 
   V30 hero primary CTA brightness
   Make the homepage "Partner with us / 寻求合作" button more visible.
   ========================================================================== */
#hero .hero-actions .btn-primary {
    background: linear-gradient(135deg, #2fb7f2 0%, #74f0f4 100%) !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.35) !important;
    border: 1px solid rgba(175, 255, 255, 0.72) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 10px 32px rgba(47, 183, 242, 0.42),
        0 0 34px rgba(116, 240, 244, 0.38) !important;
}

#hero .hero-actions .btn-primary:hover,
#hero .hero-actions .btn-primary:focus-visible {
    transform: translateY(-2px) scale(1.015) !important;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.16) inset,
        0 12px 38px rgba(47, 183, 242, 0.55),
        0 0 46px rgba(116, 240, 244, 0.52) !important;
}

@media (max-width: 1180px), (pointer: coarse) {
    #hero .hero-actions .btn-primary {
        background: linear-gradient(135deg, #35bff7 0%, #86f7f8 100%) !important;
        color: #ffffff !important;
        opacity: 1 !important;
        filter: saturate(1.15) brightness(1.08) !important;
        border-color: rgba(205, 255, 255, 0.86) !important;
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.16) inset,
            0 12px 34px rgba(53, 191, 247, 0.5),
            0 0 42px rgba(134, 247, 248, 0.52) !important;
    }
}


/* ========================================================================== 
   V31 align mobile hamburger with logo
   Place the mobile menu button inside the same nav container flow so it lines
   up vertically with the logo on the left.
   ========================================================================== */
@media (max-width: 1180px), (pointer: coarse) {
    .nav-container {
        position: relative !important;
        min-height: 56px !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .mobile-menu-btn {
        position: absolute !important;
        top: 50% !important;
        right: 1rem !important;
        left: auto !important;
        margin: 0 !important;
        transform: translateY(-50%) !important;
    }

    .mobile-menu-btn:hover,
    .mobile-menu-btn:active,
    .mobile-menu-btn.active {
        transform: translateY(-50%) !important;
    }

    .nav-links {
        top: calc(100% + 10px) !important;
        right: 1rem !important;
    }
}


/* ========================================================================== 
   V32 sharpen hero CTA text
   Make the homepage "Partner with us / 寻求合作" text clearer and crisper.
   ========================================================================== */
#hero .hero-actions .btn-primary {
    color: #ffffff !important;
    font-weight: 900 !important;
    font-size: 1.04rem !important;
    line-height: 1.1 !important;
    letter-spacing: 0.01em !important;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.42) !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: geometricPrecision !important;
}

#hero .hero-actions .btn-primary span,
#hero .hero-actions .btn-primary,
#hero .hero-actions .btn-primary:visited {
    color: #ffffff !important;
    opacity: 1 !important;
}

@media (max-width: 1180px), (pointer: coarse) {
    #hero .hero-actions .btn-primary {
        font-size: 1.12rem !important;
        font-weight: 900 !important;
        letter-spacing: 0 !important;
        text-shadow: 0 1px 1px rgba(0, 0, 0, 0.44) !important;
        background: linear-gradient(135deg, #2ca9f0 0%, #79edf1 100%) !important;
    }
}


/* ========================================================================== 
   V33 match hero Partner with us button to top navigation button exactly
   ========================================================================== */
#hero .hero-actions .btn-primary,
#hero .hero-actions .btn-primary:visited {
    display: inline-block !important;
    background: linear-gradient(135deg, var(--color-blue), var(--color-teal)) !important;
    color: #fff !important;
    padding: 0.8rem 1.8rem !important;
    border-radius: 30px !important;
    font-weight: 500 !important;
    font-size: 1rem !important;
    line-height: normal !important;
    letter-spacing: 0.5px !important;
    text-shadow: none !important;
    border: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(40, 127, 179, 0.4) !important;
    filter: none !important;
    opacity: 1 !important;
}

#hero .hero-actions .btn-primary:hover,
#hero .hero-actions .btn-primary:focus-visible {
    box-shadow: 0 6px 20px rgba(113, 209, 214, 0.6) !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 1180px), (pointer: coarse) {
    #hero .hero-actions .btn-primary,
    #hero .hero-actions .btn-primary:visited {
        background: linear-gradient(135deg, var(--color-blue), var(--color-teal)) !important;
        color: #fff !important;
        padding: 0.8rem 1.8rem !important;
        font-weight: 500 !important;
        font-size: 1rem !important;
        letter-spacing: 0.5px !important;
        text-shadow: none !important;
        border: none !important;
        filter: none !important;
        box-shadow: 0 4px 15px rgba(40, 127, 179, 0.4) !important;
    }
}


/* ========================================================================== 
   V34 center the hero Partner with us pill exactly
   The hero CTA now uses inline-flex so the label is horizontally and vertically
   centered, while matching the top nav Partner button size and style.
   ========================================================================== */
#hero .hero-actions {
    align-items: center !important;
}

#hero .hero-actions .btn-primary,
#hero .hero-actions .btn-primary:visited {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 132px !important;
    min-height: 44px !important;
    padding: 0.8rem 1.8rem !important;
    text-align: center !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

@media (max-width: 1180px), (pointer: coarse) {
    #hero .hero-actions {
        align-items: flex-start !important;
    }

    #hero .hero-actions .btn-primary,
    #hero .hero-actions .btn-primary:visited {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: auto !important;
        min-width: 132px !important;
        min-height: 44px !important;
        padding: 0.8rem 1.8rem !important;
        text-align: center !important;
        line-height: 1 !important;
        white-space: nowrap !important;
    }
}


/* ========================================================================== 
   V36 safe equal-width hero buttons
   Based on stable V34. Only changes hero button width/height; no JS or structure changes.
   ========================================================================== */
#hero .hero-actions {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

#hero .hero-actions .btn-primary,
#hero .hero-actions .btn-secondary,
#hero .hero-actions .btn-primary:visited,
#hero .hero-actions .btn-secondary:visited {
    width: 210px !important;
    min-width: 210px !important;
    max-width: 210px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

@media (max-width: 1180px), (pointer: coarse) {
    #hero .hero-actions {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
        flex-wrap: nowrap !important;
    }

    #hero .hero-actions .btn-primary,
    #hero .hero-actions .btn-secondary,
    #hero .hero-actions .btn-primary:visited,
    #hero .hero-actions .btn-secondary:visited {
        width: min(42vw, 240px) !important;
        min-width: min(42vw, 240px) !important;
        max-width: min(42vw, 240px) !important;
        height: 54px !important;
        min-height: 54px !important;
        padding: 0 !important;
    }
}

@media (max-width: 430px) {
    #hero .hero-actions {
        gap: 0.75rem !important;
    }

    #hero .hero-actions .btn-primary,
    #hero .hero-actions .btn-secondary,
    #hero .hero-actions .btn-primary:visited,
    #hero .hero-actions .btn-secondary:visited {
        width: calc((100vw - 3.75rem) / 2) !important;
        min-width: 0 !important;
        max-width: calc((100vw - 3.75rem) / 2) !important;
        height: 52px !important;
        font-size: 0.92rem !important;
    }
}


/* ========================================================================== 
   V38 perceived-loading improvement for Chrome
   Shows a real first-screen fallback immediately while the WebGL/Three.js
   scene finishes loading, so Chrome does not look blank or broken.
   ========================================================================== */
.first .slide-bg::before {
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.56) 0%, rgba(7, 11, 20, 0.34) 48%, rgba(11, 45, 78, 0.78) 100%),
        url('polina-bg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    opacity: 0.82 !important;
}

#hero .slide-content > #canvas-container {
    opacity: 0;
    animation: unilanCanvasFadeInV38 900ms ease 650ms forwards;
}

@keyframes unilanCanvasFadeInV38 {
    from { opacity: 0; }
    to { opacity: 1; }
}

#hero .hero-title,
#hero .hero-subtitle,
#hero .hero-keypoints,
#hero .hero-actions,
#hero .hero-hud {
    opacity: 1 !important;
}

@media (max-width: 1180px), (pointer: coarse) {
    .first .slide-bg::before {
        opacity: 0.72 !important;
    }

    #hero .slide-content > #canvas-container {
        animation-delay: 350ms;
    }
}


/* ========================================================================== 
   V39 Chrome-safe hero fallback
   Chrome gets a static first-screen visual instead of waiting on WebGL/Three.js.
   This keeps the homepage visible and clickable even when Chrome/CDN/WebGL is slow.
   ========================================================================== */
html.is-chrome-browser #hero .slide-content > #canvas-container,
html.chrome-static-hero #hero .slide-content > #canvas-container,
html.no-webgl-scene #hero .slide-content > #canvas-container {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

html.is-chrome-browser .first .slide-bg::before,
html.chrome-static-hero .first .slide-bg::before,
html.no-webgl-scene .first .slide-bg::before {
    background-image:
        linear-gradient(180deg, rgba(7, 11, 20, 0.34) 0%, rgba(7, 11, 20, 0.22) 45%, rgba(11, 45, 78, 0.74) 100%),
        url('polina-bg.webp') !important;
    background-size: cover !important;
    background-position: center !important;
    opacity: 1 !important;
    transform: scale(1.02) !important;
}

html.is-chrome-browser .first .slide-bg::after,
html.chrome-static-hero .first .slide-bg::after,
html.no-webgl-scene .first .slide-bg::after {
    background:
        radial-gradient(circle at 72% 26%, rgba(113, 209, 214, 0.18), transparent 24%),
        radial-gradient(circle at 78% 65%, rgba(40, 127, 179, 0.24), transparent 34%),
        linear-gradient(90deg, rgba(7, 11, 20, 0.12) 0%, rgba(7, 11, 20, 0.02) 58%, rgba(7, 11, 20, 0.22) 100%) !important;
}

html.is-chrome-browser #hero .hero-hud,
html.chrome-static-hero #hero .hero-hud,
html.no-webgl-scene #hero .hero-hud {
    opacity: 0.92 !important;
}

html.is-chrome-browser #hero .hero-title,
html.is-chrome-browser #hero .hero-subtitle,
html.is-chrome-browser #hero .hero-keypoints,
html.is-chrome-browser #hero .hero-actions,
html.chrome-static-hero #hero .hero-title,
html.chrome-static-hero #hero .hero-subtitle,
html.chrome-static-hero #hero .hero-keypoints,
html.chrome-static-hero #hero .hero-actions,
html.no-webgl-scene #hero .hero-title,
html.no-webgl-scene #hero .hero-subtitle,
html.no-webgl-scene #hero .hero-keypoints,
html.no-webgl-scene #hero .hero-actions {
    opacity: 1 !important;
    visibility: visible !important;
}

@media (max-width: 1180px), (pointer: coarse) {
    html.is-chrome-browser .first .slide-bg::before,
    html.chrome-static-hero .first .slide-bg::before,
    html.no-webgl-scene .first .slide-bg::before {
        background-position: center top !important;
    }
}
