:root {
    --primary: #0b94b0;
    --secondary: #55aaff;
    --dark: #121212;
    --darker: #0a0a0a;
    --light: #f0f0f0;
    --accent: #97f89c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    overflow-x: hidden;
    position: relative;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.lightning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    opacity: 0;
    pointer-events: none;
    animation: lightning 15s infinite;
}

@keyframes lightning {
    0%, 85%, 87%, 89%, 91%, 100% {
        opacity: 0;
    }
    86%, 88%, 90% {
        opacity: 0.1;
        background: white;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(10, 10, 10, 0.7);
    border-bottom: 1px solid rgba(132, 252, 119, 0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    height: 50px;
    transition: all 0.3s ease;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.hover-underline::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

main {
    margin-top: 100px;
    padding: 2rem 5%;
}

.section {
    padding: 4rem 0;
    position: relative;
}

.section.dark {
    background-color: var(--darker);
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 3px;
    bottom: -10px;
    left: 25%;
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80vh;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.glitch {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    color: var(--primary);
}

.glitch::before {
    content: attr(data-text);
    position: absolute;
    left: -2px;
    text-shadow: 2px 0 #00f;
    top: 0;
    color: var(--primary);
    background: var(--dark);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim 2s infinite linear alternate-reverse;
}

.glitch::after {
    content: attr(data-text);
    position: absolute;
    left: 2px;
    text-shadow: -2px 0 #f00;
    top: 0;
    color: var(--primary);
    background: var(--dark);
    overflow: hidden;
    clip: rect(0, 900px, 0, 0);
    animation: noise-anim2 3s infinite linear alternate-reverse;
}

@keyframes noise-anim {
    0% {
        clip: rect(85px, 9999px, 90px, 0);
    }
    5% {
        clip: rect(12px, 9999px, 65px, 0);
    }
    10% {
        clip: rect(55px, 9999px, 15px, 0);
    }
    15% {
        clip: rect(30px, 9999px, 85px, 0);
    }
    20% {
        clip: rect(75px, 9999px, 5px, 0);
    }
    25% {
        clip: rect(45px, 9999px, 35px, 0);
    }
    30% {
        clip: rect(10px, 9999px, 25px, 0);
    }
    35% {
        clip: rect(60px, 9999px, 70px, 0);
    }
    40% {
        clip: rect(15px, 9999px, 80px, 0);
    }
    45% {
        clip: rect(50px, 9999px, 30px, 0);
    }
    50% {
        clip: rect(25px, 9999px, 95px, 0);
    }
    55% {
        clip: rect(80px, 9999px, 5px, 0);
    }
    60% {
        clip: rect(5px, 9999px, 55px, 0);
    }
    65% {
        clip: rect(95px, 9999px, 20px, 0);
    }
    70% {
        clip: rect(40px, 9999px, 45px, 0);
    }
    75% {
        clip: rect(65px, 9999px, 10px, 0);
    }
    80% {
        clip: rect(20px, 9999px, 75px, 0);
    }
    85% {
        clip: rect(70px, 9999px, 40px, 0);
    }
    90% {
        clip: rect(5px, 9999px, 90px, 0);
    }
    95% {
        clip: rect(35px, 9999px, 60px, 0);
    }
    100% {
        clip: rect(95px, 9999px, 15px, 0);
    }
}

@keyframes noise-anim2 {
    0% {
        clip: rect(25px, 9999px, 30px, 0);
    }
    5% {
        clip: rect(65px, 9999px, 95px, 0);
    }
    10% {
        clip: rect(5px, 9999px, 20px, 0);
    }
    15% {
        clip: rect(90px, 9999px, 55px, 0);
    }
    20% {
        clip: rect(40px, 9999px, 10px, 0);
    }
    25% {
        clip: rect(75px, 9999px, 45px, 0);
    }
    30% {
        clip: rect(15px, 9999px, 80px, 0);
    }
    35% {
        clip: rect(50px, 9999px, 5px, 0);
    }
    40% {
        clip: rect(95px, 9999px, 35px, 0);
    }
    45% {
        clip: rect(30px, 9999px, 70px, 0);
    }
    50% {
        clip: rect(85px, 9999px, 25px, 0);
    }
    55% {
        clip: rect(10px, 9999px, 60px, 0);
    }
    60% {
        clip: rect(55px, 9999px, 15px, 0);
    }
    65% {
        clip: rect(20px, 9999px, 90px, 0);
    }
    70% {
        clip: rect(70px, 9999px, 40px, 0);
    }
    75% {
        clip: rect(5px, 9999px, 75px, 0);
    }
    80% {
        clip: rect(45px, 9999px, 5px, 0);
    }
    85% {
        clip: rect(95px, 9999px, 50px, 0);
    }
    90% {
        clip: rect(35px, 9999px, 20px, 0);
    }
    95% {
        clip: rect(80px, 9999px, 65px, 0);
    }
    100% {
        clip: rect(15px, 9999px, 95px, 0);
    }
}

.subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.server-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.server-ip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    margin: 0;
}

.player-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    margin: 0;
    padding-left: 27.5px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating {
    animation: floating 3s ease-in-out infinite;
    max-width: 400px;
    filter: drop-shadow(0 0 20px rgba(132, 252, 119, 0.5));
}

@keyframes floating {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(132, 252, 119, 0.3);
}

.shine::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 30%,
        rgba(255, 255, 255, 0.3) 45%,
        rgba(255, 255, 255, 0) 60%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -50%;
    }
    100% {
        left: 150%;
    }
}

.about-content {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.about-text {
    flex: 1;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.zoom-on-hover {
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.zoom-on-hover:hover {
    transform: scale(1.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    text-align: center;
    border: 1px solid rgba(132, 252, 119, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(132, 252, 119, 0.1);
    border-color: rgba(132, 252, 119, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.feature-card p {
    color: #ccc;
    line-height: 1.6;
}

.join-steps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step {
    flex: 1;
    min-width: 200px;
    max-width: 250px;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    background-color: rgba(132, 252, 119, 0.1);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.ip-box {
    display: flex;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
}

#server-ip {
    flex: 1;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(132, 252, 119, 0.3);
    border-radius: 5px 0 0 5px;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    outline: none;
}

.copy-button {
    padding: 1rem 1.5rem;
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: white;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.copy-button:hover {
    background: linear-gradient(45deg, #0b93b0, );
}

.rules-list {
    max-width: 800px;
    margin: 0 auto;
}

.rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    transition: all 0.3s ease;
}

.rule:hover {
    background-color: rgba(132, 252, 119, 0.1);
    transform: translateX(10px);
}

.rule i {
    font-size: 1.5rem;
    color: var(--primary);
    min-width: 30px;
}

.rule p {
    font-size: 1.1rem;
}

footer {
    padding: 3rem 5%;
    text-align: center;
    background-color: var(--darker);
    margin-top: 4rem;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--light);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary);
    transform: translateY(-5px);
}

footer p {
    margin-bottom: 1rem;
    color: #aaa;
}

@media (max-width: 1024px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }
    
    .server-info {
        justify-content: center;
    }
    
    .about-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 5%;
    }
    
    nav ul {
        gap: 1rem;
    }
    
    .glitch {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .server-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .join-steps {
        flex-direction: column;
        align-items: center;
    }
    
    .step {
        max-width: 100%;
    }
    
    .ip-box {
        flex-direction: column;
    }
    
    #server-ip {
        border-radius: 5px 5px 0 0;
    }
    
    .copy-button {
        border-radius: 0 0 5px 5px;
    }
}

.server-info {
    position: relative;
}

.server-status {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.server-status.online {
    background-color: #4CAF50;
    box-shadow: 0 0 10px #4CAF50;
}

.server-status.offline {
    background-color: #F44336;
    box-shadow: 0 0 10px #F44336;
}

.server-status.error {
    background-color: #FF9800;
    box-shadow: 0 0 10px #FF9800;
}

.pulse-count {
    animation: pulseCount 0.3s ease;
}

@keyframes pulseCount {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
        color: var(--primary);
    }
    100% {
        transform: scale(1);
    }
}