:root {
    --bg: #0b1020;
    --card: #121a33;
    --text: #e6e9f2;
    --muted: #a7afc6;
    --brand: #6ea8fe;
    --brand-strong: #4e89ff;
    --accent: #41d6c3;
    --divider: rgba(230,233,242,0.16);
}

/* Reset + base */
*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

.quantico-normal {
    font-family: "Quantico", sans-serif;
    font-weight: 400;
    font-style: normal;
}


body {
    margin: 0;
    color: var(--text);
    background:
            radial-gradient(1200px 600px at 10% -20%, rgba(78,137,255,0.20), transparent 60%),
            radial-gradient(1000px 500px at 100% 0%, rgba(65,214,195,0.16), transparent 60%),
            var(--bg);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
    line-height: 1.6;
}

.container {
    width: min(1200px, 92vw);
    margin-inline: auto;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
    background: linear-gradient(to bottom, rgba(11,16,32,0.85), rgba(11,16,32,0.55));
    border-bottom: 1px solid var(--divider);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 0;
}

.logo {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 1.125rem;
}

/* Navigation */
.nav { position: relative; }

.nav-list {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link,
.dropdown-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    padding: 10px 12px;
    border-radius: 8px;
    transition: background .2s ease, color .2s ease, transform .05s ease;
}

.nav-link:hover,
.dropdown-link:hover {
    background: rgba(110,168,254,0.12);
    color: #ffffff;
}

.nav-item.has-dropdown { position: relative; }

.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 6px;
    min-width: 220px;
    margin-top: 8px;
    padding: 8px;
    background: linear-gradient(180deg, rgba(18,26,51,0.96), rgba(18,26,51,0.88));
    border: 1px solid var(--divider);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    list-style: none;
}

.nav-item.has-dropdown:hover > .dropdown,
.nav-item.has-dropdown:focus-within > .dropdown {
    display: block;
}

.dropdown li { margin: 0; }

.dropdown-link {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    display: block;
}

.dropdown-link:focus,
.dropdown-link:hover {
    background: rgba(78,137,255,0.18);
    color: #fff;
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    height: 40px;
    width: 44px;
    background: transparent;
    border: 1px solid var(--divider);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    gap: 3px;
    cursor: pointer;
    color: var(--text);
}

.nav-toggle .bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* Hero */
.hero {
    align-items: center;
    align-content: center;
    text-align: center;
    padding: 72px 0 40px;
    background:
            radial-gradient(800px 320px at 65% -10%, rgba(78,137,255,0.20), transparent 60%),
            radial-gradient(600px 240px at 10% 0%, rgba(65,214,195,0.16), transparent 60%);
}

.hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 2.5vw + 1.2rem, 3rem);
    line-height: 1.1;
}

/* Ensures countdown appears BETWEEN text and banner */
.banner-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin: 20px 0 10px 0;  /* spacing above and below */
}

#innohack-section {
    background: linear-gradient(135deg, #8e2de2, #4a00e0); /* Futuristic gradient background */
    padding: 50px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
}

.sponsors-section {
    margin-top: 40px;
    text-align: center;
    color: #fff;
}

.section-title {
    font-size: 24px;
    font-weight: bold;
    color: #00d0ff;  /* Matches the existing prize pool title */
    margin-bottom: 20px;
}

.sponsors {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;  /* Adjust gap between sponsor logos */
}

.sponsor {
    text-align: center;
}

.sponsor-logo {
    width: 120px;  /* Adjust logo size */
    height: auto;
    margin-bottom: 10px;
    border-radius: 3px;
}

.sponsor-name {
    font-size: 16px;
    color: #f4f4f4;
    font-weight: normal;
}

.innohack-image img {
    max-width: 80%; /* Adjust max-width for desktop */
    width: auto;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.innohack-image img:hover {
    transform: scale(1.05);
}

@media screen and (max-width: 768px) {
    #innohack-section {
        text-align: center;
    }

    .innohack-image img {
        max-width: 100%; /* Make it full-width on mobile devices */
    }
}


/* FUTURISTIC COUNTDOWN */
.countdown-timer {
    padding: 16px 32px;
    font-size: 2rem;
    font-weight: 700;
    color: #00faff;

    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);

    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 18px;

    text-shadow:
            0 0 20px #00faff,
            0 0 40px #00faff,
            0 0 50px #00faff;

    box-shadow:
            0 0 24px rgba(0, 255, 255, 0.45),
            0 0 60px rgba(0, 255, 255, 0.35);

    animation: pulseGlow 2.4s infinite ease-in-out;
}

/* Big neon pulsating glow */
@keyframes pulseGlow {
    0% {
        box-shadow:
                0 0 20px rgba(0, 255, 255, 0.4),
                0 0 50px rgba(0, 255, 255, 0.25);
    }
    50% {
        box-shadow:
                0 0 35px rgba(0, 255, 255, 0.7),
                0 0 90px rgba(0, 255, 255, 0.5);
    }
    100% {
        box-shadow:
                0 0 20px rgba(0, 255, 255, 0.4),
                0 0 50px rgba(0, 255, 255, 0.25);
    }
}


/* DESKTOP Rectangle Banner */
@media (min-width: 1024px) {
    .hero-banner {
        width: 90%;
        height: 260px;
        display: block;
        margin: 0 auto;
        border-radius: 20px;
        object-fit: cover;
        object-position: center;
        box-shadow: 0 0 40px rgba(0,0,0,0.35);
    }

    .countdown-timer {
        font-size: 2.4rem;
        padding: 20px 40px;
    }
}

/* Hero Banner Styling */
.hero-image {
    margin-top: 24px;
}

/* Mobile-first: full width, natural aspect ratio */
.hero-banner {
    width: 100%;
    height: auto;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 0 40px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
}

/* Laptop/Desktop: force rectangular banner shape */
@media (min-width: 1024px) {
    .hero-banner {
        width: 90%;               /* Size inside page */
        height: 260px;            /* Controls rectangle shape */
        display: block;
        margin: 0 auto;
        border-radius: 20px;
        object-fit: cover;        /* Crops top/bottom nicely */
        object-position: top;  /* Keeps center part visible */
    }
}

.futuristic-prizes {
    padding: 60px 20px;
    background: radial-gradient(circle at center, #0b0f29, #000212);
    text-align: center;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
}

/* Futuristic Glow Orbs */
.futuristic-prizes::before,
.futuristic-prizes::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: rgba(0, 247, 255, 0.15);
    filter: blur(120px);
    z-index: 0;
    border-radius: 50%;
}
.futuristic-prizes::before {
    top: -100px;
    left: -100px;
}
.futuristic-prizes::after {
    bottom: -100px;
    right: -100px;
}

.fp-heading h2 {
    font-size: 42px;
    margin-bottom: 10px;
    text-shadow: 0 0 15px #08f7fe;
}

.fp-sub {
    font-size: 20px;
}
.fp-sub span {
    color: #08f7fe;
    font-weight: bold;
    text-shadow: 0 0 8px #08f7fe;
}

.fp-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
}

.fp-card {
    width: 260px;
    padding: 30px 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.2);
    transition: transform 0.3s, box-shadow 0.3s;
}

.fp-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 247, 255, 0.4);
}

.fp-card h3 {
    font-size: 26px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px currentColor;
}

.amount {
    font-size: 34px;
    font-weight: bold;
    text-shadow: 0 0 12px currentColor;
}

/* Color Themes */
.gold { color: #ffd700; border-color: #ffd70055; }
.silver { color: #c0c0c0; border-color: #c0c0c055; }
.bronze { color: #cd7f32; border-color: #cd7f3255; }

.track-info {
    margin-top: 35px;
    font-size: 16px;
    color: #9fb3c8;
}


.lead {
    margin: 0;
    color: var(--muted);
    font-size: clamp(1rem, 0.5vw + 0.9rem, 1.2rem);
}

/* Sections */
.section { padding: 40px 0; }

.instructions h2,
.registration h2 {
    margin: 0 0 14px;
    font-size: clamp(1.25rem, 0.7vw + 1rem, 1.75rem);
}

.instruction-list {
    margin: 0;
    padding-left: 18px;
}

.instruction-list li + li { margin-top: 6px; }

.note { margin-top: 12px; color: var(--muted); }

.spacer .divider {
    border: 0;
    height: 1px;
    background: var(--divider);
}

/* Rules & Guidelines section */
.rules h2 {
    margin: 0 0 10px;
    font-size: clamp(1.35rem, 0.9vw + 1.1rem, 1.9rem);
}

.rules .meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 12px 0 20px;
    color: var(--muted);
}

.rules .meta p {
    margin: 0;
}

/* Vertical blocks */
.rules-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.rule-block {
    padding: 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--divider);
    border-left: 4px solid var(--brand);
    border-radius: 12px;
}

.rule-block h3 {
    margin: 0 0 10px;
    font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.35rem);
}

.rule-block h4 {
    margin: 8px 0;
    font-size: 1rem;
    color: #fff;
}

.rule-block p {
    margin: 0 0 10px;
    color: var(--muted);
}

.rule-block ul,
.rule-block ol {
    margin: 0 0 8px 18px;
    padding: 0;
}

.rule-block li + li {
    margin-top: 6px;
}

.rules .timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 12px;
}

.rules .timeline-day {
    padding-left: 12px;
    border-left: 2px dashed var(--divider);
}

.rules .timeline-day h4 {
    margin-top: 0;
}

/* Responsive Google Form embed */
.responsive-iframe {
    position: relative;
    width: 100%;
    padding-top: min(1400px, 140%);
    background: white;
    border: 1px solid var(--divider);
    border-radius: 12px;
    overflow: hidden;
}

.responsive-iframe iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--divider);
    padding: 24px 0 40px;
    margin-top: 28px;
    color: var(--muted);
    background: linear-gradient(to top, rgba(11,16,32,0.7), rgba(11,16,32,0));
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.footer-nav a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 14px;
}

.footer-nav a:hover { color: #fff; }

/* Responsive */
@media (max-width: 900px) {
    .nav-toggle { display: inline-flex; }

    .nav {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        transform-origin: top center;
        transform: scaleY(0.98);
        opacity: 0;
        visibility: hidden;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
        background: linear-gradient(180deg, rgba(18,26,51,0.98), rgba(18,26,51,0.92));
        border-bottom: 1px solid var(--divider);
    }

    .nav.open {
        opacity: 1;
        visibility: visible;
        transform: scaleY(1);
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
    }

    .nav-item.has-dropdown { width: 100%; }

    .dropdown {
        position: static;
        display: none;
        margin: 6px 0 0 0;
        padding: 6px;
        background: rgba(255,255,255,0.02);
        border: 1px solid var(--divider);
    }

    .nav-item.has-dropdown.open > .dropdown { display: block; }

    .responsive-iframe { padding-top: 160%; }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
    }
}