/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --purple-500: #a855f7;
    --purple-600: #9333ea;
    --blue-500: #3b82f6;
    --orange-500: #f97316;
    --green-500: #22c55e;
    --border-color: rgba(255, 255, 255, 0.05);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Typography */
.logo-text,
.hero-title,
.section-title {
    font-family: 'Press Start 2P', cursive;
}

.gradient-text {
    background: linear-gradient(to bottom, #ffffff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), transparent);
    backdrop-filter: blur(10px);
    padding: 1.5rem 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    padding: 1rem 0;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.logo img {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(168, 85, 247, 0.6));
    transition: filter 0.3s ease;
}

.logo:hover img {
    filter: drop-shadow(0 0 15px rgba(168, 85, 247, 0.9));
}

.logo-text {
    font-size: 1.5rem;
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.5);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    padding: 0.5rem;
    border-radius: 9999px;
    border: 1px solid var(--border-color);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.nav-links a.active {
    color: var(--text-primary);
    background: rgba(168, 85, 247, 0.2);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.server-ip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    border: 1px solid var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-family: 'Courier New', monospace;
    cursor: pointer;
    transition: all 0.3s ease;
}

.server-ip:hover {
    background: var(--bg-tertiary);
    border-color: var(--purple-500);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.copy-icon {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.server-ip:hover .copy-icon {
    color: var(--text-primary);
}

.mobile-menu {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5rem 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    animation: slowZoom 20s ease-in-out infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1.1); }
    to { transform: scale(1.2); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary), rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.3));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1024px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--green-500);
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--green-500);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: clamp(2rem, 8vw, 5rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 768px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--bg-tertiary);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(to right, var(--purple-600), #ec4899);
    border-radius: 0.75rem;
    opacity: 0.6;
    filter: blur(8px);
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.btn-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.btn-value {
    display: block;
    font-size: 1.125rem;
    font-weight: 700;
}

.btn-secondary {
    background: rgba(15, 23, 42, 0.4);
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.6);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    color: var(--purple-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    display: block;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.section-description {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Gamemode Cards */
.gamemode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gamemode-card {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.gamemode-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple-500);
    box-shadow: 0 20px 40px rgba(168, 85, 247, 0.2);
}

.gamemode-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: var(--orange-500);
    color: white;
    font-size: 0.625rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.gamemode-badge.active {
    background: var(--blue-500);
}

.gamemode-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.gamemode-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.gamemode-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.5);
    transition: transform 0.5s ease;
}

.gamemode-card:hover .gamemode-image img {
    transform: scale(1.6);
}

.gamemode-content {
    padding: 1.5rem;
}

.gamemode-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.gamemode-header svg {
    color: var(--purple-500);
}

.gamemode-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.gamemode-content p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background: rgba(30, 41, 59, 0.5);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.feature-icon.orange {
    background: rgba(249, 115, 22, 0.1);
    color: var(--orange-500);
}

.feature-icon.yellow {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
}

.feature-icon.blue {
    background: rgba(59, 130, 246, 0.1);
    color: var(--blue-500);
}

.feature-icon.indigo {
    background: rgba(99, 102, 241, 0.1);
    color: #6366f1;
}

.feature-card h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(to bottom, var(--bg-primary), rgba(99, 102, 241, 0.05));
    border-top: 1px solid rgba(30, 41, 59, 0.5);
}

/* Team Section */
.team-section {
    background: var(--bg-primary);
    border-top: 1px solid rgba(30, 41, 59, 0.5);
}

.team-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem 0;
}

.team-card {
    background: linear-gradient(to bottom right, rgba(30, 41, 59, 0.6), rgba(30, 41, 59, 0.3));
    border: 1px solid var(--border-color);
    border-radius: 1.5rem;
    padding: 3rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 400px;
    width: 100%;
}

.team-card.founder {
    border-color: rgba(234, 179, 8, 0.3);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: var(--purple-500);
}

.team-card.founder:hover {
    border-color: #eab308;
}

.team-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.1), transparent);
    border-radius: 50%;
    filter: blur(60px);
    transition: opacity 0.3s ease;
    opacity: 0.5;
}

.team-card.founder .team-glow {
    background: radial-gradient(circle, rgba(234, 179, 8, 0.15), transparent);
}

.team-card:hover .team-glow {
    opacity: 1;
}

.team-avatar {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 10;
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.team-card:hover .team-avatar img {
    transform: scale(1.05);
}

.team-info {
    position: relative;
    z-index: 10;
}

.team-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.founder-badge {
    background: rgba(234, 179, 8, 0.1);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.team-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, var(--text-primary), var(--purple-500));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-card.founder .team-name {
    background: linear-gradient(to right, #fbbf24, #eab308);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.team-role {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(to bottom, var(--bg-primary), rgba(99, 102, 241, 0.05));
    border-top: 1px solid rgba(30, 41, 59, 0.5);
}

.server-ip-text {
    color: var(--purple-500);
    font-family: 'Courier New', monospace;
    font-weight: 600;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.stat-card {
    background: linear-gradient(to bottom right, rgba(30, 41, 59, 0.6), rgba(30, 41, 59, 0.3));
    border: 1px solid var(--border-color);
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.stat-card:hover {
    border-color: var(--purple-500);
    transform: translateY(-4px);
}

.stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-500);
}

.status-indicator {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.online {
    background: var(--green-500);
    box-shadow: 0 0 20px var(--green-500);
}

.status-indicator.offline {
    background: #ef4444;
    box-shadow: 0 0 20px #ef4444;
}

.stat-content h3 {
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Footer */
.footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-logo span {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.25rem;
}

.footer-text {
    color: var(--text-secondary);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary);
    border: 1px solid var(--green-500);
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(150%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
}

.toast svg {
    color: var(--green-500);
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .gamemode-grid,
    .features-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 4rem 0;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Selection */
::selection {
    background: rgba(168, 85, 247, 0.3);
    color: var(--text-primary);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 20px rgba(168, 85, 247, 0.8));
    animation: floatLogo 3s ease-in-out infinite;
}

@keyframes floatLogo {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(10deg);
    }
}

.loading-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(to bottom, #ffffff, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(to right, var(--purple-600), #ec4899);
    border-radius: 9999px;
    animation: loadingProgress 2s ease-in-out;
    box-shadow: 0 0 20px var(--purple-500);
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

/* Page fade in animation */
body.loaded .navbar,
body.loaded .hero-content,
body.loaded .section {
    animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
