/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6a11cb;
    --secondary: #2575fc;
    --accent: #00f2fe;
    --dark: #0f0c29;
    --darker: #03001e;
    --light: #ffffff;
    --gray: #2d3748;
    --discord: #5865F2;
    --youtube: #FF0000;
    --reddit: #FF4500;
}

body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    line-height: 1.6;
    height: 100vh;
    overflow-x: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Animated background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(106, 17, 203, 0.1) 0%, rgba(3, 0, 30, 0) 20%),
                radial-gradient(circle at 90% 80%, rgba(37, 117, 252, 0.1) 0%, rgba(3, 0, 30, 0) 20%);
    z-index: -2;
    animation: bgAnimation 20s infinite alternate;
}

@keyframes bgAnimation {
    0% { transform: scale(1); }
    100% { transform: scale(1.2); }
}

/* Glowing border */
.glow-border {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    box-shadow: inset 0 0 50px rgba(106, 17, 203, 0.5),
                inset 0 0 100px rgba(37, 117, 252, 0.3);
    animation: glowPulse 4s infinite alternate;
}

@keyframes glowPulse {
    0% { box-shadow: inset 0 0 50px rgba(106, 17, 203, 0.5), inset 0 0 100px rgba(37, 117, 252, 0.3); }
    100% { box-shadow: inset 0 0 70px rgba(106, 17, 203, 0.7), inset 0 0 140px rgba(37, 117, 252, 0.5); }
}

/* Particles container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

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

/* Header styles */
header {
    background: rgba(15, 12, 41, 0.3);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(106, 17, 203, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: 1px;
    text-align: center;
}

.server-tag {
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
    text-align: center;
}

/* Hero section */
.hero {
    flex: 1;
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.hero h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(to right, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 242, 254, 0.3);
    position: relative;
}

.glitch {
    position: relative;
}

.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 #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch:after {
    left: -2px;
    text-shadow: -2px 0 #00fff9, 2px 2px #ff00c1;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(42px, 9999px, 44px, 0); }
    5% { clip: rect(12px, 9999px, 59px, 0); }
    10% { clip: rect(48px, 9999px, 29px, 0); }
    15% { clip: rect(42px, 9999px, 73px, 0); }
    20% { clip: rect(63px, 9999px, 27px, 0); }
    25% { clip: rect(34px, 9999px, 55px, 0); }
    30% { clip: rect(86px, 9999px, 73px, 0); }
    35% { clip: rect(20px, 9999px, 20px, 0); }
    40% { clip: rect(26px, 9999px, 60px, 0); }
    45% { clip: rect(25px, 9999px, 66px, 0); }
    50% { clip: rect(57px, 9999px, 98px, 0); }
    55% { clip: rect(5px, 9999px, 46px, 0); }
    60% { clip: rect(82px, 9999px, 31px, 0); }
    65% { clip: rect(54px, 9999px, 27px, 0); }
    70% { clip: rect(28px, 9999px, 99px, 0); }
    75% { clip: rect(45px, 9999px, 69px, 0); }
    80% { clip: rect(23px, 9999px, 85px, 0); }
    85% { clip: rect(1px, 9999px, 83px, 0); }
    90% { clip: rect(72px, 9999px, 11px, 0); }
    95% { clip: rect(60px, 9999px, 89px, 0); }
    100% { clip: rect(52px, 9999px, 74px, 0); }
}

@keyframes glitch-anim2 {
    0% { clip: rect(65px, 9999px, 100px, 0); }
    5% { clip: rect(52px, 9999px, 74px, 0); }
    10% { clip: rect(79px, 9999px, 85px, 0); }
    15% { clip: rect(75px, 9999px, 5px, 0); }
    20% { clip: rect(67px, 9999px, 61px, 0); }
    25% { clip: rect(14px, 9999px, 79px, 0); }
    30% { clip: rect(1px, 9999px, 66px, 0); }
    35% { clip: rect(86px, 9999px, 30px, 0); }
    40% { clip: rect(23px, 9999px, 98px, 0); }
    45% { clip: rect(85px, 9999px, 72px, 0); }
    50% { clip: rect(71px, 9999px, 75px, 0); }
    55% { clip: rect(2px, 9999px, 48px, 0); }
    60% { clip: rect(30px, 9999px, 16px, 0); }
    65% { clip: rect(59px, 9999px, 50px, 0); }
    70% { clip: rect(41px, 9999px, 62px, 0); }
    75% { clip: rect(2px, 9999px, 82px, 0); }
    80% { clip: rect(47px, 9999px, 73px, 0); }
    85% { clip: rect(3px, 9999px, 27px, 0); }
    90% { clip: rect(26px, 9999px, 55px, 0); }
    95% { clip: rect(42px, 9999px, 97px, 0); }
    100% { clip: rect(38px, 9999px, 49px, 0); }
}

/* Countdown styles */
.countdown-container {
    margin: 1.5rem 0;
}

.countdown-wrapper {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.countdown-item {
    background: rgba(15, 12, 41, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1rem;
    min-width: 100px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(106, 17, 203, 0.2);
    border: 1px solid rgba(106, 17, 203, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.countdown-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: 0.5s;
}

.countdown-item:hover:before {
    left: 100%;
}

.countdown-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4),
                0 0 25px rgba(106, 17, 203, 0.3);
}

.countdown-item span {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    color: var(--accent);
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.countdown-item p {
    font-size: 1rem;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--light);
    font-weight: 600;
}

/* About text */
.about-text {
    margin: 1rem 0;
}

.about-text p {
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

/* Social links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
    color: white;
    min-width: 180px;
    justify-content: center;
}

.social-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.5s;
    z-index: -1;
}

.social-button:hover:before {
    width: 100%;
}

.social-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.discord {
    background: linear-gradient(45deg, var(--discord), #7289da);
}

.youtube {
    background: linear-gradient(45deg, var(--youtube), #cc0000);
}

.reddit {
    background: linear-gradient(45deg, var(--reddit), #ff5722);
}

/* Footer */
footer {
    background: rgba(15, 12, 41, 0.3);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-top: 1px solid rgba(106, 17, 203, 0.3);
    text-align: center;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.copyright {
    color: #777;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 0.8rem;
    }
    
    .countdown-item span {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .social-button {
        width: 80%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }
    
    .countdown-item {
        min-width: 70px;
    }
    
    .countdown-item span {
        font-size: 1.5rem;
    }
    
    .countdown-item p {
        font-size: 0.8rem;
    }
}