:root {
    --wisteria: #C3A0CB;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #080808;
    color: white;
    scroll-behavior: smooth;
}

.text-wisteria {
    color: var(--wisteria);
}

.bg-wisteria {
    background-color: var(--wisteria);
}

.border-wisteria {
    border-color: var(--wisteria);
}

/* ========================================
   VIDEO HERO BACKGROUND - 16:9 ASPECT RATIO
   ======================================== */
.hero-bg {
    position: relative;
    background-color: #080808;
    overflow: hidden;
    /* 16:9 aspect ratio - fills viewport width, height based on aspect */
    width: 100vw;
    height: 56.25vw; /* 9/16 = 0.5625 */
    max-height: 100vh;
    min-height: 100vh;
}

/* On wider screens, constrain to viewport height and center */
@media (min-aspect-ratio: 16/9) {
    .hero-bg {
        height: 100vh;
        width: 177.78vh; /* 16/9 = 1.7778 */
        max-width: 100vw;
        margin: 0 auto;
    }
}

/* Video Background */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

/* Blur/Darken Overlay for Text Contrast */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.5);
    backdrop-filter: blur(3px);
    z-index: 1;
}

/* Subtle animated gradient accent on top */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(195, 160, 203, 0.12) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulseOrb 8s ease-in-out infinite;
    z-index: 2;
    pointer-events: none;
}

@keyframes pulseOrb {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-primary {
    background-color: var(--wisteria);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -10px rgba(195, 160, 203, 0.4);
}

/* ========================================
   ULTRA-SMOOTH HYPNOTIC TEXT ANIMATION
   ======================================== */
.word-swap {
    display: inline-block;
    transition:
        opacity 2.5s cubic-bezier(0.23, 1, 0.32, 1),
        transform 2.5s cubic-bezier(0.23, 1, 0.32, 1),
        filter 2.5s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
    will-change: opacity, transform, filter;
}

.word-hidden {
    opacity: 0;
    transform: translateY(-60px) scale(0.95);
    filter: blur(12px);
}

/* Smooth fade-in for new words */
@keyframes hypnoticFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
        filter: blur(15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

.word-fade-in {
    animation: hypnoticFadeIn 3s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Pattern-based sequential animation with longer delays */
#swap-action {
    transition-delay: 0s;
}

#swap-type {
    transition-delay: 0.5s;
}

#swap-result {
    transition-delay: 1s;
}

/* Subtle breathing glow effect */
@keyframes subtleGlow {
    0%, 100% {
        text-shadow: 0 0 30px rgba(195, 160, 203, 0.2);
    }
    50% {
        text-shadow: 0 0 60px rgba(195, 160, 203, 0.5), 0 0 100px rgba(195, 160, 203, 0.2);
    }
}

.word-swap {
    animation: subtleGlow 6s ease-in-out infinite;
}

/* First word special glow */
#swap-action {
    text-shadow: 0 0 40px rgba(195, 160, 203, 0.4);
}

/* Navigation Active Indicator */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--wisteria);
    transform: scaleX(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* 4K Display Optimizations */
@media (min-width: 2560px) {
    /* Increase base font sizes for better 4K readability */
    body {
        font-size: 18px;
    }

    nav .text-2xl {
        font-size: 2rem;
    }

    nav .text-sm {
        font-size: 1rem;
    }

    nav img {
        height: 4rem;
    }

    /* Scale up hero text for 4K */
    .hero-content h1 {
        font-size: clamp(100px, 8vw, 160px);
    }

    .hero-content p {
        font-size: 1.5rem;
    }

    /* Larger buttons */
    .btn-primary {
        font-size: 1rem;
        padding: 1.5rem 3rem;
    }

    /* Better spacing for stats */
    #stat-count,
    #stat-rating {
        font-size: 3.5rem;
    }

    /* Larger product cards */
    .glass h3 {
        font-size: 2.5rem;
    }

    .glass p {
        font-size: 1.125rem;
    }
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
}

/* Better line clamping support */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Product card hover effects */
.glass.group:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -15px rgba(195, 160, 203, 0.2);
}
