@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@300;400;500;600;700&family=Orbitron:wght@400;500;600;700;900&display=swap');

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

body {
    font-family: 'Rajdhani', sans-serif;
    background: #0a0a0a;
    color: #fff;
    overflow-x: hidden;
}

.orbitron {
    font-family: 'Orbitron', sans-serif;
}

/* Animated Background */
.bg-animated {
    background: linear-gradient(125deg, #0a0a0a 0%, #1a0000 50%, #0a0a0a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Grid overlay */
.grid-overlay {
    background-image: 
        linear-gradient(rgba(220, 38, 38, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(220, 38, 38, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Glow effects */
.glow-red {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5), 0 0 40px rgba(220, 38, 38, 0.3);
}

.text-glow {
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.8), 0 0 20px rgba(220, 38, 38, 0.6);
}

/* Particles */
.particle {
    position: absolute;
    background: rgba(220, 38, 38, 0.6);
    border-radius: 50%;
    animation: float 6s infinite;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translateY(0) translateX(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) translateX(50px); opacity: 0; }
}

/* Card hover effects */
.server-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9) 0%, rgba(40, 10, 10, 0.9) 100%);
    border: 1px solid rgba(220, 38, 38, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

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

.server-card:hover {
    transform: translateY(-10px);
    border-color: rgba(220, 38, 38, 0.6);
    box-shadow: 0 10px 40px rgba(220, 38, 38, 0.3);
}

.server-card.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.server-card.disabled:hover {
    transform: none;
    border-color: rgba(220, 38, 38, 0.2);
    box-shadow: none;
}

/* Status indicator */
.status-dot {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Button hover */
.btn-primary {
    background: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(220, 38, 38, 0.6);
}

/* Hero text animation */
.hero-title {
    animation: slideDown 1s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scanline effect */
.scanline {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(220, 38, 38, 0.8), transparent);
    animation: scan 3s linear infinite;
}

@keyframes scan {
    0% { top: 0; }
    100% { top: 100%; }
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #dc2626, #991b1b);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #dc2626;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.5);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature icon animation */
.feature-icon {
    transition: all 0.3s ease;
    display: inline-block;
}

.feature-icon:hover {
    transform: scale(1.2) rotate(5deg);
}

.feature-card {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating animation */
@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Shake animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* Glow - STATIC, no animation */
.glow-red {
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5), 0 0 40px rgba(220, 38, 38, 0.3);
}

/* Rotate animation */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Bounce in */
@keyframes bounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { transform: scale(1); }
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Static text glow - NO animation */
.text-glow {
    text-shadow: 0 0 10px rgba(220, 38, 38, 0.8), 
                 0 0 20px rgba(220, 38, 38, 0.6),
                 0 0 30px rgba(220, 38, 38, 0.4);
}

/* Server card enhanced animations */
.server-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.server-card:nth-child(1) { animation-delay: 0.1s; }
.server-card:nth-child(2) { animation-delay: 0.2s; }
.server-card:nth-child(3) { animation-delay: 0.3s; }
.server-card:nth-child(4) { animation-delay: 0.4s; }

/* Badge pulse */
.badge {
    animation: pulse 2s ease-in-out infinite;
}

/* Hero entrance - NO glow animation */
.hero-title h1 {
    animation: slideDown 1s ease-out;
}

/* Scroll indicator */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-10px) translateX(-50%); }
    60% { transform: translateY(-5px) translateX(-50%); }
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    .hero-title h1 {
        font-size: 3.5rem !important;
        line-height: 1.1;
    }
    
    .hero-title p:first-of-type {
        font-size: 1.5rem !important;
    }
    
    .hero-title p:nth-of-type(2) {
        font-size: 1rem !important;
    }
    
    .server-card {
        padding: 1.5rem !important;
    }
    
    .server-card h3 {
        font-size: 1.75rem !important;
    }
    
    .icon-large {
        font-size: 2.5rem !important;
    }
    
    .icon-xlarge {
        font-size: 3rem !important;
    }
    
    #particles {
        opacity: 0.5;
    }
    
    .grid-overlay {
        opacity: 0.3;
    }
    
    nav .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 3px 8px;
    }
    
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    .feature-card {
        padding: 1.5rem !important;
    }
    
    footer .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title h1 {
        font-size: 2.5rem !important;
    }
    
    .hero-title p:first-of-type {
        font-size: 1.25rem !important;
    }
    
    .orbitron {
        letter-spacing: 0;
    }
}

/* Typing effect */
@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink {
    50% { border-color: transparent; }
}

/* Background gradient animation enhanced */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 50% 75%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 25%; }
    100% { background-position: 0% 50%; }
}

/* Discord button special effect */
@keyframes discordPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(220, 38, 38, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 50px rgba(220, 38, 38, 0.9);
    }
}

/* Icon rotation on hover */
.feature-card:hover .feature-icon {
    animation: rotate 1s ease-in-out;
}

/* Status dot enhanced */
@keyframes statusBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

.status-dot {
    animation: statusBlink 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Card tilt effect */
.server-card {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
}

/* Navbar items animation */
nav a {
    position: relative;
    transition: all 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #dc2626, #991b1b);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* Coming soon banner animation */
@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Glitch effect enhanced */
@keyframes glitch {
    0% { 
        transform: translate(0);
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
    }
    20% { 
        transform: translate(-3px, 3px);
        text-shadow: 3px -3px 0 #dc2626, -3px 3px 0 #991b1b;
    }
    40% { 
        transform: translate(-3px, -3px);
        text-shadow: -3px 3px 0 #dc2626, 3px -3px 0 #991b1b;
    }
    60% { 
        transform: translate(3px, 3px);
        text-shadow: 3px 3px 0 #dc2626, -3px -3px 0 #991b1b;
    }
    80% { 
        transform: translate(3px, -3px);
        text-shadow: -3px -3px 0 #dc2626, 3px 3px 0 #991b1b;
    }
    100% { 
        transform: translate(0);
        text-shadow: 0 0 10px rgba(220, 38, 38, 0.8);
    }
}

/* Icon styles */
.icon-large {
    font-size: 3rem;
}

.icon-xlarge {
    font-size: 4rem;
}

/* Navbar fade in */
nav {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile menu */
.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
}

.mobile-menu.show {
    max-height: 500px;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-menu.closing {
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-20px);
        max-height: 0;
    }
}

.mobile-menu a {
    display: block;
    padding: 12px 0;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu.show a {
    animation: slideInItem 0.3s ease forwards;
}

.mobile-menu.show a:nth-child(1) { animation-delay: 0.05s; }
.mobile-menu.show a:nth-child(2) { animation-delay: 0.1s; }
.mobile-menu.show a:nth-child(3) { animation-delay: 0.15s; }
.mobile-menu.show a:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu.show a:nth-child(5) { animation-delay: 0.25s; }

@keyframes slideInItem {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mobile-menu a:hover {
    background: rgba(220, 38, 38, 0.1);
    transform: translateX(5px);
    border-left: 3px solid #dc2626;
    padding-left: 10px;
}

/* Burger button animation */
#burger-btn {
    position: relative;
    z-index: 100;
}

#burger-btn i {
    transition: transform 0.3s ease;
}

#burger-btn.active i {
    transform: rotate(90deg);
}

/* Construction badge */
.construction-badge {
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: #fbbf24;
}

/* Parallax effect */
.parallax {
    transition: transform 0.1s ease-out;
}
