/* ═══════════════════════════════════════════════════════════
   Hackathon Public Page — Premium Theme v2.0
   Modern, Professional & Attractive Design System
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── Design Tokens ─── */
:root {
    /* Enterprise Stealth Palette */
    --hack-primary: #3b82f6;
    /* Royal Blue */
    --hack-primary-rgb: 59, 130, 246;
    --hack-secondary: #10b981;
    /* Emerald */
    --hack-secondary-rgb: 16, 185, 129;
    --hack-accent: #6366f1;
    /* Indigo */
    --hack-accent-rgb: 99, 102, 241;

    /* Backgrounds */
    --hack-dark: #0f172a;
    /* Slate 900 */
    --hack-darker: #020617;
    /* Slate 950 */
    --hack-card: #1e293b;
    /* Slate 800 */
    --hack-surface: rgba(30, 41, 59, 0.5);

    /* Text */
    --hack-text: #f1f5f9;
    /* Slate 100 */
    --hack-text-muted: #94a3b8;
    /* Slate 400 */

    /* Borders & Effects */
    --hack-border: rgba(255, 255, 255, 0.08);
    --hack-border-focus: rgba(59, 130, 246, 0.5);
    --hack-radius: 8px;
    /* More angular, professional */
    --hack-radius-lg: 16px;
    --hack-radius-sm: 6px;
    --hack-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --hack-glow: 0 0 15px rgba(59, 130, 246, 0.15);

    /* Typography */
    --hack-font-heading: 'Plus Jakarta Sans', 'Inter', sans-serif;
    --hack-font-body: 'Inter', sans-serif;
    --hack-font-mono: 'JetBrains Mono', monospace;

    --hack-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ─── */
.hackathon-page {
    background-color: var(--hack-darker);
    color: var(--hack-text);
    font-family: var(--hack-font-body);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    position: relative;
    line-height: 1.6;
}

.hackathon-page * {
    box-sizing: border-box;
}

/* Professional Mesh Gradient - Subtle & Static */
.hackathon-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.05), transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(16, 185, 129, 0.04), transparent 40%);
    pointer-events: none;
    z-index: 0;
}

/* ─── Navbar ─── */
.hack-navbar {
    background: rgba(15, 23, 42, 0.85);
    /* Slightly less transp, more solid feel */
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid var(--hack-border);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--hack-transition);
}

.hack-navbar.scrolled {
    padding: 12px 0;
    background: rgba(2, 6, 23, 0.95);
    border-bottom-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hack-navbar .nav-brand {
    font-family: var(--hack-font-heading);
    font-weight: 800;
    font-size: 1.4rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hack-navbar .nav-brand img {
    height: 34px;
    border-radius: 8px;
}

.hack-navbar .nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hack-navbar .nav-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--hack-radius-sm);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--hack-transition);
    position: relative;
}

.hack-navbar .nav-links a:hover,
.hack-navbar .nav-links a.active {
    color: #fff;
    background: rgba(var(--hack-primary-rgb), 0.12);
}

.hack-nav-register {
    background: linear-gradient(135deg, var(--hack-primary), var(--hack-secondary)) !important;
    color: #fff !important;
    padding: 10px 26px !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 0.88rem !important;
    box-shadow: 0 4px 20px rgba(var(--hack-primary-rgb), 0.35);
    transition: var(--hack-transition) !important;
    letter-spacing: 0.3px;
}

.hack-nav-register:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(var(--hack-primary-rgb), 0.5);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.hack-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hack-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(var(--hack-primary-rgb), 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(var(--hack-secondary-rgb), 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 80%, rgba(var(--hack-accent-rgb), 0.06) 0%, transparent 50%);
    z-index: 0;
}

.hack-hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hack-hero-slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.7) saturate(1.2);
}

.hack-hero-slideshow img.active {
    opacity: 0.55;
}

.hack-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg,
            rgba(7, 10, 20, 0.65) 0%,
            rgba(7, 10, 20, 0.35) 35%,
            rgba(7, 10, 20, 0.4) 65%,
            rgba(7, 10, 20, 0.95) 100%);
    z-index: 1;
}

.hack-hero-content {
    position: relative;
    z-index: 2;
}

/* Hero Text Enhancement */
.hack-hero-content h1 {
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5), 0 0 80px rgba(var(--hack-primary-rgb), 0.15);
}

/* ═══════════════════════════════════════════════════════════
   COUNTDOWN
   ═══════════════════════════════════════════════════════════ */
.hack-countdown {
    display: flex;
    gap: 18px;
    justify-content: center;
    margin: 36px 0;
}

.hack-countdown-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(var(--hack-primary-rgb), 0.15);
    border-radius: var(--hack-radius);
    padding: 22px 30px;
    text-align: center;
    min-width: 105px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
    transition: var(--hack-transition);
}

.hack-countdown-item:hover {
    border-color: rgba(var(--hack-primary-rgb), 0.35);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(var(--hack-primary-rgb), 0.12);
}

.hack-countdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--hack-primary), var(--hack-secondary));
    opacity: 0.6;
}

.hack-countdown-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--hack-secondary), var(--hack-primary));
    transition: width 0.4s ease;
}

.hack-countdown-item:hover::after {
    width: 100%;
}

.hack-countdown-item .number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--hack-primary), var(--hack-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    filter: drop-shadow(0 0 12px rgba(var(--hack-primary-rgb), 0.3));
}

.hack-countdown-item .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--hack-text-muted);
    margin-top: 8px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════ */
.hack-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.hack-section:nth-child(even)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.008);
    pointer-events: none;
}

.hack-section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 56px;
    position: relative;
    letter-spacing: 0.5px;
    color: #fff;
}

.hack-section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    margin: 16px auto 0;
    background: linear-gradient(90deg, var(--hack-primary), var(--hack-secondary));
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(var(--hack-primary-rgb), 0.3);
}

/* ═══════════════════════════════════════════════════════════
   CARDS — Premium Glassmorphism
   ═══════════════════════════════════════════════════════════ */
.hack-card {
    background: var(--hack-card);
    border: 1px solid var(--hack-border);
    border-radius: var(--hack-radius-lg);
    padding: 32px;
    transition: var(--hack-transition);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hack-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--hack-primary-rgb), 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.hack-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--hack-radius-lg);
    background: linear-gradient(135deg, rgba(var(--hack-primary-rgb), 0.03), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hack-card:hover {
    transform: translateY(-8px);
    border-color: var(--hack-border-active);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25),
        0 0 40px rgba(var(--hack-primary-rgb), 0.06);
    background: var(--hack-card-hover);
}

.hack-card:hover::before {
    opacity: 1;
}

.hack-card:hover::after {
    opacity: 1;
}

.hack-card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(var(--hack-primary-rgb), 0.15), rgba(var(--hack-secondary-rgb), 0.15));
    border: 1px solid rgba(var(--hack-primary-rgb), 0.15);
    border-radius: var(--hack-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--hack-primary);
    margin-bottom: 18px;
    transition: var(--hack-transition);
}

.hack-card:hover .hack-card-icon {
    background: linear-gradient(135deg, var(--hack-primary), var(--hack-secondary));
    color: #fff;
    box-shadow: 0 8px 25px rgba(var(--hack-primary-rgb), 0.3);
    transform: scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   DOWNLOAD BUTTONS
   ═══════════════════════════════════════════════════════════ */
.hack-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--hack-text);
    padding: 14px 28px;
    border-radius: 14px;
    text-decoration: none;
    transition: var(--hack-transition);
    font-weight: 600;
    font-size: 0.92rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hack-download-btn:hover {
    background: linear-gradient(135deg, var(--hack-primary), var(--hack-secondary));
    border-color: transparent;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--hack-primary-rgb), 0.35);
}

/* ═══════════════════════════════════════════════════════════
   DATES GRID
   ═══════════════════════════════════════════════════════════ */
.hack-dates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 14px;
}

.hack-date-item {
    background: var(--hack-surface);
    border: 1px solid var(--hack-border);
    border-radius: var(--hack-radius);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--hack-transition);
    flex-wrap: wrap;
    /* Allow wrapping */
}

.hack-date-item:hover {
    background: var(--hack-surface-hover);
    border-color: rgba(var(--hack-accent-rgb), 0.2);
    transform: translateX(6px);
}

.hack-date-icon {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(var(--hack-accent-rgb), 0.15), rgba(var(--hack-accent-rgb), 0.08));
    border: 1px solid rgba(var(--hack-accent-rgb), 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hack-accent);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.hack-date-label {
    font-size: 0.72rem;
    color: var(--hack-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 2px;
}

.hack-date-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--hack-text);
    font-family: 'Space Grotesk', sans-serif;
}

/* ═══════════════════════════════════════════════════════════
   THEMES GRID
   ═══════════════════════════════════════════════════════════ */
.hack-themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

/* ═══════════════════════════════════════════════════════════
   WORKFLOW TIMELINE
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   WORKFLOW TIMELINE - PREMIUM REDESIGN
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   WORKFLOW TIMELINE - HORIZONTAL SCROLL
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   WORKFLOW TIMELINE - DYNAMIC FLOW MAP
   ═══════════════════════════════════════════════════════════ */
.hack-section#workflow {
    overflow: visible;
}

.hack-workflow-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    padding: 30px 0;
    position: relative;
    z-index: 1;
}

.hack-workflow-card {
    flex: 0 1 350px;
    /* Responsive flexible base */
    position: relative;
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
    z-index: 2;
    animation: float 6s ease-in-out infinite alternate;
}

/* Dynamic Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-10px);
    }
}

/* Offset animation for variety */
.hack-workflow-card:nth-child(even) {
    animation-delay: -3s;
}

/* Flow Map Connectors (Desktop) */
@media (min-width: 992px) {
    .hack-workflow-card:not(:last-child)::after {
        content: '\F138';
        /* Bootstrap Icon Chevron Right */
        font-family: 'bootstrap-icons';
        position: absolute;
        right: -32px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 1.5rem;
        color: rgba(var(--hack-primary-rgb), 0.3);
        z-index: -1;
        transition: all 0.3s ease;
        animation: pulseArrow 2s infinite;
    }

    .hack-workflow-card:hover:not(:last-child)::after {
        color: var(--hack-primary);
        right: -38px;
        text-shadow: 0 0 15px var(--hack-primary);
    }
}

@keyframes pulseArrow {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
        opacity: 0.3;
    }

    50% {
        transform: translateY(-50%) translateX(10px);
        opacity: 0.8;
        color: var(--hack-primary);
    }
}

/* Number Styling - Floating Badge */
.hack-workflow-card .step-badge {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #fff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
}

/* Badge Connectivity Glow */
.hack-workflow-card .step-badge::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--hack-primary), var(--hack-secondary));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hack-workflow-card .step-content {
    flex-grow: 1;
}

/* Hover Effect */
.hack-workflow-card:hover {
    transform: translateY(-15px) scale(1.03);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.6), rgba(15, 23, 42, 0.8));
    border-color: var(--hack-primary);
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(59, 130, 246, 0.2);
    z-index: 10;
}

.hack-workflow-card:hover .step-badge {
    transform: scale(1.1) rotate(-8deg);
    border-color: transparent;
}

.hack-workflow-card:hover .step-badge::after {
    opacity: 1;
}

.hack-workflow-card h5 {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: #fff;
}

.hack-workflow-card p {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Mobile Connector lines */
@media (max-width: 991px) {
    .hack-workflow-card:not(:last-child)::after {
        content: '';
        position: absolute;
        left: 59px;
        bottom: -40px;
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, var(--hack-primary), transparent);
        opacity: 0.3;
    }
}




/* ═══════════════════════════════════════════════════════════
   PROBLEM CATEGORY FILTER
   ═══════════════════════════════════════════════════════════ */
.hack-category-filter {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hack-category-btn {
    background: var(--hack-surface);
    border: 1px solid var(--hack-border);
    color: var(--hack-text-muted);
    padding: 8px 20px;
    border-radius: 20px;
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--hack-transition);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.3px;
}

.hack-category-btn:hover {
    border-color: var(--hack-border-active);
    color: #fff;
    background: rgba(var(--hack-primary-rgb), 0.08);
}

.hack-category-btn.active {
    background: linear-gradient(135deg, var(--hack-primary), var(--hack-secondary));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 20px rgba(var(--hack-primary-rgb), 0.3);
}

/* ═══════════════════════════════════════════════════════════
   HOSTED BY
   ═══════════════════════════════════════════════════════════ */
.hack-host-card {
    background: var(--hack-card);
    border: 1px solid var(--hack-border);
    border-radius: var(--hack-radius-lg);
    padding: 44px;
    display: flex;
    align-items: center;
    gap: 40px;
    transition: var(--hack-transition);
}

.hack-host-card:hover {
    border-color: var(--hack-border-active);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.hack-host-photo-wrapper {
    flex-shrink: 0;
    width: 140px;
    height: 140px;
    border-radius: var(--hack-radius-lg);
    overflow: hidden;
    border: 2px solid rgba(var(--hack-primary-rgb), 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: var(--hack-transition);
}

.hack-host-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hack-host-card:hover .hack-host-photo {
    border-color: var(--hack-primary);
    transform: scale(1.03);
}

/* ═══════════════════════════════════════════════════════════
   FORMS
   ═══════════════════════════════════════════════════════════ */
.hack-form {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    max-width: 800px;
    margin: 0 auto;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.5),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    color: var(--hack-text);
}

.hack-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

.hack-form .form-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hack-text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hack-form .form-control,
.hack-form .form-select {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.hack-form .form-control:focus,
.hack-form .form-select:focus {
    background: rgba(15, 23, 42, 0.9);
    border-color: var(--hack-primary);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.1);
    outline: none;
    color: #fff;
}

.hack-form .form-control::placeholder {
    color: var(--hack-text-muted);
    opacity: 0.6;
}

.hack-form .form-label {
    color: var(--hack-text);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

/* Primary Button */
/* Primary Button */
.hack-btn-primary {
    background: linear-gradient(135deg, var(--hack-primary), var(--hack-secondary));
    border: none;
    color: #fff;
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px -5px rgba(139, 92, 246, 0.4);
    text-transform: uppercase;
}

.hack-btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg) translateX(-150%);
    transition: transform 0.5s;
}

.hack-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(139, 92, 246, 0.6);
    color: #fff;
}

.hack-btn-primary:hover::before {
    transform: skewX(-20deg) translateX(150%);
}

/* ═══════════════════════════════════════════════════════════
   FAQ ACCORDION
   ═══════════════════════════════════════════════════════════ */
.hack-faq-item {
    background: var(--hack-card);
    border: 1px solid var(--hack-border);
    border-radius: var(--hack-radius);
    margin-bottom: 14px;
    overflow: hidden;
    transition: var(--hack-transition);
}

.hack-faq-item:hover {
    border-color: rgba(var(--hack-primary-rgb), 0.15);
}

.hack-faq-question {
    padding: 22px 26px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: var(--hack-transition);
    font-size: 0.95rem;
}

.hack-faq-question:hover {
    background: rgba(var(--hack-primary-rgb), 0.04);
}

.hack-faq-question i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    color: var(--hack-primary);
}

.hack-faq-question.open i {
    transform: rotate(180deg);
}

.hack-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 26px;
    color: var(--hack-text-muted);
    line-height: 1.8;
    font-size: 0.92rem;
}

.hack-faq-answer.open {
    max-height: 500px;
    padding: 0 26px 24px;
}

/* ═══════════════════════════════════════════════════════════
   PROBLEMS TABLE
   ═══════════════════════════════════════════════════════════ */
.hack-problems-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.hack-problems-table thead th {
    background: rgba(var(--hack-primary-rgb), 0.1);
    color: var(--hack-text);
    padding: 16px 18px;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
}

.hack-problems-table thead th:first-child {
    border-radius: 12px 0 0 12px;
}

.hack-problems-table thead th:last-child {
    border-radius: 0 12px 12px 0;
}

.hack-problems-table tbody tr {
    background: var(--hack-card);
    transition: var(--hack-transition);
}

.hack-problems-table tbody tr:hover {
    background: rgba(var(--hack-primary-rgb), 0.06);
    transform: translateX(4px);
}

.hack-problems-table tbody td {
    padding: 16px 18px;
    border-top: 1px solid var(--hack-border);
    border-bottom: 1px solid var(--hack-border);
    vertical-align: middle;
    font-size: 0.92rem;
}

.hack-problems-table tbody td:first-child {
    border-left: 1px solid var(--hack-border);
    border-radius: 12px 0 0 12px;
}

.hack-problems-table tbody td:last-child {
    border-right: 1px solid var(--hack-border);
    border-radius: 0 12px 12px 0;
}

/* ═══════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════ */
.hack-contact-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.hack-contact-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 18px 22px;
    background: var(--hack-surface);
    border: 1px solid var(--hack-border);
    border-radius: var(--hack-radius);
    transition: var(--hack-transition);
}

.hack-contact-item:hover {
    border-color: var(--hack-border-active);
    background: var(--hack-surface-hover);
    transform: translateX(4px);
}

.hack-contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--hack-primary), var(--hack-secondary));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.15rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(var(--hack-primary-rgb), 0.25);
}

/* ═══════════════════════════════════════════════════════════
   PARTICLES
   ═══════════════════════════════════════════════════════════ */
.hack-particle {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.5;
    }

    90% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(-10vh) rotate(720deg);
        opacity: 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   PRIZE CARD
   ═══════════════════════════════════════════════════════════ */
.hack-prize-highlight {
    background: linear-gradient(135deg, rgba(var(--hack-primary-rgb), 0.08), rgba(var(--hack-secondary-rgb), 0.06));
    border: 1px solid rgba(var(--hack-primary-rgb), 0.15);
    border-radius: var(--hack-radius-lg);
    padding: 44px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: var(--hack-transition);
}

.hack-prize-highlight:hover {
    border-color: rgba(var(--hack-primary-rgb), 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 0 40px rgba(var(--hack-primary-rgb), 0.06);
    transform: translateY(-4px);
}

.hack-prize-highlight::before {
    content: '🏆';
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 8rem;
    opacity: 0.04;
    transition: opacity 0.5s ease;
}

.hack-prize-highlight:hover::before {
    opacity: 0.07;
}

/* Cash Prize Specific Card */
.hack-cash-prize-card {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1), rgba(249, 115, 22, 0.1));
    border: 1px solid rgba(234, 179, 8, 0.3);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hack-cash-prize-card:hover {
    border-color: rgba(234, 179, 8, 0.6);
    box-shadow: 0 10px 40px -10px rgba(234, 179, 8, 0.2);
    transform: translateY(-4px);
}

.hack-cash-prize-card .amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(to bottom, #fde047, #ca8a04);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 5px 0;
    text-shadow: 0 10px 30px rgba(234, 179, 8, 0.3);
}

.hack-cash-prize-card .title {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.hack-cash-prize-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(234, 179, 8, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ═══════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════ */
.hack-footer {
    background: var(--hack-darker);
    border-top: 1px solid var(--hack-border);
    padding: 36px 0;
    text-align: center;
    color: var(--hack-text-muted);
    font-size: 0.88rem;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */

/* --- Tablet (≤991px) --- */
@media (max-width: 991px) {
    .hack-hero {
        min-height: 100vh;
        background-position: 65% center !important;
        background-size: cover !important;
    }

    .hack-hero-content h1 {
        font-size: 2.4rem !important;
    }

    .hack-countdown {
        gap: 10px;
    }

    .hack-countdown-item {
        padding: 16px 18px;
        min-width: 80px;
    }

    .hack-countdown-item .number {
        font-size: 2rem;
    }

    .hack-countdown-item .label {
        font-size: 0.6rem;
        letter-spacing: 2px;
    }

    .hack-section {
        padding: 70px 0;
    }

    .hack-host-card {
        gap: 24px;
        padding: 32px;
    }

    .hack-workflow-grid {
        gap: 28px;
    }

    .hack-workflow-card {
        flex: 0 1 100%;
    }
}

/* --- Mobile (≤767px) --- */
@media (max-width: 767px) {
    .hack-hero {
        min-height: 100vh;
        background-position: 70% center !important;
        background-size: cover !important;
        padding-top: 70px;
    }

    .hack-hero-slideshow img {
        object-position: 70% center;
    }

    .hack-hero-overlay {
        background:
            linear-gradient(180deg,
                rgba(7, 10, 20, 0.78) 0%,
                rgba(7, 10, 20, 0.45) 30%,
                rgba(7, 10, 20, 0.5) 60%,
                rgba(7, 10, 20, 0.95) 100%) !important;
    }

    .hack-hero-content h1 {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
    }

    .hack-hero-content p {
        font-size: 0.95rem !important;
    }

    .hack-hero-content img[alt="Logo"] {
        max-height: 55px !important;
        margin-bottom: 16px !important;
    }

    .hack-countdown {
        gap: 8px;
        flex-wrap: wrap;
        margin: 20px 0;
        justify-content: center;
    }

    .hack-countdown-item {
        padding: 12px 14px;
        min-width: 68px;
        border-radius: 8px;
    }

    .hack-countdown-item .number {
        font-size: 1.6rem;
    }

    .hack-countdown-item .label {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
        margin-top: 4px;
    }

    /* Sections */
    .hack-section {
        padding: 50px 0;
    }

    .hack-section-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    /* Cards */
    .hack-card {
        padding: 22px;
    }

    .hack-card:hover {
        transform: translateY(-4px);
    }

    .hack-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
        margin-bottom: 14px;
    }

    /* Price cards in hero */
    .hero-price-card {
        padding: 16px 28px !important;
        min-width: 140px !important;
        border-radius: 18px !important;
    }

    /* Host card */
    .hack-host-card {
        flex-direction: column;
        text-align: center;
        padding: 26px 20px;
        gap: 18px;
    }

    .hack-host-photo-wrapper {
        width: 100px;
        height: 100px;
    }

    /* Forms */
    .hack-form {
        padding: 24px 18px;
        border-radius: 18px;
    }

    .hack-btn-primary {
        padding: 14px 28px;
        font-size: 0.9rem;
        width: 100%;
    }

    /* FAQ */
    .hack-faq-question {
        padding: 16px 18px;
        font-size: 0.9rem;
    }

    .hack-faq-answer {
        padding: 0 18px;
        font-size: 0.88rem;
    }

    .hack-faq-answer.open {
        padding: 0 18px 18px;
    }

    /* Dates */
    .hack-dates-grid {
        gap: 10px;
    }

    .hack-date-item {
        padding: 14px 16px;
        gap: 12px;
    }

    .hack-date-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 10px;
    }

    .hack-date-label {
        font-size: 0.65rem;
    }

    .hack-date-value {
        font-size: 0.9rem;
    }

    /* Workflow */
    .hack-workflow-grid {
        gap: 24px;
        padding: 10px 0;
    }

    .hack-workflow-card {
        flex: 0 1 100%;
        padding: 22px;
        border-radius: 18px;
        gap: 16px;
    }

    .hack-workflow-card:hover {
        transform: translateY(-6px) scale(1);
    }

    .hack-workflow-card .step-badge {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
        border-radius: 12px;
    }

    .hack-workflow-card h5 {
        font-size: 1rem;
    }

    .hack-workflow-card p {
        font-size: 0.88rem;
    }

    /* Download buttons */
    .hack-download-btn {
        padding: 12px 20px;
        font-size: 0.85rem;
        border-radius: 12px;
    }

    /* Prizes */
    .hack-prize-highlight {
        padding: 28px 20px;
    }

    .hack-cash-prize-card {
        padding: 24px 20px;
    }

    .hack-cash-prize-card .amount {
        font-size: 2.5rem;
    }

    /* Problems table */
    .hack-problems-table thead th {
        padding: 12px 10px;
        font-size: 0.68rem;
        letter-spacing: 1px;
    }

    .hack-problems-table tbody td {
        padding: 12px 10px;
        font-size: 0.82rem;
    }

    /* Contact */
    .hack-contact-item {
        padding: 14px 16px;
        gap: 14px;
    }

    .hack-contact-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Navbar old (fallback) */
    .hack-navbar .nav-links {
        display: none;
    }

    .hack-navbar .mobile-toggle {
        display: block;
    }

    /* Footer */
    .hack-footer {
        padding: 24px 0;
        font-size: 0.82rem;
    }

    /* Themes grid */
    .hack-themes-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Category filter */
    .hack-category-filter {
        gap: 6px;
        margin-bottom: 20px;
    }

    .hack-category-btn {
        padding: 6px 14px;
        font-size: 0.8rem;
    }

    /* Stats banner */
    .hack-stats-banner {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hack-stat-item {
        min-width: 120px;
    }
}

/* --- Small Mobile (≤480px) --- */
@media (max-width: 480px) {
    .hack-hero {
        padding-top: 60px;
    }

    .hack-hero-content h1 {
        font-size: 1.5rem !important;
        letter-spacing: -0.5px !important;
    }

    .hack-hero-content p {
        font-size: 0.88rem !important;
    }

    .hack-countdown-item {
        padding: 10px 12px;
        min-width: 62px;
    }

    .hack-countdown-item .number {
        font-size: 1.3rem;
    }

    .hack-countdown-item .label {
        font-size: 0.5rem;
        letter-spacing: 1px;
    }

    .hero-price-card {
        padding: 14px 22px !important;
        min-width: 130px !important;
    }

    .hack-section-title {
        font-size: 1.3rem;
    }

    .hack-card {
        padding: 18px;
    }

    .hack-form {
        padding: 20px 14px;
    }

    .hack-workflow-card {
        padding: 18px;
    }

    .hack-host-card {
        padding: 20px 16px;
    }

    .hack-section {
        padding: 40px 0;
    }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(var(--hack-primary-rgb), 0.15);
    }

    50% {
        box-shadow: 0 0 40px rgba(var(--hack-primary-rgb), 0.3);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

.animate-in {
    animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.animate-delay-1 {
    animation-delay: 0.15s;
}

.animate-delay-2 {
    animation-delay: 0.3s;
}

.animate-delay-3 {
    animation-delay: 0.45s;
}

/* ─── Scroll-triggered reveal ─── */
.hack-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.hack-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ─── Selection styling ─── */
.hackathon-page ::selection {
    background: rgba(var(--hack-primary-rgb), 0.3);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════
   REGISTRATION STEPS
   ═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   REGISTRATION STEPS
   ═══════════════════════════════════════════════════════════ */
.step-progress {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
    position: relative;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.step-item {
    text-align: center;
    position: relative;
    flex: 1;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 24px;
    left: 50%;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.step-item:last-child::after {
    display: none;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-weight: 700;
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: var(--hack-transition);
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: var(--hack-darker);
    color: var(--hack-text-muted);
}

.step-item.active .step-circle {
    background: var(--hack-darker);
    border-color: var(--hack-primary);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(var(--hack-primary-rgb), 0.2), 0 0 20px rgba(var(--hack-primary-rgb), 0.4);
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: var(--hack-success);
    border-color: var(--hack-success);
    color: var(--hack-darker);
    box-shadow: 0 0 15px rgba(54, 211, 153, 0.4);
}

.step-item.completed::after {
    background: var(--hack-success);
    box-shadow: 0 0 10px rgba(54, 211, 153, 0.3);
}

.step-label {
    font-size: 0.8rem;
    color: var(--hack-text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--hack-transition);
}

.step-item.active .step-label,
.step-item.completed .step-label {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.step-form {
    display: none;
}

.step-form.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════
   OTP & VERIFICATION
   ═══════════════════════════════════════════════════════════ */
.otp-section {
    background: rgba(var(--hack-primary-rgb), 0.06);
    border: 1px solid rgba(var(--hack-primary-rgb), 0.15);
    border-radius: var(--hack-radius);
    padding: 24px;
    margin-top: 18px;
    backdrop-filter: blur(10px);
}

.otp-input {
    letter-spacing: 12px;
    text-align: center;
    font-size: 1.8rem !important;
    font-weight: 700;
    max-width: 280px;
    margin: 0 auto 16px;
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(var(--hack-primary-rgb), 0.3) !important;
    color: var(--hack-secondary) !important;
}

.email-verified {
    color: var(--hack-success);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    padding: 8px 16px;
    background: rgba(54, 211, 153, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(54, 211, 153, 0.2);
    margin-top: 8px;
}

/* ─── Scrollbar styling ─── */
.hackathon-page::-webkit-scrollbar {
    width: 8px;
}

.hackathon-page::-webkit-scrollbar-track {
    background: var(--hack-darker);
}

.hackathon-page::-webkit-scrollbar-thumb {
    background: rgba(var(--hack-primary-rgb), 0.3);
    border-radius: 4px;
}

.hackathon-page::-webkit-scrollbar-thumb:hover {
    background: rgba(var(--hack-primary-rgb), 0.5);
}