/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cyber-black: #050505;
    --cyber-green: #00ff41;
    --cyber-gray: #1a1a1a;
    --cyber-dark: #0a0a0a;
    --text-gray: #9ca3af;
    --border-gray: #1f2937;
}

body {
    font-family: "JetBrains Mono", "Fira Code", monospace;
    background-color: var(--cyber-black);
    color: var(--text-gray);
    line-height: 1.6;
    overflow-x: hidden;
}

::selection {
    background-color: var(--cyber-green);
    color: var(--cyber-black);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.green {
    color: var(--cyber-green);
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background-color: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(0, 255, 65, 0.2);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.terminal-icon {
    color: var(--cyber-green);
    transition: all 0.3s ease;
}

.logo:hover .terminal-icon {
    animation: pulse 1s infinite;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    letter-spacing: -0.05em;
    transition: color 0.3s ease;
}

.logo:hover .logo-text {
    color: var(--cyber-green);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--cyber-green);
}

.btn-competitor {
    background-color: rgba(0, 255, 65, 0.1);
    border: 1px solid var(--cyber-green);
    color: var(--cyber-green) !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-competitor:hover {
    background-color: var(--cyber-green);
    color: var(--cyber-black) !important;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--cyber-black) url('https://images.unsplash.com/photo-1526374965328-7f61d4dc18c5?q=80&w=2070&auto=format&fit=crop') center/cover;
    opacity: 0.2;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--cyber-black), transparent, var(--cyber-black));
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 65, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(211, 16, 16, 0.3);
    background-color: rgba(0, 255, 65, 0.05);
    color: #e10c0c;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #e10909;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 4.5rem);
    font-weight: bold;
    color: white;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    min-height: 1.2em;
}

.cursor {
    color: var(--cyber-green);
    animation: blink 1s infinite;
}

.hero-description {
    color: var(--text-gray);
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background-color: var(--cyber-green);
    color: var(--cyber-black);
    font-weight: bold;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    width: 100%;
    max-width: 320px;
}

.btn-primary:hover {
    background-color: white;
    transform: scale(1.05);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background-color: transparent;
    border: 1px solid var(--border-gray);
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 320px;
}

.btn-secondary:hover {
    border-color: var(--cyber-green);
    color: var(--cyber-green);
}

/* About Section */
.about {
    padding: 5rem 0;
    background-color: var(--cyber-black);
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(1.875rem, 5vw, 2.5rem);
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--text-gray);
    max-width: 42rem;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: 1.5rem;
    border-radius: 12px;
    background-color: var(--cyber-gray);
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(0, 255, 65, 0.5);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-color: var(--cyber-black);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 1px solid var(--border-gray);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    border-color: rgba(0, 255, 65, 0.3);
}

.feature-icon svg {
    color: var(--cyber-green);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.feature-card:hover h3 {
    color: var(--cyber-green);
}

.feature-card p {
    color: var(--text-gray);
    font-size: 0.875rem;
    line-height: 1.6;
}

.cta-box {
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(to right, var(--cyber-gray), var(--cyber-black));
    border: 1px solid var(--border-gray);
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .cta-box {
        flex-direction: row;
        justify-content: space-between;
    }
}

.cta-content h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.cta-content p {
    color: var(--text-gray);
}

.btn-white {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: white;
    color: var(--cyber-black);
    font-weight: bold;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-white:hover {
    background-color: var(--cyber-green);
}

/* Rules Section */
.rules {
    padding: 5rem 0;
    background-color: var(--cyber-dark);
    border-top: 1px solid var(--border-gray);
}

.rules-content {
    max-width: 42rem;
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--cyber-gray);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
}

.rules-content ul {
    list-style: none;
}

.rules-content li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-gray);
    color: var(--text-gray);
    font-size: 1rem;
}

.rules-content li:last-child {
    border-bottom: none;
}

/* Hall of Fame */
.hall-of-fame {
    padding: 5rem 0;
    background-color: var(--cyber-dark);
    border-top: 1px solid var(--border-gray);
}

.podium {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: end;
}

@media (min-width: 768px) {
    .podium {
        grid-template-columns: repeat(3, 1fr);
    }
}

.podium-card {
    background-color: rgba(26, 26, 26, 0.5);
    border: 1px solid var(--border-gray);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.podium-card.first {
    height: 384px;
    background-color: rgba(26, 26, 26, 0.8);
    border-color: rgba(0, 255, 65, 0.3);
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.05);
}

.podium-card.second,
.podium-card.third {
    height: 320px;
}

.podium-card:hover {
    border-color: var(--text-gray);
}

.podium-card.first:hover {
    border-color: var(--cyber-green);
}

.rank-badge {
    position: absolute;
    top: -1rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.25rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.rank-badge.gold {
    background-color: var(--cyber-green);
    color: var(--cyber-black);
    width: 64px;
    height: 64px;
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.rank-badge.silver {
    background-color: #9ca3af;
    color: var(--cyber-black);
}

.rank-badge.bronze {
    background-color: #c2410c;
    color: white;
}

.trophy-icon {
    margin-bottom: 1rem;
    color: #4b5563;
    transition: color 0.3s ease;
}

.podium-card:hover .trophy-icon {
    color: var(--text-gray);
}

.gold-trophy {
    color: #eab308;
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 4px 8px rgba(234, 179, 8, 0.3));
}

.podium-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    color: #6b7280;
    transition: color 0.3s ease;
}

.podium-card:hover h3 {
    color: var(--text-gray);
}

.winner-title {
    font-size: 1.5rem;
    color: var(--cyber-green) !important;
    animation: pulse 2s infinite;
}

.podium-card p {
    font-size: 0.875rem;
    color: #4b5563;
    margin-top: 0.5rem;
}

/* Sponsors */
.sponsors {
    padding: 3rem 0;
    border-top: 1px solid var(--border-gray);
    text-align: center;
}

.sponsors-label {
    color: #4b5563;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

.sponsors-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    opacity: 0.3;
    filter: grayscale(1);
    transition: all 0.5s ease;
}

.sponsors-grid:hover {
    filter: grayscale(0);
}

.sponsor-placeholder {
    height: 48px;
    width: 128px;
    background-color: var(--border-gray);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #4b5563;
}

/* Footer */
.footer {
    background-color: #000;
    border-top: 1px solid var(--border-gray);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-info {
    text-align: center;
}

@media (min-width: 768px) {
    .footer-info {
        text-align: right;
    }
}

.footer-info p {
    color: #6b7280;
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    justify-content: center;
}

@media (min-width: 768px) {
    .social-links {
        justify-content: flex-end;
    }
}

.social-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--cyber-green);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes blink {
    0%, 49% {
        opacity: 1;
    }
    50%, 100% {
        opacity: 0;
    }
}

/* Mobile Menu (Optional Enhancement) */
@media (max-width: 767px) {
    .nav-links {
        display: none;
    }

}

.winner-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-gray);
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.podium-card.first .winner-avatar {
    width: 140px;
    height: 140px;
    border-color: var(--cyber-green);
    box-shadow: 0 0 25px rgba(0, 255, 65, 0.2);
}

.podium-card:hover .winner-avatar {
    transform: scale(1.05);
}