/* ===== VectorCore Pro - Enhanced Styles ===== */
:root {
    color-scheme: dark;
    --cyan-primary: #00d4ff;
    --cyan-secondary: #0096ff;
    --blue-dark: #0a0a0f;
    --glow-cyan: rgba(0, 212, 255, 0.4);
}

html { scroll-behavior: smooth; }

body {
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #0a0a0f;
    color: #e0e0e0;
}

.orbitron {
    font-family: Orbitron, Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: 0.02em;
}

/* ===== Gradient Text with Animation ===== */
.gradient-text {
    background: linear-gradient(135deg, #00d4ff 0%, #0096ff 50%, #00d4ff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* ===== Skip Link ===== */
.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    z-index: 9999;
    background: #0b1220;
    border: 1px solid rgba(0, 212, 255, 0.35);
    color: #e0e0e0;
    padding: 10px 14px;
    border-radius: 10px;
}
.skip-link:focus { left: 12px; }

/* ===== Focus Styles ===== */
[hidden] { display: none !important; }
/* .hidden { display: none !important; } - Removed to avoid conflict with Tailwind responsive classes */

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 2px solid rgba(0, 212, 255, 0.9);
    outline-offset: 3px;
    border-radius: 10px;
}

section[id] { scroll-margin-top: 6.5rem; }

/* ===== Enhanced Glow Effects ===== */
.glow {
    box-shadow: 
        0 14px 50px rgba(0, 212, 255, 0.25),
        0 0 0 1px rgba(0, 212, 255, 0.15) inset,
        0 0 30px rgba(0, 212, 255, 0.15);
    transition: all 0.3s ease;
}

.glow:hover {
    box-shadow: 
        0 20px 60px rgba(0, 212, 255, 0.35),
        0 0 0 1px rgba(0, 212, 255, 0.25) inset,
        0 0 50px rgba(0, 212, 255, 0.25);
    transform: translateY(-2px);
}

/* ===== Hero Background ===== */
.hero-bg {
    background: 
        radial-gradient(900px 520px at 50% 15%, rgba(0, 212, 255, 0.14), transparent 60%),
        radial-gradient(760px 520px at 20% 80%, rgba(0, 150, 255, 0.10), transparent 60%),
        radial-gradient(900px 520px at 85% 70%, rgba(0, 212, 255, 0.08), transparent 60%),
        #0a0a0f;
    position: relative;
}

/* ===== Futuristic Grid Background ===== */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
    animation: gridPulse 4s ease-in-out infinite;
}

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

/* ===== Floating Particles ===== */
.floating-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(0, 212, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
    animation: floatParticle 8s ease-in-out infinite;
}

@keyframes floatParticle {
    0%, 100% { 
        transform: translateY(0) translateX(0); 
        opacity: 0.3;
    }
    25% { 
        transform: translateY(-30px) translateX(15px); 
        opacity: 0.8;
    }
    50% { 
        transform: translateY(-10px) translateX(-10px); 
        opacity: 0.5;
    }
    75% { 
        transform: translateY(-25px) translateX(5px); 
        opacity: 0.7;
    }
}

/* ===== Float Animation ===== */
.float-animation {
    animation: floatY 7s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}

/* ===== Glassmorphism Cards ===== */
.glass-card {
    background: rgba(17, 24, 39, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 212, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ===== Enhanced Card Hover ===== */
.card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.card-hover:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 212, 255, 0.15);
    border-color: rgba(0, 212, 255, 0.4);
}

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

/* ===== Neon Border ===== */
.neon-border {
    border: 1px solid rgba(0, 212, 255, 0.3);
    position: relative;
}

.neon-border::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.2), transparent, rgba(0, 150, 255, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.neon-border:hover::after {
    opacity: 1;
}

/* ===== Scroll Reveal Animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays for children */
.stagger-1 { transition-delay: 0.1s !important; }
.stagger-2 { transition-delay: 0.2s !important; }
.stagger-3 { transition-delay: 0.3s !important; }
.stagger-4 { transition-delay: 0.4s !important; }
.stagger-5 { transition-delay: 0.5s !important; }
.stagger-6 { transition-delay: 0.6s !important; }

/* ===== FAQ Accordion ===== */
.faq-question { cursor: pointer; }
.faq-icon { transition: transform 0.25s ease; }
.faq-icon.active { transform: rotate(180deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.faq-answer.show {
    max-height: 500px;
    opacity: 1;
}

/* ===== Modal Styles ===== */
.modal-backdrop {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(8px);
    padding: 24px;
    z-index: 70;
}

.modal-backdrop.active { display: flex; }

.modal-box {
    position: relative;
    width: min(520px, 100%);
    background: rgba(10, 10, 15, 0.95);
    border: 1px solid rgba(0, 212, 255, 0.18);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.55);
    animation: modalIn 0.3s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* ===== Badge Styles ===== */
.badge-popular {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-weight: bold;
    animation: badgeGlow 2s ease-in-out infinite;
}

.badge-best {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: bold;
}

@keyframes badgeGlow {
    0%, 100% { box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }
    50% { box-shadow: 0 0 25px rgba(245, 158, 11, 0.8); }
}

/* ===== Counter Animation ===== */
.counter {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ===== Games Ticker ===== */
.games-ticker {
    display: flex;
    gap: 3rem;
    animation: ticker 30s linear infinite;
    width: max-content;
}

.games-ticker:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-wrapper {
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

/* ===== Typing Effect ===== */
.typing-cursor::after {
    content: '|';
    animation: blink 1s step-end infinite;
    color: var(--cyan-primary);
}

@keyframes blink {
    50% { opacity: 0; }
}

/* ===== Button Press Effect ===== */
.btn-press {
    transition: all 0.15s ease;
}

.btn-press:active {
    transform: scale(0.97);
}

/* ===== Gradient Border ===== */
.gradient-border {
    position: relative;
    background: linear-gradient(#0a0a0f, #0a0a0f) padding-box,
                linear-gradient(135deg, #00d4ff, #0096ff, #00d4ff) border-box;
    border: 2px solid transparent;
}

/* ===== Stats Section Glow ===== */
.stat-glow {
    position: relative;
}

.stat-glow::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.stat-glow:hover::before {
    opacity: 1;
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    
    .pulse, 
    .float-animation, 
    .gradient-text,
    .games-ticker,
    .floating-particle {
        animation: none !important;
    }
    
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    .card-hover:hover {
        transform: none;
    }
    
    * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ===== Responsive Improvements ===== */
@media (max-width: 768px) {
    .hero-grid {
        background-size: 30px 30px;
    }
    
    .card-hover:hover {
        transform: translateY(-4px);
    }
}

/* Ensure content is visible on mobile/tablet regardless of scroll reveal */
@media (max-width: 1024px) {
    .reveal, .reveal-left, .reveal-right, .reveal-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 480px) {
    .modal-box {
        padding: 16px;
        border-radius: 16px;
    }
    
    .glow {
        box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
    }
}

/* ===== Fix for Fixed Header Overlap ===== */
.page-top-padding {
    padding-top: 130px !important;
}

@media (max-width: 768px) {
    .page-top-padding {
        padding-top: 110px !important;
    }
}
