/* ==========================================================================
   VortexNova - Futuristic Animated Design System (Awwwards / Linear Style)
   ========================================================================== */

:root {
    --bg-dark: #070913;
    --bg-surface: #0c1020;
    --bg-surface-elevated: #11172e;
    --primary-blue: #2563eb;
    --primary-blue-glow: rgba(37, 99, 235, 0.45);
    --accent-cyan: #06b6d4;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-glass-hover: rgba(6, 182, 212, 0.45);
}

/* Base Body Styles */
body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #070913;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #3b82f6;
}

/* Ambient Background Glow Gradients */
.bg-ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    background: 
        radial-gradient(circle at 18% 12%, rgba(37, 99, 235, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 82% 22%, rgba(139, 92, 246, 0.18) 0%, transparent 45%),
        radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.14) 0%, transparent 50%);
}

.bg-grid-pattern {
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 32px 32px;
}

/* ==========================================================================
   DYNAMIC TEXT SHIMMER & GRADIENT ANIMATIONS
   ========================================================================== */
@keyframes textShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-gradient {
    background: linear-gradient(135deg, #60a5fa 0%, #38bdf8 25%, #c084fc 50%, #f472b6 75%, #38bdf8 100%);
    background-size: 250% auto;
    animation: textShimmer 6s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #38bdf8 100%);
    background-size: 200% auto;
    animation: textShimmer 5s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   3D SMARTPHONE AMBIENT LEVITATION ANIMATION
   ========================================================================== */
@keyframes phoneLevitate {
    0%, 100% {
        transform: translateY(0px) rotateY(-8deg) rotateX(6deg) rotateZ(1deg);
    }
    50% {
        transform: translateY(-16px) rotateY(-4deg) rotateX(3deg) rotateZ(0deg);
    }
}

.phone-mockup-wrapper {
    position: relative;
    transform: rotateY(-8deg) rotateX(6deg) rotateZ(1deg);
    animation: phoneLevitate 6s ease-in-out infinite;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.phone-mockup-wrapper:hover {
    animation-play-state: paused;
    transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1.02);
}

.smartphone-device {
    width: 310px;
    height: 620px;
    background: #090d16;
    border-radius: 46px;
    padding: 11px;
    position: relative;
    box-shadow: 
        0 0 0 2px rgba(255, 255, 255, 0.15),
        0 0 0 5px #151b2e,
        0 24px 60px -10px rgba(0, 0, 0, 0.8),
        0 0 50px rgba(37, 99, 235, 0.4);
    border: 1px solid rgba(56, 189, 248, 0.35);
    margin: 0 auto;
}

/* Dynamic Island / Notch */
.phone-notch {
    position: absolute;
    top: 19px;
    left: 50%;
    transform: translateX(-50%);
    width: 96px;
    height: 24px;
    background: #000;
    border-radius: 14px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6);
}

.notch-camera {
    width: 9px;
    height: 9px;
    background: #0f172a;
    border-radius: 50%;
    border: 1px solid #334155;
}

.notch-sensor {
    width: 5px;
    height: 5px;
    background: #0369a1;
    border-radius: 50%;
}

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

.smartphone-screen::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 40;
}

/* Floating Badges */
.phone-badge-floating {
    animation: float 4s ease-in-out infinite;
}

.phone-badge-floating-delayed {
    animation: float 4.5s ease-in-out 1.2s infinite;
}

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

/* ==========================================================================
   LINEAR / RAYCAST STYLE MOUSE SPOTLIGHT CARDS
   ========================================================================== */
.spotlight-card {
    position: relative;
    background: rgba(17, 23, 46, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.spotlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(6, 182, 212, 0.22),
        transparent 45%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

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

.spotlight-card:hover {
    border-color: rgba(6, 182, 212, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.7), 0 0 30px rgba(6, 182, 212, 0.25);
}

/* Glass Panels */
.glass-panel {
    background: rgba(12, 16, 32, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
}

.glass-card {
    background: rgba(17, 23, 46, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card:hover {
    background: rgba(22, 30, 60, 0.9);
    border-color: var(--border-glass-hover);
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -8px rgba(0, 0, 0, 0.5), 0 0 25px rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   SCROLL-TRIGGERED REVEAL ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
    filter: blur(4px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
                filter 0.7s ease;
    will-change: opacity, transform, filter;
}

.reveal-on-scroll.is-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* Glowing Pulse */
@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.75;
        transform: scale(1.08);
    }
}

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

/* ==========================================================================
   TRAVELING LASER ON WORKFLOW PIPELINE
   ========================================================================== */
.step-card {
    position: relative;
}

.step-card::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -24px;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, transparent);
    z-index: 10;
}

@media (max-width: 1024px) {
    .step-card::after {
        display: none;
    }
}

.pipeline-track {
    position: relative;
}

.pipeline-laser {
    position: absolute;
    top: 50%;
    left: 0;
    width: 140px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #06b6d4, #8b5cf6, transparent);
    box-shadow: 0 0 15px #06b6d4, 0 0 25px #8b5cf6;
    animation: laserTravel 5s linear infinite;
    z-index: 15;
    border-radius: 4px;
}

@keyframes laserTravel {
    0% {
        left: -140px;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Buttons */
.btn-neon-glow {
    position: relative;
    background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.45);
    overflow: hidden;
}

.btn-neon-glow:hover {
    box-shadow: 0 0 35px rgba(6, 182, 212, 0.7), 0 0 15px rgba(124, 58, 237, 0.5);
    transform: translateY(-2px);
}

.btn-outline-glass {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.btn-outline-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #38bdf8;
    color: #38bdf8;
    transform: translateY(-2px);
}

/* Active tab styles for App switcher */
.app-tab-btn {
    transition: all 0.25s ease;
    position: relative;
}

.app-tab-btn.active {
    background: rgba(37, 99, 235, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.app-tab-btn.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 25%;
    height: 50%;
    width: 3px;
    background: #38bdf8;
    border-radius: 0 4px 4px 0;
}

.screen-fade {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.screen-fade.switching {
    opacity: 0;
    transform: scale(0.96);
}

.tag-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    transition: all 0.2s ease;
}

.tag-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #38bdf8;
}

.modal-overlay {
    background: rgba(4, 7, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
