/* ==========================================================================
   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: 768px) {
    .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: 768px) {
    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;
}
