/* Local Font Declarations */
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 300; font-display: swap; src: url('../assets/fonts/outfit-latin-300.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/outfit-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/outfit-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/outfit-latin-700.woff2') format('woff2'); }

@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/space-grotesk-latin-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/space-grotesk-latin-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('../assets/fonts/space-grotesk-latin-700.woff2') format('woff2'); }

/* Variables & Reset */
:root {
    --bg-dark: #000b18;
    --primary-cyan: #00f0ff;
    --primary-blue: #0055ff;
    --glass-bg: rgba(0, 20, 40, 0.4);
    --glass-border: rgba(0, 240, 255, 0.2);
    --text-light: #e0f7fa;
    --font-main: 'Outfit', sans-serif;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
}

/* Global Styles */
a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: var(--nav-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 10px rgba(0, 240, 255, 0.05);
    transition: all 0.3s ease;
    pointer-events: auto;
}

.navbar:hover {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 15px rgba(0, 240, 255, 0.15);
}

.navbar.navbar-hidden {
    transform: translate(-50%, -150%);
    opacity: 0;
    visibility: hidden;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 6px rgba(0, 240, 255, 0.4);
}

.brand-glow {
    width: 25px;
    height: 25px;
    background: var(--primary-cyan);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--primary-cyan), 0 0 24px rgba(0, 240, 255, 0.4);
}

.nav-links {
    display: flex;
    gap: 25px;
}

.nav-links a {
    font-weight: 400;
    font-size: 1rem;
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.3s ease;
    color: #a0c4ff;
}

.nav-links a:hover, .nav-links a.active {
    color: #fff;
    background: rgba(0, 240, 255, 0.06);
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.15);
    text-shadow: 0 0 4px rgba(0, 240, 255, 0.5);
}

.nav-btn, .btn {
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn, .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-cyan), var(--primary-blue));
    background-size: 200% 200%;
    color: #000;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    border: none;
    animation: shimmer-btn 6s ease infinite;
    position: relative;
    z-index: 1;
}

@keyframes shimmer-btn {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.nav-btn:hover, .btn-primary:hover {
    box-shadow: 0 0 25px var(--primary-cyan), 0 0 10px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px) scale(1.03);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 20px var(--primary-cyan);
    transform: translateY(-2px) scale(1.03);
}

/* Home Hero */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.65) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 30%, #002e5c 0%, #000b18 100%);
    z-index: -2;
}

.light-rays {
    position: absolute;
    top: -50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translateX(-50%);
    background: conic-gradient(from 180deg at 50% -20%, rgba(0, 240, 255, 0.08) 0deg, transparent 60deg, rgba(0, 240, 255, 0.08) 120deg, transparent 180deg, rgba(0, 240, 255, 0.08) 240deg, transparent 300deg, rgba(0, 240, 255, 0.08) 360deg);
    animation: rotate-rays 35s linear infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes rotate-rays {
    0% { transform: translateX(-50%) rotate(0deg); }
    100% { transform: translateX(-50%) rotate(360deg); }
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    z-index: 2;
    animation: fade-in-up 1.5s ease-out forwards;
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-content h1 {
    font-size: clamp(2.2rem, 5vw + 1rem, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.3));
}

.hero-content p {
    font-size: clamp(1rem, 1.3vw + 0.4rem, 1.4rem);
    color: #c2e0ff;
    margin-bottom: 40px;
    line-height: 1.6;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Bubbles & Particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.global-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    bottom: -50px;
    background: rgba(224, 247, 250, 0.15);
    border-radius: 50%;
    animation: float-up infinite linear;
    pointer-events: none;
    will-change: transform, opacity;
}

.particle-bio {
    position: absolute;
    border-radius: 50%;
    animation: bio-drift infinite ease-in-out alternate;
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes float-up {
    0% { transform: translateY(0) scale(0.8); opacity: 0; }
    15% { opacity: 0.7; }
    85% { opacity: 0.7; }
    100% { transform: translateY(-110vh) scale(1.3); opacity: 0; }
}

@keyframes bio-drift {
    0% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    50% { transform: translate(30px, -40px) scale(1.1); opacity: 0.8; }
    100% { transform: translate(-15px, -80px) scale(0.9); opacity: 0.4; }
}

/* Navigation Icons (hidden on desktop) */
.nav-icon {
    display: none;
}

/* Hide mobile header & bottom nav on desktop */
.mobile-header {
    display: none !important;
}
.mobile-bottom-nav {
    display: none !important;
}

/* Desktop Floating Language Switcher */
.desktop-lang-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    margin: 0;
}
.lang-btn {
    background: rgba(0, 20, 40, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--primary-cyan);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.25);
}
.lang-btn:hover {
    background: var(--primary-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--primary-cyan);
    transform: translateY(-2px);
}

/* Responsive Breakpoints & Overrides */

/* Tablet & Smaller Desktop Spacing Fix (768px to 1200px) */
@media (min-width: 768px) and (max-width: 1200px) {
    .navbar {
        width: 94% !important;
        padding: 0 20px !important;
        height: 60px !important;
        top: 15px !important;
    }
    .nav-brand {
        font-size: 1.3rem !important;
        gap: 10px !important;
    }
    .brand-glow {
        width: 20px !important;
        height: 20px !important;
    }
    .nav-links {
        gap: 12px !important;
    }
    .nav-links a {
        font-size: 0.9rem !important;
        padding: 6px 12px !important;
    }
    .desktop-lang-container {
        bottom: 20px !important;
        right: 20px !important;
    }
    .lang-btn {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 992px) {
    .navbar {
        width: 95% !important;
        height: 60px !important;
        top: 15px !important;
    }
    .nav-brand {
        font-size: 1.25rem !important;
        gap: 8px !important;
    }
    .brand-glow {
        width: 18px !important;
        height: 18px !important;
    }
    .nav-links {
        gap: 10px !important;
    }
    .nav-links a {
        font-size: 0.85rem !important;
        padding: 5px 8px !important;
    }
}

/* Mobile & Small Screen Transition (Below 768px) */
@media (max-width: 767px) {
    /* Dual Navbar System: Hide Desktop Elements */
    .navbar, .desktop-navbar, .desktop-lang-container {
        display: none !important;
    }

    /* Show Mobile Header & Mobile Bottom Nav */
    .mobile-header {
        display: flex !important;
    }
    
    .mobile-bottom-nav {
        display: flex !important;
    }

    /* Mobile Header Styling */
    .mobile-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 60px !important;
        background: rgba(0, 11, 24, 0.85) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-bottom: 1px solid rgba(0, 240, 255, 0.15) !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 15px !important;
        z-index: 9999 !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    }

    .mobile-brand {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .mobile-brand span {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: #fff !important;
        text-shadow: 0 0 10px var(--primary-cyan) !important;
    }

    .mobile-lang-container {
        display: block !important;
    }

    .lang-btn-mobile {
        background: rgba(0, 20, 40, 0.75) !important;
        border: 1px solid var(--primary-cyan) !important;
        color: #fff !important;
        padding: 6px 12px !important;
        border-radius: 15px !important;
        font-size: 0.8rem !important;
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.2) !important;
    }

    /* Mobile Bottom Navbar Styling */
    .mobile-bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 70px !important;
        background: rgba(0, 11, 24, 0.85) !important;
        backdrop-filter: blur(25px) !important;
        -webkit-backdrop-filter: blur(25px) !important;
        border-top: 1px solid rgba(0, 240, 255, 0.3) !important;
        border-top-left-radius: 20px !important;
        border-top-right-radius: 20px !important;
        box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 240, 255, 0.2) !important;
        z-index: 9999 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important; /* Allow swipe scroll */
        padding: 0 !important;
        margin: 0 !important;
    }

    .mobile-nav-links {
        display: flex !important;
        flex-direction: row !important;
        width: 100% !important;
        height: 100% !important;
        align-items: center !important;
        padding: 0 15px !important;
        gap: 12px !important;
        overflow-x: auto !important; /* Horizontal scroll enabled */
        overflow-y: hidden !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch !important; /* Inertia scrolling */
        scrollbar-width: none !important; /* Hide scrollbar Firefox */
        scroll-snap-type: x mandatory !important; /* Snap scroll */
    }

    .mobile-nav-links::-webkit-scrollbar {
        display: none !important; /* Hide scrollbar Chrome/Safari */
    }

    .mobile-nav-scroll-hint {
        position: absolute;
        right: 0;
        top: 0;
        height: 100%;
        width: 45px;
        background: linear-gradient(to right, transparent, rgba(0, 11, 24, 0.95) 40%);
        display: flex;
        align-items: center;
        justify-content: flex-end;
        padding-right: 10px;
        color: var(--primary-cyan);
        pointer-events: none;
        z-index: 10;
        opacity: 0.8;
        transition: opacity 0.3s ease;
    }
    .mobile-nav-scroll-hint svg {
        animation: pulse-horizontal 1.5s infinite;
    }
    .mobile-nav-scroll-hint.hidden {
        opacity: 0;
    }
    @keyframes pulse-horizontal {
        0% { transform: translateX(0); opacity: 0.5; }
        50% { transform: translateX(4px); opacity: 1; }
        100% { transform: translateX(0); opacity: 0.5; }
    }


    .mobile-nav-links li {
        flex: 0 0 auto !important; /* Prevent squishing */
        width: 90px !important; /* Clean tap area width */
        text-align: center;
        list-style: none;
        scroll-snap-align: center !important; /* Snap alignment */
    }

    .mobile-nav-links a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 0.7rem !important;
        font-weight: 600 !important;
        padding: 6px 0 !important;
        color: #8faedb !important;
        background: transparent !important;
        box-shadow: none !important;
        text-shadow: none !important;
        gap: 5px !important;
        border-radius: 0 !important;
        width: 100% !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .mobile-nav-links a.active {
        color: var(--primary-cyan) !important;
        text-shadow: 0 0 10px rgba(0, 240, 255, 0.6) !important;
    }
    
    .mobile-nav-links a .nav-icon {
        display: block !important;
        width: 24px !important;
        height: 24px !important;
        color: inherit;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    .mobile-nav-links a.active .nav-icon {
        filter: drop-shadow(0 0 8px var(--primary-cyan)) !important;
        transform: translateY(-4px) scale(1.1) !important;
        color: var(--primary-cyan) !important;
    }

    /* Center navigation elements if screen is wide enough to fit them */
    @media (min-width: 580px) {
        .mobile-nav-links {
            justify-content: center !important;
            gap: 15px !important;
        }
    }

    /* Body padding & hero height adjustments */
    body {
        padding-bottom: 80px !important;
    }
    
    .hero {
        height: calc(100vh - 60px) !important;
    }
    
    .hero-content h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 30px !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 0 20px !important;
    }

    /* Mobile Responsive Popups */
    .glass-card {
        padding: 20px 15px !important;
        border-radius: 18px !important;
        width: 92% !important;
        max-height: 85vh !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .popup-icon {
        font-size: 3rem !important;
        margin-bottom: 10px !important;
    }
    
    .glass-card h3 {
        font-size: 1.5rem !important;
    }
    
    .glass-card h4 {
        font-size: 1rem !important;
        margin-bottom: 10px !important;
    }
    
    .popup-stats {
        padding: 10px !important;
        font-size: 0.85rem !important;
    }
    
    .popup-stats .p-stat {
        margin-bottom: 4px !important;
    }
    
    .close-btn {
        font-size: 1.8rem !important;
        top: 8px !important;
        right: 12px !important;
    }
}

/* Extra-small mobile screen optimizations */
@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.8rem !important;
    }
    .hero-content p {
        font-size: 0.9rem !important;
    }
}

/* Global Popup/Modal Styles */
.popup-overlay, .creature-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 11, 24, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.active, .creature-popup-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.glass-card {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.9) 0%, rgba(0, 5, 15, 0.95) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-cyan);
    padding: 35px;
    border-radius: 24px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    position: relative;
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 50px rgba(0, 240, 255, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .glass-card {
        max-height: calc(100vh - 120px);
        margin-bottom: 80px; /* Force popup to stay above bottom navbar */
    }
}

.popup-overlay.active .glass-card, .creature-popup-overlay.active .glass-card {
    transform: scale(1);
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.2rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}

.close-btn:hover {
    color: var(--primary-cyan);
}

.popup-icon {
    font-size: 5rem;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 15px var(--primary-cyan));
}

.popup-stats {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 15px;
    text-align: left;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.popup-stats div, .popup-stats p {
    margin-bottom: 5px;
}

.popup-stats strong {
    color: var(--primary-cyan);
}

.glass-card::-webkit-scrollbar {
    width: 6px;
}
.glass-card::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}
.glass-card::-webkit-scrollbar-thumb {
    background: var(--primary-cyan);
    border-radius: 10px;
    box-shadow: 0 0 10px var(--primary-cyan);
}

/* ==================================================================
   HOME PAGE REENHANCEMENTS & NEW SECTIONS
   ================================================================== */

.home-section {
    position: relative;
    padding: clamp(3.2rem, 6.5vw, 6.4rem) 0; /* Spacing reduced by 20% */
    width: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Deep-sea Gradient Zones */
.intro-section {
    background: linear-gradient(180deg, #000b18 0%, #001226 100%);
}

.regions-showcase-section {
    background: linear-gradient(180deg, #001226 0%, #000a1c 100%);
}

.creature-showcase-section {
    background: linear-gradient(180deg, #000a1c 0%, #000512 100%);
}

.dive-works-section {
    background: linear-gradient(180deg, #000512 0%, #00020a 100%);
}

.conservation-awareness-section {
    background: linear-gradient(180deg, #00020a 0%, #000b18 100%);
}

/* Volumetric Atmospheric Layers */
.underwater-fog {
    position: absolute;
    width: 150%;
    height: 400px;
    left: -25%;
    background: radial-gradient(ellipse at center, rgba(0, 240, 255, 0.04) 0%, transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: screen;
}

.underwater-fog-top {
    top: -200px;
    animation: fog-drift-top 25s infinite ease-in-out alternate;
}

.underwater-fog-bottom {
    bottom: -200px;
    background: radial-gradient(ellipse at center, rgba(0, 85, 255, 0.03) 0%, transparent 70%);
    animation: fog-drift-bottom 30s infinite ease-in-out alternate;
}

@keyframes fog-drift-top {
    0% { transform: translate(-5%, -2%) scale(1); opacity: 0.7; }
    50% { transform: translate(5%, 3%) scale(1.05); opacity: 1; }
    100% { transform: translate(-2%, 5%) scale(0.95); opacity: 0.7; }
}

@keyframes fog-drift-bottom {
    0% { transform: translate(5%, 2%) scale(0.95); opacity: 0.6; }
    50% { transform: translate(-5%, -3%) scale(1.1); opacity: 0.9; }
    100% { transform: translate(2%, -5%) scale(1); opacity: 0.6; }
}

.water-caustics {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 240, 255, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(0, 85, 255, 0.04) 0%, transparent 60%);
    filter: blur(8px);
    mix-blend-mode: screen;
    animation: caustic-breathing 15s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 1;
}

@keyframes caustic-breathing {
    0% { transform: scale(1) translate(0, 0) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.08) translate(1%, 2%) rotate(2deg); opacity: 1; }
    100% { transform: scale(0.95) translate(-1%, -1%) rotate(-1deg); opacity: 0.8; }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--primary-cyan);
    margin-bottom: 12px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

.section-tag.warning-tag {
    color: #ff3366;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.4);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.home-section p {
    font-size: clamp(1rem, 1.1vw + 0.2rem, 1.2rem);
    line-height: 1.6;
    color: #b0d4ff;
    margin-bottom: 30px;
}

/* Split Layout */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(25px, 4vw, 50px);
    align-items: center;
}

/* Intro Section Visuals */
.intro-visual {
    position: relative;
    width: 100%;
}

.map-container {
    position: relative;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.15);
    background: var(--glass-bg);
}

.map-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
    opacity: 0.8;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3));
    transition: transform 0.5s ease;
}

.map-container:hover img {
    transform: scale(1.03);
}

.map-overlay-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 80%);
    pointer-events: none;
    z-index: 2;
}

/* Stats Cards */
.ocean-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 25px rgba(0, 240, 255, 0.2);
    transform: translateY(-5px);
}

.stat-card h3 {
    font-size: 2rem;
    color: var(--primary-cyan);
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-card p {
    font-size: 0.9rem !important;
    margin: 0 !important;
    color: #a0c4ff !important;
}

/* Featured Regions Grid */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto clamp(25px, 3.5vw, 40px) auto;
}

.regions-grid-horizontal {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(15px, 2.5vw, 30px);
}

.region-showcase-card {
    position: relative;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    background: rgba(0, 11, 24, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Glow Sweep line */
.region-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.15), transparent);
    transform: skewX(-25deg);
    z-index: 3;
    pointer-events: none;
    transition: none;
}

.region-showcase-card:hover::before {
    left: 150%;
    transition: left 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-bg-image {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1;
}

.region-showcase-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 11, 24, 0.95) 90%);
    z-index: 2;
    transition: opacity 0.5s ease;
}

.card-content {
    position: relative;
    z-index: 3;
    padding: 30px;
    width: 100%;
    transform: translateY(30px);
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.region-showcase-card h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 5px;
    font-weight: 600;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.region-depth-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-cyan);
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 3px 10px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card-content p {
    font-size: 0.95rem !important;
    line-height: 1.5;
    color: #a0c4ff !important;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-bottom: 20px !important;
}

.card-cta {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-cyan);
    transition: all 0.3s ease;
}

/* Card Hover Effects */
.region-showcase-card:hover {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 20px 40px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.15);
    transform: translateY(-8px);
}

.region-showcase-card:hover .card-bg-image {
    transform: scale(1.08);
}

.region-showcase-card:hover .card-content {
    transform: translateY(0);
}

.region-showcase-card:hover .card-content p {
    opacity: 1;
}

/* Premium Creature Showcase Grid */
.creatures-carousel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 40px);
    margin-top: 20px;
}

.creature-card-premium {
    position: relative;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.5) 0%, rgba(0, 5, 15, 0.8) 100%);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 380px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Creature sweep line */
.creature-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.12), transparent);
    transform: skewX(-25deg);
    z-index: 3;
    pointer-events: none;
    transition: none;
}

.creature-card-premium:hover::before {
    left: 150%;
    transition: left 0.85s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.glow-underlay {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at center, rgba(0, 240, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.5s ease;
    opacity: 0.5;
}

.creature-visual-container {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
    margin-bottom: 20px;
}

.creature-visual-container img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0,0,0,0.5)) drop-shadow(0 0 10px rgba(0, 240, 255, 0.2));
    transition: all 0.4s ease;
}

.floating-creature {
    animation: float 6s infinite ease-in-out;
}

.creature-details {
    position: relative;
    z-index: 2;
    margin-top: auto;
}

.creature-details h4 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 6px;
    font-weight: 600;
}

.creature-class {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary-cyan);
    margin-bottom: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.creature-details p {
    font-size: 0.95rem !important;
    line-height: 1.5;
    color: #a0c4ff !important;
    margin: 0 !important;
}

/* Creature Premium Hover Actions */
.creature-card-premium:hover {
    border-color: rgba(0, 240, 255, 0.6);
    box-shadow: 0 20px 45px rgba(0, 240, 255, 0.25), inset 0 0 15px rgba(0, 240, 255, 0.1);
    transform: translateY(-8px);
}

.creature-card-premium:hover .glow-underlay {
    opacity: 1;
}

.creature-card-premium:hover .creature-visual-container img {
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6)) drop-shadow(0 0 20px rgba(0, 240, 255, 0.5));
    transform: scale(1.05);
}

/* Interactive Exploration Timeline */
.timeline-vertical {
    position: relative;
    max-width: 800px;
    margin: 40px auto 0 auto;
    padding-left: 50px;
}

.timeline-vertical::before {
    content: '';
    position: absolute;
    top: 0; left: 20px;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-cyan) 0%, rgba(0, 85, 255, 0.1) 100%);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.timeline-step {
    position: relative;
    margin-bottom: 45px;
    padding-bottom: 10px;
    transition: transform 0.3s ease;
}

.step-number {
    position: absolute;
    left: -50px;
    top: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--primary-cyan);
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    z-index: 2;
}

.step-info h4 {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-info p {
    font-size: 1rem !important;
    line-height: 1.5;
    color: #a0c4ff !important;
    margin: 0 !important;
}

.timeline-step:hover {
    transform: translateX(10px);
}

/* Conservation Section Awareness Box */
.conservation-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.conservation-glow-box {
    position: relative;
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: radial-gradient(circle at center, rgba(255, 51, 102, 0.15) 0%, rgba(0, 11, 24, 0.8) 100%);
    border: 1px solid rgba(255, 51, 102, 0.3);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 30px;
    box-shadow: 0 0 40px rgba(255, 51, 102, 0.15);
    overflow: hidden;
}

.conservation-glow-box h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 0 0 15px rgba(255, 51, 102, 0.6);
}

.conservation-glow-box p {
    font-size: 1rem !important;
    color: #ff99aa !important;
    margin: 0 !important;
}

.pulse-ring {
    position: absolute;
    top: 50%; left: 50%; width: 100%; height: 100%;
    transform: translate(-50%, -50%);
    border: 2px solid rgba(255, 51, 102, 0.3);
    border-radius: 50%;
    animation: ring-pulse 4s infinite linear;
    pointer-events: none;
}

@keyframes ring-pulse {
    0% { width: 50px; height: 50px; opacity: 1; }
    100% { width: 450px; height: 450px; opacity: 0; }
}

.conservation-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.action-item strong {
    color: var(--primary-cyan);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.action-item p {
    font-size: 0.95rem !important;
    color: #a0c4ff !important;
    margin: 0 !important;
}

/* Final CTA Section styling */
.final-cta-section {
    background: radial-gradient(circle at center, #001f3f 0%, #000510 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    text-align: center;
    padding: 100px 0;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.cta-content h2 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #fff 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.4));
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.btn-large {
    padding: 18px 50px !important;
    font-size: 1.15rem !important;
    letter-spacing: 1.5px;
    font-weight: 700;
}

/* Immersive Footer Section */
.footer {
    background: #00040a;
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-brand h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px var(--primary-cyan);
}

.footer-brand p {
    color: #88aacc;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-links h4 {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 15px;
    font-weight: 600;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: #88aacc;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-cyan);
}

.footer-credits {
    text-align: center;
    color: #557799;
    font-size: 0.85rem;
}

/* ==================================================================
   RESPONSIVE LAYOUT FOR HOMEPAGE SECTIONS
   ================================================================== */

@media (max-width: 992px) {
    .regions-grid-horizontal {
        grid-template-columns: repeat(2, 1fr);
    }
    .creatures-carousel-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .regions-grid-horizontal {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .creatures-carousel-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .ocean-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 12px;
        padding: 0 10px;
    }
}

/* Cinematic Scroll Reveal System */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered transition delays for grid elements */
.regions-grid-horizontal .region-showcase-card:nth-child(1) { transition-delay: 0.05s; }
.regions-grid-horizontal .region-showcase-card:nth-child(2) { transition-delay: 0.15s; }
.regions-grid-horizontal .region-showcase-card:nth-child(3) { transition-delay: 0.25s; }
.regions-grid-horizontal .region-showcase-card:nth-child(4) { transition-delay: 0.05s; }
.regions-grid-horizontal .region-showcase-card:nth-child(5) { transition-delay: 0.15s; }
.regions-grid-horizontal .region-showcase-card:nth-child(6) { transition-delay: 0.25s; }

.creatures-carousel-grid .creature-card-premium:nth-child(1) { transition-delay: 0.05s; }
.creatures-carousel-grid .creature-card-premium:nth-child(2) { transition-delay: 0.15s; }
.creatures-carousel-grid .creature-card-premium:nth-child(3) { transition-delay: 0.25s; }

.ocean-stats .stat-card:nth-child(1) { transition-delay: 0.05s; }
.ocean-stats .stat-card:nth-child(2) { transition-delay: 0.15s; }
.ocean-stats .stat-card:nth-child(3) { transition-delay: 0.25s; }

.timeline-vertical .timeline-step:nth-child(1) { transition-delay: 0.05s; }
.timeline-vertical .timeline-step:nth-child(2) { transition-delay: 0.15s; }
.timeline-vertical .timeline-step:nth-child(3) { transition-delay: 0.25s; }
.timeline-vertical .timeline-step:nth-child(4) { transition-delay: 0.35s; }

/* Glowing Heading Reveal Keyframes */
@keyframes text-glow-reveal {
    0% { text-shadow: 0 0 0 transparent; color: #8faedb; }
    50% { text-shadow: 0 0 20px var(--primary-cyan); color: #fff; }
    100% { text-shadow: 0 0 10px rgba(0, 240, 255, 0.35); color: #fff; }
}

h2.reveal-on-scroll.revealed {
    animation: text-glow-reveal 1.8s ease forwards;
}

/* Global Interactive Card Glow */
.interactive-card {
    position: relative;
    overflow: hidden;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.1), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
    z-index: 10;
}

.interactive-card:hover::before {
    opacity: 1;
}

.timeline-step.interactive-card {
    padding: 20px;
    border-radius: 15px;
    border: 1px solid rgba(0, 240, 255, 0.1);
    background: rgba(0, 11, 24, 0.4);
    margin-bottom: 20px;
}
