@media (min-width: 1024px) {
    /* ...existing code... */
    .btn-primary {
        width: auto;
        min-width: 220px;
        max-width: 400px;
        font-size: 1.3rem;
        padding: 1.2rem 3rem;
        margin: 0 auto;
        display: inline-block;
    }
    .switch-plate {
        right: 3rem;
        bottom: 3rem;
        transform: scale(1.3);
    }
    .switch-housing {
        width: 120px;
        height: 60px;
    }
    .switch-knob {
        width: 48px;
        height: 48px;
    }
}
@media (min-width: 1024px) {
    /* ...existing code... */
    .masonry-grid {
        column-count: 4;
        column-gap: 24px;
        margin: 0 auto 2rem auto;
        max-width: 1100px;
    }
    .masonry-item img {
        max-height: 180px;
        border-radius: 10px;
        box-shadow: 0 2px 12px 0 rgba(109, 40, 217, 0.08);
    }
}
@media (min-width: 1024px) {
    /* ...existing code... */
    #schedule {
        max-width: 900px;
        margin: 0 auto 4rem auto;
        border-radius: 18px;
        padding: 3rem 4rem;
        background: rgba(255,255,255,0.03);
    }
    .schedule-toggle {
        max-width: 400px;
        margin: 0 auto 2.5rem auto;
        padding: 10px;
    }
    #timeline {
        margin-left: 0;
        padding-left: 2.5rem;
        border-left: 2px solid var(--border-color);
    }
}
@media (min-width: 1024px) {
    /* ...existing code... */
    .event-card {
        display: grid;
        grid-template-columns: 220px 1fr;
        align-items: stretch;
        min-height: 180px;
        gap: 0;
        box-shadow: 0 2px 16px 0 rgba(109, 40, 217, 0.07);
    }
    .card-img {
        width: 220px;
        height: 180px;
        min-height: 180px;
        border-radius: 0;
        object-fit: cover;
        margin: 0;
        opacity: 0.9;
    }
    .card-body {
        flex: unset;
        padding: 2rem 2.5rem 2rem 2rem;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        min-width: 0;
    }
}
@media (min-width: 1024px) {
    /* ...existing code... */
    .hero-effects {
        /* Add more shapes and effects for desktop */
    }
    .shape-1 {
        width: 140px;
        height: 140px;
        top: 10%;
        left: 5%;
        border-width: 3px;
    }
    .shape-2 {
        width: 180px;
        height: 180px;
        bottom: 10%;
        right: 10%;
        border-width: 3px;
    }
    .shape-3 {
        position: absolute;
        top: 60%;
        left: 20%;
        width: 100px;
        height: 100px;
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        border: 2px solid var(--accent-end);
        opacity: 0.5;
        animation: spin 25s linear infinite;
        z-index: 2;
    }
    .shape-4 {
        position: absolute;
        top: 30%;
        right: 25%;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        border: 2px dashed var(--accent-start);
        opacity: 0.4;
        animation: spin 40s linear infinite reverse;
        z-index: 2;
    }
    .neon-line {
        width: 180%;
        left: -40%;
        height: 120px;
        bottom: 5%;
        opacity: 0.4;
    }
    .hero-overlay {
        background: radial-gradient(circle at 60% 40%, rgba(11,11,13,0.4) 0%, rgba(0,0,0,1) 90%);
    }
}
/* --- CORE VARIABLES --- */
:root {
    --bg-color: #0B0B0D;
    --text-primary: #FFFFFF;
    --text-muted: #9CA3AF;
    --accent-start: #6D28D9;
    --accent-end: #9333EA;
    --accent-glow: rgba(109, 40, 217, 0.4);
    --border-color: rgba(255, 255, 255, 0.08);
    --font-primary: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container-width: 420px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    background-color: #000;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 16px;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* --- MOBILE CONTAINER --- */
#app {
    width: 100%;
    max-width: var(--container-width);
    background: var(--bg-color);
    position: relative;
    min-height: 100vh;
    box-shadow: 0 0 30px rgba(109, 40, 217, 0.1);
    overflow: hidden;
    border-left: 1px solid #222;
    border-right: 1px solid #222;
}

/* --- GLOBAL UTILS --- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
.mono { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.gradient-text {
    background: linear-gradient(135deg, #fff 30%, var(--accent-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
section { padding: 4rem 1.5rem; border-top: 1px solid var(--border-color); position: relative; z-index: 2; }
img { display: block; max-width: 100%; object-fit: cover; }

/* --- NEW HERO SECTION STYLING --- */
header {
    min-height: 95vh;
    display: flex; flex-direction: column;
    justify-content: center; align-items: center;
    text-align: center;
    position: relative; 
    overflow: hidden;
    padding: 2rem;
    background: #000;
}

/* 1. BACKGROUND COLLAGE LAYER */
.hero-collage {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    opacity: 0.7; /* A bit more visible */
}

.collage-item {
    position: absolute;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 25px rgba(0,0,0,0.7);
}

.collage-img { 
    width: 100%; height: 100%; object-fit: cover; 
    filter: grayscale(100%) contrast(1.2);
    mix-blend-mode: luminosity;
    opacity: 0.5;
    transition: transform 0.4s ease;
}

.collage-item:hover .collage-img {
    transform: scale(1.1);
}

/* For color splashes */
.collage-item.color-splash {
    border-color: var(--accent-end);
}
.collage-item.color-splash .collage-img {
    filter: none;
    mix-blend-mode: normal;
    opacity: 0.7;
}

/* 2. OVERLAYS & GRAIN */
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    /* The "Greyish Overlay" + Vignette */
    background: radial-gradient(circle at center, rgba(11,11,13,0.6) 0%, rgba(0,0,0,1) 90%);
}
.hero-grain {
    position: absolute; inset: 0; z-index: 1;
    opacity: 0.15;
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* 3. HERO EFFECTS & SHAPES */
.hero-effects {
    position: absolute;
    inset: 0;
    z-index: 2; /* Above collage, below tape */
    pointer-events: none;
}
.shape {
    position: absolute;
    border: 2px solid rgba(255,255,255,0.2);
}
.shape-1 {
    top: 15%; left: 10%;
    width: 80px; height: 80px;
    border-radius: 50%;
    border-style: dashed;
    animation: spin 30s linear infinite;
}
.shape-2 {
    bottom: 20%; right: 15%;
    width: 120px; height: 120px;
    border-right: none;
    border-bottom: none;
    border-top-color: var(--accent-end);
    animation: spin 20s linear infinite reverse;
}
.neon-line {
    position: absolute;
    bottom: 10%;
    left: -10%;
    width: 120%;
    height: 80px;
    background: linear-gradient(var(--accent-start), transparent);
    filter: blur(10px);
    opacity: 0.3;
}

@keyframes spin { 
    from { transform: rotate(0deg); } 
    to { transform: rotate(360deg); } 
}

/* 3. POLICE TAPE BANNER */
.police-tape {
    position: absolute;
    top: 45%; left: -50%; width: 200%; height: 40px;
    background: rgba(147, 51, 234, 0.15); /* Faded Purple */
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
    z-index: 3;
    transform: rotate(-15deg);
    display: flex; align-items: center;
    overflow: hidden;
    pointer-events: none;
    backdrop-filter: blur(2px);
    box-shadow: 0 0 20px var(--accent-glow);
}
.tape-text {
    white-space: nowrap;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 4px;
    animation: tapeScroll 10s linear infinite;
    text-shadow: 0 0 5px rgba(255,255,255,0.5);
}
@keyframes tapeScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- POLICE TAPE VARIATIONS --- */
.police-tape.reverse .tape-text {
    animation-direction: reverse;
}

.police-tape.right-slanted {
    transform: rotate(5deg);
    top: 80%;
}

.police-tape.small {
    height: 25px;
    top: 70%;
}
.police-tape.small .tape-text {
    font-size: 0.7rem;
}

.police-tape.large {
    height: 60px;
    top: 20%;
    transform: rotate(5deg);
}
.police-tape.large .tape-text {
    font-size: 1.5rem;
    animation-duration: 15s;
}

/* 4. SPARKLES (JS Generated) */
.sparkle-container {
    position: absolute; inset: 0; z-index: 3; pointer-events: none;
}
.sparkle {
    position: absolute;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 4px 1px rgba(255,255,255,0.8);
    animation: twinkle var(--duration) ease-in-out infinite;
    opacity: 0;
}
@keyframes twinkle { 0% { transform: scale(0); opacity: 0; } 50% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(0); opacity: 0; } }

/* 5. HERO CONTENT (Top Layer) */
.hero-content { position: relative; z-index: 10; width: 100%; }

.logo-wrap {
    position: relative; width: 100px; height: 100px; margin: 0 auto 2rem;
}
.hero-logo {
    width: 100%; height: 100%;
    filter: drop-shadow(0 0 25px var(--accent-glow));
    animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 4rem;
    text-transform: uppercase;line-height: 0.9; margin-bottom: 0.5rem;
    position: relative;
    text-shadow: 0 0 30px rgba(147, 51, 234, 0.3);
}
.hero-title span {
    display: block; opacity: 0; transform: translateY(20px);
    animation: clipReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes clipReveal { to { opacity: 1; transform: translateY(0); } }

.hero-subtitle {
    font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase;
    color: var(--text-muted); margin-bottom: 3rem; font-weight: 700;
}

.cta-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1rem; border-radius: 12px;
    backdrop-filter: blur(10px); width: 100%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* --- COUNTDOWN HOUSING --- */
#countdown-housing {
    background: #1a1a1d; /* Dark grey, old computer color */
    border: 2px solid #4e4e50; /* Darker grey border */
    border-radius: 12px;
    padding: 35px 20px;
    margin: 0 auto 2rem;
    box-shadow: inset 0 0 15px rgba(0,0,0,0.5), 0 2px 2px rgba(0,0,0,0.3);
    position: relative;
    max-width: 380px;
}

#countdown-housing::before {
    content: 'CHRONO-TIMER // MODEL: 2.6';
    position: absolute;
    top: 5px;
    left: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: #888;
}

#countdown-housing::after {
    content: '';
    position: absolute;
    bottom: 8px;
    right: 15px;
    width: 10px;
    height: 10px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 5px #ff0000;
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* --- VACUUM TUBE COUNTDOWN --- */
#countdown {
    display: flex;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    justify-content: center;
}

.segment {
    background: #1A0000; /* Dark red background */
    padding: 5px 10px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #FF4444;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.5), inset 0 0 5px rgba(255, 0, 0, 0.3);
    min-width: 60px;
}

.digits {
    color: #FF8888;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 0 3px #FF0000, 0 0 6px #FF0000, 0 0 10px #FF0000;
    display: block;
}

.unit {
    font-size: 0.7rem;
    color: #FF4444;
}
.btn-primary {
    background: linear-gradient(45deg, var(--accent-start), var(--accent-end));
    color: var(--text-primary);
    width: 100%; padding: 1rem; border-radius: 8px;
    font-weight: 800; text-transform: uppercase; text-decoration: none;
    display: block;
    border: none;
    box-shadow: 0 0 20px var(--accent-glow);
    animation: light-bounce 3s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 30px var(--accent-glow);
}

.btn-primary:active { 
    transform: scale(0.98); 
    animation-play-state: paused;
}

.footer-social-link {
    color: var(--text-muted);
    margin: 0 1rem;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-social-link:hover {
    color: var(--text-primary);
}

@keyframes light-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* --- RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 360px) {
    #countdown-housing {
        padding: 25px 15px;
        margin: 0 1rem 2rem; /* Add some margin on sides */
    }
    #countdown {
        gap: 5px;
    }
    .segment {
        min-width: 0; /* Let it shrink */
        flex: 1; /* Distribute space evenly */
        padding: 8px 4px;
    }
    .digits {
        font-size: 1.2rem;
    }
    .unit {
        font-size: 0.6rem;
    }
}

@media (min-width: 1024px) {
    body {
        justify-content: stretch;
        font-size: 20px;
    }
    #app {
        max-width: 1400px;
        min-height: 100vh;
        margin: 2rem auto;
        border-radius: 24px;
        box-shadow: 0 0 80px 0 rgba(109, 40, 217, 0.18);
        border-left: none;
        border-right: none;
    }
    header {
        min-height: 70vh;
        padding-top: 4rem;
        padding-bottom: 4rem;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 3rem;
    }
    .hero-collage {
        width: 50%;
        min-height: 500px;
        position: relative;
        left: 0;
        top: 0;
    }
    .hero-content {
        width: 50%;
        margin: 0;
        padding-left: 2rem;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
    }
    .hero-title {
        font-size: 6rem;
        text-align: left;
        margin-bottom: 1.5rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        text-align: left;
    }
    .logo-wrap {
        width: 180px;
        height: 180px;
        margin: 0 0 2rem 0;
    }
    .hero-logo {
        width: 180px;
        height: 180px;
    }
    .police-tape {
        height: 60px;
        font-size: 2rem;
        left: 0;
        width: 100%;
        top: 10%;
        transform: rotate(-3deg);
    }
    .tape-text {
        font-size: 1.5rem;
    }
    section, footer {
        padding-left: 5rem;
        padding-right: 5rem;
    }
    .about-text {
        font-size: 1.5rem;
    }
    .masonry-grid {
        column-count: 4;
        column-gap: 30px;
    }
    .stat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .sheet {
        max-width: 700px;
    }
    #modal {
        align-items: center;
    }
    .sponsors-marquee {
        margin-left: auto;
        margin-right: auto;
        max-width: 1100px;
    }
    .filter-scroller {
        justify-content: center;
        margin: 0 0 1.5rem 0;
        padding-left: 0;
    }
    .filter-btn {
        font-size: 1.2rem;
        padding: 0.9rem 2.5rem;
    }
    .about-srishti {
        font-size: 1.3rem;
    }
    footer {
        padding-left: 8rem;
        padding-right: 8rem;
    }
}

/* --- REMAINING SECTIONS (Unchanged) --- */
.event-card {
    background: #111; border-radius: 16px; overflow: hidden;
    border: 1px solid var(--border-color); margin-bottom: 1.5rem;
    transition: transform 0.2s;
}
.event-card:active { transform: scale(0.98); }
.card-img { height: 160px; width: 100%; object-fit: cover; opacity: 0.8; }
.card-body { padding: 1.25rem; }
.tag {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    padding: 4px 8px; border-radius: 4px; background: rgba(255,255,255,0.1);
    color: var(--accent-end); display: inline-block; margin-bottom: 0.5rem;
}

.filter-scroller {
    display: flex; gap: 0.8rem; overflow-x: auto; padding-bottom: 1rem;
    margin: 0 -1.5rem 1.5rem; padding-left: 1.5rem; scrollbar-width: none;
}
.filter-btn {
    background: transparent; border: 1px solid var(--border-color);
    color: var(--text-muted); padding: 0.5rem 1.2rem; border-radius: 100px;
    white-space: nowrap; font-size: 0.9rem; transition: 0.3s;
}
.filter-btn.active { background: var(--text-primary); color: #000; border-color: #fff; }

.masonry-grid { column-count: 2; column-gap: 10px; }
.masonry-item { break-inside: avoid; margin-bottom: 10px; border-radius: 8px; overflow: hidden; }
.masonry-item img { width: 100%; display: block; transition: filter 0.3s; }

.marquee-wrap { overflow: hidden; white-space: nowrap; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.marquee-content { display: inline-flex; animation: scroll 15s linear infinite; }
.sponsor-logo { height: 40px; margin: 0 2rem; opacity: 0.5; filter: grayscale(1); }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.about-text { font-size: 1.1rem; line-height: 1.6; color: #ddd; margin-bottom: 1.5rem; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.stat-box { background: rgba(255,255,255,0.03); padding: 1rem; border-radius: 8px; border-left: 2px solid var(--accent-end); }
.stat-num { font-size: 1.5rem; font-weight: 800; display: block; }

#modal {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,0.9); backdrop-filter: blur(5px);
    opacity: 0; pointer-events: none; transition: 0.3s;
    display: flex; align-items: flex-end;
}
#modal.active { opacity: 1; pointer-events: all; }
.sheet {
    background: #111; width: 100%; max-width: 420px; margin: 0 auto;
    border-radius: 24px 24px 0 0; border: 1px solid var(--border-color);
    transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    max-height: 90vh; overflow-y: auto;
}
#modal.active .sheet { transform: translateY(0); }
.sheet-img { width: 100%; height: 200px; object-fit: cover; }
.sheet-body { padding: 2rem; }

#schedule { background: rgba(255,255,255,0.02); }
.schedule-toggle {
    display: flex; justify-content: center; background: rgba(0,0,0,0.2);
    border: 1px solid var(--border-color); border-radius: 12px;
    padding: 6px; max-width: 250px; margin: 0 auto 2.5rem auto;
}
.day-btn {
    flex: 1; padding: 0.7rem 0; background: transparent; border: none;
    color: var(--text-muted); font-size: 0.9rem; font-weight: 700;
    border-radius: 8px; transition: all 0.3s; cursor: pointer;
}
.day-btn.active {
    background: var(--accent-end); color: var(--text-primary);
    box-shadow: 0 4px 15px -2px var(--accent-glow); transform: translateY(-2px);
}
#timeline { position: relative; padding: 1rem 0 0 0; margin-left: 4.5rem; border-left: 2px solid var(--border-color); }
.timeline-item { position: relative; padding: 0 0 2.5rem 1.75rem; }
.timeline-item::before {
    content: ''; position: absolute; left: -10px; top: 5px; width: 18px; height: 18px;
    border-radius: 50%; background: var(--bg-color); border: 3px solid var(--border-color); transition: all 0.3s;
}
.timeline-item:hover::before { border-color: var(--accent-end); transform: scale(1.1); }
.timeline-item h4 { font-size: 1.2rem; font-weight: 600; line-height: 1.2; margin-bottom: 0.25rem; color: var(--text-primary); }
.timeline-item .time { position: absolute; left: -5.5rem; top: 2px; font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; color: var(--text-muted); }
.timeline-item .timeline-cat { font-size: 0.8rem; font-weight: 600; color: var(--accent-end); }

.about-srishti {
    display: flex;
    flex-wrap: wrap;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ddd;
    margin-bottom: 1.5rem;
}

.about-srishti span {
    margin: 0;
    transition: all 0.3s;
}

.about-srishti span:hover {
    color: var(--accent-end);
    cursor: pointer;
}

.about-srishti span:nth-child(5n) {
    font-weight: 900;
    background: linear-gradient(135deg, #fff 30%, var(--accent-end) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-srishti span:nth-child(12n) {
    text-decoration: none;
    background-image: linear-gradient(135deg, var(--accent-start), var(--accent-end));
    background-repeat: no-repeat;
    background-size: 100% 1px;
    background-position: 0 100%;
}

