:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-cyan: #00f3ff;
    --accent-purple: #bc13fe;
    --neon-glow: 0 0 10px rgba(0, 243, 255, 0.5), 0 0 20px rgba(0, 243, 255, 0.3);
    
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor */
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* --- Utilities --- */
.highlight {
    color: var(--accent-cyan);
    text-shadow: var(--neon-glow);
}

.section {
    padding: 100px 5%;
    position: relative;
    z-index: 2;
}

.center { text-align: center; }

h1, h2, h3 { font-family: var(--font-display); text-transform: uppercase; }

a { text-decoration: none; color: inherit; }

/* --- Noise Overlay --- */
.noise-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.05;
    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)'/%3E%3C/svg%3E");
}

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}
.cursor-dot { width: 8px; height: 8px; background: var(--accent-cyan); }
.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid var(--accent-cyan);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* --- Navbar --- */
.navbar {
  padding: 15px 10px;
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  backdrop-filter: blur(15px);
  box-shadow: 0px 0px 20px rgba(227, 228, 237, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.1);
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  height: 65px;
}

.nav-container {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 0 25px;
  gap: 25px;
}

.navbar.hide {
  transform: translateX(-50%) translateY(-100%); /* Hide navbar upwards */
}


.logo {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 900;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    font-weight: 500;
    font-size: 16px;
    transition: 0.3s;
    letter-spacing: 1px;
}
.nav-item:hover { color: var(--accent-cyan); text-shadow: var(--neon-glow); }

.register-btn {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    font-family: var(--font-display);
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}
.register-btn:hover { background: var(--accent-cyan); color: #000; box-shadow: var(--neon-glow); }
.menu-toggle { display: none; font-size: 30px; }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
}

.hero-video-bg video {
    width: 100%; height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(5,5,5,0.4) 0%, rgba(5,5,5,1) 100%);
}

.hero-content {
    text-align: center;
    z-index: 1;
}

.hero-title {
    font-size: 8rem;
    font-weight: 900;
    line-height: 1;
    position: relative;
    color: #fff;
    mix-blend-mode: overlay;
    opacity: 0.9;
}

/* Glitch Effect */
.hero-title::before, .hero-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    opacity: 0.8;
}
.hero-title::before {
    color: var(--accent-cyan);
    z-index: -1;
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}
.hero-title::after {
    color: var(--accent-purple);
    z-index: -2;
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) reverse both infinite;
}

@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-2px, 2px) }
    40% { transform: translate(-2px, -2px) }
    60% { transform: translate(2px, 2px) }
    80% { transform: translate(2px, -2px) }
    100% { transform: translate(0) }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-top: 20px;
    letter-spacing: 5px;
    color: var(--accent-cyan);
    text-transform: uppercase;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-display);
    font-size: 12px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateX(-50%) translateY(0);}
    40% {transform: translateX(-50%) translateY(-10px);}
    60% {transform: translateX(-50%) translateY(-5px);}
}

/* --- About & Split Layout --- */
.split-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}
.split-layout.reverse { flex-direction: row-reverse; }

.text-block { flex: 1; }
.image-block { flex: 1; 
    padding-left: 150px;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 20px;
}

.lead-text { font-size: 1.2rem; color: #fff; margin-bottom: 20px; }

.cyber-frame {
    position: relative;
    width: 520px; height: auto;
    padding: 10px;
    border: 1px solid var(--accent-cyan);
    background: rgba(0, 243, 255, 0.05);
}
.cyber-frame img {
    width: 500px; height: auto;
    display: block;
    filter: grayscale(80%);
    transition: 0.5s;
}
.cyber-frame:hover img { filter: grayscale(0%); }

.cyber-btn {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 40px;
    background: var(--accent-purple);
    color: #fff;
    font-family: var(--font-display);
    letter-spacing: 2px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: 0.3s;
}
.cyber-btn:hover { background: var(--accent-cyan); color: #000; transform: translateY(-5px); }

.cyber-list { list-style: none; margin-top: 20px; }
.cyber-list li { margin-bottom: 10px; padding-left: 20px; position: relative; }
.cyber-list li::before {
    content: '>';
    position: absolute; left: 0; color: var(--accent-cyan);
}

.margin-top-large { margin-top: 150px; }

/* --- Horizontal Events --- */
.horizontal-section {
    overflow: hidden;
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, #050505, #0a0a0a);
}

.horizontal-scroll-wrapper {
    display: flex;
    align-items: center;
    padding-left: 100px;
    gap: 100px;
}

.horizontal-intro {
    min-width: 400px;
}
.horizontal-intro h2 { font-size: 5rem; line-height: 1; }

.card-item {
    width: 300px;
    height: 500px;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    transition: 0.3s;
}

.card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-inner img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-bottom: 1px solid var(--accent-cyan);
}

.card-content {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content h3 { color: var(--accent-cyan); margin-bottom: 15px; }
.card-content p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.small-btn {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.8rem;
    color: #fff;
    border-bottom: 1px solid var(--accent-purple);
    padding-bottom: 2px;
}

/* --- Itinerary --- */
.timeline-container {
    display: flex;
    justify-content: space-around;
    margin-top: 50px;
    position: relative;
}
.timeline-container::before {
    content: '';
    position: absolute;
    left: 50%; top: 0; bottom: 0;
    width: 2px;
    background: var(--accent-cyan);
    opacity: 0.3;
}

.day-column { width: 40%; }
.day-header {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--accent-purple);
    border: 1px solid var(--accent-purple);
    padding: 10px;
}

.timeline-item {
    background: var(--card-bg);
    margin-bottom: 20px;
    padding: 20px;
    border-left: 3px solid var(--accent-cyan);
    transition: 0.3s;
}
.timeline-item:hover { transform: translateX(10px); background: rgba(0, 243, 255, 0.1); }
.timeline-item .time { font-family: var(--font-display); color: var(--accent-cyan); font-size: 1.2rem; }
.timeline-item .event { font-weight: bold; font-size: 1.1rem; margin: 5px 0; }
.timeline-item .location { font-size: 0.9rem; color: var(--text-secondary); }

/* --- Team --- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.team-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    overflow: hidden;
    transition: 0.4s;
}
.team-card.lead { grid-column: 1 / -1; max-width: 400px; margin: 0 auto; }

.img-box {
    width: 100%;
    height: 300px;
    overflow: hidden;
}
.img-box img {
    width: 100%; height: 100%; object-fit: cover;
    transition: 0.5s;
    filter: grayscale(100%);
}
.team-card:hover .img-box img { transform: scale(1.1); filter: grayscale(0%); }

.info-box { padding: 20px; text-align: center; }
.info-box h3 { color: var(--accent-cyan); margin-bottom: 5px; }
.info-box p { color: var(--text-secondary); }

/* --- Sponsors Marquee --- */
.marquee {
    overflow: hidden;
    white-space: nowrap;
    background: rgba(255,255,255,0.05);
    padding: 40px 0;
}
.track {
    display: inline-block;
    animation: marquee 20s linear infinite;
}
.track img {
    height: 60px;
    margin: 0 40px;
    filter: grayscale(100%) brightness(200%);
    opacity: 0.7;
    transition: 0.3s;
}
.track img:hover { filter: grayscale(0%); opacity: 1; }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- NEW: Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.gallery-item {
    position: relative;
    height: 250px;
    overflow: hidden;
    cursor: none; /* Force custom cursor behavior */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: grayscale(0%);
}

.gallery-overlay {
    position: absolute;
    bottom: -60px; /* Hidden initially */
    left: 0;
    width: 100%;
    padding: 15px;
    background: linear-gradient(transparent, rgba(5, 5, 5, 0.95));
    color: var(--accent-cyan);
    font-family: var(--font-display);
    font-size: 1.2rem;
    text-transform: uppercase;
    text-align: center;
    transition: bottom 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    bottom: 0;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 50px;
}
.contact-col h3 { color: var(--accent-cyan); margin-bottom: 20px; }
.contact-col p { margin-bottom: 10px; color: var(--text-secondary); }
.map-frame { border: 1px solid var(--accent-cyan); filter: invert(1) hue-rotate(180deg); opacity: 0.8; }

.social-links { display: flex; gap: 20px; margin-top: 30px; }
.social-links a {
    font-size: 24px;
    width: 50px; height: 50px;
    border: 1px solid var(--accent-cyan);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}
.social-links a:hover { background: var(--accent-cyan); color: #000; }

footer {
    text-align: center;
    margin-top: 100px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .navbar { padding: 15px 20px; }
    .nav-links, .register-btn { display: none; }
    .menu-toggle { display: block; color: #fff; }
    
    .hero-title { font-size: 4rem; }
    
    .split-layout { flex-direction: column !important; }
    
    .horizontal-scroll-wrapper {
        flex-direction: column;
        height: auto;
        padding: 50px 20px;
        transform: none !important; /* Disable GSAP horiz scroll on mobile */
    }
    .horizontal-section { height: auto; display: block; }
    .card-item { width: 100%; min-width: auto; height: auto; }
    .card-inner img { height: 200px; }
    
    .timeline-container { flex-direction: column; }
    .timeline-container::before { left: 20px; }
    .day-column { width: 100%; margin-bottom: 40px; }
    .timeline-item { margin-left: 40px; }
    
    .contact-grid { grid-template-columns: 1fr; }
}





/* --- Adjust spacing between Gallery and Contact --- */
.gallery-section {
    padding-bottom: 0px; /* Removes the large 100px default bottom padding */
}

.contact-section {
    padding-top: 0px; /* Reduces the 100px default top padding for a tighter fit */
}

/* Mobile adjustment for the gap */
@media (max-width: 768px) {
    .gallery-section {
        padding-bottom: 10px;
    }
    .contact-section {
        padding-top: 30px;
    }
}