/* ================================================
   CSA XCON CTF - Interactive Redesign
   ================================================ */

:root {
    --primary: #2562ff;
    --cyan: #00d4ff;
    --cyan-glow: rgba(0, 212, 255, 0.4);
    --neon-green: #00ff88;
    --neon-glow: rgba(0, 255, 136, 0.4);
    --dark-1: #0a0f1a;
    --dark-2: #0d1424;
    --dark-3: #111827;
    --dark-4: #1f2937;
    --gray-1: #374151;
    --gray-2: #6b7280;
    --gray-3: #9ca3af;
    --white: #ffffff;
    --gold: #fbbf24;
    --silver: #94a3b8;
    --bronze: #cd7f32;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: "JetBrains Mono", "Fira Code", monospace;
    --shadow-glow-cyan: 0 0 20px var(--cyan-glow), 0 0 40px var(--cyan-glow);
    --shadow-glow-green: 0 0 20px var(--neon-glow), 0 0 40px var(--neon-glow);
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--dark-1);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.text-gradient {
    background: linear-gradient(135deg, var(--cyan), var(--primary), var(--cyan));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

.text-cyan {
    color: var(--cyan);
}

.text-green {
    color: var(--neon-green);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header p {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--gray-3);
}

/* Buttons */
/* Buttons - Modern Glassmorphism */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;

    /* Glassmorphism Base */
    background: rgba(255, 255, 255, 0.05);
    /* Transparent white */
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    /* White border */
    border-radius: var(--radius-md);

    font-weight: 600;
    font-size: 1rem;
    color: var(--white);

    /* Shadows: Inset + Offset */
    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.2),
        /* Offset shadow */
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        /* Top inner highlight */
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    /* Bottom inner shadow */

    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(37, 98, 255, 0.1));
    border-color: rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    border-color: var(--cyan);
    box-shadow:
        0 8px 25px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary::before {
    display: none;
}

.btn-secondary {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--white);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(10, 15, 26, 0.95);
    border-bottom-color: rgba(0, 212, 255, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo img {
    height: 40px;
}

.nav-logo span {
    color: var(--cyan);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--gray-3);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan);
    transition: width 0.3s;
}

.nav-link:hover {
    color: var(--cyan);
}

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

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    margin: 5px 0;
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 92px;
        left: 0;
        right: 0;
        background: var(--dark-2);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateY(-150%);
        transition: var(--transition);
        border-bottom: 1px solid var(--gray-1);
    }

    .nav-menu.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }
}

/* ====== HERO SECTION ====== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

#matrix-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.15;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--cyan);
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
    }
}

.hero-title {
    margin-bottom: 1rem;
    position: relative;
}

.typewriter {
    display: inline-block;
    overflow: hidden;
    border-right: 3px solid var(--cyan);
    white-space: nowrap;
    animation: typing 2s steps(20) forwards, blink 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--gray-3);
    margin-bottom: 0.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--gray-2);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Countdown Timer */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 100px;
    background: linear-gradient(180deg, var(--dark-3) 0%, var(--dark-2) 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cyan);
    box-shadow: 0 0 30px rgba(0, 212, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.countdown-value::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0, 212, 255, 0.2);
}

.countdown-label {
    margin-top: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gray-2);
}

.countdown-separator {
    font-size: 2rem;
    color: var(--cyan);
    align-self: center;
    margin-bottom: 1.5rem;
    animation: blink 1s step-end infinite;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--cyan);
    font-family: var(--font-mono);
}

.stat-label {
    color: var(--gray-3);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-2);
    font-size: 0.75rem;
    animation: bounce 2s infinite;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
    stroke: var(--cyan);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ====== CHALLENGE CARDS ====== */
.challenges {
    background: var(--dark-2);
    position: relative;
    overflow: hidden;
    /* Ensure glow doesn't spill over */
}

/* Optional: Add a subtle background glow for the section */
.challenges::before {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    /* Increased gap for better breathing room */
    position: relative;
    z-index: 1;
}

.challenge-card {
    /* Glassmorphism Base */
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);

    padding: 2.5rem 2rem;
    /* Increased padding */
    transition: var(--transition);

    /* 3D Transform Properties */
    transform-style: preserve-3d;
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    overflow: hidden;

    /* Initial Shadow */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.challenge-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 212, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.challenge-card:hover {
    transform: translateY(-10px);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.4),
        /* Deep shadow */
        0 0 20px rgba(0, 212, 255, 0.1);
    /* Cyan glow */
}

.challenge-card:hover::before {
    opacity: 1;
}

.challenge-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    color: var(--cyan);
    /* Ensure SVG inherits color */
}

.challenge-card:hover .challenge-icon {
    background: rgba(0, 212, 255, 0.2);
    box-shadow: 0 0 15px var(--cyan-glow);
    transform: scale(1.1);
}

.challenge-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

.challenge-card h3 {
    color: var(--white);
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.challenge-card p {
    color: var(--gray-3);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.challenge-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.challenge-badge {
    padding: 0.375rem 0.875rem;
    background: rgba(0, 255, 136, 0.1);
    /* Green tint for 'Active' feel */
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--neon-green);
    letter-spacing: 0.05em;
}

.difficulty-meter {
    display: flex;
    gap: 4px;
}

.difficulty-bar {
    width: 20px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.difficulty-bar.active {
    background: var(--cyan);
    box-shadow: 0 0 8px var(--cyan-glow);
}

/* ====== TERMINAL SCOREBOARD ====== */
.scoreboard-section {
    background: var(--dark-1);
}

.terminal {
    max-width: 700px;
    margin: 0 auto;
    background: #0a0a0a;
    border: 1px solid var(--neon-green);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.15);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #111;
    border-bottom: 1px solid var(--neon-green);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #ff5f56;
}

.terminal-dot.yellow {
    background: #ffbd2e;
}

.terminal-dot.green {
    background: #27ca40;
}

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray-2);
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--neon-green);
    min-height: 250px;
}

.terminal-line {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
}

.terminal-line.prompt::before {
    content: "> ";
    color: var(--cyan);
}

.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--neon-green);
    animation: blink 1s step-end infinite;
    vertical-align: middle;
    margin-left: 2px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.scoreboard-entry {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dashed rgba(0, 255, 136, 0.2);
    transition: var(--transition);
}

.scoreboard-entry.top-rank {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin: 0.5rem -1rem 1rem;
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.1);
}

.scoreboard-entry.top-rank .scoreboard-rank {
    font-size: 1.25rem;
    font-weight: 800;
}

.scoreboard-entry.top-rank .scoreboard-team {
    font-weight: 700;
}

.scoreboard-rank {
    color: var(--gold);
}

.scoreboard-team {
    color: var(--cyan);
}

.scoreboard-points {
    color: var(--neon-green);
}

/* ====== TIMELINE ====== */
.timeline-section {
    background: var(--dark-2);
    overflow: hidden;
}

.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 0 2rem;
}

.timeline-track::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 2rem;
    right: 2rem;
    height: 3px;
    background: var(--gray-1);
    transform: translateY(-50%);
}

.timeline-progress {
    position: absolute;
    top: 10px;
    left: 2rem;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--primary));
    transform: translateY(-50%);
    width: 0;
    transition: width 1s ease-out;
    box-shadow: 0 0 10px var(--cyan-glow);
}

.timeline-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: var(--dark-3);
    border: 3px solid var(--gray-1);
    border-radius: 50%;
    margin: 0 auto 1rem;
    transition: var(--transition);
    position: relative;
}

.timeline-item.active .timeline-dot,
.timeline-item.completed .timeline-dot {
    background: var(--cyan);
    border-color: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.timeline-item.active .timeline-dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 2px solid var(--cyan);
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {

    75%,
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--cyan);
    margin-bottom: 0.5rem;
}

.timeline-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
}

.timeline-item:hover .timeline-dot {
    transform: scale(1.2);
    box-shadow: 0 0 25px var(--cyan-glow);
}

@media (max-width: 768px) {
    .timeline-track {
        flex-direction: column;
        gap: 2rem;
        padding: 0;
    }

    .timeline-track::before {
        top: 0;
        bottom: 0;
        left: 10px;
        right: auto;
        width: 3px;
        height: auto;
        transform: none;
    }

    .timeline-progress {
        top: 0;
        left: 10px;
        width: 3px !important;
        height: 0;
        transform: none;
    }

    .timeline-item {
        text-align: left;
        padding-left: 40px;
    }

    .timeline-dot {
        position: absolute;
        left: 0;
        top: 0;
        margin: 0;
    }
}

/* ====== PRIZES ====== */
.prizes-section {
    background: var(--dark-1);
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.prize-card {
    background: var(--dark-3);
    border: 1px solid var(--gray-1);
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.prize-card.gold {
    border-color: var(--gold);
    transform: scale(1.15);
    z-index: 2;
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.15), var(--dark-3));
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(251, 191, 36, 0.2);
    animation: goldGlow 3s ease-in-out infinite;
}

@keyframes goldGlow {

    0%,
    100% {
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(251, 191, 36, 0.2);
        border-color: rgba(251, 191, 36, 0.6);
    }

    50% {
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4), 0 0 40px rgba(251, 191, 36, 0.4);
        border-color: var(--gold);
    }
}

.prize-card.gold::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--gold), transparent, var(--gold));
    border-radius: var(--radius-xl);
    z-index: -1;
    opacity: 0.5;
}

.prize-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.prize-card.gold:hover {
    transform: scale(1.2) translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(251, 191, 36, 0.4);
}

.prize-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.prize-icon svg {
    width: 60px;
    height: 60px;
}

.prize-card.gold .prize-icon svg {
    fill: var(--gold);
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.prize-card.silver .prize-icon svg {
    fill: var(--silver);
}

.prize-card.bronze .prize-icon svg {
    fill: var(--bronze);
}

.prize-place {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.prize-card.gold .prize-place {
    color: var(--gold);
}

.prize-card.silver .prize-place {
    color: var(--silver);
}

.prize-card.bronze .prize-place {
    color: var(--bronze);
}

.prize-amount {
    font-size: 2rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--white);
}

.prize-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold);
    color: var(--dark-1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .prizes-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
    }

    .prize-card.gold {
        transform: none;
        order: -1;
    }

    .prize-card.gold:hover {
        transform: translateY(-10px);
    }
}

/* ====== RULES ACCORDION ====== */
.rules-section {
    background: var(--dark-2);
}

.rules-list {
    max-width: 800px;
    margin: 0 auto;
}

.rule-item {
    background: var(--dark-3);
    border: 1px solid var(--gray-1);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: var(--transition);
}

.rule-item:hover {
    border-color: var(--cyan);
}

.rule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.rule-header:hover {
    background: rgba(0, 212, 255, 0.05);
}

.rule-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--cyan);
    min-width: 40px;
}

.rule-title {
    flex: 1;
    font-weight: 600;
    color: var(--white);
}

.rule-icon {
    width: 24px;
    height: 24px;
    stroke: var(--cyan);
    transition: transform 0.3s;
}

.rule-item.active .rule-icon {
    transform: rotate(180deg);
}

.rule-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.rule-item.active .rule-content {
    max-height: 500px;
}

.rule-body {
    padding: 0 1.5rem 1.5rem 4.5rem;
    color: var(--gray-3);
    line-height: 1.7;
}

/* ====== CTA SECTION ====== */
.cta-section {
    background: linear-gradient(180deg, var(--dark-1) 0%, var(--dark-2) 100%);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    margin-bottom: 1rem;
}

.cta-content p {
    color: var(--gray-3);
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* ====== FOOTER ====== */
.footer {
    background: var(--dark-3);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--gray-1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: var(--gray-3);
    font-size: 0.9375rem;
}

.footer-links h4 {
    color: var(--cyan);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: var(--gray-3);
    padding: 0.375rem 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-1);
    color: var(--gray-2);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dark-2);
    border-radius: 50%;
    color: var(--gray-3);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--cyan);
    color: var(--dark-1);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* ====== UTILITY ====== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .typewriter {
        animation: none;
        width: auto;
        border: none;
    }
}

/* ====== NOTICE BANNER ====== */
.notice-banner {
    background: linear-gradient(90deg, #fbbf24, #d97706);
    color: #0a0f1a;
    text-align: center;
    padding: 0.75rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    z-index: 999;
}

.notice-banner a {
    color: #0a0f1a;
    text-decoration: underline;
    margin-left: 0.5rem;
}

.notice-banner a:hover {
    opacity: 0.8;
}

/* Adjust hero for notice banner */
.hero {
    padding-top: 10rem !important;
}

/* Important rule highlight */
.rule-item.important {
    border-color: #fbbf24 !important;
    background: rgba(251, 191, 36, 0.05);
}

.rule-item.important .rule-number,
.rule-item.important .rule-title {
    color: #fbbf24 !important;
}

.rule-item.important .rule-icon {
    stroke: #fbbf24 !important;
}

/* ============================================
   RULES PAGE - ENHANCED INTERACTIVE STYLES
   ============================================ */

.rules-page {
    padding: 160px 0 80px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--dark-1) 0%, var(--dark-2) 100%);
    position: relative;
}

.rules-page::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(37, 98, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 212, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.rules-page .section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.rules-page .section-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-3) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rules-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.rules-section {
    background: linear-gradient(135deg, rgba(13, 20, 36, 0.8) 0%, rgba(10, 15, 26, 0.9) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.rules-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    opacity: 0;
    transition: opacity 0.3s;
}

.rules-section:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 30px rgba(0, 212, 255, 0.1);
}

.rules-section:hover::before {
    opacity: 1;
}

.rules-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.rules-section h3::before {
    content: "";
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--cyan), var(--primary));
    border-radius: 2px;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rules-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: rgba(17, 24, 39, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.rules-list li:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
    transform: translateX(8px);
}

.rules-list li:last-child {
    margin-bottom: 0;
}

.rule-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    color: var(--cyan);
    background: rgba(0, 212, 255, 0.1);
    padding: 6px;
    border-radius: 8px;
    transition: all 0.3s;
}

.rules-list li:hover .rule-icon {
    background: rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
}

.rules-list p {
    color: var(--gray-3);
    line-height: 1.7;
    margin: 0;
}

.rules-list p strong {
    color: var(--white);
    font-weight: 600;
}

.rules-list code {
    background: rgba(0, 255, 136, 0.1);
    color: var(--green);
    padding: 4px 10px;
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9em;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

/* FAQ Styles */
.faq-item {
    background: rgba(17, 24, 39, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(0, 212, 255, 0.3);
}

.faq-item.active {
    border-color: var(--cyan);
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    color: var(--white);
    transition: all 0.3s;
    user-select: none;
}

.faq-question:hover {
    background: rgba(0, 212, 255, 0.05);
}

.faq-arrow {
    transition: transform 0.3s ease;
    color: var(--cyan);
    min-width: 20px;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 1.5rem 1.25rem;
    color: var(--gray-3);
    line-height: 1.7;
    margin: 0;
}

/* Important Notice Style in Rules */
.important-notice {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.important-notice svg {
    width: 32px;
    height: 32px;
    color: #fbbf24;
    min-width: 32px;
}

.important-notice p {
    color: #fde68a;
    margin: 0;
    line-height: 1.6;
}

.important-notice a {
    color: #fbbf24;
    font-weight: 600;
    text-decoration: underline;
}

/* Enhanced Footer for Rules Page */
.footer {
    background: var(--dark-1);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-2);
    margin: 0;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--cyan));
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.5);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    color: white;
}

/* Responsive */
@media (max-width: 768px) {
    .rules-page {
        padding: 140px 0 60px;
    }

    .rules-section {
        padding: 1.5rem;
    }

    .rules-list li {
        flex-direction: column;
        text-align: left;
    }

    .rule-icon {
        margin-bottom: 0.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Three Column Grid for Categories */
.challenges-grid.three-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .challenges-grid.three-cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .challenges-grid.three-cols {
        grid-template-columns: 1fr;
    }
}

/* Larger cards for 3-col layout */
.challenges-grid.three-cols .challenge-card {
    padding: 2rem;
}

.challenges-grid.three-cols .challenge-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--cyan);
}

.challenges-grid.three-cols .challenge-card h3 {
    font-size: 1.5rem;
}

.challenges-grid.three-cols .challenge-card p {
    font-size: 1rem;
    line-height: 1.7;
}

/* ============================================
   CHALLENGES PAGE STYLES
   ============================================ */

.challenges-page {
    padding: 160px 0 80px;
    min-height: 100vh;
    background: linear-gradient(180deg, var(--dark-1) 0%, var(--dark-2) 100%);
}

.challenges-page .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.challenges-page .section-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.challenge-detail {
    background: linear-gradient(135deg, rgba(13, 20, 36, 0.9) 0%, rgba(10, 15, 26, 0.95) 100%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 20px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.challenge-detail:hover {
    border-color: rgba(0, 212, 255, 0.4);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 40px rgba(0, 212, 255, 0.1);
}

.challenge-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(90deg, rgba(0, 212, 255, 0.1) 0%, transparent 100%);
    border-bottom: 1px solid rgba(0, 212, 255, 0.1);
}

.challenge-detail .challenge-icon {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2) 0%, rgba(37, 98, 255, 0.2) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.challenge-detail .challenge-icon svg {
    width: 40px;
    height: 40px;
    stroke: var(--cyan);
}

.challenge-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 0.25rem 0;
}

.challenge-header p {
    color: var(--cyan);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 0;
}

.challenge-body {
    padding: 2rem;
}

.challenge-body>p {
    color: var(--gray-3);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.challenge-body h4 {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.challenge-body h4::before {
    content: "";
    width: 4px;
    height: 20px;
    background: var(--cyan);
    border-radius: 2px;
}

.challenge-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: grid;
    gap: 0.75rem;
}

.challenge-body ul li {
    color: var(--gray-3);
    padding: 0.75rem 1rem;
    background: rgba(17, 24, 39, 0.5);
    border-radius: 8px;
    border-left: 3px solid var(--cyan);
    transition: all 0.2s;
}

.challenge-body ul li:hover {
    background: rgba(0, 212, 255, 0.05);
    transform: translateX(5px);
}

.challenge-body ul li strong {
    color: var(--white);
}

.difficulty-distribution {
    margin-bottom: 2rem;
}

.difficulty-distribution h5 {
    color: var(--gray-3);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.challenge-detail .difficulty-bar {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.difficulty-level {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.difficulty-level.easy {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.difficulty-level.medium {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.difficulty-level.hard {
    background: rgba(255, 71, 87, 0.15);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.3);
}

.tools-section {
    margin-bottom: 1.5rem;
}

.tools-section h5 {
    color: var(--gray-3);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tools-list span {
    background: rgba(37, 98, 255, 0.15);
    color: var(--primary-light);
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-size: 0.85rem;
    font-family: var(--font-mono);
    border: 1px solid rgba(37, 98, 255, 0.2);
}

.note-box {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 10px;
    padding: 1rem 1.25rem;
    color: #fde68a;
    font-size: 0.95rem;
}

.note-box strong {
    color: #fbbf24;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, rgba(37, 98, 255, 0.1) 0%, rgba(0, 212, 255, 0.05) 100%);
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 255, 0.15);
    margin-top: 3rem;
}

.cta-section h3 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.cta-section p {
    color: var(--gray-3);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .challenges-page {
        padding: 140px 0 60px;
    }

    .challenge-header {
        flex-direction: column;
        text-align: center;
    }

    .challenge-body {
        padding: 1.5rem;
    }

    .challenge-detail .difficulty-bar {
        justify-content: center;
    }
}

/* ============================================
   ENHANCED RULES SECTION (INDEX PAGE)
   ============================================ */

.rules-section {
    background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark-1) 100%);
    position: relative;
}

.rules-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

.rules-section .rules-list {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Enhanced Rule Items */
.rules-section .rule-item {
    background: linear-gradient(135deg, rgba(13, 20, 36, 0.8) 0%, rgba(17, 24, 39, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.rules-section .rule-item:hover {
    border-color: rgba(0, 212, 255, 0.4);
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.rules-section .rule-item.active {
    border-color: var(--cyan);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.15);
}

/* Important Rule (Rule 00) - Gold/Warning Style */
.rules-section .rule-item.important {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.1) 0%, rgba(217, 119, 6, 0.05) 100%);
    border: 1px solid rgba(251, 191, 36, 0.3);
    position: relative;
}

.rules-section .rule-item.important::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #fbbf24, #d97706);
}

.rules-section .rule-item.important:hover {
    border-color: rgba(251, 191, 36, 0.5);
    box-shadow: 0 10px 40px rgba(251, 191, 36, 0.15);
}

.rules-section .rule-item.important .rule-number {
    color: #fbbf24;
    font-weight: 700;
}

.rules-section .rule-item.important .rule-title {
    color: #fde68a;
}

.rules-section .rule-item.important .rule-icon {
    stroke: #fbbf24;
}

.rules-section .rule-item.important .rule-body {
    color: #fef3c7;
}

/* Rule Header Enhancement */
.rules-section .rule-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.rules-section .rule-header:hover {
    background: rgba(0, 212, 255, 0.03);
}

.rules-section .rule-item.important .rule-header:hover {
    background: rgba(251, 191, 36, 0.05);
}

.rules-section .rule-number {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--cyan);
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 8px;
    font-weight: 600;
}

.rules-section .rule-item.important .rule-number {
    background: rgba(251, 191, 36, 0.15);
}

.rules-section .rule-title {
    flex: 1;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--white);
}

.rules-section .rule-icon {
    width: 24px;
    height: 24px;
    stroke: var(--cyan);
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.rules-section .rule-item:hover .rule-icon {
    opacity: 1;
}

.rules-section .rule-item.active .rule-icon {
    transform: rotate(180deg);
    opacity: 1;
}

/* Rule Content */
.rules-section .rule-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.rules-section .rule-item.active .rule-content {
    max-height: 300px;
}

.rules-section .rule-body {
    padding: 0 1.5rem 1.5rem 4rem;
    color: var(--gray-3);
    line-height: 1.8;
    font-size: 0.95rem;
}

.rules-section .rule-body strong {
    color: var(--white);
}

.rules-section .rule-item.important .rule-body strong {
    color: #fbbf24;
}

.rules-section .rule-body a {
    color: var(--cyan);
    text-decoration: underline;
    transition: color 0.2s;
}

.rules-section .rule-body a:hover {
    color: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .rules-section .rule-header {
        padding: 1rem;
    }

    .rules-section .rule-body {
        padding: 0 1rem 1rem 1rem;
    }

    .rules-section .rule-item:hover {
        transform: none;
    }
}

/* ====== ABOUT SECTION ====== */
.about-section {
    background: var(--dark-1);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    color: var(--gray-3);
    font-size: 1.125rem;
    line-height: 1.8;
}

.about-content p {
    margin-bottom: 1.5rem;
}

.domain-list {
    margin: 2rem 0;
    padding-left: 1.5rem;
    /* Indent slightly if preferred, or center */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.domain-list li {
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: var(--radius-md);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}

.domain-list li:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 212, 255, 0.1);
}

.domain-list li span {
    color: var(--cyan);
}

/* ====== COUNTDOWN REDESIGN (Bottom Right - Glassmorphic Squares) ====== */
.hero {
    position: relative;
    /* Ensure hero is relative for absolute positioning */
}

.countdown {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    /* Vertical layout */
    gap: 1.5rem;
    /* Space between squares */
    margin: 0;
    z-index: 10;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;

    width: 6rem;
    height: 6rem;
    /* Square */

    background: rgba(255, 255, 255, 0.03);
    /* Very subtle fill */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);

    /* Inset and Offset Shadows for depth */
    box-shadow:
        5px 5px 15px rgba(0, 0, 0, 0.5),
        /* Outer shadow */
        inset 2px 2px 5px rgba(255, 255, 255, 0.1),
        /* Inner highlight */
        inset -2px -2px 5px rgba(0, 0, 0, 0.5);
    /* Inner shadow */

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-5px);
    box-shadow:
        8px 8px 20px rgba(0, 0, 0, 0.6),
        inset 2px 2px 5px rgba(255, 255, 255, 0.1),
        inset -2px -2px 5px rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 212, 255, 0.3);
}

.countdown-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
    width: auto;
    height: auto;
    background: transparent;
    border: none;
    box-shadow: none;
}

.countdown-value::before {
    display: none;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.countdown-separator {
    display: none;
}

/* Hide on mobile */
@media (max-width: 900px) {
    .countdown {
        display: none;
    }
}

/* Rupee Icon Style */
.icon-rupee {
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    stroke-width: 2.5;
    margin-right: 0.1em;
}

/* Timeline Progress Animation */
@keyframes blink-active {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7);
        background-color: var(--cyan);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(0, 212, 255, 0);
        background-color: var(--white);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
        background-color: var(--cyan);
    }
}

.timeline-item.active .timeline-dot {
    animation: blink-active 1.5s infinite;
}

/* ====== BACK TO TOP ====== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background: rgba(10, 15, 26, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 50%;
    color: var(--cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 998;
    /* Below BYOD notice */
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--cyan);
    color: var(--dark-1);
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 212, 255, 0.4);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 80px;
        /* Above BYOD badge on mobile */
        right: 20px;
        width: 40px;
        height: 40px;
    }
}