@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;700;900&display=swap');

:root {
    --bg-color: #050505;
    --accent-color: #00f2ff;
    --text-color: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Inter', sans-serif;
    /* Change 'hidden' to 'overflow-x: hidden' */
    overflow-x: hidden; 
    overflow-y: auto; /* Ensures vertical scrolling is enabled */
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none; /* Allows mouse to interact with canvas behind text */
}

.content {
    text-align: center;
    pointer-events: all;
}

h1 {
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

h1 span {
    color: var(--accent-color);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

p {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 30px;
}
/* Modern Tech Button */

.tech-btn {
    position: relative;
    padding: 16px 30px;
    background: rgba(0, 242, 255, 0.05); /* Transparent core */
    border: 1px solid rgba(0, 242, 255, 0.5);
    color: var(--accent-color);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(5px);
    border-radius: 4px; /* Slight roundness for modern look */
}

.btn-content {
    position: relative;
    z-index: 2;
}

/* The Shimmer Effect (Light sweeping across) */
.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 242, 255, 0.4),
        transparent
    );
    transition: 0.5s;
}

.tech-btn:hover .btn-shimmer {
    left: 100%;
}

/* Hover States */
.tech-btn:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
    transform: translateY(-3px) scale(1.02);
    border: 1px solid var(--accent-color);
}

.tech-btn:hover .btn-content {
    letter-spacing: 5px; /* Text expands slightly */
    transition: 0.4s;
}

/* Active/Click State */
.tech-btn:active {
    transform: translateY(0) scale(0.98);
}

/* Glow Pulse behind the button */
.tech-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: var(--accent-color);
    filter: blur(40px);
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: 0.5s;
    z-index: -1;
}

.tech-btn:hover::after {
    opacity: 0.2;
}


/* Hide default cursor globally */
html, body {
    cursor: none;
}

/* The small center dot */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none; /* Crucial: clicks pass through it */
}

/* The larger trailing ring */
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent-color);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    transition: all 0.15s ease-out; /* Smooth movement */
}

/* When hovering over buttons/links */
.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 242, 255, 0.1);
    border: 1px solid var(--accent-color);
}
/* Update this specific part in your CSS */
.main-header {
    position: fixed;
    top: 20px;
    left: 50%;
    /* Use translate to handle centering and potential GSAP conflicts */
    transform: translate(-50%, 0); 
    width: 95%;
    max-width: 1200px;
    z-index: 5000; /* Increased to stay above everything */
    padding: 15px 30px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: width 0.5s, top 0.5s, padding 0.5s, background 0.5s; /* Specific transitions */
}

.main-header.scrolled {
    top: 10px;
    width: 90%;
    transform: translate(-50%, 0); /* Keep centered */
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Styling */
.logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #fff;
    cursor: pointer;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

/* Navigation Links */
.nav-links {
    display: flex;
    list-style: none;
    gap: 10px; /* Closer together for capsule look */
}

.nav-item {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

/* Hover Effect: Soft background pill */
.nav-item:hover {
    color: var(--accent-color);
    background: rgba(0, 242, 255, 0.08);
}

/* Active Indicator (optional) */
.nav-item.active {
    color: var(--accent-color);
}

/* --- Mobile Menu --- */
.menu-toggle {
    display: none;
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    border-radius: 10px;
    transition: 0.3s;
}

.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { top: 50%; transform: translateY(-50%); }
.bar:nth-child(3) { bottom: 0; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        position: fixed;
        top: -110vh; /* Hide above screen */
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
        z-index: -1;
    }

    .nav-links.active {
        top: 0;
    }

    .nav-item {
        font-size: 1.8rem;
        padding: 10px 40px;
    }
}

/* Event Section Base */
.event-section {
    position: relative;
    min-height: 100vh;
    padding: 100px 20px;
    background: #0505058a; /* Darker, blood-tinted black */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Scanline Effect */
.glitch-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), 
                linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 255, 0.02), rgba(0, 255, 0, 0.06));
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    z-index: 5;
}

.event-container {
    max-width: 1000px;
    z-index: 10;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
}

.event-container .left-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-container .left-side .image-container {
    max-width: 450px;
    width: 100%;
    border: 2px solid #ff0000;
    padding: 10px;
    box-shadow: 0 0 20px #ff0000;
    border-radius: 10px;
}

.event-container .left-side .image-container img {
    max-width: 100%;
    width: 100%;
    border-radius: 10px;
    /* display: block; */
}

.event-container .right-side {
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.club-name {
    color: #ff0000;
    letter-spacing: 5px;
    font-size: 0.8rem;
    margin-bottom: 10px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.5);
}

/* Glitch Animation */
.glitch {
    font-size: clamp(2rem, 8vw, 5rem);
    font-weight: 900;
    position: relative;
    color: white;
    text-transform: uppercase;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff0000;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00f2ff;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(10px, 9999px, 20px, 0); }
    20% { clip: rect(80px, 9999px, 90px, 0); }
    100% { clip: rect(40px, 9999px, 50px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(60px, 9999px, 70px, 0); }
    30% { clip: rect(10px, 9999px, 30px, 0); }
    100% { clip: rect(80px, 9999px, 100px, 0); }
}

.status-bar {
    color: #ff0000;
    font-family: monospace;
    margin: 20px 0;
    font-size: 0.9rem;
}

.blink { animation: blink 1s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.terminal-box {
    background: rgba(255, 0, 0, 0.05);
    border-left: 3px solid #ff0000;
    padding: 20px;
    margin: 30px 0;
    text-align: left;
    font-family: 'Courier New', Courier, monospace;
    color: #ff4d4d;
    font-size: 0.85rem;
}

.horror-btn {
    border-color: #ff0000 !important;
    color: #ff0000 !important;
}

.horror-btn:hover {
    background: #ff0000 !important;
    color: white !important;
    box-shadow: 0 0 40px #ff0000 !important;
}

/* Screen shake for the entry effect */
.screen-shake {
    animation: shake 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

.highlight {
    color: #ff0000;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 0, 0, 0.3);
}


/* --- About Section --- */
.about-section {
    min-height: 100vh;
    padding: 100px 5%;
    display: flex;
    position: relative; /* Required for z-index to work */
    z-index: 10;        /* Higher than the canvas */
    min-height: 100vh;
    align-items: center;
    background: radial-gradient(circle at 10% 20%, rgba(0, 242, 255, 0.05) 0%, transparent 50%);
}

.about-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* --- Logo & Info ---
.logo-hex-frame {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-logo {
    width: 150px;
    z-index: 5;
    filter: drop-shadow(0 0 15px var(--accent-color));
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 50%;
    animation: rotate 10s linear infinite;
}

.orbit-1 { width: 100%; height: 100%; border-left: 2px solid var(--accent-color); }
.orbit-2 { width: 80%; height: 80%; border-right: 2px solid var(--accent-color); animation-duration: 5s; animation-direction: reverse; }

@keyframes rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } */


/* --- Logo & Info --- */
.logo-hex-frame {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.core-logo {
    width: 150px;
    z-index: 5;
    filter: drop-shadow(0 0 15px var(--accent-color));
}

.orbit {
    position: absolute;
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 50%;
    /* Use a unique animation name to avoid conflict with loader */
    animation: orbitRotate 10s linear infinite; 
}

.orbit-1 { 
    width: 100%; 
    height: 100%; 
    border-left: 2px solid var(--accent-color); 
}

.orbit-2 { 
    width: 80%; 
    height: 80%; 
    border-right: 2px solid var(--accent-color); 
    animation-name: orbitRotate; /* Use the unique name */
    animation-duration: 5s; 
    animation-direction: reverse; 
}

/* Unique Keyframes for the About Section Orbits */
@keyframes orbitRotate { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}


.section-title { font-size: 3rem; font-weight: 900; margin-bottom: 20px; }
.section-title span { color: var(--accent-color); }

.stat-grid { display: flex; gap: 30px; margin-top: 30px; }
.stat-num { display: block; font-size: 2rem; font-weight: 900; color: var(--accent-color); }
.stat-label { font-size: 0.8rem; text-transform: uppercase; opacity: 0.6; }

/* --- Ambassador Card --- */
.ambassador-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(0, 242, 255, 0.15), transparent 60%);
    pointer-events: none;
}

.image-wrapper {
    position: relative;
    width: 250px;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 2px solid var(--accent-color);
}

.ambassador-img { width: 100%; height: 100%; object-fit: cover; }

.scanner-line {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    animation: scan 3s ease-in-out infinite;
}

@keyframes scan { 
    0%, 100% { top: 0; } 
    50% { top: 100%; } 
}

.label { color: var(--accent-color); font-size: 0.7rem; letter-spacing: 3px; margin-bottom: 10px; }
.ambassador-name { font-size: 2rem; margin-bottom: 15px; }
.ambassador-bio { opacity: 0.8; line-height: 1.6; font-style: italic; }

.tech-tag {
    display: inline-block;
    padding: 5px 15px;
    border: 1px solid rgba(0, 242, 255, 0.3);
    font-size: 0.7rem;
    margin-right: 10px;
    margin-top: 20px;
    color: var(--accent-color);
}

@media (max-width: 968px) {
    .about-container { grid-template-columns: 1fr; gap: 50px; }
}


/* --- Glimpses Section --- */
.glimpses-section {
    position: relative;
    padding: 100px 5%;
    background: #050505dc;
    z-index: 10;
    overflow: hidden;
}

.glitch-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 60px;
    letter-spacing: 5px;
    color: var(--text-color);
    position: relative;
}

/* Video Styling */
.video-wrapper {
    max-width: 900px;
    margin: 0 auto 80px;
    perspective: 1000px;
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border: 1px solid rgba(0, 242, 255, 0.3);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
    background: #000;
}

.video-frame iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
}

.frame-corner {
    position: absolute;
    width: 30px;
    height: 30px;
    border: 3px solid var(--accent-color);
    z-index: 11;
}
.top-left { top: -10px; left: -10px; border-right: 0; border-bottom: 0; }
.bottom-right { bottom: -10px; right: -10px; border-left: 0; border-top: 0; }

/* Grid Styling */
.glimpses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-auto-rows: 200px;
    gap: 20px;
}

.grid-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.grid-item.tall { grid-row: span 2; }

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.5s cubic-bezier(0.2, 1, 0.3, 1);
}

.grid-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

.grid-item .overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, var(--accent-color));
    color: #000;
    font-weight: 900;
    font-size: 0.8rem;
    transition: 0.4s;
}

.grid-item:hover .overlay { bottom: 0; }

/* --- Global Container Utility --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Section Shared Logic --- */
/* High z-index and solid background to sit above the particles/canvas */
.events-archive, 
.team-section {
    position: relative;
    z-index: 15;
    background: #00222534; 
    width: 100%;
    overflow: hidden;
    padding: 100px 0; /* Standardized vertical padding */
}

/* --- Events Archive (Past Deployments) --- */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 50px;
}

.event-card {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 242, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.event-card:hover {
    transform: translateX(10px); /* Subtle slide effect */
    border-color: var(--accent-color);
    background: rgba(0, 242, 255, 0.05);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.1);
}

.event-poster {
    width: 350px; /* Fixed width for consistency */
    min-width: 350px;
    height: 250px;
    position: relative;
    overflow: hidden;
}

.event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.event-card:hover .event-poster img {
    transform: scale(1.1);
}

.event-date {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent-color);
    color: #000;
    padding: 6px 12px;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.event-details {
    padding: 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-details h3 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.event-details p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.event-tag {
    font-family: monospace;
    color: var(--accent-color);
    font-size: 0.85rem;
    opacity: 0.6;
}

/* --- Team Grid (Core Operatives) --- */
.team-section { perspective: 1000px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.team-member-card {
    position: relative;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 25px;
    text-align: center;
    transition: transform 0.1s ease-out, border 0.3s ease;
    transform-style: preserve-3d;
}

.team-member-card:hover {
    border-color: var(--accent-color);
}

.member-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 242, 255, 0.3);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: 0.5s ease;
}

.team-member-card:hover img {
    filter: grayscale(0);
}

.scan-bar {
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    top: 0;
    left: 0;
    z-index: 2;
    opacity: 0;
    animation: scanLine 3s linear infinite;
}

.team-member-card:hover .scan-bar {
    opacity: 1;
}

@keyframes scanLine {
    0% { top: 0; }
    100% { top: 100%; }
}

.id-tag {
    position: absolute;
    bottom: 8px;
    right: 8px;
    font-family: monospace;
    font-size: 0.65rem;
    color: var(--accent-color);
    opacity: 0.5;
}

.member-info h3 {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.role {
    color: var(--accent-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 15px;
}

.member-socials a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
    font-size: 0.85rem;
    transition: 0.3s;
}

.member-socials a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--accent-color);
}

/* --- Responsive Fixes --- */
@media (max-width: 900px) {
    .event-card {
        flex-direction: column; /* Stack image on top of text for tablets/phones */
    }
    
    .event-poster {
        width: 100%;
        min-width: 100%;
        height: 200px;
    }

    .event-details {
        padding: 25px;
    }
}

/* --- Footer Styling --- */
.main-footer {
    position: relative;
    z-index: 20;
    background: #030303;
    border-top: 1px solid rgba(0, 242, 255, 0.1);
    padding: 80px 0 30px;
    width: 100%;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    margin: 20px 0;
    max-width: 350px;
}

/* System Status Indicator */
.system-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--accent-color);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-color);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

.footer-col h4 {
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-bottom: 25px;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: 0.3s;
    font-size: 0.9rem;
}
.footer-links a:hover { color: var(--accent-color); padding-left: 5px; }

/* Newsletter Input */
.newsletter-box {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

.newsletter-box input {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px;
    outline: none;
    flex: 1;
}

.mini-btn {
    padding: 8px 15px;
    font-size: 0.7rem;
}

/* Socials & Bottom Meta */
.footer-socials { margin-top: 25px; display: flex; gap: 15px; }
.social-icon {
    width: 35px;
    height: 35px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    transition: 0.3s;
}
.social-icon:hover { border-color: var(--accent-color); color: var(--accent-color); }

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.3);
}

.footer-meta { display: flex; gap: 20px; }

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 15px; text-align: center; }
}


/* LOADING PART */

#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    background: #000101f6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 0.8s;
}

.cybil-eye {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
}

.inner-ring, .outer-ring, .pulse-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid var(--accent-color, #00f3ff);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.inner-ring {
    width: 60px;
    height: 60px;
    border-style: dashed;
    animation: rotate 2s linear infinite;
}

.outer-ring {
    width: 100px;
    height: 100px;
    border-left-color: transparent;
    border-right-color: transparent;
    animation: rotate 4s linear infinite reverse;
}

.pulse-ring {
    width: 120px;
    height: 120px;
    opacity: 0;
    animation: pulse 1.5s ease-out infinite;
}

.progress-container {
    max-width: 80%;
    width: 90%;
    height: 4px;
    background: rgba(0, 243, 255, 0.1);
    margin: 20px 0;
    position: relative;
    border: 1px solid rgba(0, 243, 255, 0.3);
}

.progress-bar {
    width: 0%;
    height: 100%;
    background: var(--accent-color, #00f3ff);
    box-shadow: 0 0 15px var(--accent-color, #00f3ff);
    transition: width 0.2s ease;
}

.status-codes {
    display: flex;
    justify-content: space-between;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    color: var(--accent-color, #00f3ff);
    text-transform: uppercase;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

#loader-wrapper.loaded {
    opacity: 0;
    visibility: hidden;
}

/* --- HIGH RESPONSIVENESS OVERRIDES --- */

/* 1. Global & Hero Scaling */
@media (max-width: 1024px) {
    p {
        font-size: 1.1rem;
        /* padding: 0 20px; */
    }
}

@media (max-width: 480px) {
    h1 {
        line-height: 1.1;
        margin-bottom: 20px;
    }
    .tech-btn {
        width: 80%; /* Larger tap target on mobile */
        padding: 14px 20px;
        margin: 0;
        font-size: 0.8rem;
    }
}

/* 2. Event Section (Glitch Image & Content) */
@media (max-width: 850px) {
    .event-container {
        flex-direction: column;
        gap: 30px;
        padding: 40px 10px;
    }

    .nav-item {
        padding: 0;
    }
    
    .event-container .left-side .image-container {
        max-width: 320px; /* Prevent image from becoming too huge on mobile */
    }

    .event-container .right-side {
        text-align: center;
    }

    .terminal-box {
        font-size: 0.75rem;
        padding: 15px;
        margin: 20px 0;
    }
}

/* 3. About Section (Ambassador Card & Stats) */
@media (max-width: 968px) {
    .about-section {
        padding: 60px 5%;
    }

    .about-container {
        grid-template-columns: 1fr; /* Stack the text and card */
        gap: 40px;
    }

    .logo-hex-frame {
        width: 180px;
        height: 180px;
        margin: 0 auto 20px;
    }

    .core-logo {
        width: 100px;
    }

    .stat-grid {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ambassador-card {
        padding: 20px;
    }

    .image-wrapper {
        width: 140px;
        height: 140px;
        margin: 0 auto 20px;
    }

    .ambassador-name {
        font-size: 1.5rem;
    }

    .stat-num {
        font-size: 1.5rem;
    }
}

/* 4. Glimpses Grid (Bento/Mosaic layout scaling) */
@media (max-width: 768px) {
    .glimpses-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
    }
    
    .glitch-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 480px) {
    .glimpses-grid {
        grid-template-columns: 1fr; /* Single column on small phones */
    }
    
    .video-wrapper {
        margin-bottom: 40px;
    }
}

/* 5. Events Archive & Team Grid */
@media (max-width: 600px) {
    
    .event-poster {
        height: 180px;
    }

    .event-details h3 {
        font-size: 1.4rem;
    }

    .team-grid {
        grid-template-columns: 1fr; /* Stack team members on mobile */
        padding: 0 20px;
    }
}

/* 6. Footer Layout Refinement */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr; /* Two columns for tablets */
    }
    .footer-col:first-child {
        grid-column: span 2;
    }
}

.actions-ignitia {
    display: flex; justify-content: center; gap: 20px; margin-top: 20px;
}

@media (max-width: 600px) {
    .actions-ignitia{
        flex-direction: column !important;
    }
    .footer-grid {
        grid-template-columns: 1fr; /* Single column for mobile */
        text-align: center;
    }
    
    .footer-col:first-child {
        grid-column: span 1;
    }

    .system-status{
        justify-content: center;
        align-items: center;
    }

    .system-status .status-dot {
        margin-top: 7px;
    }

    .footer-desc {
        margin: 20px auto;
    }

    .footer-socials {
        justify-content: center;
    }

    .newsletter-box {
        flex-direction: column;
        background: transparent;
        border: none;
    }

    .tech-btn {
        width: 100%;
    }

    .newsletter-box input {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: 10px;
        border-radius: 5px;
    }
}

/* 7. Utility: Hide Cursor on Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
    html, body {
        cursor: auto !important;
    }
}


/* 1) Allow flex children to shrink properly */
.event-card, .event-container {
  /* ensure flex children can wrap/shrink on small screens */
  display: flex;
  flex-wrap: wrap;
}

/* allow the poster to be fluid on small screens */
.event-poster {
  width: 100%;
  max-width: 350px;   /* visual limit on wide screens */
  min-width: 0;       /* IMPORTANT: lets the flex item shrink below content width */
  height: auto;
  box-sizing: border-box;
}

/* make sure images don't force width */
.event-poster img,
.image-container img,
.grid-item img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* 2) Avoid using 100vw for on-screen overlays (nav) */
.nav-links {
  width: max-content;        /* use % instead of 100vw */
  left: 0;
  right: 0;
  box-sizing: border-box;
}

.nav-links.active {
  width: 100%;              /* expand to full width when active */
  padding: 20px;            /* add some padding for touch targets */
}

/* 3) Reduce large side paddings on very small screens */
@media (max-width: 480px) {
  .event-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .event-details {
    padding: 20px;
  }
}

/* 4) Extra safety: make sure root/body can't be expanded by a child */
html, body {
  overflow-x: hidden; /* you already have this — keep it */
}

/* 5) If you still see overflow, add this temporary debug helper */
body.show-outline * { outline: 1px dashed rgba(255,0,0,0.12); }


/* --- SABOTEUR SECTION ATMOSPHERICS --- */

#saboteur {
    position: relative;
    overflow: hidden;
    transition: background-color 0.1s;
}

/* Lightning Flash Effect */
.lightning-flash {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 10;
}

/* Raindrop Styling */
.rain-drop {
    position: absolute;
    background: linear-gradient(to bottom, rgba(0, 242, 255, 0) 0%, rgba(0, 242, 255, 1) 100%);
    width: 2px;
    height: 80px;
    pointer-events: none;
    z-index: 1;
    opacity: 0.5;
}

/* Optional: Make the button pulse during lightning */
#saboteur.lightning-active .horror-btn {
    box-shadow: 0 0 30px var(--accent-color);
    transform: scale(1.05);
}