/* RESET */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

html{
    scroll-behavior: smooth;
}

body{
    background: #070a12;
    color: white;
    overflow: hidden;
}

/* PARTICLES */
#particles-js{
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* MAIN */
#main{
    display: none;
    opacity: 0;
    transition: opacity 0.8s ease;
    position: relative;
    z-index: 10;
}

/* NAVBAR */
.nav{
    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 30px 10%;
}

.logo{
    font-size: 1.7rem;
    font-weight: 900;
    color: #5865f2;
    letter-spacing: 2px;
}

.links a{
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-weight: 600;
    transition: 0.3s;
}

.links a:hover{
    color: #5865f2;
}

/* HERO */
.hero,
#features,
#join{
    text-align: center;
    padding: 120px 20px;
}

.hero-content{
    position: relative;
    z-index: 10;
}

/* SECOND PAGE LOGO */
.hero-logo{
    position: relative;

    width: 230px;
    height: 230px;

    margin: 0 auto 40px;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* ROTATING RING */
.hero-logo-ring{
    position: absolute;

    width: 100%;
    height: 100%;

    border-radius: 50%;

    border-top: 4px solid #5865f2;
    border-bottom: 4px solid #8b5cf6;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;

    animation: rotateRing 6s linear infinite;

    box-shadow:
        0 0 20px rgba(88,101,242,0.8),
        0 0 40px rgba(139,92,246,0.5);
}

/* SECOND LOGO IMAGE */
.hero-logo img{
    width: 170px;
    height: 170px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #5865f2;

    z-index: 2;

    box-shadow:
        0 0 20px #5865f2,
        0 0 50px rgba(88,101,242,0.9),
        0 0 90px rgba(88,101,242,0.5);

    animation: pulseLogo 3s ease-in-out infinite;
}

/* TYPING */
.typing{
    font-size: 4rem;
    font-weight: 900;
    min-height: 1.2em;

    margin-bottom: 20px;
}

.hero p{
    font-size: 1.2rem;
    opacity: 0.8;
}

/* BUTTON */
.btn{
    display: inline-block;

    margin-top: 30px;
    padding: 14px 35px;

    background: #5865f2;
    color: white;

    text-decoration: none;

    border-radius: 10px;

    font-weight: bold;

    transition: 0.3s;

    box-shadow:
        0 0 15px rgba(88,101,242,0.6);
}

.btn:hover{
    transform: scale(1.08);

    background: #4752c4;

    box-shadow:
        0 0 30px rgba(88,101,242,1);
}

/* FEATURES */
.title{
    font-size: 3rem;
    margin-bottom: 40px;
}

.grid{
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
}

.card{
    width: 250px;

    padding: 40px;

    background: #111827;

    border-radius: 20px;

    transition: 0.3s;

    box-shadow:
        0 0 15px rgba(0,0,0,0.3);
}

.card:hover{
    transform: translateY(-10px);
    background: #1b2440;
}

.card i{
    font-size: 2.5rem;
    color: #5865f2;

    margin-bottom: 20px;
}

.card h3{
    font-size: 1.4rem;
}

/* JOIN BOX */
.join-box{
    background: #111827;

    max-width: 700px;

    margin: auto;

    padding: 60px;

    border-radius: 25px;

    box-shadow:
        0 0 25px rgba(88,101,242,0.2);
}

.join-box h2{
    font-size: 3rem;
}

.join-box p{
    margin-top: 15px;
    opacity: 0.8;
}

/* FOOTER */
footer{
    text-align: center;
    padding: 30px;
    opacity: 0.5;
}

/* CURSOR */
.cursor{
    position: fixed;

    width: 10px;
    height: 10px;

    background: white;

    border-radius: 50%;

    pointer-events: none;

    z-index: 9999;
}

.cursor-glow{
    position: fixed;

    width: 40px;
    height: 40px;

    background: #5865f2;

    opacity: .3;

    border-radius: 50%;

    pointer-events: none;

    z-index: 9998;
}

/* WELCOME SCREEN */
#welcome{
    position: fixed;
    inset: 0;

    background:
        radial-gradient(circle at center, #0b1020, #05060c);

    display: flex;
    justify-content: center;
    align-items: center;

    cursor: pointer;

    z-index: 10000;
}

.welcome-box{
    text-align: center;
}

/* FIRST LOGO */
.server-logo{
    display: flex;
    justify-content: center;

    margin-bottom: 30px;
}

.server-logo img{
    width: 160px;
    height: 160px;

    object-fit: cover;

    border-radius: 50%;

    border: 5px solid #5865f2;

    box-shadow:
        0 0 20px #5865f2,
        0 0 40px #5865f2,
        0 0 70px rgba(88,101,242,0.7);

    animation: logoFloat 3s ease-in-out infinite;
}

/* TITLE */
.welcome-box h1 {
    position: relative;
    font-size: 5rem;
    color: #fff;
    letter-spacing: 5px;
}

.welcome-box h1::before,
.welcome-box h1::after {
    content: 'THE NEST';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.welcome-box h1::before {
    color: #ff00ff;
    z-index: -1;
    animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

.welcome-box h1::after {
    color: #00ffff;
    z-index: -2;
    animation: glitch 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) reverse both infinite;
}

@keyframes glitch {
    0% { transform: translate(0); }
    20% { transform: translate(-3px, 3px); }
    40% { transform: translate(-3px, -3px); }
    60% { transform: translate(3px, 3px); }
    80% { transform: translate(3px, -3px); }
    100% { transform: translate(0); }
}

/* SHAKING TEXT */
.hint{
    margin-top: 30px;

    font-size: 2.3rem;
    font-weight: 900;

    letter-spacing: 5px;

    color: white;

    text-transform: uppercase;

    text-shadow:
        0 0 10px #fff,
        0 0 20px #5865f2,
        0 0 40px #5865f2,
        0 0 70px #5865f2;

    animation: shakeText 0.7s infinite;
}

/* ANIMATIONS */
@keyframes titleFloat{
    0%,100%{
        transform: translateY(0);
    }

    50%{
        transform: translateY(-10px);
    }
}

@keyframes logoFloat{
    0%,100%{
        transform: translateY(0px);
    }

    50%{
        transform: translateY(-10px);
    }
}

@keyframes shakeText{
    0%{
        transform: translateX(0);
    }

    20%{
        transform: translateX(-3px);
    }

    40%{
        transform: translateX(3px);
    }

    60%{
        transform: translateX(-3px);
    }

    80%{
        transform: translateX(3px);
    }

    100%{
        transform: translateX(0);
    }
}

@keyframes rotateRing{
    0%{
        transform: rotate(0deg);
    }

    100%{
        transform: rotate(360deg);
    }
}

@keyframes pulseLogo{
    0%,100%{
        transform: scale(1);
    }

    50%{
        transform: scale(1.05);
    }
}

/* RESPONSIVE */
@media(max-width:768px){

    .welcome-box h1{
        font-size: 3.5rem;
    }

    .hint{
        font-size: 1.2rem;
    }

    .typing{
        font-size: 2.5rem;
    }

    .nav{
        flex-direction: column;
        gap: 20px;
    }

    .links{
        display: flex;
        gap: 15px;
    }

    .links a{
        margin: 0;
    }

    .server-logo img{
        width: 120px;
        height: 120px;
    }

    .hero-logo{
        width: 170px;
        height: 170px;
    }

    .hero-logo img{
        width: 120px;
        height: 120px;
    }

}