/**
 * WEBSTYER - 2026 Futuristic Digital Agency Design System
 */

:root {
    --bg-dark: #050814;
    --bg-navy: #090e24;
    --bg-card: rgba(11, 18, 48, 0.75);
    --bg-card-hover: rgba(16, 27, 72, 0.9);
    --border-glass: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(0, 240, 255, 0.4);
    
    --neon-cyan: #00f0ff;
    --neon-purple: #a855f7;
    --neon-blue: #3b82f6;
    --neon-green: #00ff9d;
    --neon-pink: #ec4899;

    --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Syne', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
}

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: #f8fafc;
    font-family: var(--font-sans);
}

body {
    background-color: var(--bg-dark);
    color: #f8fafc;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Base utility classes used across views */
.bg-main {
    background-color: var(--bg-dark) !important;
}

.bg-navy {
    background-color: var(--bg-navy) !important;
}

.text-light {
    color: #f8fafc !important;
}

.bg-gradient-radial {
    background-image: radial-gradient(circle at center, var(--tw-gradient-stops, rgba(0, 240, 255, 0.15) 0%, transparent 70%));
}

/* Typography styles */
.font-display {
    font-family: var(--font-display);
}

.font-mono {
    font-family: var(--font-mono);
}

/* Neon text highlights */
.neon-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
}

.neon-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}

.neon-green {
    color: var(--neon-green);
    text-shadow: 0 0 15px rgba(0, 255, 157, 0.6);
}

.neon-blue {
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}

/* Futuristic Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: rgba(0, 240, 255, 0.3);
    box-shadow: 0 20px 50px -15px rgba(0, 240, 255, 0.2), 0 0 25px rgba(0, 240, 255, 0.1);
    transform: translateY(-5px);
}

/* 3D Floating Animations */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-16px) rotate(1.5deg);
    }
}

@keyframes floatReverse {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(14px) rotate(-1.5deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(1000%);
    }
}

@keyframes radarWave {
    0% {
        transform: scale(0.9);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.animate-float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-reverse {
    animation: floatReverse 7s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 4s ease-in-out infinite;
}

/* Perspective 3D Scene Containers */
.perspective-container {
    perspective: 1200px;
    transform-style: preserve-3d;
}

/* 3D Composition Objects */
.mockup-laptop {
    transform: rotateY(-12deg) rotateX(10deg);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mockup-laptop:hover {
    transform: rotateY(-6deg) rotateX(6deg) scale(1.02);
}

.mockup-phone {
    transform: rotateY(15deg) rotateX(8deg);
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mockup-phone:hover {
    transform: rotateY(4deg) rotateX(4deg) scale(1.04);
}

/* Realistic Smartphone Mockup Framing */
.phone-frame {
    width: 260px;
    height: 520px;
    background: #0d1326;
    border-radius: 42px;
    border: 4px solid #2a3b68;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 240, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #070b1a;
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: #02040a;
    border-radius: 20px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 8px;
}

.phone-notch-camera {
    width: 7px;
    height: 7px;
    background: #111c38;
    border-radius: 50%;
    border: 1px solid #233560;
}

.phone-screen-glare {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 50%);
    pointer-events: none;
    z-index: 15;
}

/* Realistic Website Project Browser Mockup */
.browser-window {
    border-radius: 16px;
    overflow: hidden;
    background: #0a0f24;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
}

.browser-header {
    height: 32px;
    background: #070a18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    padding: 0 12px;
    gap: 6px;
}

.browser-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.browser-dot-red { background: #ef4444; }
.browser-dot-yellow { background: #f59e0b; }
.browser-dot-green { background: #10b981; }

.browser-url {
    margin-left: 10px;
    flex-grow: 1;
    height: 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    color: #64748b;
}

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

::-webkit-scrollbar-track {
    background: #050814;
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00f0ff;
}

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

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

.faq-item.active .faq-answer {
    max-height: 400px;
    opacity: 1;
}

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

.faq-item.active {
    border-color: rgba(0, 240, 255, 0.4);
    background: var(--bg-card-hover);
}

/* Modal Overlay & Transitions */
.modal-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

/* Reduced Motion Override */
@media (prefers-reduced-motion: reduce) {
    *, ::before, ::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
