/* ==========================================================================
   MORDOR SOFTWARE - HYPER-FUTURISTIC CYBER DESIGN SYSTEM v3.0
   ========================================================================== */

:root {
    --void-black: #04060c;
    --deep-bg: #070a14;
    --surface-dark: #0b1020;
    --surface-card: rgba(14, 21, 42, 0.65);
    --surface-card-hover: rgba(22, 33, 65, 0.85);
    
    --neon-crimson: #ff004f;
    --neon-crimson-glow: rgba(255, 0, 79, 0.45);
    --neon-amber: #ff5e00;
    --neon-cyan: #00f0ff;
    --neon-cyan-glow: rgba(0, 240, 255, 0.45);
    --neon-purple: #8b5cf6;
    --neon-purple-glow: rgba(139, 92, 246, 0.45);
    
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glow-red: rgba(255, 0, 79, 0.35);
    --border-glow-cyan: rgba(0, 240, 255, 0.35);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--void-black);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--neon-crimson), var(--neon-cyan));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff3377, #33f3ff);
}

/* Selection */
::selection {
    background: rgba(255, 0, 79, 0.35);
    color: #00f0ff;
}

body {
    background-color: var(--void-black);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
    position: relative;
}

.font-cyber {
    font-family: 'Space Grotesk', sans-serif;
}

.font-mono-code {
    font-family: 'JetBrains Mono', monospace;
}

/* Background Cyber Grid */
.cyber-grid-bg {
    background-size: 50px 50px;
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

/* Glowing Radial Spotlights */
.radial-glow-crimson {
    background: radial-gradient(circle, rgba(255, 0, 79, 0.18) 0%, rgba(255, 0, 79, 0) 70%);
}

.radial-glow-cyan {
    background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0, 240, 255, 0) 70%);
}

.radial-glow-purple {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0) 70%);
}

/* Glassmorphism Styles */
.glass-panel {
    background: var(--surface-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-panel:hover {
    background: var(--surface-card-hover);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
}

.glass-pill {
    background: rgba(14, 21, 42, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gradient Text */
.gradient-text-cyber {
    background: linear-gradient(135deg, #ffffff 15%, #00f0ff 60%, #ff004f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-fire {
    background: linear-gradient(135deg, #ff004f 0%, #ff5e00 60%, #ffc107 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
    background: linear-gradient(135deg, #ffffff 20%, #00f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Cyber Glowing Borders */
.border-beam-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.border-beam-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, transparent, var(--neon-crimson), var(--neon-cyan), transparent);
    background-size: 200% 200%;
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderBeam 4s linear infinite;
}

.border-beam-card:hover::before {
    opacity: 1;
}

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

/* Interactive Spotlight Cards */
.spotlight-card {
    position: relative;
    overflow: hidden;
}

.spotlight-card::after {
    content: '';
    position: absolute;
    top: var(--mouse-y, -1000px);
    left: var(--mouse-x, -1000px);
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 0, 79, 0.15), transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.spotlight-card:hover::after {
    opacity: 1;
}

/* Cyber Buttons */
.btn-cyber-primary {
    position: relative;
    background: linear-gradient(135deg, var(--neon-crimson) 0%, #d90042 100%);
    color: #ffffff;
    font-weight: 600;
    padding: 0.85rem 1.85rem;
    border-radius: 0.6rem;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--neon-crimson-glow);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cyber-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(255, 0, 79, 0.7);
    filter: brightness(1.1);
}

.btn-cyber-secondary {
    position: relative;
    background: rgba(14, 21, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 240, 255, 0.4);
    color: #ffffff;
    font-weight: 600;
    padding: 0.85rem 1.85rem;
    border-radius: 0.6rem;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-cyber-secondary:hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--neon-cyan);
    color: #00f0ff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

/* Neon Glow Accents */
.glow-icon-red {
    box-shadow: 0 0 20px rgba(255, 0, 79, 0.35);
}

.glow-icon-cyan {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.35);
}

.glow-icon-purple {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

/* Pulse Keyframes */
@keyframes cyberPulse {
    0%, 100% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.animate-cyber-pulse {
    animation: cyberPulse 3s ease-in-out infinite;
}

/* Float Keyframes */
@keyframes floatY {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.animate-float {
    animation: floatY 4s ease-in-out infinite;
}

/* Marquee Animations */
.marquee-container {
    overflow: hidden;
    user-select: none;
    display: flex;
    gap: 2rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 2rem;
    min-width: 100%;
    animation: scrollMarquee 25s linear infinite;
}

.marquee-container:hover .marquee-content {
    animation-play-state: paused;
}

@keyframes scrollMarquee {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 2rem)); }
}

/* HUD Corner Brackets */
.hud-corner-box {
    position: relative;
}

.hud-corner-box::before,
.hud-corner-box::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: var(--neon-cyan);
    pointer-events: none;
}

.hud-corner-box::before {
    top: 0;
    left: 0;
    border-top: 2px solid;
    border-left: 2px solid;
}

.hud-corner-box::after {
    bottom: 0;
    right: 0;
    border-bottom: 2px solid;
    border-right: 2px solid;
}

/* Terminal Cursor */
.terminal-cursor {
    display: inline-block;
    width: 8px;
    height: 1.1em;
    background-color: var(--neon-cyan);
    vertical-align: middle;
    animation: blinkCursor 1s step-end infinite;
}

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

/* Scanline Overlay (Optional Hero Visual) */
.scanlines {
    position: relative;
}
.scanlines::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 2;
    pointer-events: none;
    opacity: 0.6;
}

/* Language Switch Active State */
.lang-chip {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: pointer;
}

.lang-chip.active {
    background: var(--neon-crimson);
    color: #ffffff;
    box-shadow: 0 0 10px var(--neon-crimson-glow);
}

.lang-chip:not(.active) {
    color: var(--text-muted);
}
.lang-chip:not(.active):hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

/* Filter Tab Pills */
.filter-pill {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(14, 21, 42, 0.6);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    transition: all 0.25s ease;
    cursor: pointer;
}

.filter-pill:hover,
.filter-pill.active {
    background: rgba(255, 0, 79, 0.15);
    border-color: var(--neon-crimson);
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 0, 79, 0.25);
}

/* Accordion */
.faq-header {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-body {
    max-height: 500px;
    opacity: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--neon-cyan);
}

.faq-item.active {
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}
