/* ===== VARIABLES & RESET ===== */
:root {
    --color-primary: #00ffff;
    --color-secondary: #ff00ff;
    --color-accent: #8b00ff;
    --color-dark: #0a0a0f;
    --color-darker: #050508;
    --color-text: #ffffff;
    --color-text-muted: #a0a0b0;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--color-darker);
    color: var(--color-text);
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ===== VIDEO BACKGROUND ===== */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    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%);
    filter: blur(15px) brightness(0.4);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center,
                rgba(10, 10, 15, 0.75) 0%,
                rgba(5, 5, 8, 0.92) 100%);
    z-index: 1;
}

/* ===== FLARES ===== */
.flares {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.flare {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.12;
    animation: flareFloat 20s infinite ease-in-out;
}

.flare-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--color-primary), transparent);
    top: 10%;
    left: 15%;
    animation-delay: 0s;
}

.flare-2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-secondary), transparent);
    bottom: 20%;
    right: 10%;
    animation-delay: 7s;
}

.flare-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--color-accent), transparent);
    top: 50%;
    left: 50%;
    animation-delay: 14s;
}

@keyframes flareFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.12;
    }
    33% {
        transform: translate(20px, -30px) scale(1.05);
        opacity: 0.18;
    }
    66% {
        transform: translate(-15px, 20px) scale(0.95);
        opacity: 0.08;
    }
}

/* ===== CONTAINER ===== */
.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    gap: 60px;
}

/* ===== PROFILE SECTION ===== */
.profile-section {
    position: relative;
}

.profile-circle {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3),
                0 0 40px rgba(255, 0, 255, 0.2);
    border: 3px solid transparent;
    background: linear-gradient(var(--color-dark), var(--color-dark)) padding-box,
                linear-gradient(135deg, var(--color-primary), var(--color-secondary)) border-box;
}

.profile-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-circle:hover {
    transform: scale(1.08);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5),
                0 0 60px rgba(255, 0, 255, 0.3);
}

.profile-circle:hover img {
    transform: scale(1.05);
}

/* ===== LOGO SECTION ===== */
.logo-section {
    text-align: center;
    animation: fadeInUp 0.8s ease-out;
}

.main-title {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
    background: linear-gradient(135deg,
                var(--color-primary) 0%,
                var(--color-secondary) 50%,
                var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 15px;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    color: var(--color-text-muted);
    letter-spacing: 2px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ===== COUNTDOWN SECTION ===== */
.countdown-section {
    width: 100%;
    max-width: 900px;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.countdown-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(20px, 3vw, 30px);
    background: rgba(10, 10, 15, 0.7);
    border-radius: 15px;
    border: 2px solid rgba(0, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    min-width: clamp(80px, 15vw, 120px);
    transition: transform 0.2s ease, border-color 0.3s ease;
}

.countdown-item:hover {
    transform: translateY(-3px);
    border-color: var(--color-primary);
}

.countdown-value {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    transition: transform 0.1s ease;
}

.countdown-label {
    font-size: clamp(0.75rem, 1.5vw, 1rem);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.countdown-separator {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--color-secondary);
    font-weight: 700;
    opacity: 0.8;
}

/* ===== WAVEFORM ===== */
.waveform-container {
    width: 100%;
    max-width: 600px;
    height: 80px;
    position: relative;
    margin: 20px 0;
}

#waveformCanvas {
    width: 100%;
    height: 100%;
}

/* ===== SOCIAL SECTION ===== */
.social-section {
    display: flex;
    gap: clamp(20px, 4vw, 40px);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.social-link {
    position: relative;
    width: clamp(50px, 10vw, 70px);
    height: clamp(50px, 10vw, 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(10, 10, 15, 0.7);
    border: 2px solid rgba(0, 255, 255, 0.3);
    color: var(--color-text);
    font-size: clamp(1.5rem, 4vw, 2rem);
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    backdrop-filter: blur(5px);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.social-link:nth-child(2):hover {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.social-link:nth-child(3):hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* ===== FOOTER ===== */
.footer {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 30px 20px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    letter-spacing: 1px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(5, 5, 8, 0.6);
    backdrop-filter: blur(5px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        gap: 40px;
        padding: 30px 15px;
    }

    .profile-circle {
        width: 150px;
        height: 150px;
    }

    .main-title {
        letter-spacing: 4px;
    }

    .subtitle {
        letter-spacing: 1px;
    }

    .countdown-container {
        gap: 10px;
    }

    .countdown-separator {
        display: none;
    }

    .waveform-container {
        height: 60px;
    }

    .flare {
        opacity: 0.08;
    }

    .flare-1,
    .flare-2,
    .flare-3 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .container {
        gap: 30px;
    }

    .profile-circle {
        width: 120px;
        height: 120px;
    }

    .countdown-container {
        gap: 8px;
    }

    .countdown-item {
        min-width: 70px;
        padding: 15px 10px;
    }

    .social-section {
        gap: 15px;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Force GPU acceleration for smooth animations */
.countdown-value,
.profile-circle,
.social-link {
    will-change: transform;
}