/* XTreme Zombie - Custom Styles */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #39ff14, #ff1744);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff1744, #39ff14);
}

/* Glow Effects */
.glow-effect {
    box-shadow: 
        0 0 20px rgba(57, 255, 20, 0.3),
        0 0 40px rgba(57, 255, 20, 0.2),
        inset 0 0 20px rgba(255, 23, 68, 0.1);
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
    from {
        box-shadow: 
            0 0 20px rgba(57, 255, 20, 0.3),
            0 0 40px rgba(57, 255, 20, 0.2),
            inset 0 0 20px rgba(255, 23, 68, 0.1);
    }
    to {
        box-shadow: 
            0 0 30px rgba(57, 255, 20, 0.5),
            0 0 60px rgba(57, 255, 20, 0.3),
            inset 0 0 30px rgba(255, 23, 68, 0.2);
    }
}

/* Navigation Container Effects */
.nav-container {
    backdrop-filter: blur(20px);
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid rgba(42, 42, 42, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.1), transparent);
    transition: left 0.5s ease;
    z-index: 0;
}

.nav-container:hover::before {
    left: 100%;
}

.nav-container > * {
    position: relative;
    z-index: 1;
}

/* Scrolled Navigation State */
.nav-container.scrolled {
    background: rgba(10, 10, 10, 0.95);
    border-color: rgba(57, 255, 20, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(57, 255, 20, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Brand Section */
.brand-section h1 {
    text-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
    position: relative;
}

.logo-container::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #39ff14, #ff1744, #39ff14);
    border-radius: 12px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-container:hover::after {
    opacity: 1;
    animation: rotate-border 2s linear infinite;
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Navigation Links */
.nav-link {
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.nav-link:hover::before {
    left: 100%;
}

/* Auth Buttons */
.btn-login {
    position: relative;
    overflow: hidden;
}

.btn-login:hover {
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
    transform: translateY(-1px);
}

.btn-register {
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.4);
}

.btn-register::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.6s ease;
}

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

/* Mobile Menu */
.mobile-menu {
    backdrop-filter: blur(20px);
    background: rgba(26, 26, 26, 0.95);
    border: 1px solid rgba(42, 42, 42, 0.8);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(57, 255, 20, 0.1);
}

.mobile-nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(57, 255, 20, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-nav-link:hover::before {
    left: 100%;
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.nav-container {
    animation: float 6s ease-in-out infinite;
}

/* Glitch Effect for Title */
@keyframes glitch {
    0% {
        text-shadow: 
            0.05em 0 0 rgba(255, 23, 68, 0.75),
            -0.05em -0.025em 0 rgba(57, 255, 20, 0.75),
            0.025em 0.05em 0 rgba(255, 255, 255, 0.75);
    }
    15% {
        text-shadow: 
            0.05em 0 0 rgba(255, 23, 68, 0.75),
            -0.05em -0.025em 0 rgba(57, 255, 20, 0.75),
            0.025em 0.05em 0 rgba(255, 255, 255, 0.75);
    }
    16% {
        text-shadow: 
            -0.05em -0.025em 0 rgba(255, 23, 68, 0.75),
            0.025em 0.025em 0 rgba(57, 255, 20, 0.75),
            -0.05em -0.05em 0 rgba(255, 255, 255, 0.75);
    }
    49% {
        text-shadow: 
            -0.05em -0.025em 0 rgba(255, 23, 68, 0.75),
            0.025em 0.025em 0 rgba(57, 255, 20, 0.75),
            -0.05em -0.05em 0 rgba(255, 255, 255, 0.75);
    }
    50% {
        text-shadow: 
            0.025em 0.05em 0 rgba(255, 23, 68, 0.75),
            0.05em 0 0 rgba(57, 255, 20, 0.75),
            0 -0.05em 0 rgba(255, 255, 255, 0.75);
    }
    99% {
        text-shadow: 
            0.025em 0.05em 0 rgba(255, 23, 68, 0.75),
            0.05em 0 0 rgba(57, 255, 20, 0.75),
            0 -0.05em 0 rgba(255, 255, 255, 0.75);
    }
    100% {
        text-shadow: 
            0.05em 0 0 rgba(255, 23, 68, 0.75),
            -0.05em -0.025em 0 rgba(57, 255, 20, 0.75),
            0.025em 0.05em 0 rgba(255, 255, 255, 0.75);
    }
}

.brand-section h1:hover {
    animation: glitch 0.3s ease-in-out;
}

/* Simple Static Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(57, 255, 20, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 23, 68, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .nav-container {
        animation: none;
    }
}

@media (max-width: 768px) {
    .brand-section h1 {
        font-size: 1.5rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .brand-section h1 {
        font-size: 1.25rem;
    }
    
    .logo-container .w-10 {
        width: 2rem;
        height: 2rem;
    }
}

/* Focus States for Accessibility */
button:focus,
a:focus {
    outline: 2px solid #39ff14;
    outline-offset: 2px;
}

/* Feature Cards */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.feature-card:hover::before {
    left: 100%;
}

/* Rank Cards */
.rank-card {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.rank-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.rank-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.8s ease;
}

.rank-card:hover::before {
    left: 100%;
}

/* Step Animation */
.step {
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-8px);
}

.step .w-12 {
    transition: all 0.3s ease;
}

.step:hover .w-12 {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(57, 255, 20, 0.3);
}

/* PayPal Section */
.bi-paypal {
    transition: transform 0.3s ease;
}

.bi-paypal:hover {
    transform: scale(1.1);
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .rank-card {
        margin-bottom: 1rem;
    }
    
    .feature-card {
        margin-bottom: 1rem;
    }
}

/* Additional Hover Effects */
.rank-card h4 {
    transition: all 0.3s ease;
}

.rank-card:hover h4 {
    text-shadow: 0 0 10px currentColor;
}

/* Footer Styles */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(57, 255, 20, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(255, 23, 68, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

footer > * {
    position: relative;
    z-index: 1;
}

/* Social Links */
footer a i {
    transition: all 0.3s ease;
}

footer a:hover i {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px currentColor);
}

/* Footer Links */
footer ul li a {
    position: relative;
}

footer ul li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: currentColor;
    transition: width 0.3s ease;
}

footer ul li a:hover::before {
    width: 100%;
}

/* Server IP Box */
footer .bg-dark-bg\/50 {
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

footer .bg-dark-bg\/50:hover {
    border-color: rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}

/* Bottom decorative border animation */
footer .h-1 {
    position: relative;
    overflow: hidden;
}

footer .h-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    50% { left: -100%; }
    100% { left: 100%; }
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Mobile Menu Utilities */
.mobile-menu {
    pointer-events: auto;
    max-height: 500px;
    overflow: hidden;
    z-index: 50;
    position: relative;
}

.mobile-menu.invisible {
    pointer-events: none;
}

.mobile-menu.visible {
    pointer-events: auto;
}

/* Mobile menu button improvements */
#mobile-menu-btn {
    z-index: 51;
    position: relative;
}

#mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Animation Utilities for JavaScript */
.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease-out;
}

/* Initial state for elements that will animate in */
.feature-card,
.rank-card,
.step {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

/* Override for elements already in viewport */
.feature-card.animate-in,
.rank-card.animate-in,
.step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Smooth hover transitions managed by JS */
.feature-card,
.rank-card,
.step {
    transition: transform 0.3s ease, opacity 0.6s ease-out, box-shadow 0.3s ease;
} 