body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #1a233a 0%, #2a3a5a 50%, #3a4a6a 100%);
    background-attachment: fixed;
    color: white;
    line-height: 1.6;
    min-height: 100vh;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1em 2em;
    background: linear-gradient(135deg, #0a0f1a 0%, #1a233a 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 255, 136, 0.1);
}

.nav-menu {
    display: flex;
    gap: 10px;
}

.nav-menu a {
    color: white;
    padding: 10px 20px;
    margin: 0 10px;
    text-decoration: none;
    border: 2px solid #00ff88;
    border-radius: 20px;
    transition: all 0.3s ease-in-out;
    font-weight: 600;
    background: rgba(0, 255, 136, 0.1);
}

.nav-menu a:hover {
    background: #00ff88;
    color: #0a0f1a;
    border-color: #00ff88;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 255, 136, 0.3);
}

.auth-links a {
    margin: 0 5px;
}

/* Special styling for auth buttons */
.auth-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    border: 2px solid #ff4757;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.auth-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: left 0.5s;
}

.auth-btn:hover::before {
    left: 100%;
}

.auth-btn:hover {
    background: linear-gradient(45deg, #ee5a24, #ff6b6b);
    border-color: #ff3742;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.4);
}

.register-btn {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.login-btn {
    background: linear-gradient(45deg, #3742fa, #2f3542);
    border-color: #5352ed;
}

.login-btn:hover {
    background: linear-gradient(45deg, #2f3542, #3742fa);
    border-color: #3742fa;
    box-shadow: 0 6px 15px rgba(55, 66, 250, 0.4);
}

/* Players Online Section Styling */
.players-online-section {
    margin: 3rem auto;
    padding: 0 1rem;
    max-width: 1200px;
}

.online-status-card {
    background: linear-gradient(135deg, rgba(26, 35, 58, 0.8) 0%, rgba(42, 58, 90, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.online-status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
}

.online-icon {
    flex-shrink: 0;
    position: relative;
}

.online-content {
    text-align: center;
    flex: 1;
}

.online-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.online-count {
    font-size: 3rem;
    font-weight: 700;
    color: #00ff88;
    margin: 0;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
    animation: pulse 2s infinite;
}

.online-updated {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-weight: 400;
}

.online-pulse {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    animation: onlinePulse 3s ease-in-out infinite;
    pointer-events: none;
}

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

@keyframes onlinePulse {
    0%, 100% {
        opacity: 0;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

@media (max-width: 768px) {
    .online-status-card {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .online-count {
        font-size: 2.5rem;
    }

    .online-label {
        font-size: 1rem;
    }
}

/* Notification Animations */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Hero Section Styling */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
    gap: 3rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero-title .highlight {
    color: #00ff88;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: center;
    min-width: 150px;
}

.btn-primary {
    background: linear-gradient(45deg, #00ff88, #00cc77);
    color: #0a0f1a;
    border: 2px solid #00ff88;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #00cc77, #00ff88);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 136, 0.5);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #00ff88;
    transform: translateY(-3px);
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-block {
    position: absolute;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2), rgba(0, 204, 119, 0.1));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 136, 0.3);
    animation: float 6s ease-in-out infinite;
}

.block-1 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.block-2 {
    width: 80px;
    height: 80px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.block-3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(5deg);
    }
    66% {
        transform: translateY(10px) rotate(-3deg);
    }
}

/* Features Section Styling */
.features-section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

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

.feature-card {
    background: linear-gradient(135deg, rgba(26, 35, 58, 0.8) 0%, rgba(42, 58, 90, 0.8) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00ff88, #00cc77);
    border-radius: 4px 4px 0 0;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
}

.feature-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), rgba(0, 204, 119, 0.05));
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    border: 2px solid rgba(0, 255, 136, 0.3);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

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

/* Statistics Section Styling */
.stats-section {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(10, 15, 26, 0.9) 0%, rgba(26, 35, 58, 0.9) 100%);
    margin: 2rem 0;
}

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

.stat-item {
    text-align: center;
    padding: 2rem;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 255, 136, 0.1);
    border-color: rgba(0, 255, 136, 0.4);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-unit {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1rem;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        height: 250px;
        overflow: hidden;
    }

    .floating-elements {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .floating-block {
        position: absolute;
        animation-duration: 4s; /* Slower on mobile for better performance */
    }

    .block-1 {
        width: 80px;
        height: 80px;
        top: 10%;
        left: 10%;
    }

    .block-2 {
        width: 60px;
        height: 60px;
        top: 50%;
        right: 10%;
    }

    .block-3 {
        width: 50px;
        height: 50px;
        bottom: 10%;
        left: 50%;
    }

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

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    /* Disable animations on very small screens for performance */
    @media (max-width: 480px) {
        .floating-block {
            animation: none;
            opacity: 0.7;
        }

        .hero-visual {
            height: 200px;
        }

        /* Reduce motion for users who prefer it */
        @media (prefers-reduced-motion: reduce) {
            .floating-block,
            .feature-card,
            .stat-item,
            .gamemode,
            .hero-btn,
            .btn-primary,
            .btn-secondary {
                animation: none !important;
                transition: none !important;
            }
        }
    }

    /* Improve touch targets on mobile */
    @media (max-width: 768px) {
        .nav-menu a,
        .auth-btn,
        .hero-btn,
        .btn-primary,
        .btn-secondary {
            min-height: 44px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
    }
}

.auth-links {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.auth-links a {
    margin: 0;
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(135deg, #0a0f1a 0%, #1a233a 100%);
    border-top: 1px solid rgba(0, 255, 136, 0.1);
    margin-top: 4rem;
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    color: #00ff88;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.5);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    border-radius: 50%;
    color: #00ff88;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #00ff88;
    color: #0a0f1a;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 255, 136, 0.4);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: #00ff88;
    transform: translateX(5px);
}

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

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #00ff88;
}

/* Footer Responsive Design */
@media (max-width: 768px) {
    .footer-section {
        padding: 2rem 0 1rem;
    }

    .footer-container {
        padding: 0 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer-bottom-links {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }

    .social-links {
        justify-content: center;
    }
}