:root {
    --bg-color: #050505; /* Deep black/dark grey */
    --card-bg: #101010; /* Neutral dark for sci-fi feel */
    --text-color: #e0e0e0;
    --accent-color: #FF5722; /* Retro-Future Orange */
    --accent-hover: #FF8A50;
    --secondary-text: #a0a0a0;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Rajdhani', sans-serif;
    --nav-height: 70px;
    
    /* Rank Colors */
    --free-color: #9e9e9e; /* Grey */
    --mercenary-color: #FF5722; /* Orange for Mercenary */
    --commander-color: #00E5FF; /* Cyan for Commander */
    --commander-hover: #80F3FF;
}

html {
    scroll-behavior: smooth;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: var(--nav-height); /* Ensure content doesn't hide behind fixed nav */
}

/* Navbar */
.navbar {
    position: fixed;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
    height: var(--nav-height);
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    height: 60px;
    top: 1rem;
    border-color: rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: 100%;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: padding 0.35s ease;
    position: relative;
}

.navbar.scrolled .nav-container {
    padding: 0 1.5rem;
}

.nav-logo {
    position: absolute;
    left: -85px;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.nav-logo img {
    height: 65px;
    width: auto;
    display: block;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.5));
    transition: height 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

.nav-logo:hover img {
    transform: scale(1.05);
    transition: all 0.3s ease;
}

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

.nav-links a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    transition: color 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

@media (min-width: 769px) {
    .navbar.scrolled .nav-logo {
        left: -73px; /* Proportional shift to keep logo aligned as navbar shrinks */
    }

    .navbar.scrolled .nav-logo img {
        height: 56px; /* Scale skull with desktop navbar height */
    }
}

/* Nav CTA Button */
.nav-btn {
    padding: 0.65rem 2rem;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: 1px solid rgba(255, 87, 34, 0.4);
    color: #050505 !important;
    border-radius: 4px;
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: 1px;
    transition: box-shadow 0.3s ease, transform 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.15);
    min-width: 160px;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.nav-btn:hover {
    border-color: rgba(255, 87, 34, 0.6);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(255, 87, 34, 0.25);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
    transition: opacity 0.3s ease;
    position: relative;
    z-index: 1001;
}

.menu-toggle:hover {
    opacity: 0.7;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 3.2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
    margin-bottom: 2.5rem;
    letter-spacing: 3px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
}

h2 {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    letter-spacing: 2px;
    font-weight: 700;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    margin: 1.5rem auto 0;
    opacity: 0.8;
}

/* Left aligned modifier */
.section-title.text-left {
    text-align: left;
}

.section-title.text-left::after {
    margin-left: 0;
    margin-right: auto;
}

p {
    color: var(--secondary-text);
    margin-bottom: 1.2rem;
    font-weight: 300;
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 7rem 2rem;
    position: relative;
    z-index: 5; /* Ensure content sits above background elements */
}

/* Jellyfish Backgrounds */
.jellyfish-wrapper {
    display: block;
    position: absolute;
    z-index: -1; /* Always behind all content */
    pointer-events: none;
    opacity: 0.15; /* Unified visibility */
}

.jellyfish-float {
    width: 100%;
    height: auto;
    display: block;
    animation: floatJellyfish 12s ease-in-out infinite;
}

/* Position 1: Islands (Top Right) */
.jellyfish-wrapper.p1 {
    top: 5%;
    right: -15%;
    width: 250px;
    transform: rotate(-15deg);
    z-index: -2; /* Extra behind for safety */
}

/* Position 2: Ranks (Bottom Left) */
.jellyfish-wrapper.p2 {
    bottom: 5%;
    left: -5%;
    width: 400px;
    transform: rotate(25deg);
    opacity: 0.06;
}

.jellyfish-wrapper.p2 .jellyfish-float {
    animation-delay: -4s;
    animation-duration: 15s;
}

@keyframes floatJellyfish {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-40px); }
}

@media (max-width: 768px) {
    .jellyfish-wrapper {
        opacity: 0.15; /* Match desktop brightness */
    }
    .jellyfish-wrapper.p1 { width: 200px; top: 0; right: -10%; }
    .jellyfish-wrapper.p2 { width: 250px; bottom: 0; left: -10%; }
}

section {
    position: relative;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

/* Image Placeholders */
.img-placeholder {
    background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 100%);
    border: 1px solid rgba(255, 87, 34, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0,0,0,0.5);
}

.img-placeholder::before {
    content: 'Scanning...';
    z-index: 2;
    position: relative;
}

.img-placeholder::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 87, 34, 0.1), transparent);
    transition: left 0.6s ease;
}

.img-placeholder:hover {
    border-color: rgba(255, 87, 34, 0.3);
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.15), inset 0 0 30px rgba(0,0,0,0.5);
    transform: translateY(-2px);
}

.img-placeholder:hover::after {
    left: 100%;
}

.placeholder-landscape {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}


/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow: hidden;
    margin-top: calc(var(--nav-height) * -1); /* Pull hero up behind nav if needed, or just cancel out body padding visually */
    padding-top: 6rem; /* Space for top content */
    padding-bottom: 4rem;
}

.hero-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('main_banner.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Easy parallax effect */
    z-index: -2;
    filter: grayscale(100%) brightness(0.25) sepia(0.2);
}

.hero-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 4px
    );
    pointer-events: none;
    z-index: 1; /* On top of the banner image itself */
}

.fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
    z-index: -1;
    pointer-events: none;
}

.hero-content-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3.5rem;
}

.hero-top {
    text-align: center;
    animation: fadeInUp 1.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: clamp(340px, 57vw, 770px);
    height: auto;
    margin: 3rem auto 2rem;
    display: block;
    filter: drop-shadow(0 12px 30px rgba(0, 0, 0, 0.55));
}

.hero-btn-main {
    display: inline-block;
    padding: 1rem 3rem;
    background: linear-gradient(to bottom, var(--accent-color), #E64A19);
    color: #050505;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 1px;
    border: 2px solid var(--accent-hover);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(255, 87, 34, 0.3);
    text-transform: uppercase;
    transition: all 0.2s ease;
    text-shadow: 0 1px 1px rgba(255,255,255,0.2);
}

.hero-btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 87, 34, 0.5);
    background: linear-gradient(to bottom, var(--accent-hover), var(--accent-color));
    border-color: #fff;
}

/* Server IP Field */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 1.5s ease-out;
}

.server-ip-field {
    background: rgba(16, 16, 16, 0.8);
    border: 2px solid var(--accent-color);
    padding: 0.8rem 2rem;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    min-width: 280px;
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.1);
}

.server-ip-field:hover {
    transform: translateY(-2px);
    border-color: var(--accent-hover);
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.2);
    background: rgba(22, 22, 22, 0.9);
}

.server-ip-field #server-ip {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
}

.server-ip-field .copy-hint {
    font-size: 0.7rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
    font-weight: 600;
    opacity: 0.8;
}

.server-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 16px;
    border-radius: 20px;
    border: 2px solid rgba(255, 193, 7, 0.5);
}

.status-dot {
    width: 10px;
    height: 10px;
    background-color: #ffc107;
    border-radius: 50%;
    box-shadow: 0 0 12px #ffc107;
    animation: pulseStatus 2s infinite;
}

.status-text {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffc107;
    letter-spacing: 1.5px;
}

@keyframes pulseStatus {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
    100% { opacity: 1; transform: scale(1); }
}

.ip-copied-tooltip {
    position: absolute;
    top: -40px;
    background: var(--accent-color);
    color: #050505;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    transform: translateY(10px);
}

.ip-copied-tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

/* CTA Arrows */
.ip-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cta-arrow {
    font-size: 2rem;
    color: var(--accent-color);
    font-family: var(--font-heading);
    opacity: 0.95;
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.4);
}

.cta-arrow.left {
    animation: arrowNudgeLeft 1.6s ease-in-out infinite;
}

.cta-arrow.right {
    animation: arrowNudgeRight 1.6s ease-in-out infinite;
}

@keyframes arrowNudgeLeft {
    0%, 100% { transform: translateX(0) scale(1); opacity: 0.95; }
    50% { transform: translateX(12px) scale(1.08); opacity: 0.75; }
}

@keyframes arrowNudgeRight {
    0%, 100% { transform: translateX(0) scale(1); opacity: 0.95; }
    50% { transform: translateX(-12px) scale(1.08); opacity: 0.75; }
}

@media (max-width: 768px) {
    .cta-arrow {
        display: none; /* Hide arrows on small screens to save space */
    }
}

/* Hero Split Section */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    animation: fadeInUp 1.5s ease-out 0.3s backwards;
}

.hero-split-title {
    color: var(--accent-color);
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-bottom: none;
}

.hero-text-content p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.media-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-trailer-mobile {
    display: none;
    padding: 2rem;
    background: var(--bg-color);
}

.media-placeholder:hover {
    border-color: var(--accent-color);
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.15);
    transform: translateY(-3px);
}

.play-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    opacity: 0.9;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.media-placeholder:hover .play-icon {
    transform: scale(1.15);
    color: var(--accent-hover);
    opacity: 1;
}

.media-placeholder span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 
        0 0 10px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 0, 0, 0.8),
        0 2px 4px rgba(0, 0, 0, 0.95),
        0 4px 8px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 1;
}

/* Features/Classes Section */
.feature-card {
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    padding: 2.5rem;
    border-radius: 2px; /* Sharper corners for sci-fi look */
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: visible;
    backdrop-filter: blur(5px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--accent-color);
    opacity: 0.7;
    transition: width 0.3s ease, opacity 0.3s ease;
    box-shadow: 0 0 10px var(--accent-color);
}

.feature-card:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: rgba(255, 87, 34, 0.4);
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.7), 
        0 0 15px rgba(255, 87, 34, 0.1),
        inset 0 0 20px rgba(255, 87, 34, 0.05); /* Inner glow */
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.95) 0%, rgba(14, 14, 14, 0.98) 100%);
}

.feature-card:hover::before {
    width: 100%; /* Expands to full bar on hover */
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #fff;
    transition: color 0.3s ease;
    letter-spacing: 1px;
}

.feature-card:hover h3 {
    color: var(--accent-color);
}

/* Featured Class Badge (Sharpshooter) */
.featured-class .release-badge {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #050505;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 6px 20px rgba(255, 87, 34, 0.5),
        0 0 15px rgba(255, 87, 34, 0.4);
    font-weight: 800;
}

/* Gallery/World Section */
.world {
    padding: 2rem 0;
}

/* Split Gallery (PvP vs PvE) */
.split-gallery {
    position: relative;
    width: 100%;
    height: 500px;
    background-color: transparent;
    overflow: visible;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-top: 2rem;
}

.split-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 0.4s ease, filter 0.3s ease-in-out;
    background: #0a0a0a;
    filter: grayscale(0%) brightness(1);
}

.split-left {
    /* Slight overlap into the right side to avoid any visible gap */
    clip-path: polygon(0 0, 66% 0, 36% 100%, 0 100%);
    z-index: 2;
}

.split-right {
    /* Slight overlap into the left side to avoid any visible gap */
    clip-path: polygon(64% 0, 100% 0, 100% 100%, 34% 100%);
    z-index: 2;
}

.split-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, filter 0.3s ease-in-out;
    display: block;
    filter: grayscale(0%) brightness(1);
}

@media (min-width: 769px) {
    .split-item:hover .split-image {
        transform: scale(1.05);
    }

    /* Dim the other side when one is hovered */
    .split-gallery:hover .split-left:not(:hover) {
        filter: grayscale(100%) brightness(0.4);
    }

    .split-gallery:hover .split-right:not(:hover) {
        filter: grayscale(100%) brightness(0.4);
    }

    .split-gallery:hover .split-left:not(:hover) .split-image,
    .split-gallery:hover .split-right:not(:hover) .split-image {
        filter: grayscale(100%) brightness(0.4);
    }
}

.split-label {
    position: absolute;
    top: 50%;
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 3px;
    pointer-events: none;
    opacity: 0;
    transition: all 0.3s ease;
    text-shadow: 
        0 0 20px rgba(0, 0, 0, 1),
        0 0 30px rgba(0, 0, 0, 1),
        0 0 40px rgba(0, 0, 0, 0.95),
        0 0 50px rgba(0, 0, 0, 0.9),
        0 2px 8px rgba(0, 0, 0, 1),
        0 4px 12px rgba(0, 0, 0, 1),
        0 6px 18px rgba(0, 0, 0, 0.95),
        0 8px 25px rgba(0, 0, 0, 0.9);
    z-index: 3;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
}

.split-description {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.5px;
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 
        0 0 20px rgba(0, 0, 0, 1),
        0 0 30px rgba(0, 0, 0, 1),
        0 0 40px rgba(0, 0, 0, 0.95),
        0 0 50px rgba(0, 0, 0, 0.9),
        0 2px 8px rgba(0, 0, 0, 1),
        0 4px 12px rgba(0, 0, 0, 1),
        0 6px 18px rgba(0, 0, 0, 0.95),
        0 8px 25px rgba(0, 0, 0, 0.9);
    white-space: normal; /* Allow description to wrap if needed */
}

.split-label-left {
    left: 3rem;
    top: 15%;
    transform: translateY(0);
    text-align: left;
}

.split-label-right {
    right: 3rem;
    top: auto;
    bottom: 15%;
    transform: translateY(0);
    text-align: right;
}

/* Hover extension zones - extend hover area to screen edges */
.split-hover-extend {
    display: none;
}

@media (min-width: 769px) {
    .split-hover-extend {
        display: block;
        position: absolute;
        top: 0;
        height: 100%;
        z-index: 5;
        pointer-events: auto;
    }

    .split-hover-left {
        right: 100%;
        width: 50vw;
    }

    .split-hover-right {
        left: 100%;
        width: 50vw;
    }

    /* Left extension hover effects */
    .split-gallery:has(.split-hover-left:hover) .split-left {
        filter: grayscale(0%) brightness(1);
    }

    .split-gallery:has(.split-hover-left:hover) .split-left .split-image {
        filter: grayscale(0%) brightness(1);
        transform: scale(1.05);
    }

    .split-gallery:has(.split-hover-left:hover) .split-right {
        filter: grayscale(100%) brightness(0.4);
    }

    .split-gallery:has(.split-hover-left:hover) .split-right .split-image {
        filter: grayscale(100%) brightness(0.4);
    }

    .split-gallery:has(.split-hover-left:hover) .split-label-left {
        opacity: 1;
        color: var(--accent-color);
    }

    /* Right extension hover effects */
    .split-gallery:has(.split-hover-right:hover) .split-right {
        filter: grayscale(0%) brightness(1);
    }

    .split-gallery:has(.split-hover-right:hover) .split-right .split-image {
        filter: grayscale(0%) brightness(1);
        transform: scale(1.05);
    }

    .split-gallery:has(.split-hover-right:hover) .split-left {
        filter: grayscale(100%) brightness(0.4);
    }

    .split-gallery:has(.split-hover-right:hover) .split-left .split-image {
        filter: grayscale(100%) brightness(0.4);
    }

    .split-gallery:has(.split-hover-right:hover) .split-label-right {
        opacity: 1;
        color: var(--accent-color);
    }
}

@media (hover: hover) and (min-width: 769px) {
    .split-item.split-left:hover + .split-label-left,
    .split-item.split-left:focus-visible + .split-label-left {
        opacity: 1;
        color: var(--accent-color);
        transform: translateY(0);
    }

    .split-item.split-right:hover + .split-label-right,
    .split-item.split-right:focus-visible + .split-label-right {
        opacity: 1;
        color: var(--accent-color);
        transform: translateY(0);
    }
}

/* Mobile Responsive for Split Gallery */
@media (max-width: 768px) {
    .split-gallery {
        display: grid;
        grid-template-rows: auto 250px auto;
        grid-template-columns: 1fr;
        gap: 1.5rem;
        height: auto;
        background: transparent;
        box-shadow: none;
        overflow: visible;
    }
    
    .split-item {
        grid-row: 2;
        grid-column: 1;
        position: relative; /* Overlay in the same grid cell */
        width: 100%;
        height: 100%;
        border-radius: 8px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        transition: filter 0.3s ease, opacity 0.3s ease;
    }

    .split-item.split-left {
        /* Mobile slit: slight overlap (0.2%) to prevent anti-aliasing gap */
        clip-path: polygon(0 0, 66.2% 0, 34.2% 100%, 0 100%) !important;
        z-index: 2;
    }

    .split-item.split-right {
        /* Mobile slit: slight overlap (0.2%) to prevent anti-aliasing gap */
        clip-path: polygon(65.8% 0, 100% 0, 100% 100%, 33.8% 100%) !important;
        z-index: 2;
    }

    .split-label {
        position: static;
        opacity: 0.5;
        transform: none !important;
        text-align: center;
        margin: 0;
        color: rgba(255, 255, 255, 0.6) !important;
        font-size: 1.6rem;
        letter-spacing: 2px;
        transition: color 0.3s ease, opacity 0.3s ease;
    }


    .split-label-left {
        grid-row: 1;
        grid-column: 1;
        order: unset;
    }

    .split-label-right {
        grid-row: 3;
        grid-column: 1;
        order: unset;
    }

    /* Focus States controlled by JS */
    .split-gallery.mobile-focus-left .split-right,
    .split-gallery.mobile-focus-left .split-label-right {
        filter: grayscale(100%) brightness(0.3);
        opacity: 0.3;
    }

    .split-gallery.mobile-focus-left .split-label-left {
        color: var(--accent-color) !important;
        opacity: 1;
    }
    
    .split-gallery.mobile-focus-left .split-left {
        filter: grayscale(0%) brightness(1);
        z-index: 3; /* Bring focused item to the front */
    }

    .split-gallery.mobile-focus-right .split-left,
    .split-gallery.mobile-focus-right .split-label-left {
        filter: grayscale(100%) brightness(0.3);
        opacity: 0.3;
    }

    .split-gallery.mobile-focus-right .split-label-right {
        color: var(--accent-color) !important;
        opacity: 1;
    }

    .split-gallery.mobile-focus-right .split-right {
        filter: grayscale(0%) brightness(1);
        z-index: 3; /* Bring focused item to the front */
    }
}


/* Islands Section */
.island-card {
    background: rgba(12, 12, 12, 0.8);
    border-radius: 4px; /* Slightly rounded */
    overflow: visible; 
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 1rem;
}

.island-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6), 
        0 0 15px rgba(255, 87, 34, 0.1),
        inset 0 0 20px rgba(255, 87, 34, 0.05);
    z-index: 10;
}

/* Featured Island (Skull Rock) */
.featured-island {
    transform: scale(1.05); /* Reduced scale for subtler effect */
    border-color: rgba(255, 87, 34, 0.3);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.7),
        0 0 25px rgba(255, 87, 34, 0.15),
        inset 0 0 30px rgba(255, 87, 34, 0.05);
    z-index: 5;
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.9) 0%, rgba(14, 14, 14, 0.95) 100%);
}

.featured-island:hover {
    transform: scale(1.05) translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(255, 87, 34, 0.2),
        inset 0 0 40px rgba(255, 87, 34, 0.1);
}

.featured-island .release-badge {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: #050505;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 6px 20px rgba(255, 87, 34, 0.5),
        0 0 15px rgba(255, 87, 34, 0.4);
    font-weight: 800;
}

.featured-island .island-content h3 {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 87, 34, 0.3);
}

.featured-island:hover .island-content h3 {
    color: var(--accent-hover);
    text-shadow: 0 0 15px rgba(255, 87, 34, 0.5);
}

@media (max-width: 768px) {
    .featured-island {
        transform: scale(1);
    }
    
    .featured-island:hover {
        transform: translateY(-10px);
    }
}

.release-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%); /* Centers horizontally and pulls 50% of height upwards */
    background: rgba(0, 0, 0, 0.9);
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 16px;
    border-radius: 4px;
    border: 1px solid rgba(255, 87, 34, 0.4);
    z-index: 20;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
    text-transform: uppercase;
    white-space: nowrap;
}

.island-image {
    width: 100%;
    height: 220px; /* Slightly taller than standard placeholders */
    border-radius: 4px 4px 0 0 !important; /* Re-add top radius since overflow is visible */
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    transition: all 0.5s ease;
}

.island-card:hover .island-image {
    filter: brightness(1.1);
}

.island-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(20, 20, 20, 0.5), rgba(10, 10, 10, 0.9));
}

.island-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
    transition: color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.island-card:hover .island-content h3 {
    color: var(--accent-color);
}

.island-content p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--secondary-text);
    line-height: 1.6;
}

/* Ranks Section */
.rank-card {
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.95) 0%, rgba(14, 14, 14, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.rank-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 0 20px 20px;
    border-color: transparent transparent rgba(255, 255, 255, 0.1) transparent;
    transition: border-color 0.3s ease;
}

.rank-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 87, 34, 0.4);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.6),
        inset 0 0 20px rgba(255, 87, 34, 0.05);
}

.rank-card:hover::after {
    border-color: transparent transparent var(--accent-color) transparent;
}

.rank-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1.5rem;
}

.rank-card h3 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

/* Recruit */
.rank-recruit .rank-price,
.rank-recruit h3 {
    color: var(--free-color);
}

.rank-recruit .rank-btn {
    border-color: var(--free-color);
    color: var(--free-color);
}

.rank-recruit .rank-btn:hover {
    background: var(--free-color);
    color: #050505;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.rank-recruit:hover {
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.rank-recruit:hover::after {
    border-color: transparent transparent var(--free-color) transparent;
}

.rank-recruit .rank-features li::before {
    color: var(--free-color);
}


/* Mercenary */
.rank-mercenary .rank-price,
.rank-mercenary h3 {
    color: var(--mercenary-color);
}

.rank-mercenary .rank-btn {
    border-color: rgba(255, 87, 34, 0.3);
    color: rgba(255, 87, 34, 0.5);
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.rank-mercenary .rank-btn:hover {
    background: transparent;
    color: rgba(255, 87, 34, 0.5);
    box-shadow: none;
    transform: none;
}

.rank-mercenary:hover {
    border-color: rgba(255, 87, 34, 0.3);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.rank-mercenary .rank-features li::before {
    color: var(--mercenary-color);
}


/* Commander */
.rank-commander .rank-price,
.rank-commander h3 {
    color: var(--commander-color); /* Use main color for text visibility */
}

.rank-commander.featured-rank {
    border-color: rgba(0, 168, 232, 0.5);
    /* Overwrite default gold featured styles */
}

.rank-commander.featured-rank:hover {
    border-color: var(--commander-hover);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6), 0 0 20px rgba(0, 168, 232, 0.2);
}

.rank-commander:hover::after {
    border-color: transparent transparent var(--commander-color) transparent;
}

.rank-commander .rank-features li::before {
    color: var(--commander-color);
}

.rank-commander .btn-highlight {
    background: rgba(0, 168, 232, 0.3);
    color: rgba(0, 168, 232, 0.6);
    box-shadow: none;
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

.rank-commander .btn-highlight:hover {
    background: rgba(0, 168, 232, 0.3);
    color: rgba(0, 168, 232, 0.6);
    box-shadow: none;
    transform: none;
}

/* Overwrite default generic rank styles where necessary */
.rank-price {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
}

.rank-price .period {
    font-size: 0.8rem;
    color: var(--secondary-text);
    font-weight: 700;
    display: block;
    margin-top: -5px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
}

.rank-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
    text-align: left;
}

.rank-features li {
    padding: 0.8rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
    color: var(--secondary-text);
    display: flex;
    align-items: center;
}

.rank-features li:last-child {
    border-bottom: none;
}

.rank-features li::before {
    content: '›';
    font-weight: 800;
    font-size: 1.2rem;
    margin-right: 0.8rem;
    line-height: 1;
}

.rank-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid transparent; /* Handled by specific classes */
    color: #fff; /* Handled by specific classes */
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border-radius: 4px;
}

/* Featured Rank (Captain) - Partial Overwrite */
.featured-rank {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.95) 0%, rgba(15, 15, 15, 1) 100%);
    /* Border and shadow handled by .rank-commander specific styles now */
    z-index: 2;
}

.featured-rank h3 {
    /* Color handled by .rank-commander */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Rank Hover Spotlight Effect */
@media (hover: hover) {
    /* Default Hover for standard cards (Free/Pirate) */
    .rank-card:hover {
        transform: translateY(-8px);
        z-index: 10;
    }

    /* Commander Card Hover - Pop Effect */
    .rank-commander:hover {
        transform: scale(1.05) translateY(-10px);
    }

    /* When Commander is hovered, dim the OTHER cards in the grid */
    .ranks .grid-3:has(.rank-commander:hover) .rank-card:not(.rank-commander) {
        opacity: 0.5;
        filter: grayscale(0.6) blur(1px);
        transform: scale(0.95);
    }
}

/* Rank Upgrade Info */
.rank-upgrade-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    padding: 1rem 1.5rem;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .rank-upgrade-info {
        max-width: calc(500px - 2rem);
        margin-left: auto;
        margin-right: auto;
        width: calc(100% - 2rem);
    }
}

.rank-upgrade-info .info-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent-color);
}

.rank-upgrade-info span {
    font-size: 0.9rem;
    color: var(--secondary-text);
    line-height: 1.5;
}

/* News Section */
.news-item {
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.news-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--accent-color);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.3s ease;
    z-index: 2;
}

.news-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 87, 34, 0.4);
    box-shadow: 
        0 10px 30px rgba(0,0,0,0.6),
        inset 0 0 20px rgba(255, 87, 34, 0.05);
}

.news-item:hover::before {
    transform: scaleY(1);
}

.news-content {
    padding: 2rem;
}

.news-date {
    font-size: 0.8rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    border: 1px solid rgba(255, 87, 34, 0.2);
    padding: 4px 10px;
    border-radius: 3px;
}

.news-content h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
    letter-spacing: 0.5px;
}

.news-item:hover .news-content h4 {
    color: var(--accent-color);
}

/* FAQ Section */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: linear-gradient(180deg, rgba(16, 16, 16, 0.9) 0%, rgba(10, 10, 10, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 87, 34, 0.4);
    background: linear-gradient(180deg, rgba(22, 22, 22, 0.95) 0%, rgba(14, 14, 14, 0.98) 100%);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-heading);
    color: #fff;
    font-size: 1.1rem;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.25rem;
    margin: 0;
    text-transform: none;
    letter-spacing: 0.5px;
}

.faq-toggle {
    color: var(--accent-color);
    font-size: 2.2rem;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg); /* Turn + into x */
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
    color: var(--secondary-text);
    font-size: 1rem;
    line-height: 1.6;
}

.faq-answer p {
    margin-bottom: 0;
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 500px; /* Arbitrary large number */
}

/* Footer / Hero Style */
.footer-hero {
    position: relative;
    min-height: 1000px; /* Slightly bigger */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 4rem;
    padding-bottom: 4rem;
}

.footer-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('footer_banner5.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Easy parallax effect */
    z-index: -2;
    filter: grayscale(100%) brightness(0.25) sepia(0.2); /* Darker footer banner */
}

.fade-overlay-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background: linear-gradient(to bottom, var(--bg-color) 0%, transparent 100%);
    z-index: -1;
    pointer-events: none;
}

.footer-content {
    text-align: center;
    position: relative;
    z-index: 2;
    padding-top: 10rem;
    padding-bottom: 2rem;
}

.footer-content h2 {
    font-size: 3.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Discord Button - Footer */
.discord-btn {
    display: inline-block;
    margin-top: 3rem;
    padding: 1.3rem 3.5rem;
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%);
    color: white;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.4);
    border: 1px solid rgba(88, 101, 242, 0.5);
    position: relative;
    overflow: hidden;
}

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

.discord-btn:hover {
    background: linear-gradient(135deg, #6975ff 0%, #5562db 100%);
    border-color: rgba(88, 101, 242, 0.7);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.6);
}

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

/* Discord Button - Navbar */
.discord-btn-nav {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%) !important;
    color: white !important;
    border-color: rgba(88, 101, 242, 0.5) !important;
    box-shadow: 0 6px 15px rgba(88, 101, 242, 0.3) !important;
}

.discord-btn-nav:hover {
    background: linear-gradient(135deg, #6975ff 0%, #5562db 100%) !important;
    border-color: rgba(88, 101, 242, 0.7) !important;
    box-shadow: 0 8px 20px rgba(88, 101, 242, 0.4) !important;
}

.discord-btn-nav::after {
    display: none !important;
}

.copyright {
    margin-top: 6rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

/* Animations */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(40px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* Scroll animations */
.container {
    animation: fadeInUp 0.8s ease-out;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .section-title.text-left {
        text-align: center;
    }
    
    .section-title.text-left::after {
        margin-left: auto;
        margin-right: auto;
        background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    }
}

@media (max-width: 768px) {
    h1, .hero-title { 
        font-size: 2.2rem; 
        letter-spacing: 2px;
    }
    h2 { font-size: 2rem; }
    .hero { min-height: auto; height: auto; padding-bottom: 4rem; padding-top: 6rem; }
    
    /* Prevent mobile banner rasterization/pixelation (iOS/Android) */
    .hero-banner,
    .footer-banner {
        background-attachment: scroll;
        background-position: center top;
    }

    .container { padding: 4rem 1.5rem; }
    .footer-content {
        padding-top: 10rem;
        padding-bottom: 3rem;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
        padding: 0 1rem; /* Add gutters for cards on mobile */
        max-width: 500px; /* Prevent cards from getting too wide on tablets/large phones */
        margin: 0 auto;
    }

    .hero-logo {
        width: min(90vw, 560px);
    }

    .hero-content-wrapper {
        gap: 3rem;
    }

    .hero-media-content {
        display: none;
    }

    .hero-trailer-mobile {
        display: block;
        padding: 2rem 1.5rem 0;
    }
    
    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
        background-color: var(--accent-color);
    }
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
        background-color: var(--accent-color);
    }

    /* Mobile Nav */
    .navbar {
        top: 1rem;
        width: calc(100% - 2rem);
        border-radius: 10px;
    }

    .navbar.scrolled {
        top: 0.75rem;
    }

    .nav-container {
        padding: 0 1.25rem;
        justify-content: space-between;
    }

    .nav-logo {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin-left: 0;
    }

    .nav-logo img {
        height: 40px;
        transition: height 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    }

    .navbar.scrolled .nav-logo img {
        height: 34px; /* Match mobile navbar shrink proportion */
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: calc(var(--nav-height) + 1rem);
        left: 50%;
        transform: translate(-50%, -10px);
        width: calc(100% - 2rem);
        max-width: 380px;
        background: rgba(5, 5, 5, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 1.5rem;
        gap: 0.35rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.05);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
        z-index: 1200;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, 0);
    }

    .nav-links li {
        width: 100%;
        opacity: 0;
        transform: translateX(25px);
        transition: all 0.35s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active li:nth-child(2) { transition-delay: 0.15s; }
    .nav-links.active li:nth-child(3) { transition-delay: 0.2s; }
    .nav-links.active li:nth-child(4) { transition-delay: 0.25s; }
    .nav-links.active li:nth-child(5) { transition-delay: 0.3s; }
    .nav-links.active li:nth-child(6) { transition-delay: 0.35s; }
    .nav-links.active li:nth-child(7) { transition-delay: 0.4s; }

    .nav-links a {
        width: 100%;
        font-size: 1rem;
        padding: 0.85rem 0.5rem;
        text-align: center;
    }

    .nav-btn {
        width: 100%;
        padding: 0.85rem 0.5rem !important;
        text-align: center;
        margin-top: 1rem;
    }
}
