@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;800&display=swap');

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

body {
    font-family: 'Poppins', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0.9;
}

.video-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
}

.container {
    position: relative;
    z-index: 10;
    max-width: 600px;
    width: 100%;
    background: rgba(20, 20, 20, 0);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(255, 154, 24, 0.2);
    border: 1px solid rgba(255, 154, 24, 0.3);
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 30px 20px;
    background: rgba(10, 10, 10, 0);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 154, 24, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.profile-image {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: rgba(20, 20, 20, 0.9);
    border: 3px solid #ff9a18;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 18px;
    box-shadow: 0 0 30px rgba(255, 154, 24, 0.5);
    animation: pulse-glow 3s ease-in-out infinite;
}

.profile-image::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #ff9a18, #ff6b18, #ff9a18, #ffc918);
    background-size: 300% 300%;
    border-radius: 50%;
    z-index: -1;
    animation: rotate-gradient 4s linear infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(255, 154, 24, 0.5);
    }
    50% {
        box-shadow: 0 0 50px rgba(255, 154, 24, 0.8);
    }
}

@keyframes rotate-gradient {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.animated-logo {
    animation: logo-pulse-scale 2s ease-in-out infinite, logo-glow-shift 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(138, 43, 226, 0.8)) drop-shadow(0 0 10px rgba(255, 154, 24, 0.6));
    transform-origin: center;
}

.animated-logo:hover {
    animation: logo-shake 0.5s ease-in-out, logo-glow-shift 3s ease-in-out infinite;
}

@keyframes logo-pulse-scale {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.08);
    }
}

@keyframes logo-glow-shift {
    0%, 100% {
        filter: 
            drop-shadow(0 0 20px rgba(138, 43, 226, 0.8)) 
            drop-shadow(0 0 10px rgba(255, 154, 24, 0.6))
            brightness(1);
    }
    33% {
        filter: 
            drop-shadow(0 0 25px rgba(255, 154, 24, 1)) 
            drop-shadow(0 0 15px rgba(138, 43, 226, 0.6))
            brightness(1.1);
    }
    66% {
        filter: 
            drop-shadow(0 0 30px rgba(138, 43, 226, 1)) 
            drop-shadow(0 0 20px rgba(255, 0, 94, 0.6))
            brightness(1.05);
    }
}

@keyframes logo-shake {
    0%, 100% {
        transform: rotate(0deg) scale(1);
    }
    10% {
        transform: rotate(-5deg) scale(1.1);
    }
    20% {
        transform: rotate(5deg) scale(1.15);
    }
    30% {
        transform: rotate(-5deg) scale(1.1);
    }
    40% {
        transform: rotate(5deg) scale(1.15);
    }
    50% {
        transform: rotate(-3deg) scale(1.1);
    }
    60% {
        transform: rotate(3deg) scale(1.1);
    }
    70% {
        transform: rotate(-2deg) scale(1.05);
    }
    80% {
        transform: rotate(2deg) scale(1.05);
    }
    90% {
        transform: rotate(-1deg) scale(1.02);
    }
}

.profile-image:hover {
    animation: pulse-glow-intense 1.5s ease-in-out infinite;
    transform: scale(1.02);
}

@keyframes pulse-glow-intense {
    0%, 100% {
        box-shadow: 
            0 0 40px rgba(255, 154, 24, 0.9),
            0 0 60px rgba(138, 43, 226, 0.6),
            inset 0 0 30px rgba(255, 154, 24, 0.2);
    }
    50% {
        box-shadow: 
            0 0 60px rgba(138, 43, 226, 1),
            0 0 80px rgba(255, 154, 24, 0.8),
            0 0 100px rgba(255, 0, 94, 0.4),
            inset 0 0 40px rgba(138, 43, 226, 0.3);
    }
}

.name {
    font-size: 32px;
    font-weight: 800;
    font-family: Impact, 'Arial Black', sans-serif;
    margin-bottom: 10px;
    letter-spacing: 3px;
    color: #ffffff;
    position: relative;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 154, 24, 0.6);
    animation: glitch-main 3s infinite;
}

@keyframes glitch-main {
    0%, 90%, 100% {
        transform: translate(0) skew(0deg);
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 154, 24, 0.6);
    }
    91% {
        transform: translate(-3px, 2px) skew(-2deg);
        text-shadow: 
            3px 0 5px rgba(255, 154, 24, 0.8),
            -3px 0 5px rgba(0, 255, 255, 0.8),
            0 0 20px rgba(255, 255, 255, 0.5);
    }
    92% {
        transform: translate(4px, -2px) skew(3deg);
        text-shadow: 
            -4px 0 5px rgba(255, 107, 24, 0.8),
            4px 0 5px rgba(255, 201, 24, 0.8),
            0 0 30px rgba(255, 154, 24, 0.7);
    }
    93% {
        transform: translate(-2px, -1px) skew(-1deg);
        text-shadow: 
            2px 0 5px rgba(255, 0, 94, 0.8),
            -2px 0 5px rgba(0, 212, 255, 0.8);
    }
    94% {
        transform: translate(3px, 1px) skew(2deg);
        text-shadow: 
            -3px 0 5px rgba(255, 154, 24, 0.9),
            3px 0 5px rgba(255, 255, 255, 0.9),
            0 0 40px rgba(255, 154, 24, 1);
    }
    95% {
        transform: translate(0) skew(0deg);
        text-shadow: 
            0 0 10px rgba(255, 255, 255, 0.8),
            0 0 20px rgba(255, 154, 24, 0.6);
    }
}

.name::before,
.name::after {
    content: 'COMMANDO GAMING OFFICIAL';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.name::before {
    color: #ff9a18;
    animation: glitch-layer-1 2.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
    text-shadow: 
        -2px 0 3px rgba(255, 154, 24, 0.8),
        0 0 10px rgba(255, 154, 24, 0.6);
}

.name::after {
    color: #ffc918;
    animation: glitch-layer-2 2.7s infinite;
    clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
    text-shadow: 
        2px 0 3px rgba(255, 201, 24, 0.8),
        0 0 10px rgba(255, 201, 24, 0.6);
}

@keyframes glitch-layer-1 {
    0%, 88%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    89% {
        opacity: 1;
        transform: translate(-6px, 3px);
    }
    90% {
        opacity: 1;
        transform: translate(7px, -2px);
    }
    91% {
        opacity: 1;
        transform: translate(-4px, 1px);
    }
    92% {
        opacity: 0;
        transform: translate(5px, -3px);
    }
}

@keyframes glitch-layer-2 {
    0%, 88%, 100% {
        transform: translate(0);
        opacity: 0;
    }
    89% {
        opacity: 1;
        transform: translate(5px, -3px);
    }
    90% {
        opacity: 1;
        transform: translate(-6px, 2px);
    }
    91% {
        opacity: 1;
        transform: translate(4px, -1px);
    }
    92% {
        opacity: 0;
        transform: translate(-5px, 3px);
    }
}

.tagline {
    color: #ff9a18;
    font-size: 15px;
    font-style: italic;
    font-weight: 500;
    position: relative;
    text-align: center;
    max-width: 100%;
    animation: neon-flicker 4s ease-in-out infinite, text-wave 3s ease-in-out infinite;
    text-shadow: 
        0 0 10px rgba(255, 154, 24, 0.8),
        0 0 20px rgba(255, 154, 24, 0.5),
        0 0 30px rgba(138, 43, 226, 0.3);
    letter-spacing: 0.5px;
}

@keyframes text-wave {
    0%, 100% {
        transform: translateY(0px);
    }
    25% {
        transform: translateY(-2px);
    }
    50% {
        transform: translateY(0px);
    }
    75% {
        transform: translateY(2px);
    }
}

@keyframes neon-flicker {
    0%, 100% {
        text-shadow: 
            0 0 10px rgba(255, 154, 24, 0.8),
            0 0 20px rgba(255, 154, 24, 0.5),
            0 0 30px rgba(138, 43, 226, 0.3);
        color: #ff9a18;
        opacity: 1;
    }
    5% {
        text-shadow: 
            0 0 5px rgba(255, 154, 24, 0.4),
            0 0 10px rgba(255, 154, 24, 0.2);
        opacity: 0.8;
    }
    10% {
        text-shadow: 
            0 0 15px rgba(255, 154, 24, 1),
            0 0 30px rgba(255, 154, 24, 0.7),
            0 0 40px rgba(138, 43, 226, 0.5);
        opacity: 1;
    }
    15% {
        text-shadow: 
            0 0 8px rgba(255, 154, 24, 0.6),
            0 0 15px rgba(255, 154, 24, 0.3);
        opacity: 0.9;
    }
    20%, 80% {
        text-shadow: 
            0 0 20px rgba(255, 154, 24, 1),
            0 0 35px rgba(255, 154, 24, 0.7),
            0 0 50px rgba(138, 43, 226, 0.5),
            0 0 60px rgba(255, 0, 94, 0.3);
        color: #ffc918;
        opacity: 1;
    }
    85% {
        text-shadow: 
            0 0 10px rgba(255, 154, 24, 0.5),
            0 0 20px rgba(255, 154, 24, 0.3);
        opacity: 0.85;
    }
    90% {
        text-shadow: 
            0 0 25px rgba(255, 154, 24, 1),
            0 0 40px rgba(138, 43, 226, 0.6);
        opacity: 1;
    }
}

.section-title {
    color: #ff9a18;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 30px 0 15px;
    text-align: center;
}

.tournament-card,
.link-card {
    background: rgba(30, 30, 30, 0.25);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 154, 24, 0.3);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
    color: white;
}

.tournament-card:hover,
.link-card:hover {
    background: rgba(40, 40, 40, 0.6);
    border-color: #ff9a18;
    box-shadow: 0 0 20px rgba(255, 154, 24, 0.4);
    transform: translateY(-2px);
}

.icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 154, 24, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(1.5) drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
}

.icon i {
    color: #ff9a18;
}

.content {
    flex: 1;
}

.content h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
}

.content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
}

.copyright {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(20, 20, 20, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 154, 24, 0.2);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

@media (max-width: 768px) {
    .container {
        padding: 30px 20px;
    }

    .name {
        font-size: 24px;
    }

    .tagline {
        font-size: 14px;
    }
}

/* Initial state for GSAP animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(30px);
}
