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

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #141b33;
    --bg-card: #1a2240;
    --text-primary: #ffffff;
    --text-secondary: #d4dcf7;
    --accent-primary: #7c3aed;
    --accent-secondary: #a78bfa;
    --accent-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --glow: rgba(124, 58, 237, 0.5);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animated Starfield Background - Removed for cleaner look */

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.2rem 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(124, 58, 237, 0.2);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    position: relative;
}

.logo-glitch {
    position: relative;
    display: inline-block;
    color: #fff;
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 5px var(--glow)); }
    50% { filter: drop-shadow(0 0 20px var(--glow)); }
}

.logo-domain {
    color: var(--text-secondary);
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 5px var(--glow)); }
    50% { filter: drop-shadow(0 0 20px var(--glow)); }
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-link:hover {
    color: var(--accent-secondary);
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    padding: 0;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    position: absolute;
    left: 10px;
    right: 10px;
    height: 3px;
    background: var(--accent-secondary);
    transition: transform 0.25s ease, opacity 0.2s ease, top 0.25s ease;
    border-radius: 3px;
}

.hamburger span:nth-child(1) { top: 14px; }
.hamburger span:nth-child(2) { top: 21px; }
.hamburger span:nth-child(3) { top: 28px; }

.hamburger.active span:nth-child(1) {
    top: 21px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 21px;
    transform: rotate(-45deg);
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-btn {
    padding: 0.5rem 1rem;
}

.dropdown-icon {
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.3);
    border-radius: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-secondary);
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
}

.hero-content {
    text-align: center;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.title-line {
    font-size: 1.5rem;
    color: var(--text-secondary);
    animation: fadeIn 1s ease-out 0.3s both;
}

.title-main {
    font-size: 5rem;
    font-weight: bold;
    line-height: 1;
    display: inline-block;
    color: #fff;
    z-index: 2;
    letter-spacing: 10px;
    filter: drop-shadow(0 1px 3px);
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.9s both;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 1.2s both;
}

.btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.btn-primary {
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--accent-secondary);
    border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-3px);
}

/* Floating Shapes */
.floating-shapes {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: var(--accent-gradient);
    opacity: 0.25;
    border-radius: 50%;
    filter: blur(50px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: 10%;
    left: -10%;
    animation: float 20s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    top: 60%;
    right: -5%;
    animation: float 15s ease-in-out infinite reverse;
}

.shape-3 {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 20%;
    animation: float 18s ease-in-out infinite;
}

.shape-4 {
    width: 200px;
    height: 200px;
    top: 30%;
    right: 30%;
    animation: float 22s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -50px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* About Section */
.about {
    padding: 8rem 2rem;
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.3);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: bounce 2s ease-in-out infinite;
}

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

.about-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
}

.about-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 2rem;
    text-align: center;
    border-top: 1px solid rgba(124, 58, 237, 0.2);
}

.footer p {
    color: var(--text-secondary);
}

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

    .nav-content {
        position: relative;
        justify-content: flex-start;
        gap: 0.5rem;
        padding: 0 1rem;
    }

    .logo {
        flex: 1;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        gap: 1rem;
        padding: 2rem;
        transition: left 0.3s ease;
        border-top: 1px solid rgba(124, 58, 237, 0.2);
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .nav-link::after {
        display: none;
    }

    /* Mobile dropdowns: collapsed by default, opened via JS (.open) */
    .dropdown-content {
        position: static;
        box-shadow: none;
        width: 100%;
        margin-top: 0.5rem;
        opacity: 0;
        visibility: hidden;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease, opacity 0.2s ease;
        pointer-events: none;
    }

    .dropdown.open .dropdown-content {
        opacity: 1;
        visibility: visible;
        max-height: 500px;
        pointer-events: auto;
    }

    .dropdown.open .dropdown-icon {
        transform: rotate(180deg);
    }
    
    .title-main {
        font-size: 3rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
}

/* Server Pages Styles */
.server-hero {
    min-height: 80vh;
}

.server-ip {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: var(--bg-card);
    border: 2px solid var(--accent-primary);
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: var(--accent-secondary);
    display: inline-block;
}

.server-info {
    margin-top: 4rem;
}

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

.info-item {
    background: var(--bg-card);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.2);
}

.info-item h4 {
    color: var(--accent-secondary);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Discord Status Section */
.discord-status {
    padding: 6rem 2rem;
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.05) 100%);
}

.discord-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.stat-card {
    background: var(--bg-card);
    border: 2px solid rgba(124, 58, 237, 0.3);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
    animation: pulse-stat 3s ease-in-out infinite;
}

@keyframes pulse-stat {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.4);
}

.stat-icon {
    font-size: 3rem;
    position: relative;
    z-index: 1;
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent-secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection Style */
::selection {
    background: var(--accent-primary);
    color: white;
}
