/* ==========================================
   VOCALIX ULTRA PREMIUM - ENHANCED STYLES
   3D Hologram + Particle Constellation + Cinematic Effects
   ========================================== */

/* ==========================================
   3D HOLOGRAM CONTAINER
   ========================================== */

.hologram-container {
    position: relative;
    width: 100%;
    max-width: 500px;
    height: 500px;
    margin: 0 auto;
    perspective: 1000px;
}

.hologram-container canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.hologram-glow {
    position: absolute;
    inset: -50px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.3) 0%, transparent 70%);
    filter: blur(60px);
    animation: pulse-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* ==========================================
   PARTICLE CONSTELLATION CANVAS
   ========================================== */

#constellationCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* ==========================================
   ENHANCED GLOW TRAIL
   ========================================== */

.glow-trail {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, 
        rgba(0, 113, 227, 0.15) 0%, 
        rgba(0, 212, 170, 0.1) 30%,
        transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: screen;
}

body:hover .glow-trail {
    opacity: 1;
}

/* ==========================================
   CINEMATIC SCROLL MORPHING
   ========================================== */

[data-morph] {
    display: inline-block;
    font-variant-numeric: tabular-nums;
    transition: all 0.3s ease;
}

/* ==========================================
   ENHANCED HERO SECTION
   ========================================== */

.hero-visual-enhanced {
    position: relative;
    flex: 0 0 520px;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Replace phone mockup with hologram on desktop */
@media (min-width: 768px) {
    .hero-visual .phone-mockup {
        display: none;
    }
    
    .hero-visual {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ==========================================
   FLOATING ELEMENTS ANIMATION
   ========================================== */

.floating-element {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(-10px) rotate(-3deg); }
}

/* ==========================================
   SCROLL-TRIGGERED REVEAL ANIMATIONS
   ========================================== */

[data-reveal="up"] {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="up"].revealed {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal="left"] {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="left"].revealed {
    opacity: 1;
    transform: translateX(0);
}

[data-reveal="right"] {
    opacity: 0;
    transform: translateX(60px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal="right"].revealed {
    opacity: 1;
    transform: translateX(0);
}

[data-reveal="scale"] {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-reveal="scale"].revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }

/* ==========================================
   MAGNETIC HOVER EFFECTS
   ========================================== */

.magnetic-element {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* ==========================================
   ENHANCED FEATURE CARDS
   ========================================== */

.feature-card,
.pricing-card,
.industry-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
        rgba(0, 113, 227, 0.1) 0%, 
        transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

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

/* ==========================================
   SCROLL PROGRESS ENHANCEMENT
   ========================================== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 10000;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #0071e3 0%, #00d4aa 100%);
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.5);
    transition: width 0.1s ease-out;
}

/* ==========================================
   PARALLAX LINES
   ========================================== */

.parallax-lines {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.parallax-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(0, 113, 227, 0.1) 50%, 
        transparent 100%);
    animation: line-float 20s linear infinite;
}

.parallax-line:nth-child(1) { left: 10%; animation-delay: 0s; }
.parallax-line:nth-child(2) { left: 30%; animation-delay: -5s; }
.parallax-line:nth-child(3) { left: 50%; animation-delay: -10s; }
.parallax-line:nth-child(4) { left: 70%; animation-delay: -15s; }
.parallax-line:nth-child(5) { left: 90%; animation-delay: -20s; }

@keyframes line-float {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

/* ==========================================
   TRUST BADGES ENHANCEMENT
   ========================================== */

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s;
}

.trust-badges.revealed {
    opacity: 1;
    transform: translateY(0);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 113, 227, 0.2);
    border-radius: var(--border-radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.trust-badge:hover {
    background: rgba(0, 113, 227, 0.1);
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-3px);
}

.trust-badge svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

/* ==========================================
   ENHANCED BUTTON RIPPLE EFFECT
   ========================================== */

.btn-ripple {
    position: relative;
    overflow: hidden;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    animation: ripple-animation 0.6s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ==========================================
   BACK TO TOP BUTTON ENHANCEMENT
   ========================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    background: var(--color-primary);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 30px rgba(0, 113, 227, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 40px rgba(0, 113, 227, 0.6);
}

.back-to-top-progress {
    position: absolute;
    inset: -3px;
    transform: rotate(-90deg);
}

.back-to-top-progress .progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 4;
}

.back-to-top-progress .progress-bar {
    fill: none;
    stroke: white;
    stroke-width: 4;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.1s linear;
}

.back-to-top-icon {
    position: relative;
    width: 24px;
    height: 24px;
    color: white;
}

/* ==========================================
   COOKIE BANNER ENHANCEMENT
   ========================================== */

.cookie-banner {
    position: fixed;
    bottom: -200px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: calc(100% - 40px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-2xl);
    z-index: 10000;
    transition: bottom 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner.visible {
    bottom: 30px;
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
}

.cookie-icon {
    font-size: var(--font-size-2xl);
    flex-shrink: 0;
}

.cookie-text p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.cookie-text a {
    color: var(--color-primary);
    text-decoration: underline;
}

.cookie-actions {
    display: flex;
    gap: var(--spacing-sm);
}

.cookie-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cookie-btn-accept {
    background: var(--color-primary);
    color: white;
}

.cookie-btn-accept:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.cookie-btn-decline {
    background: var(--color-bg-secondary);
    color: var(--color-text);
}

.cookie-btn-decline:hover {
    background: var(--color-border);
}

/* ==========================================
   WHATSAPP FLOAT ENHANCEMENT
   ========================================== */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: var(--color-whatsapp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    z-index: 1000;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    position: relative;
    z-index: 2;
}

.whatsapp-pulse {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--color-whatsapp);
    border-radius: 50%;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.whatsapp-tooltip {
    position: absolute;
    left: 80px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-dark);
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.whatsapp-float:hover .whatsapp-tooltip {
    opacity: 1;
    visibility: visible;
    left: 70px;
}

/* ==========================================
   RESPONSIVE ENHANCEMENTS
   ========================================== */

@media (max-width: 768px) {
    .hologram-container {
        max-width: 100%;
        height: 400px;
    }
    
    #constellationCanvas {
        opacity: 0.3;
    }
    
    .glow-trail {
        display: none;
    }
    
    .parallax-lines {
        display: none;
    }
    
    .whatsapp-float {
        bottom: 20px;
        left: 20px;
        width: 56px;
        height: 56px;
    }
    
    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }
    
    .cookie-banner {
        max-width: calc(100% - 20px);
        padding: var(--spacing-md);
    }
    
    .cookie-actions {
        flex-direction: column;
    }
}

/* ==========================================
   PERFORMANCE OPTIMIZATIONS
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .parallax-line,
    .floating-element,
    .hologram-glow {
        animation: none !important;
    }
}

/* ==========================================
   PRINT STYLES
   ========================================== */

@media print {
    .glow-trail,
    #constellationCanvas,
    .parallax-lines,
    .whatsapp-float,
    .back-to-top,
    .cookie-banner,
    .aurora-bg,
    .scroll-progress {
        display: none !important;
    }
}

/* ==========================================
   DARK MODE SUPPORT (Future)
   ========================================== */

@media (prefers-color-scheme: dark) {
    /* Can be extended for dark mode if needed */
}
