/* Global variables */
:root {
    --bg-color: #000000;
    --primary-color: #100c62;
    /* Deep Indigo */
    --primary-light: #2c2494;
    --secondary-color: #f43c3c;
    /* Bright Red */
    --terminal-green: #00ff41;
    --text-color: #ffffff;
    --text-muted: #888888;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-main: 'Outfit', sans-serif;
    --font-mono: 'Share Tech Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(180deg, #050414 0%, #0d0b38 100%) fixed;
    /* Fixed to cover scroll */
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

html {
    background-color: var(--bg-color);
    /* Fallback */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Fix for H1UserAgentFontSizeInSection deprecation warning */
h1 {
    font-size: 2em;
    margin: 0.67em 0;
}

/* Video Background */
.video-bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.video-foreground,
.video-bg-container iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    /* Given a 16:9 aspect ratio, 9/16*100 = 56.25 */
    min-height: 100vh;
    min-width: 177.77vh;
    /* Given a 16:9 aspect ratio, 16/9*100 = 177.77 */
    transform: translate(-50%, -50%);
}

.video-overlay-filter {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    /* Darkens the video significantly for text readability */
    backdrop-filter: blur(8px);
    /* Blurs the video as requested */
    z-index: 1;
    /* Sits on top of the iframe but behind scanlines/content */
}

/* Background FX */
#hacker-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    /* Above body BG, behind content */
    background: black;
}

/* ... skipped scanlines ... */

/* Sections */
section {
    padding: 6rem 10%;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    /* Lighter border for blue theme */
    background: transparent;
    /* Global gradient shows through */
}

.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.2));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: -1;
    /* Above canvas, below content */
    opacity: 0.7;
}

.noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 99;
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    background: rgba(0, 0, 0, 0.85);
    /* Slightly darker for legibility */
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-container {
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-item {
    position: relative;
    margin-left: 2rem;
}

.nav-links a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary-color);
}

/* Dropdown logic */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 180px;
    z-index: 1000;
}

.nav-item:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    margin: 0 !important;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    white-space: nowrap;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

/* Gradient Text Utility */
.text-gradient {
    background: linear-gradient(90deg, #f43c3c, #100c62);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
    /* nav offset */
    /* Removed background color/image since we have fixed video bg */
}

.hero-content {
    z-index: 10;
    max-width: 900px;
}

.glitch-sub {
    font-size: 1.5rem;
    letter-spacing: 0.2rem;
    color: white;
    /* Changed from secondary to white for better contrast over video */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 1rem;
    font-family: var(--font-mono);
}

.glitch-title {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 3rem;
    position: relative;
    text-transform: uppercase;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Basic Glitch Effect CSS (Optimized) */
.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.glitch-title::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip-path: inset(44px 0 56px 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip-path: inset(44px 0 56px 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip-path: inset(11px 0 66px 0);
    }

    5% {
        clip-path: inset(82px 0 6px 0);
    }

    10% {
        clip-path: inset(31px 0 55px 0);
    }

    15% {
        clip-path: inset(93px 0 7px 0);
    }

    20% {
        clip-path: inset(3px 0 47px 0);
    }

    25% {
        clip-path: inset(68px 0 10px 0);
    }

    30% {
        clip-path: inset(23px 0 77px 0);
    }

    35% {
        clip-path: inset(99px 0 1px 0);
    }

    40% {
        clip-path: inset(45px 0 25px 0);
    }

    45% {
        clip-path: inset(12px 0 88px 0);
    }

    50% {
        clip-path: inset(56px 0 44px 0);
    }

    55% {
        clip-path: inset(89px 0 11px 0);
    }

    60% {
        clip-path: inset(2px 0 98px 0);
    }

    65% {
        clip-path: inset(78px 0 22px 0);
    }

    70% {
        clip-path: inset(15px 0 85px 0);
    }

    75% {
        clip-path: inset(58px 0 42px 0);
    }

    80% {
        clip-path: inset(33px 0 67px 0);
    }

    85% {
        clip-path: inset(92px 0 8px 0);
    }

    90% {
        clip-path: inset(6px 0 94px 0);
    }

    95% {
        clip-path: inset(67px 0 33px 0);
    }

    100% {
        clip-path: inset(29px 0 54px 0);
        clip-path: inset(25px 0 75px 0);
    }

    100% {
        clip-path: inset(61px 0 39px 0);
    }
}

/* Countdown */
.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    font-family: var(--font-mono);
    margin-bottom: 4rem;
    background: rgba(0, 0, 0, 0.4);
    display: inline-flex;
    padding: 1rem 2rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

.time-box {
    display: flex;
    flex-direction: column;
}

.time-box span {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    text-shadow: 0 0 15px rgba(244, 60, 60, 0.5);
}

.time-box label {
    font-size: 0.8rem;
    color: white;
}

.separator {
    font-size: 3rem;
    color: white;
    margin-top: -1.5rem;
}

/* Buttons */
.cta-group {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.btn {
    padding: 1.5rem 4rem;
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    display: inline-block;
    /* Since they are now <a> tags */
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #f43b3b, #d90429);
    color: white;
    box-shadow: 0 0 20px rgba(244, 59, 59, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(244, 60, 60, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #00f3ff;
    color: #00f3ff;
    /* Holographic Blue */
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(0, 243, 255, 0.1);
    box-shadow: 0 0 25px rgba(0, 243, 255, 0.4);
}

/* Sections */
/* Sections */
section {
    padding: 6rem 10%;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    /* Allow body gradient */
}

/* Override for Hero to be transparent so Video shows */
#hero.hero-section {
    background: transparent;
    border-top: none;
}

.section-divider {
    position: absolute;
    top: -16px;
    left: 10%;
    background: var(--bg-color);
    padding: 0 1.2rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    font-size: 1.1rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.prompt {
    color: #00f3ff;
}

/* Pricing Grid */
.pricing-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 4px;
    /* Slightly rounded, or 0 for strict cyber? */
    backdrop-filter: blur(5px);
    transition: transform 0.3s, border-color 0.3s;
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.pricing-card.elite {
    background: rgba(16, 12, 98, 0.3);
    /* Tint of primary */
    border: 1px solid var(--secondary-color);
    box-shadow: 0 0 30px rgba(16, 12, 98, 0.2);
}

.badge-best-seller {
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--secondary-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 900;
    padding: 5px 30px;
    transform: rotate(45deg);
    font-family: var(--font-mono);
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-mono);
}

.price {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.gancho {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.features-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: baseline;
    gap: 10px;
    font-size: 0.95rem;
    color: #e0e0e0;
}

.features-list li span {
    color: #00f3ff;
    /* Cyan mostly for General */
    font-weight: bold;
    min-width: 15px;
    /* Alignment */
}

/* Elite / Ebadge+ overrides */
.pricing-card.elite .features-list li span.star {
    color: var(--secondary-color);
    /* Red */
}

.currency {
    font-size: 1.5rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-left: 5px;
}

.highlight {
    color: var(--secondary-color);
    font-weight: bold;
    text-shadow: 0 0 5px rgba(244, 60, 60, 0.5);
}

.blink {
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.btn-outline {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    margin-top: 2rem;
    cursor: pointer;
    text-align: center;
    display: block;
}

.btn-outline:hover {
    border-color: white;
}

/* Terminal About */
.terminal-window {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid #333;
    border-radius: 6px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin: 0 auto;
    font-family: var(--font-mono);
}

.terminal-header {
    background: #1a1a1a;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
    border-radius: 6px 6px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.red-dot {
    background: #ff5f56;
}

.yellow-dot {
    background: #ffbd2e;
}

.green-dot {
    background: #27c93f;
}

.terminal-title {
    margin-left: 10px;
    color: #666;
    font-size: 0.8rem;
}

.terminal-body {
    padding: 20px;
    color: var(--terminal-green);
    /* Classic Green for Terminal Body */
}

.prompt-user {
    color: #00f3ff;
}

/* Blue for user prompt */
.dir {
    color: #00f3ff;
    margin-right: 15px;
}

/* Sponsors Marquee */
/* Sponsors Marquee */
.sponsors-section {
    padding: 8rem 0 4rem;
    background: transparent;
    /* Changed from black to transparent for global gradient */
    /* Ensure opaque background if needed, or transparent if flow is preferred. Using bg-color (black) to be safe against overlaps. */
    /* overflow: hidden; REMOVED so the top label isn't clipped */
    position: relative;
    z-index: 10;
}

.hc-slider {
    background: rgba(255, 255, 255, 0.05);
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    /* Moved here to contain the sliding track */
    width: 100%;
}

.slide-track {
    display: flex;
    width: calc(200px * 40);
    /* Increased for more logos */
    animation: scroll 25s linear infinite;
    /* Faster speed as requested */
}

.logo-box {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    /* Space */
}

.logo-box img {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    filter: grayscale(100%) brightness(200%);
    /* White/Grey mono */
    opacity: 0.7;
    transition: all 0.3s ease;
}

.logo-box:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
    /* drop-shadow handled on img better for transparent pngs */
    filter: drop-shadow(0 0 5px rgba(0, 255, 65, 0.5));
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 8));
    }

    /* Scroll half */
}

/* Legacy / Donations */
.legacy-section {
    background: linear-gradient(180deg, black, #050510);
    padding-top: 6rem;
    /* Added/Increased to clear the absolute divider */
    padding-bottom: 8rem;
    position: relative;
    z-index: 20;
    /* Scoped above Sponsors (10) to show the top divider */
    overflow: visible;
    /* Explicitly visible to show the negative top label */
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.video-card {
    background: #111;
    height: 200px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #333;
    transition: 0.3s;
    overflow: hidden;
}

.video-card:hover {
    border-color: var(--secondary-color);
}

.play-btn {
    font-size: 2rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
}

.donations-box {
    background: #111;
    border: 1px solid #222;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.btn-paypal {
    background: #ffc439;
    /* PayPal Yellow */
    color: black;
    margin-top: 1.5rem;
    border: none;
    font-weight: 900;
    box-shadow: 0 0 15px rgba(255, 196, 57, 0.4);
}

.btn-paypal:hover {
    background: #fff01f;
    box-shadow: 0 0 25px rgba(255, 240, 31, 0.6);
}

footer {
    padding: 4rem 2rem;
    text-align: center;
    color: #888;
    /* Improved contrast */
    font-family: var(--font-mono);
    border-top: 1px solid #111;
    background: #000;
}

/* Responsive */
@media(max-width: 768px) {
    .glitch-title {
        font-size: 3rem;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%;
        width: 100%;
        /* Full Width for Mobile */
        height: calc(100vh - 80px);
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 2rem 0;
        transition: right 0.3s ease;
        border-left: none;
        /* Removed border as it is full width */
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-item {
        margin-left: 0;
        width: 100%;
    }

    .nav-links a {
        margin-left: 0;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
        color: #fff;
        display: block;
    }

    .dropdown-content {
        position: static;
        display: block;
        /* Show dropdown items by default on mobile for simplicity */
        background: rgba(255, 255, 255, 0.05);
        border: none;
        width: 100%;
    }

    .dropdown-content a {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
        opacity: 0.8;
    }

    /* Simplified for now */
    .countdown-container {
        gap: 0.5rem;
    }

    .time-box span {
        font-size: 2rem;
    }

    .video-foreground,
    .video-bg-container iframe {
        display: none;
        /* Hide heavy video on mobile */
    }

    .video-bg-container {
        /* Static BG Fallback for mobile */
        background: url('uploads/2024/08/1713280506932.jpeg') no-repeat center center/cover;
        opacity: 0.4;
    }
}

/* Sponsor CTA - Transitional Block */
.sponsor-cta-section {
    padding: 6rem 10%;
    background: transparent;
    /* Changed to transparent to use body gradient */
    display: flex;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Attention Effect: Animated Glow behind panel */
.sponsor-cta-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(16, 12, 98, 0.4) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0.8);
    animation: pulse-glow 4s infinite alternate;
    z-index: 0;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 4rem;
    border-radius: 16px;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.glass-panel:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.section-title {
    font-size: 3.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: white;
    text-transform: uppercase;
    font-family: var(--font-main);
}

.sponsorship-action {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    /* Hacker accent */
    margin: 2rem 0;
    display: inline-block;
}

/* Base styles for desc/email provided below */

/* Donate Section - distinct block but smooth entry */
.donate-section {
    padding: 6rem 10% 8rem;
    background: transparent;
    /* Changed to transparent */
    text-align: center;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle cut */
}

/* Floating particles or attention grabber for Donate */
.donate-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(var(--secondary-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    pointer-events: none;
}

.donate-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.donate-title {
    font-size: 3.8rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}

.donate-text {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.donate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.donate-card {
    background: linear-gradient(135deg, #ff6b6b, #ee5253);
    padding: 3rem 2rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(238, 82, 83, 0.3);
}

.donate-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.donate-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(238, 82, 83, 0.6);
    z-index: 10;
}

/* Retaining missing helpers */
.email-highlight {
    font-family: var(--font-mono);
    color: var(--secondary-color);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.small-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.donate-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bank-card {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
}

.icon-donate svg {
    width: 60px;
    height: 60px;
    fill: white;
}

.donate-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0;
}

/* --- CALL FOR PAPERS PAGE STYLES --- */
.hackcon-cfp {
    --ink: #ecf2ff;
    --muted: #c6cbea;
    --blue: #100c62;
    position: relative;
    padding: clamp(28px, 6vw, 60px) 16px;
    color: var(--ink);
    overflow: hidden;
}

.hc-wrap {
    max-width: 1100px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    padding: clamp(16px, 3.6vw, 32px);
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    position: relative;
    isolation: isolate;
}

/* Header */
.hc-head {
    text-align: center;
    margin-bottom: 18px
}

.hc-eyebrow {
    display: inline-block;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: #ffe0e6;
    opacity: .9;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.hc-title {
    margin: 10px 0 6px;
    font-weight: 800;
    line-height: 1.1;
    font-size: clamp(24px, 3.4vw, 40px);
    background: linear-gradient(90deg, #fff, #ffe9a6, #ffd0d6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hc-sub {
    margin: 0 auto;
    max-width: 860px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.8
}

/* Grid */
.hc-grid {
    display: grid;
    gap: 18px;
    margin-top: 22px;
    grid-template-columns: 1fr 1fr;
}

@media (max-width:900px) {
    .hc-grid {
        grid-template-columns: 1fr;
    }
}

.hc-card {
    background: rgba(8, 10, 38, .35);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 16px;
    padding: 18px;
    backdrop-filter: blur(6px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25) inset, 0 6px 24px rgba(0, 0, 0, .15);
}

.hc-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: #fff;
}

.hc-card p,
.hc-card li {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.hc-col {
    display: grid;
    gap: 12px;
}

/* Chips */
.hc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 6px
}

.hc-chip {
    --bd: linear-gradient(90deg, #ff8310, #ffd166, #5bba4f, #17b6ff, #ff6bcb, #ff8310);
    position: relative;
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 999px;
    background: #0e1250;
    border: 2px solid transparent;
}

.hc-chip::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 999px;
    padding: 2px;
    background: var(--bd);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: chipFlow 8s linear infinite;
}

@keyframes chipFlow {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

/* CTA button */
.hc-cta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px
}

.btn-cfp {
    --bd: linear-gradient(90deg, #ff8310, #ffd166, #5bba4f, #17b6ff, #ff6bcb, #ff8310);
    display: inline-grid;
    place-items: center;
    min-width: 280px;
    height: 56px;
    padding: 0 20px;
    border-radius: 14px;
    text-decoration: none;
    color: #061031;
    font-weight: 800;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 2px solid transparent;
    box-shadow: 0 14px 46px rgba(0, 0, 0, .35);
}

.btn-cfp::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    padding: 2px;
    background: var(--bd);
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: flow 6s linear infinite;
}

@keyframes flow {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

.btn-cfp:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 60px rgba(0, 0, 0, .45)
}

/* Accordion */
.hc-acc {
    margin-top: 8px
}

.hc-acc button {
    width: 100%;
    text-align: left;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .14);
    color: #fff;
    font-weight: 700;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: all .3s ease;
}

.hc-acc button .ic {
    font-weight: 800;
    opacity: .9
}

.hc-acc button:hover,
.hc-acc button.active {
    background: #fff;
    color: var(--blue);
    border-color: #fff;
}

.hc-acc .panel {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
    overflow: hidden;
    margin-top: 8px
}

.hc-acc .panel.open {
    grid-template-rows: 1fr
}

.hc-acc .panel>div {
    overflow: hidden
}

.hc-list {
    margin: 8px 0 0 0;
    padding-left: 18px
}

.hc-list li {
    margin: 4px 0
}

/* Stats */
.hc-stats {
    padding: clamp(28px, 6vw, 60px) 16px;
    text-align: center;
    color: #ecf2ff;
}

.hc-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.hc-stat {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 16px;
    padding: 24px 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .25);
    transition: transform .3s ease, box-shadow .3s ease;
}

.hc-stat:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}

.hc-number {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    margin: 0 0 8px;
    background: linear-gradient(90deg, #fff, #ffe9a6, #ffd0d6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hc-label {
    font-size: 15px;
    font-weight: 600;
    color: #c6cbea;
    margin: 0;
}

/* Recaps */
.hc-recaps {
    padding: clamp(28px, 6vw, 60px) 16px;
    text-align: center;
    color: #ecf2ff;
}

.hc-recaps-title {
    margin: 10px 0 6px;
    font-weight: 800;
    line-height: 1.1;
    font-size: clamp(22px, 3.4vw, 40px);
    background: linear-gradient(90deg, #fff, #ffe9a6, #ffd0d6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hc-video {
    position: relative;
    padding-bottom: 46.25%;
    height: 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
    max-width: 900px;
    margin: 0 auto;
}

.hc-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Sponsors Slider adapted to new specific style if needed, or reusing existing. */
/* REDESIGNED SPONSOR CTA (High Impact) */

.sponsor-cta-section {
    padding: 6rem 0;
    /* No side padding for full bleed if needed, or minimal */
    background: transparent;
    display: block;
    /* Removed flex centering */
    overflow: hidden;
    margin: 4rem 0;
}

/* Cyber Panel Container - Text Replaced for Full Width */
/* Redesigned Cyber Panel */
.cyber-panel {
    background: linear-gradient(90deg, #050510 0%, #100c62 50%, #050510 100%);
    border-top: 2px solid var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding: 5rem 10%;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(16, 12, 98, 0.4);
}

.cyber-panel::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(244, 60, 60, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

/* Scanning Line Effect */
.cyber-panel::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, transparent, rgba(244, 60, 60, 0.2), transparent);
    animation: scanLine 8s linear infinite;
    pointer-events: none;
}

@keyframes scanLine {
    0% {
        top: -100px;
    }

    100% {
        top: 100%;
    }
}

.panel-deco-corner {
    display: block;
    position: absolute;
    width: 40px;
    height: 40px;
    border: 2px solid var(--secondary-color);
    opacity: 0.6;
}

.top-left {
    top: 20px;
    left: 20px;
    border-right: none;
    border-bottom: none;
}

.top-right {
    top: 20px;
    right: 20px;
    border-left: none;
    border-bottom: none;
}

.bottom-left {
    bottom: 20px;
    left: 20px;
    border-right: none;
    border-top: none;
}

.bottom-right {
    bottom: 20px;
    right: 20px;
    border-left: none;
    border-top: none;
}

/* Panel Header */
.panel-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.panel-status {
    color: var(--terminal-green);
}

.panel-id {
    color: var(--text-muted);
}

/* Content Styling */
.section-title {
    font-size: 3.2rem;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(244, 60, 60, 0.4);
    font-family: var(--font-mono);
    font-weight: 800;
}

.separator-line {
    width: 0%;
    height: 2px;
    background: var(--secondary-color);
    margin: 1rem auto 2rem;
    transition: width 0.8s ease;
}

.cyber-panel:hover .separator-line {
    width: 100px;
}

.section-desc {
    color: #ccc;
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    font-family: var(--font-main);
}

/* Terminal Box for Email */
/* Enhanced Terminal Box */
.cyber-terminal-box {
    background: #000;
    border: 1px solid var(--secondary-color);
    padding: 1rem 2rem;
    font-family: var(--font-mono);
    color: #fff;
    position: relative;
    box-shadow: 0 0 20px rgba(244, 60, 60, 0.2);
    clip-path: polygon(0 0, 100% 0, 100% 70%, 90% 100%, 0 100%);
}

.prompt-char {
    color: #555;
    margin-right: 10px;
}

.cursor-blink {
    animation: blink 1s infinite;
    color: var(--secondary-color);
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Button Glitch Hover Effect */
/* High Impact Button */
.btn-glitch-hover {
    background: var(--secondary-color);
    color: #fff;
    padding: 1rem 2rem;
    font-weight: 800;
    letter-spacing: 2px;
    border: none;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    box-shadow: 0 0 15px var(--secondary-color);
    transition: all 0.3s ease;
}

.btn-glitch-hover:hover {
    box-shadow: 0 0 35px var(--secondary-color), 0 0 10px #fff;
    transform: skew(-5deg) scale(1.05);
}

/* Responsive */
@media(max-width: 768px) {
    .cyber-panel {
        padding: 2rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .cyber-terminal-box {
        width: 100%;
        font-size: 1rem;
    }
}

/* Sponsor Actions Layout Fix */
.sponsor-actions-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.sponsor-actions-wrapper .cyber-terminal-box {
    margin-bottom: 0;
    min-width: auto;
    /* Clean up for flex alignment */
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.sponsor-actions-wrapper .sponsorship-action a.btn {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0;
    /* Override any button margins */
}

/* Side-by-Side Flex Layout for Sponsor Banner */

.sponsor-flex-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Text Side - Left Aligned */
.sponsor-text-side {
    flex: 1;
    text-align: left;
    min-width: 300px;
}

.section-title {
    margin-bottom: 0.5rem;
    /* Tighter spacing */
}

/* New Left aligned separator */
.separator-line-left {
    width: 60px;
    height: 3px;
    background: var(--secondary-color);
    margin: 0 0 1.5rem 0;
    /* Align left */
}

.section-desc.text-left {
    margin-bottom: 0;
    /* Remove bottom margin to align with actions */
    text-align: left;
    max-width: 600px;
}

/* Actions Side - Right Aligned (or flex row) */
.sponsor-actions-side {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Adjust Terminal box for side layout */
.sponsor-actions-side .cyber-terminal-box {
    margin-bottom: 0;
    margin-right: 0;
    min-width: auto;
    width: auto;
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 25px;
}

.sponsor-actions-side .sponsorship-action a.btn {
    height: 56px;
    display: flex;
    align-items: center;
    padding: 0 30px;
}


/* Responsive Stack */
@media(max-width: 992px) {
    .sponsor-flex-layout {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .sponsor-text-side {
        text-align: center;
    }

    .separator-line-left {
        margin: 0 auto 1.5rem;
    }

    .section-desc.text-left {
        text-align: center;
        margin: 0 auto;
    }

    .sponsor-actions-side {
        flex-direction: column;
        width: 100%;
    }

    .sponsor-actions-side .cyber-terminal-box,
    .sponsor-actions-side .sponsorship-action {
        width: 100%;
    }

    .sponsor-actions-side .sponsorship-action a.btn {
        width: 100%;
        justify-content: center;
    }

    .sponsor-actions-side .cyber-terminal-box {
        justify-content: center;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* --- GLOBAL RESPONSIVE FIXES --- */

@media (max-width: 1024px) {
    section {
        padding: 4rem 5%;
    }

    .glass-nav {
        padding: 0.8rem 1.5rem;
    }

    .nav-logo {
        height: 35px;
    }

    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .donate-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    section {
        padding: 3rem 20px;
    }

    .countdown-container {
        flex-wrap: nowrap;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.8rem 1rem;
        width: 100%;
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .time-box {
        min-width: 60px;
    }

    .time-box span {
        font-size: 1.5rem;
    }

    .separator {
        font-size: 1.5rem;
        margin-top: -0.8rem;
    }

    .hero-content {
        padding: 0 1rem;
        width: 100%;
    }

    .glitch-sub {
        font-size: 1rem;
        letter-spacing: 0.1rem;
    }

    .glitch-title {
        font-size: 2.5rem;
        /* Smaller title for mobile */
        margin-bottom: 2rem;
    }

    .countdown-container {
        padding: 0.8rem;
        flex-wrap: wrap;
        /* allow wrap if needed, or keep row but smaller */
        gap: 0.5rem;
        margin-bottom: 2.5rem;
        min-height: auto !important;
        /* Override inline style */
    }

    .time-box span {
        font-size: 1.8rem;
        /* Smaller numbers */
    }

    .separator {
        font-size: 1.8rem;
        margin-top: -1rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%;
        /* Full width buttons on mobile */
        max-width: 320px;
        padding: 1rem 1.5rem !important;
        /* Override the huge desktop padding */
        font-size: 1.1rem !important;
        /* Override the huge desktop font */
    }

    .donate-title {
        font-size: 2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .sponsor-text-side .section-title {
        font-size: 2.2rem;
    }

    .hc-slider {
        padding: 20px 0;
    }

    .slide-track img {
        max-height: 40px;
    }

    /* Mobile Menu Logic */
    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 100px;
        /* Push items down below nav */
        overflow-y: auto;
        /* Allow scrolling if items don't fit */
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 990;
        /* Below the glass-nav (1000) */
        border-left: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-item {
        margin: 0.8rem 0;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .nav-links.active .nav-item {
        opacity: 1;
        transform: translateY(0);
    }

    /* Stagger animation for items */
    .nav-links.active .nav-item:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.active .nav-item:nth-child(2) {
        transition-delay: 0.2s;
    }

    .nav-links.active .nav-item:nth-child(3) {
        transition-delay: 0.3s;
    }

    .nav-links.active .nav-item:nth-child(4) {
        transition-delay: 0.4s;
    }

    .nav-links.active .nav-item:nth-child(5) {
        transition-delay: 0.5s;
    }

    .nav-links.active .nav-item:nth-child(6) {
        transition-delay: 0.6s;
    }

    .legacy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 0 1rem;
        width: 100%;
    }

    .glitch-sub {
        font-size: 1rem;
        letter-spacing: 0.1rem;
    }

    .glitch-title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }

    .countdown-container {
        padding: 0.5rem;
        flex-wrap: nowrap;
        gap: 0.2rem;
        margin-bottom: 2rem;
        min-height: auto !important;
        width: 100%;
        justify-content: center;
    }

    .time-box span {
        font-size: 1.5rem;
    }

    .separator {
        font-size: 1.5rem;
        margin-top: -0.5rem;
    }

    .cta-group {
        flex-direction: column;
        gap: 1.5rem;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        padding: 1rem 1.5rem !important;
        font-size: 1.1rem !important;
    }

    .pricing-card {
        padding: 1.5rem;
    }
}

/* --- ENTRANCE ANIMATIONS (REVEAL) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Optimization for first-fold items to prevent CLS */
.reveal-immediate {
    opacity: 1 !important;
    transform: none !important;
}

/* Staggered entrance for children elements */
.stagger-reveal>* {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.stagger-reveal.active>* {
    opacity: 1;
    transform: translateY(0);
}

.stagger-reveal.active>*:nth-child(1) {
    transition-delay: 0.1s;
}

.stagger-reveal.active>*:nth-child(2) {
    transition-delay: 0.2s;
}

.stagger-reveal.active>*:nth-child(3) {
    transition-delay: 0.3s;
}

.stagger-reveal.active>*:nth-child(4) {
    transition-delay: 0.4s;
}

.stagger-reveal.active>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-reveal.active>*:nth-child(6) {
    transition-delay: 0.6s;
}

/* --- RECAP 2025 SECTION --- */
.recap-container {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.main-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 3rem auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    background: #000;
}

.main-video-wrapper::before {
    content: "";
    display: block;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
}

.main-video-wrapper video,
.main-video-wrapper iframe,
.main-video-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.main-video-wrapper:hover {
    transform: scale(1.01);
    border-color: var(--secondary-color);
}

.gallery-wrapper {
    margin-top: 4rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 2rem;
}

.gallery-header {
    font-family: var(--font-mono);
    color: var(--terminal-green);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.photo-carousel {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    gap: 20px;
    width: calc(300px * 14);
    animation: galleryScroll 35s linear infinite;
}

.carousel-item {
    flex: 0 0 300px;
    height: 200px;
    border-radius: 6px;
    overflow: hidden;
    /* Removed expensive border transition that causes repaints */
    border: 1px solid rgba(255, 255, 255, 0.1);
    /* Use transform for hover effects, avoiding layout properties */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(40%) brightness(0.8);
    transition: all 0.5s ease;
}

.carousel-item:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px) scale(1.05);
    z-index: 10;
}

.carousel-item:hover img {
    /* Filter is expensive but key to the effect. Reducing transition usage on other props helps. */
    filter: grayscale(0%) brightness(1.1);
}

@keyframes galleryScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-320px * 7));
    }
}

@media (max-width: 768px) {
    .carousel-item {
        flex-basis: 250px;
        height: 160px;
    }

    .gallery-wrapper {
        padding: 1rem;
    }
}

/* --- DONATION CUSTOM STYLES --- */
.bank-info {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: #fff;
    margin: 10px 0;
    line-height: 1.4;
}

.bank-email {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-decoration: none;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.bank-email:hover {
    background: var(--secondary-color);
    border-color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 60, 60, 0.3);
}