:root {
    /* Cyberpunk Colors */
    --cyber-pink: #ff006e;
    --cyber-purple: #8338ec;
    --cyber-blue: #00f5ff;
    --cyber-cyan: #00d9ff;
    --cyber-yellow: #ffbe0b;
    --cyber-gold: #ffd60a;
    --cyber-silver: #b8c5d6;
    --cyber-bronze: #cd7f32;
    
    /* Dark Theme */
    --bg-dark: #0a0a0f;
    --bg-darker: #050508;
    --bg-card: rgba(15, 15, 25, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --text-muted: #6b7280;
    
    /* Effects */
    --glow-intensity: 20px;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Cyberpunk Background */
.cyber-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(180deg, #0a0a0f 0%, #1a0a2e 50%, #0a0a0f 100%);
}

.grid-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 245, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 245, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 100px 20px 80px;
    position: relative;
    z-index: 1;
}

.glitch-container {
    margin-bottom: 20px;
}

.glitch {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    color: var(--text-primary);
    letter-spacing: 0.1em;
    text-shadow: 
        0 0 10px var(--cyber-blue),
        0 0 20px var(--cyber-blue),
        0 0 30px var(--cyber-blue),
        0 0 40px var(--cyber-pink);
    animation: glitchAnim 3s infinite;
}

@keyframes glitchAnim {
    0%, 90%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--cyber-pink);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitchBefore 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--cyber-blue);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitchAfter 2.5s infinite linear alternate-reverse;
}

@keyframes glitchBefore {
    0% { clip: rect(61px, 9999px, 52px, 0); }
    20% { clip: rect(33px, 9999px, 144px, 0); }
    40% { clip: rect(121px, 9999px, 115px, 0); }
    60% { clip: rect(144px, 9999px, 162px, 0); }
    80% { clip: rect(79px, 9999px, 88px, 0); }
    100% { clip: rect(26px, 9999px, 91px, 0); }
}

@keyframes glitchAfter {
    0% { clip: rect(122px, 9999px, 100px, 0); }
    20% { clip: rect(82px, 9999px, 48px, 0); }
    40% { clip: rect(3px, 9999px, 136px, 0); }
    60% { clip: rect(98px, 9999px, 71px, 0); }
    80% { clip: rect(109px, 9999px, 133px, 0); }
    100% { clip: rect(41px, 9999px, 6px, 0); }
}

.subtitle {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    color: var(--cyber-cyan);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.tagline {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.cyber221-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(131, 56, 236, 0.2);
    border: 2px solid var(--cyber-purple);
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.5);
    animation: pulse 2s infinite;
}

.cyber221-badge span {
    color: var(--cyber-blue);
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 20px rgba(131, 56, 236, 0.5); }
    50% { box-shadow: 0 0 30px rgba(131, 56, 236, 0.8); }
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--cyber-purple);
}

.section-header i {
    font-size: 2rem;
    color: var(--cyber-cyan);
}

.section-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(45deg, var(--cyber-cyan), var(--cyber-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Results Section */
.results-section {
    margin-bottom: 80px;
}

/* Winner Cards */
.winner-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.winner-card:hover {
    transform: translateY(-5px);
}

.winner-card.gold {
    border: 3px solid var(--cyber-gold);
    box-shadow: 0 0 30px rgba(255, 214, 10, 0.3);
}

.winner-card.gold:hover {
    box-shadow: 0 0 50px rgba(255, 214, 10, 0.5);
}

.winner-card.silver {
    border: 3px solid var(--cyber-silver);
    box-shadow: 0 0 30px rgba(184, 197, 214, 0.3);
}

.winner-card.silver:hover {
    box-shadow: 0 0 50px rgba(184, 197, 214, 0.5);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, transparent 30%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.winner-card:hover .card-glow {
    opacity: 1;
}

.gold-glow {
    background: radial-gradient(circle, rgba(255, 214, 10, 0.1) 0%, transparent 70%);
}

.silver-glow {
    background: radial-gradient(circle, rgba(184, 197, 214, 0.1) 0%, transparent 70%);
}

.bronze-glow {
    background: radial-gradient(circle, rgba(205, 127, 50, 0.1) 0%, transparent 70%);
}

.rank-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-pink));
    border-radius: 30px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.4);
}

.rank-badge i {
    font-size: 1.3rem;
}

.winner-info {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.avatar-container {
    position: relative;
    flex-shrink: 0;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    position: relative;
    z-index: 2;
}

.gold-avatar {
    background: linear-gradient(135deg, #ffd60a, #ffbe0b);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(255, 214, 10, 0.6);
}

.silver-avatar {
    background: linear-gradient(135deg, #e0e7ef, #b8c5d6);
    color: var(--bg-dark);
    box-shadow: 0 0 30px rgba(184, 197, 214, 0.6);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 2s infinite;
}

.gold-ring {
    border: 3px solid var(--cyber-gold);
}

.silver-ring {
    border: 3px solid var(--cyber-silver);
}

@keyframes pulseRing {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

.winner-details {
    flex: 1;
}

.winner-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--cyber-cyan);
    text-transform: uppercase;
}

.achievements {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: rgba(131, 56, 236, 0.2);
    border-left: 4px solid var(--cyber-pink);
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
}

.achievement i {
    color: var(--cyber-gold);
    font-size: 1.3rem;
}

.performance-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-top: 15px;
}

/* Team Cards */
.team-card {
    position: relative;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 30px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-card.gold {
    border: 3px solid var(--cyber-gold);
    box-shadow: 0 0 30px rgba(255, 214, 10, 0.3);
}

.team-card.gold:hover {
    box-shadow: 0 0 50px rgba(255, 214, 10, 0.5);
}

.team-card.silver {
    border: 3px solid var(--cyber-silver);
    box-shadow: 0 0 30px rgba(184, 197, 214, 0.3);
}

.team-card.silver:hover {
    box-shadow: 0 0 50px rgba(184, 197, 214, 0.5);
}

.team-card.bronze {
    border: 3px solid var(--cyber-bronze);
    box-shadow: 0 0 30px rgba(205, 127, 50, 0.3);
}

.team-card.bronze:hover {
    box-shadow: 0 0 50px rgba(205, 127, 50, 0.5);
}

.team-header {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-bottom: 30px;
}

.team-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
}

.gold-team {
    background: linear-gradient(135deg, #ffd60a, #ffbe0b);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(255, 214, 10, 0.6);
}

.silver-team {
    background: linear-gradient(135deg, #e0e7ef, #b8c5d6);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(184, 197, 214, 0.6);
}

.bronze-team {
    background: linear-gradient(135deg, #e89b5a, #cd7f32);
    color: var(--bg-dark);
    box-shadow: 0 0 25px rgba(205, 127, 50, 0.6);
}

.team-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.3rem);
    font-weight: 700;
    color: var(--cyber-cyan);
    text-transform: uppercase;
}

.team-members {
    display: grid;
    gap: 15px;
}

.member {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0, 245, 255, 0.05);
    border: 2px solid rgba(0, 245, 255, 0.2);
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.member:hover {
    background: rgba(0, 245, 255, 0.1);
    border-color: var(--cyber-cyan);
    transform: translateX(10px);
}

.member i {
    color: var(--cyber-pink);
    font-size: 1.5rem;
}

/* Challenges Section */
.challenges-section {
    margin-bottom: 80px;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.challenge-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px 20px;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(131, 56, 236, 0.3);
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.challenge-item:hover {
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    transform: translateY(-5px);
}

.challenge-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyber-purple), var(--cyber-pink));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 5px 20px rgba(255, 0, 110, 0.4);
}

.challenge-item span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Congratulations Section */
.congrats-section {
    margin-bottom: 60px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(131, 56, 236, 0.2), rgba(255, 0, 110, 0.2));
    border: 2px solid var(--cyber-purple);
    border-radius: 20px;
    text-align: center;
}

.congrats-content {
    max-width: 900px;
    margin: 0 auto;
}

.congrats-content i {
    font-size: 3rem;
    color: var(--cyber-pink);
    margin-bottom: 20px;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.congrats-content h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 25px;
    background: linear-gradient(45deg, var(--cyber-cyan), var(--cyber-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.congrats-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.congrats-content strong {
    color: var(--cyber-cyan);
    font-weight: 700;
}

/* Footer */
.footer {
    background: var(--bg-darker);
    border-top: 2px solid var(--cyber-purple);
    padding: 40px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--cyber-cyan);
}

.footer-logo i {
    font-size: 2rem;
}

.footer p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(131, 56, 236, 0.2);
    border: 2px solid var(--cyber-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--cyber-purple);
    border-color: var(--cyber-cyan);
    box-shadow: 0 0 20px rgba(131, 56, 236, 0.6);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 60px 20px 50px;
    }

    .winner-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .achievements {
        width: 100%;
    }

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

    .member {
        justify-content: center;
    }

    .rank-badge {
        position: static;
        margin-bottom: 20px;
        align-self: center;
    }

    .challenges-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .congrats-section {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .avatar {
        width: 100px;
        height: 100px;
        font-size: 2.5rem;
    }

    .pulse-ring {
        width: 100px;
        height: 100px;
    }

    .team-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .challenge-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }
}