:root {
    --bg-color: #ffffff;
    --card-bg: rgba(0, 0, 0, 0.03);
    --text-primary: #0a0a0f;
    --text-secondary: #555555;
    --accent-primary: #00bcd4; /* Darker Cyan for visibility on white */
    --accent-secondary: #9c27b0; /* Darker Purple for visibility on white */
    --accent-gold: #d4af37;
    --font-heading: 'Orbitron', sans-serif;
    --font-classy: 'Cinzel', serif;
    --font-logo: 'Jost', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}


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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Custom Cursor Glow */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.1) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    mix-blend-mode: screen;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .cursor-glow {
        display: none;
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: none;
}

/* ── Slide Motion Ticker ── */
.slide-motion-line {
    position: fixed;
    top: 92px;
    left: 0;
    width: 100%;
    height: 40px;
    z-index: 1001;
    overflow: hidden;
    pointer-events: none;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ticker-track {
    display: flex;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    animation: tickerScroll 20s linear infinite;
    will-change: transform;
    pointer-events: auto; /* Enable clicking on links */
}

/* Pause animation on hover for easier clicking */
.ticker-track:hover {
    animation-play-state: paused;
}

.ticker-item {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #ffffff;
    padding: 0 2rem;
    position: relative;
    text-decoration: none; /* For links */
}

.ticker-item.highlight {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.6);
}

.ticker-item.cta {
    position: relative;
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.6);
    animation: neonPulse 1.5s ease-in-out infinite alternate;
    cursor: pointer;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.ticker-item.cta:hover {
    text-shadow: 0 0 20px rgba(0, 188, 212, 0.9), 0 0 40px rgba(0, 188, 212, 0.6);
    transform: scale(1.1);
    z-index: 10;
}

.ticker-sep {
    color: var(--accent-secondary);
    font-size: 1rem;
    padding: 0 0.5rem;
    opacity: 1;
    text-shadow: 0 0 5px rgba(156, 39, 176, 0.8);
}

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes neonPulse {
    from { 
        text-shadow: 0 0 10px rgba(0, 188, 212, 0.6), 0 0 20px rgba(0, 188, 212, 0.4); 
    }
    to { 
        text-shadow: 0 0 5px rgba(0, 188, 212, 0.4), 0 0 10px rgba(0, 188, 212, 0.2); 
    }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: var(--transition);
}

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

.nav-links a:hover {
    color: var(--accent-primary);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

/* Nav Register Button */
.nav-links .nav-btn-register {
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff !important;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-shadow: none !important;
}

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

.nav-links .nav-btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 39, 176, 0.5);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    color: #fff !important;
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Start from top instead of center */
    text-align: center;
    position: relative;
    padding: 160px 20px 80px; /* Top padding to clear navbar + ticker */
    overflow: hidden;
}

#neural-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(188, 19, 254, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 80% 70%, rgba(0, 188, 212, 0.05) 0%, transparent 60%);
    z-index: -1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px; /* Limit width */
    margin: 0 auto;
}

.dept-name {
    font-size: 1.2rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 1rem;
    margin-top: 0;
    opacity: 0;
    animation: fadeInDown 1s ease forwards 0.2s;
}

.presents {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.5s;
}

.main-title {
    font-family: var(--font-classy);
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text-primary);
    text-shadow: 4px 4px 0px rgba(0, 188, 212, 0.1);
    opacity: 0;
    animation: scaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.8s;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1s;
}

/* Countdown Timer */
.countdown-timer {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
}

.time-block {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 90px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.time-block:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-primary);
}

.time-value {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.time-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .countdown-timer {
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    .time-block {
        min-width: 70px;
        padding: 0.8rem;
    }
    .time-value {
        font-size: 1.8rem;
    }
    .time-label {
        font-size: 0.7rem;
    }
}

/* Buttons */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.2s;
}

.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: transparent;
    border: 2px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--accent-primary);
    z-index: -1;
    transition: var(--transition);
}

.btn-primary:hover::before {
    width: 100%;
}

.btn-primary:hover {
    color: #000;
    box-shadow: 0 0 20px rgba(0, 188, 212, 0.2);
}

.btn-secondary {
    border: 2px solid rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.event-details {
    display: flex;
    justify-content: center;
    gap: 3rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1.4s;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Section Styles */
.section {
    padding: 6rem 5%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-secondary);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Event Cards */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.event-card {
    border-radius: 16px;
    padding: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Dark gradient overlay */
.event-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.65) 40%,
        rgba(0, 0, 0, 0.25) 100%
    );
    z-index: 1;
    transition: background 0.4s ease;
}

.event-card:hover::before {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.15) 100%
    );
}

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    width: 100%;
}

.event-card h3 {
    font-family: var(--font-classy);
    margin-bottom: 0.75rem;
    color: #ffffff;
    font-size: 1.4rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.event-card p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Per-card background images ── */

#card-bug-busters {
    background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?w=600&q=80');
}

#card-techvista {
    background-image: url('https://images.unsplash.com/photo-1475721027785-f74eccf877e2?w=600&q=80');
}

#card-brain-vs-bot {
    background-image: url('https://images.unsplash.com/photo-1677442136019-21780ecad995?w=600&q=80');
}

#card-blind-coding {
    background-image: url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?w=600&q=80');
}

#card-esports {
    background-image: url('https://images.unsplash.com/photo-1542751371-adc38448a05e?w=600&q=80');
}

#card-prompt-art {
    background-image: url('https://images.unsplash.com/photo-1547891654-e66ed7ebb968?w=600&q=80');
}

#card-ai-workshop {
    background-image: url('https://images.unsplash.com/photo-1485827404703-89b55fcc595e?w=600&q=80');
}

.btn-small {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
}

.btn-small:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

/* Venue Map */
.map-container {
    width: 100%;
    margin-top: 2rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); /* Softer shadow */
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    display: block;
    width: 100%;
    border: none;
    filter: saturate(1.1);
}

/* Alternate Background */
.alt-bg {
    background-color: #f8fbff; /* Very subtle cool tint */
}

/* Footer */
.footer {
    background: #f9f9f9;
    padding: 4rem 5% 1rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Keep as is or adjust if card grid is too cramp */
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    margin-bottom: 1.5rem;
    color: var(--accent-secondary);
}

.contact-list li {
    list-style: none;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.social-links {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-primary);
    text-decoration: none;
    opacity: 0.7;
    transition: var(--transition);
    font-size: 1rem;
}

.social-links a:hover {
    opacity: 1;
    color: var(--accent-primary);
}

/* Coordinators */
.coordinators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.coordinator-card {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.coordinator-card:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--accent-secondary);
}

.coord-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 188, 212, 0.2);
}

.coord-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coord-info h4 {
    color: var(--text-primary);
    font-family: var(--font-heading);
    margin-bottom: 0.2rem;
    font-size: 1.1rem;
}

.coord-info .role {
    color: var(--accent-gold);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.coord-info .phone {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Responsive Design */

/* Tablet & Smaller Laptops (max-width: 1024px) */
@media (max-width: 1024px) {
    .main-title { font-size: 5rem; }
    .hero { padding-top: 140px; }
    .section { padding: 4rem 5%; }
}

/* Tablets (max-width: 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .navbar { padding: 1rem 5%; }
    
    .hamburger { 
        display: block; 
        z-index: 1001;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        transition: var(--transition);
        backdrop-filter: blur(15px);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        margin: 1.5rem 0;
        opacity: 0;
        animation: fadeInUp 0.5s ease forwards;
    }

    /* Stagger animation for nav items */
    .nav-links li:nth-child(1) { animation-delay: 0.1s; }
    .nav-links li:nth-child(2) { animation-delay: 0.2s; }
    .nav-links li:nth-child(3) { animation-delay: 0.3s; }
    .nav-links li:nth-child(4) { animation-delay: 0.4s; }
    .nav-links li:nth-child(5) { animation-delay: 0.5s; }
    .nav-links li:nth-child(6) { animation-delay: 0.6s; }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--text-primary);
    }
    
    .nav-btn .nav-btn-register {
        font-size: 1.2rem;
        padding: 12px 30px;
    }

    /* Hero */
    .hero {
        padding-top: 120px;
        align-items: center; /* Center vertically if needed */
    }

    .main-title {
        font-size: 3.5rem;
        line-height: 1.1;
    }

    .dept-name {
        font-size: 1rem;
        letter-spacing: 2px;
    }

    .countdown-timer {
        gap: 1rem;
    }
    
    .time-block {
        padding: 0.8rem;
        min-width: 70px;
    }
    
    .time-value {
        font-size: 2rem;
    }

    /* Event Cards */
    .events-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Mobile Devices (max-width: 480px) */
@media (max-width: 480px) {
    /* Navbar */
    .logo img { height: 45px; }
    
    /* Hero */
    .hero {
        padding: 140px 20px 60px; /* Increased top padding to clear fixed header + ticker */
        align-items: flex-start;
        text-align: center;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .tagline {
        font-size: 1rem;
    }

    /* Countdown */
    .countdown-timer {
        gap: 0.5rem;
    }

    .time-block {
        min-width: 60px;
        padding: 0.5rem;
    }

    .time-value {
        font-size: 1.5rem;
    }

    .time-label {
        font-size: 0.6rem;
    }

    /* Access Buttons */
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    /* Event Details */
    .event-details {
        flex-direction: column;
        gap: 1rem;
    }

    /* Sections */
    .section-title {
        font-size: 2rem;
    }
    
    .section-desc {
        font-size: 1rem;
        padding: 0 1rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-section h3 {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }
    
    .slide-motion-line {
        top: 76px; /* Adjust for smaller header height if needed */
    }
    
    .map-container iframe {
        height: 300px;
    }
}
