/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

/* Loading Overlay */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-in-out;
}

body:not(.loading) #loading-overlay {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Properties */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #64b5f6;
    --accent-color: #2196f3;
    --background-light: #f5f9ff;
    --text-dark: #2c3e50;
    --text-light: #ffffff;
    --text-secondary: #666666;
    --shadow: 0 4px 6px rgba(74, 144, 226, 0.1);
    --gradient: linear-gradient(135deg, #4a90e2 0%, #64b5f6 100%);
    --card-shadow: 0 10px 20px rgba(0,0,0,0.1);
    --hover-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: linear-gradient(to right, 
        transparent,
        rgba(74, 144, 226, 0.05),
        rgba(74, 144, 226, 0.05),
        transparent
    );
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, 
        rgba(74, 144, 226, 0.5), 
        rgba(100, 181, 246, 0.5)
    );
    border-radius: 50px;
    box-shadow: 
        inset 0 0 6px rgba(0, 0, 0, 0.1),
        inset 0 0 2px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, 
        rgba(74, 144, 226, 0.8), 
        rgba(100, 181, 246, 0.8)
    );
    box-shadow: 
        inset 0 0 8px rgba(0, 0, 0, 0.2),
        inset 0 0 3px rgba(255, 255, 255, 0.4),
        0 0 8px rgba(74, 144, 226, 0.3);
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 144, 226, 0.5) transparent;
}

body {
    background-color: #ffffff;
    color: var(--text-dark);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(74, 144, 226, 0.5); }
    50% { box-shadow: 0 0 20px rgba(74, 144, 226, 0.8); }
    100% { box-shadow: 0 0 5px rgba(74, 144, 226, 0.5); }
}

/* Discount Banner */
.discount-banner {
    background: var(--gradient);
    color: var(--text-light);
    text-align: center;
    padding: 12px;
    font-weight: bold;
    animation: glow 2s infinite;
    position: relative;
    overflow: hidden;
}

.discount-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

/* Navigation */
.navbar {
    background-color: var(--text-light);
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.navbar:hover {
    box-shadow: 0 6px 12px rgba(74, 144, 226, 0.15);
}

.logo img {
    height: 45px;
    animation: float 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-item {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding: 5px 0;
    letter-spacing: 0.5px;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: 15px;
}

.login-btn, .play-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.login-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.play-btn {
    background: var(--gradient);
    color: var(--text-light);
    box-shadow: var(--shadow);
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.login-btn:hover, .play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.play-btn:hover::before {
    left: 100%;
}

.nav-item.active {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--gradient);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.hero h1 {
    font-size: 4em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.5em;
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out;
}

.play-now-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--text-light);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.2em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
    border: none;
    cursor: pointer;
}

.play-now-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
    background: var(--primary-color);
    color: var(--text-light);
}

.play-now-btn i {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.play-now-btn:hover i {
    transform: scale(1.2);
}

/* Server Status */
.server-status-compact {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.status-pill, .server-ip-compact {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.status-pill:hover, .server-ip-compact:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.copy-text {
    font-size: 0.9em;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.server-ip-compact:hover .copy-text {
    opacity: 1;
}

/* News Section */
.news-section {
    padding: 80px 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.news-section .section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
}

.news-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(74, 144, 226, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(74, 144, 226, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.news-card {
    max-width: 1000px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    display: flex;
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.news-card img {
    width: 40%;
    object-fit: cover;
}

.news-content {
    padding: 30px;
    flex: 1;
}

.news-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: var(--gradient);
    color: var(--text-light);
    border-radius: 15px;
    font-weight: 500;
    margin-bottom: 20px;
}

.news-content h2 {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: var(--text-dark);
}

.news-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.news-content p i {
    color: var(--primary-color);
    margin-right: 10px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--gradient);
    color: var(--text-light);
    border: none;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--card-shadow);
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover i {
    transform: translateX(5px);
}

/* Features Section */
.features-section {
    padding: 80px 20px;
    background: #ffffff;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.features-section .section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
    grid-column: 1 / -1;
}

.features-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.feature-card i {
    font-size: 3em;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.feature-card:hover i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
}

.feature-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9em;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .hero-content h1 {
        font-size: 3em;
    }

    .hero-content p {
        font-size: 1.4em;
    }
}

/* Additional Animations */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Footer Styles */
.footer {
    background-color: var(--text-light);
    padding: 60px 20px 20px;
    color: var(--text-dark);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section h4 {
    color: var(--text-dark);
    margin-bottom: 20px;
    font-size: 1.2em;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    color: var(--text-dark);
    font-size: 1.8em;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px);
}

.social-link:hover i.fa-discord {
    color: #5865F2;
}

.social-link:hover i.fa-youtube {
    color: #FF0000;
}

.social-link:hover i.fa-tiktok {
    color: #8000ff;
}

.social-link:hover i.fa-instagram {
    color: #E1306C;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.read-more-btn {
    background: var(--gradient);
    color: var(--text-light);
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.2);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 144, 226, 0.3);
}

/* Game Modes Section */
.game-modes {
    padding: 80px 20px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.game-modes .section-title {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 50px;
    color: var(--text-dark);
    position: relative;
}

.game-modes .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient);
    border-radius: 2px;
}

.game-modes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.game-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto 0;
}

.game-mode-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.game-mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.game-mode-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.game-mode-card:hover::before {
    transform: scaleX(1);
}

.game-mode-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.game-mode-card:hover .game-mode-icon {
    transform: scale(1.1) rotate(5deg);
}

.game-mode-icon i {
    font-size: 2.5em;
    color: var(--text-light);
}

.game-mode-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.game-mode-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.player-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 15px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 15px;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.game-mode-card:hover .player-count {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Cards */
.game-mode-card, .news-card, .feature-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
} 