:root {
    --primary-color: #0ea5e9;
    --primary-hover: #38bdf8;
    --accent-color: #f59e0b;
    --bg-dark: #0f172a;
    --text-light: #f8fafc;
    --text-muted: #cbd5e1;
    --glass-bg: rgba(15, 23, 42, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.05);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, .title, .ip, .logo-text {
    font-family: 'Outfit', sans-serif;
}

/* Background image setup */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('../img/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -2;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.3) 0%, rgba(2, 6, 23, 0.45) 100%);
    z-index: -1;
}

/* Container for splash screen */
.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

/* Logo animation */
.logo-wrapper {
    margin-bottom: 3rem;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.4));
}

.logo {
    max-width: 100%;
    width: 600px;
    height: auto;
    object-fit: contain;
    border-radius: 24px;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Grid Navigation */
.grid-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;
    max-width: 850px;
    margin-bottom: 4rem;
}

.nav-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, var(--glass-highlight) 0%, transparent 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(14, 165, 233, 0.2);
}

.nav-card:hover .card-bg {
    opacity: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    margin-bottom: 1rem;
    z-index: 2;
    transition: transform 0.5s ease;
    object-fit: cover;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.nav-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-content {
    text-align: center;
    z-index: 2;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    margin-bottom: 0.2rem;
}

.title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* IP Copy Button */
.playercount {
    margin-bottom: 2rem;
}

.ip-container {
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(8px);
}

.ip-container:hover {
    background: rgba(14, 165, 233, 0.2);
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.4);
    transform: scale(1.05);
}

.ip-container p {
    font-size: 1.1rem;
    color: var(--text-light);
}

.ip {
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-left: 0.5rem;
    letter-spacing: 0.5px;
}

.copy-toast {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: var(--primary-color);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* About Section */
.about-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 5rem 2rem;
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.6) 15%, rgba(2, 6, 23, 0.75) 100%);
    text-align: center;
}

.about-section h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
    text-align: left;
}

.feature-list li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.feature-list li:hover {
    transform: translateX(5px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
}

.emoji {
    font-size: 1.5rem;
    margin-right: 1rem;
}

.footer-cta {
    font-size: 1.2rem !important;
    color: white !important;
    margin-top: 3rem;
}

.footer-cta strong {
    color: var(--accent-color);
}

.footer-copyright {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copyright p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.4);
}

/* Responsive */
@media (max-width: 992px) {
    .grid-nav {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .grid-nav {
        grid-template-columns: 1fr;
    }
    .logo {
        width: 100%;
        max-width: 350px;
    }
    .about-section h1 {
        font-size: 2rem;
    }
}
