:root {
    --primary: #ff004c;
    --secondary: #00f2ff;
    --bg-dark: #0a0a0c;
    --card-bg: rgba(20, 20, 25, 0.7);
    --text-light: #ffffff;
    --text-dim: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, rgba(255, 0, 76, 0.1) 0%, transparent 70%),
        linear-gradient(rgba(0, 242, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 242, 255, 0.05) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    background-attachment: fixed;
    pointer-events: none;
    z-index: -1;
    perspective: 1000px;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    pointer-events: none;
    z-index: 1000;
    filter: contrast(120%) brightness(120%);
}

.mouse-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 242, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Header */
header {
    height: 120px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 12, 0.8);
    position: sticky;
    top: 0;
    z-index: 100;
}

.h-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.logo-left {
    flex: 1;
    display: flex;
    align-items: center;
}

.logo-center {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.cu-logo-large {
    height: 90px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.cu-logo-large:hover {
    transform: scale(1.15) rotate(2deg);
    filter: drop-shadow(0 0 30px rgba(255, 255, 255, 0.5));
}

.campus-text {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 1.4rem;
    background: linear-gradient(90deg, #fff, var(--secondary), var(--primary));
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientText 3s linear infinite;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

@keyframes gradientText {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.nav-cta {
    text-decoration: none;
    color: var(--text-light);
    border: 1px solid var(--primary);
    padding: 8px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background: rgba(255, 0, 76, 0.1);
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-cta:hover {
    background: var(--primary);
    box-shadow: 0 0 20px rgba(255, 0, 76, 0.5);
}

/* Hero */
.hero {
    padding: 60px 0;
}

.hero-image-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 40px;
}

.hero-poster {
    max-width: 100%;
    max-height: 400px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(255, 0, 76, 0.2) 0%, transparent 60%);
    z-index: -1;
    filter: blur(40px);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
}

.hero-poster {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

.hero-poster {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    filter: drop-shadow(0 0 30px rgba(0, 242, 255, 0.3));
    border: none;
    box-shadow: none;
}

.season-badge {
    display: inline-block;
    background: var(--primary);
    padding: 6px 20px;
    border-radius: 4px;
    font-weight: 900;
    font-size: 0.9rem;
    letter-spacing: 3px;
    margin-top: -20px;
    position: relative;
    z-index: 10;
}

.prize-pool span {
    color: var(--text-dim);
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 0.9rem;
}

.prize-pool h2 {
    font-size: 3rem;
    color: var(--secondary);
    font-weight: 900;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.3);
}

/* Registration */
.registration {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 242, 255, 0.05));
}

.section-title {
    margin-bottom: 50px;
    font-size: 2rem;
    text-align: center;
    letter-spacing: 5px;
    opacity: 0.8;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.game-card {
    position: relative;
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.1s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

.game-card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 0, 76, 0.2);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.game-card:hover .card-bg {
    opacity: 0.6;
}

.valorant .card-bg {
    background-image: linear-gradient(to top, var(--bg-dark), transparent), url('assets/VALORANT.jpg');
}

.bgmi .card-bg {
    background-image: linear-gradient(to top, var(--bg-dark), transparent), url('assets/Bgmi.jpg');
}

.freefire .card-bg {
    background-image: linear-gradient(to top, var(--bg-dark), transparent), url('assets/free%20fire.jpg');
}

.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.card-content h3 {
    font-size: 1.8rem;
    font-weight: 900;
    margin-bottom: 5px;
}

.card-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    box-shadow: 0 0 20px var(--primary);
    letter-spacing: 2px;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer p {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-bottom: 15px;
}

.dev-tag {
    font-size: 1rem !important;
    font-weight: 700;
    color: #fff !important;
}

.aurix-glow {
    color: var(--secondary);
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.footer-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.badge-label {
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    margin-bottom: 8px;
    font-weight: 700;
}

.badge-text {
    font-weight: 900;
    letter-spacing: 2px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 15px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.05);
    display: inline-block;
    margin: 0 5px 10px;
    transition: all 0.3s ease;
}

.badge-text:hover {
    border-color: var(--secondary);
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    transform: translateY(-2px);
}

.elevation {
    border-color: var(--primary);
    color: var(--primary);
}

.elevation:hover {
    border-color: var(--primary);
    background: rgba(255, 0, 76, 0.1);
    box-shadow: 0 0 15px rgba(255, 0, 76, 0.2);
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-poster.reveal-on-scroll {
    opacity: 0;
    transform: scale(0.9);
}

.hero-poster.reveal-on-scroll.visible {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 768px) {
    header {
        height: 100px;
        padding: 0 10px;
    }

    .cu-logo-large {
        height: 60px;
    }

    .campus-text {
        font-size: 1rem;
    }

    .container {
        padding: 0 10px;
    }

    .logo {
        gap: 8px;
    }

    .campus-text {
        font-size: 0.8rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-poster {
        max-width: 90% !important;
        margin-bottom: 20px;
    }

    .season-badge {
        font-size: 0.8rem;
        padding: 4px 15px;
        margin-top: -10px;
    }

    .prize-pool h2 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.5rem;
        letter-spacing: 3px;
        margin-bottom: 30px;
    }

    .game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .game-card {
        height: 380px;
        padding: 20px;
    }

    .card-content h3 {
        font-size: 1.5rem;
    }

    /* Disable mouse-glow on mobile */
    .mouse-glow {
        display: none !important;
    }

    /* Adjust background for performance */
    .background-overlay {
        background-size: 100% 100%, 30px 30px, 30px 30px;
    }
}

@media (max-width: 480px) {
    .campus-text {
        display: none;
        /* Hide text logo on very small screens to avoid overlap */
    }

    .nav-logo {
        height: 45px;
    }

    .nav-cta {
        padding: 6px 15px;
        font-size: 0.8rem;
    }

    .hero-poster {
        max-height: 250px;
    }

    .prize-pool h2 {
        font-size: 1.8rem;
    }
}