/* GrowthVivid Agency Global Stylesheet */

/* Custom Variables and Global Settings */
:root {
    --bg-dark: #07070a;
    --bg-card: rgba(15, 23, 42, 0.45);
    --border-soft: rgba(255, 255, 255, 0.05);
    --violet-glow: rgba(139, 92, 246, 0.35);
    --indigo-glow: rgba(99, 102, 241, 0.35);
    --blue-glow: rgba(59, 130, 246, 0.35);
    --font-primary: 'Plus Jakarta Sans', sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-dark);
    color: #f8fafc;
    overflow-x: hidden;
}

/* Glassmorphism Styles */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-soft);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.glass-card-hover {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-card-hover:hover {
    transform: translateY(-6px);
    border-color: rgba(139, 92, 246, 0.25);
    box-shadow: 0 12px 40px 0 rgba(139, 92, 246, 0.08);
}

/* Glow Text & Backgrounds */
.glow-text {
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

.bg-radial-gradient {
    background: radial-gradient(circle at 50% 50%, rgba(30, 27, 75, 0.5) 0%, rgba(7, 7, 10, 1) 70%);
}

.hero-glow-violet {
    filter: blur(140px);
    background: radial-gradient(circle, var(--violet-glow) 0%, transparent 70%);
}

.hero-glow-blue {
    filter: blur(140px);
    background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 999px;
    border: 2px solid var(--bg-dark);
}
::-webkit-scrollbar-thumb:hover {
    background: #4f46e5;
}

/* Text Mask Reveal Easing */
.mask-text {
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mask-text.revealed {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Staggered Scroll Animation Hooks */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(6px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Horizontal Work Reel - Desktop Scroll Trigger Pinned Styling */
.horizontal-scroll-container {
    display: flex;
    flex-wrap: nowrap;
    will-change: transform;
}

/* CSS 3D transforms & Perspective Tilt */
.tilt-element {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.15s ease-out;
}

.tilt-inner {
    transform: translateZ(20px);
}

/* 3D Book Layout for Lead Magnet */
.book-wrapper {
    perspective: 1200px;
}

.book-3d {
    width: 220px;
    height: 310px;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.6);
}

.book-wrapper:hover .book-3d {
    transform: rotateY(-5deg) rotateX(5deg) translateY(-8px);
    box-shadow: -15px 20px 40px rgba(139, 92, 246, 0.15);
}

.book-cover-front {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    border-radius: 4px 16px 16px 4px;
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    box-sizing: border-box;
    backface-visibility: hidden;
}

.book-pages-3d {
    position: absolute;
    width: 96%;
    height: 96%;
    top: 2%;
    right: -2px;
    background: #e2e8f0;
    border-radius: 0 12px 12px 0;
    transform: translateZ(-8px);
    z-index: 3;
    border-right: 1px solid #cbd5e1;
    box-shadow: inset -5px 0 10px rgba(0,0,0,0.15);
}

.book-spine-3d {
    position: absolute;
    width: 16px;
    height: 100%;
    background: #110e2e;
    transform: rotateY(-90deg) translateZ(8px);
    transform-origin: left center;
    left: 0;
    z-index: 4;
}

/* Card Stacking Effect Styles (/ai-clone page) */
.stack-card {
    position: sticky;
    top: 120px;
    transform-origin: center top;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* 3D Rotating Platforms Track Animation */
@keyframes rotateTrack {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(360deg); }
}

.track-container {
    perspective: 1200px;
    overflow: hidden;
}

.rotating-track {
    transform-style: preserve-3d;
    animation: rotateTrack 20s linear infinite;
}

.track-item {
    position: absolute;
    left: 50%;
    top: 50%;
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Magnetic attraction helpers */
.magnetic-button {
    transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
    display: inline-block;
}

/* Custom Cursor Styles (Desktop Only) */
.custom-cursor {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.custom-cursor-follower {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.08s cubic-bezier(0.25, 1, 0.5, 1), width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Custom Cursor Badge State */
.custom-cursor-follower.video-hover {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-cursor-follower.video-hover::after {
    content: 'PLAY';
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

/* Active Nav Links styling */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8b5cf6, #3b82f6);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Centralized Compare Slider */
.compare-container {
    position: relative;
    overflow: hidden;
}

/* SVG Line Pipeline Gradient Animation */
.dash-flow {
    stroke-dasharray: 12;
    animation: dashMove 1.5s linear infinite;
}

@keyframes dashMove {
    to {
        stroke-dashoffset: -24;
    }
}

/* Hide Netlify Feedback Drawer and Badge */
#netlify-drawer,
[data-netlify-deploy-preview-badge],
.netlify-badge,
iframe[src*="netlify"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Mobile Sticky WhatsApp Bar */
.mobile-sticky-whatsapp-bar {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 40;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(7, 7, 10, 0.85);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 1rem;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), 0 0 20px 0 rgba(16, 185, 129, 0.15);
}

@media (min-width: 768px) {
    .mobile-sticky-whatsapp-bar {
        display: none !important;
    }
}
