/*
 * VibeCMD Premium PLUS v7.1
 * Aurora background · Spotlight cursor · Magnetic buttons · Premium scrollbar
 * Wave dividers · 3D card depth · Premium selection · Shine effects
 */

/* ═══════════════════════════════════════
   1. ANIMATED AURORA BACKGROUND (behind everything)
   ═══════════════════════════════════════ */
body::after {
    content: '';
    position: fixed;
    inset: -25%;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 18% 28%, rgba(0,255,136,0.10), transparent 65%),
        radial-gradient(ellipse 50% 40% at 82% 72%, rgba(91,141,239,0.10), transparent 65%),
        radial-gradient(ellipse 45% 35% at 50% 55%, rgba(139,111,208,0.08), transparent 65%);
    filter: blur(50px);
    animation: auroraFlow 28s ease-in-out infinite;
    will-change: transform;
}
@keyframes auroraFlow {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(3%, -2%) rotate(2deg); }
    66% { transform: translate(-2%, 3%) rotate(-2deg); }
}


/* ═══════════════════════════════════════
   2. PREMIUM SCROLLBAR
   ═══════════════════════════════════════ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
::-webkit-scrollbar-track {
    background: rgba(6,11,22,0.6);
}
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(0,255,136,0.35), rgba(91,141,239,0.35));
    border-radius: 10px;
    border: 2px solid rgba(6,11,22,0.6);
    transition: background 0.3s;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(0,255,136,0.6), rgba(91,141,239,0.6));
}
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,255,136,0.4) rgba(6,11,22,0.6);
}


/* ═══════════════════════════════════════
   3. PREMIUM TEXT SELECTION
   ═══════════════════════════════════════ */
::selection {
    background: rgba(0,255,136,0.28);
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0,255,136,0.4);
}
::-moz-selection {
    background: rgba(0,255,136,0.28);
    color: #ffffff;
}


/* ═══════════════════════════════════════
   4. SPOTLIGHT CURSOR (desktop only)
   ═══════════════════════════════════════ */
@media (hover: hover) and (pointer: fine) {
    #cursor-spotlight {
        position: fixed;
        top: 0;
        left: 0;
        width: 600px;
        height: 600px;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        transform: translate(-50%, -50%);
        background: radial-gradient(circle, rgba(0,255,136,0.10) 0%, rgba(91,141,239,0.06) 30%, transparent 65%);
        opacity: 0;
        transition: opacity 0.5s ease;
        mix-blend-mode: screen;
        will-change: transform;
    }
    #cursor-spotlight.active {
        opacity: 1;
    }
}


/* ═══════════════════════════════════════
   5. MAGNETIC BUTTONS
   ═══════════════════════════════════════ */
.btn,
.vibe-nav-cta,
.store-btn-primary,
.btn-primary,
.btn-secondary,
.btn-outline {
    will-change: transform;
}
.magnetic-area {
    display: inline-block;
}


/* ═══════════════════════════════════════
   6. PREMIUM BUTTON SHEEN
   ═══════════════════════════════════════ */
.btn,
.vibe-nav-cta {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.btn::before,
.vibe-nav-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg,
        transparent 30%,
        rgba(255,255,255,0.18) 45%,
        rgba(255,255,255,0.25) 50%,
        rgba(255,255,255,0.18) 55%,
        transparent 70%);
    transform: translateX(-150%);
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 1;
}
.btn:hover::before,
.vibe-nav-cta:hover::before {
    transform: translateX(150%);
}
.btn > *,
.vibe-nav-cta > * {
    position: relative;
    z-index: 2;
}


/* ═══════════════════════════════════════
   7. PREMIUM GLOW BORDERS (animated)
   ═══════════════════════════════════════ */
.glow-border {
    position: relative;
    isolation: isolate;
}
.glow-border::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(from var(--angle, 0deg),
        transparent 0%,
        rgba(0,255,136,0.6) 25%,
        rgba(91,141,239,0.5) 50%,
        rgba(139,111,208,0.5) 75%,
        transparent 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s;
    animation: rotateBorder 6s linear infinite;
}
.glow-border:hover::before {
    opacity: 1;
}
@property --angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes rotateBorder {
    to { --angle: 360deg; }
}


/* ═══════════════════════════════════════
   8. IMAGE SHINE ON HOVER
   ═══════════════════════════════════════ */
.app-phone,
.cs-phones img,
.hero-phone {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.app-phone::after,
.cs-phones img::after,
.hero-phone::after {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 100%;
    height: 100%;
    background: linear-gradient(115deg,
        transparent 30%,
        rgba(255,255,255,0.18) 50%,
        transparent 70%);
    transition: left 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2;
}
.app-card:hover .app-phone::after,
.case-study-card:hover .cs-phones img::after,
.hero-phone:hover::after {
    left: 120%;
}


/* ═══════════════════════════════════════
   9. WAVE / GLOW SECTION DIVIDERS
   ═══════════════════════════════════════ */
.divider-wave {
    position: relative;
    height: 80px;
    overflow: hidden;
    width: 100%;
    margin: 0;
}
.divider-wave svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}
.divider-glow {
    position: relative;
    height: 1px;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0,255,136,0.5), rgba(91,141,239,0.4), rgba(139,111,208,0.3), transparent);
    margin: 0;
}
.divider-glow::before,
.divider-glow::after {
    content: '';
    position: absolute;
    top: -2px;
    width: 30%;
    height: 5px;
    background: radial-gradient(ellipse, rgba(0,255,136,0.4) 0%, transparent 70%);
    filter: blur(3px);
}
.divider-glow::before { left: 20%; }
.divider-glow::after { right: 20%; background: radial-gradient(ellipse, rgba(91,141,239,0.4) 0%, transparent 70%); }


/* ═══════════════════════════════════════
   10. CARD 3D DEPTH + SPOTLIGHT
   ═══════════════════════════════════════ */
.card,
.glass-card,
.service-card,
.app-card,
.price-card,
.review-card,
.svc-hub-card,
.retainer-card,
.pkg-card,
.inc-item,
.timeline-item {
    position: relative;
    isolation: isolate;
}
/* Spotlight follows mouse over each card via CSS vars
   NOTE: .retainer-card is excluded — it owns its own ::before for the
   "MOST POPULAR" badge, and overlapping caused a vertical green strip. */
.card::before,
.glass-card::before,
.service-card::before,
.app-card::before,
.price-card::before,
.svc-hub-card::before,
.pkg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle 200px at var(--mx, 50%) var(--my, 50%),
        rgba(0,255,136,0.08),
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
    z-index: 0;
}
.card:hover::before,
.glass-card:hover::before,
.service-card:hover::before,
.app-card:hover::before,
.price-card:hover::before,
.svc-hub-card:hover::before,
.pkg-card:hover::before {
    opacity: 1;
}
.card > *,
.glass-card > *,
.service-card > *,
.app-card > *,
.price-card > *,
.svc-hub-card > *,
.pkg-card > * {
    position: relative;
    z-index: 1;
}


/* ═══════════════════════════════════════
   11. PREMIUM NAV LOGO ANIMATION
   ═══════════════════════════════════════ */
.vibe-nav-logo {
    position: relative;
    transition: all 0.4s ease;
}
.vibe-nav-logo::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.vibe-nav-logo:hover::after {
    transform: scaleX(1);
}


/* ═══════════════════════════════════════
   12. PREMIUM NAV LINK UNDERLINE
   ═══════════════════════════════════════ */
.vibe-nav-link:not(.vibe-nav-cta) {
    position: relative;
}
.vibe-nav-link:not(.vibe-nav-cta)::after {
    content: '';
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    height: 2px;
    background: var(--gradient);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.vibe-nav-link:not(.vibe-nav-cta):hover::after,
.vibe-nav-link.active:not(.vibe-nav-cta)::after {
    transform: scaleX(1);
}


/* ═══════════════════════════════════════
   13. HERO TYPEWRITER CURSOR
   ═══════════════════════════════════════ */
.typewriter::after {
    content: '_';
    color: var(--primary);
    animation: blinkCursor 1s steps(2) infinite;
    margin-left: 2px;
}
@keyframes blinkCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}


/* ═══════════════════════════════════════
   14. PREMIUM SECTION LABELS (animated dot)
   ═══════════════════════════════════════ */
.section-label,
.section-badge {
    position: relative;
    padding-left: 22px !important;
}
.section-label::before,
.section-badge::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    transform: translateY(-50%);
    box-shadow: 0 0 8px rgba(0,255,136,0.8);
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(0,255,136,0.8); }
    50% { opacity: 0.5; box-shadow: 0 0 4px rgba(0,255,136,0.4); }
}


/* ═══════════════════════════════════════
   15. ENHANCED FOOTER GLOW
   ═══════════════════════════════════════ */
.vibe-footer {
    position: relative;
    overflow: hidden;
}
.vibe-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,255,136,0.4), rgba(91,141,239,0.3), rgba(139,111,208,0.2), transparent);
}
.vibe-footer::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(0,255,136,0.05) 0%, transparent 70%);
    pointer-events: none;
    filter: blur(40px);
}


/* ═══════════════════════════════════════
   16. PREMIUM STATS NUMBERS GLOW
   ═══════════════════════════════════════ */
.stat-val,
.hero-stat-num,
.price-amount,
.pkg-price,
.retainer-price,
.roi-stat .val {
    text-shadow: 0 0 32px rgba(0,255,136,0.15);
}


/* ═══════════════════════════════════════
   17. ENHANCED CTA BANNER (animated glow)
   ═══════════════════════════════════════ */
.cta-banner {
    position: relative;
    overflow: hidden;
}
.cta-banner::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: conic-gradient(from 0deg,
        rgba(0,255,136,0.3),
        rgba(91,141,239,0.25),
        rgba(139,111,208,0.2),
        rgba(0,255,136,0.3));
    z-index: -1;
    filter: blur(20px);
    opacity: 0.4;
    animation: spinSlow 20s linear infinite;
}
@keyframes spinSlow {
    to { transform: rotate(360deg); }
}


/* ═══════════════════════════════════════
   18. HERO BADGE PREMIUM SHIMMER
   ═══════════════════════════════════════ */
.hero-badge {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background-size: 200% 100% !important;
    background-image: linear-gradient(105deg,
        rgba(0,255,136,0.1) 0%,
        rgba(0,255,136,0.18) 50%,
        rgba(0,255,136,0.1) 100%) !important;
    animation: badgeShimmer 4s ease-in-out infinite, badgePulse 3s ease-in-out infinite;
    background-position: 0% 0%;
}
@keyframes badgeShimmer {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 0%; }
}


/* ═══════════════════════════════════════
   19. FLOATING REVIEW STARS
   ═══════════════════════════════════════ */
.review-card .stars {
    display: inline-block;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 8px rgba(255,193,7,0.3));
}


/* ═══════════════════════════════════════
   20. PREMIUM LINK HOVER
   ═══════════════════════════════════════ */
.vibe-footer-col a {
    position: relative;
    padding-left: 0;
    transition: padding-left 0.3s ease, color 0.3s ease;
}
.vibe-footer-col a::before {
    content: '→';
    position: absolute;
    left: -16px;
    opacity: 0;
    color: var(--primary);
    transition: all 0.3s ease;
}
.vibe-footer-col a:hover {
    padding-left: 16px;
    color: var(--primary);
}
.vibe-footer-col a:hover::before {
    left: 0;
    opacity: 1;
}


/* ═══════════════════════════════════════
   21. PREMIUM IMAGE HOLDERS
   ═══════════════════════════════════════ */
.app-phone,
.hero-phone {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.5s ease;
}
.app-card:hover .app-phone {
    transform: translateY(-8px) scale(1.04) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,255,136,0.15);
}


/* ═══════════════════════════════════════
   22. (removed) noise overlay caused stacking issues
   ═══════════════════════════════════════ */


/* ═══════════════════════════════════════
   23. REDUCED MOTION
   ═══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    body::after {
        animation: none;
    }
}


/* ═══════════════════════════════════════
   24. MOBILE TUNING
   ═══════════════════════════════════════ */
@media (max-width: 768px) {
    body::after {
        animation-duration: 40s;
        filter: blur(60px);
    }
    #cursor-spotlight {
        display: none !important;
    }
}
