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

:root {
    --primary-pink: #ff6b9d;
    --secondary-pink: #ff8fab;
    --purple: #c44569;
    --dark-purple: #8e44ad;
    --light-purple: #e8b4f0;
    --bg-dark: #1a0b2e;
    --bg-gradient: linear-gradient(135deg, #1a0b2e 0%, #2d1b4e 50%, #4a2c6f 100%);
    --text-light: #ffffff;
    --text-glow: #ffd1dc;
    --shadow-pink: rgba(255, 107, 157, 0.4);
}

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

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    filter: blur(3px);
    z-index: -1;
}

.bg-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 157, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(196, 69, 105, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 0.8;
    }
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(26, 11, 46, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.2rem 0;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(255, 107, 157, 0.3);
    border-bottom: 2px solid rgba(255, 107, 157, 0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-pink);
    text-shadow: 0 0 25px var(--shadow-pink);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1001;
}

.logo:hover {
    transform: scale(1.08);
    text-shadow: 0 0 35px var(--shadow-pink);
}

.logo i {
    animation: rotateCrown 4s ease-in-out infinite;
}

@keyframes rotateCrown {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-10deg);
    }
    75% {
        transform: rotate(10deg);
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    font-size: 1.05rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(196, 69, 105, 0.25));
    color: var(--primary-pink);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px var(--shadow-pink);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-pink);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 1200px;
    text-align: center;
    position: relative;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.float-icon {
    position: absolute;
    left: var(--x);
    top: var(--y);
    font-size: 2rem;
    color: var(--primary-pink);
    opacity: 0.4;
    animation: floatAnimation 6s ease-in-out infinite;
    animation-delay: var(--delay);
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
    }
}

.glitch-text {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-pink), var(--light-purple), var(--primary-pink));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
    position: relative;
    text-shadow: 0 0 40px var(--shadow-pink);
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-pink), var(--light-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch-text::before {
    animation: glitch1 2.5s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}

.glitch-text::after {
    animation: glitch2 2.5s infinite;
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}

@keyframes glitch1 {
    0%, 100% {
        transform: translate(0);
    }
    33% {
        transform: translate(-2px, 2px);
    }
    66% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch2 {
    0%, 100% {
        transform: translate(0);
    }
    33% {
        transform: translate(2px, -2px);
    }
    66% {
        transform: translate(-2px, 2px);
    }
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-glow);
    margin-bottom: 3rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    color: white;
    box-shadow: 0 10px 30px var(--shadow-pink);
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-pink);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    box-shadow: 0 5px 20px rgba(255, 107, 157, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 107, 157, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 157, 0.3);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 107, 157, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 107, 157, 0.1), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-pink);
    border-color: var(--primary-pink);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(360deg);
    filter: drop-shadow(0 0 20px var(--shadow-pink));
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-glow);
}

.feature-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.join-cta-section {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.join-cta-container {
    max-width: 1000px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(255, 107, 157, 0.1), rgba(196, 69, 105, 0.1));
    backdrop-filter: blur(20px);
    border: 3px solid var(--primary-pink);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.join-cta-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.join-cta-decoration i {
    position: absolute;
    font-size: 3rem;
    color: var(--primary-pink);
    opacity: 0.2;
    animation: floatDecor 6s ease-in-out infinite;
}

.join-cta-decoration i:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.join-cta-decoration i:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 1s;
}

.join-cta-decoration i:nth-child(3) {
    bottom: 15%;
    left: 15%;
    animation-delay: 2s;
}

.join-cta-decoration i:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes floatDecor {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

.join-cta-content {
    position: relative;
    z-index: 1;
}

.join-discord-logo {
    font-size: 6rem;
    color: var(--primary-pink);
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.join-cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--text-glow);
}

.join-cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.join-discord-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem 3.5rem;
    background: linear-gradient(135deg, var(--primary-pink), var(--purple));
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 15px 40px var(--shadow-pink);
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-discord-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.join-discord-button:hover::before {
    width: 500px;
    height: 500px;
}

.join-discord-button:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 20px 50px var(--shadow-pink);
}

.join-discord-button span {
    position: relative;
    z-index: 1;
}

.join-server-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.join-stat {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.join-stat i {
    font-size: 2.5rem;
    color: var(--primary-pink);
}

.join-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--text-glow);
}

.join-stat-label {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.scroll-indicator {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary-pink);
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 10;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 85px;
        flex-direction: column;
        background: rgba(26, 11, 46, 0.98);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        padding: 2rem 0;
        gap: 0.5rem;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        width: 80%;
        margin: 0 auto;
    }

    .glitch-text {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}