/* hero-slider.css - Pro-Tier Dynamic Hero Slider Styles */

/* --- INTERACTIVE SCANNER LINE --- */
.hero-slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: ew-resize; /* Suggests horizontal interaction */
}

/* Base image styling */
.hero-img-after, .hero-img-before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* The before image sits on top and will be clipped */
.hero-img-before {
    z-index: 2;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%); /* Full width by default */
    /* Transition is removed so JS can control it frame-by-frame during sweep */
}

.hero-scanner-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 100%; /* Default right side */
    width: 2px;
    background: #ffffff;
    z-index: 3;
    pointer-events: none; /* Let mouse events pass through to container */
    transform: translateX(-50%);
    opacity: 0.9;
}

/* When user hovers, it becomes slightly more visible but stays clean */
.hero-scanner-line.active-interactive {
    width: 3px;
    opacity: 1;
}

/* Base Dynamic Text Container */
.hero-dynamic-content {
    position: relative;
    z-index: 20;
    text-align: left;
    max-width: 800px;
    margin: 0;
    padding: 0;
}

.hero-container {
    position: relative;
    z-index: 2;
}

/* --- CINEMATIC MASKED TEXT REVEAL --- */
.hero-dynamic-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    opacity: 0;
    line-height: 1.2;
}

.hero-dynamic-desc {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: #555555;
    opacity: 0;
}

/* Staggered Cinematic Reveal */
@keyframes cinematicReveal {
    0% { opacity: 0; transform: translateY(40px) skewY(2deg); clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
    100% { opacity: 1; transform: translateY(0) skewY(0deg); clip-path: polygon(0 -20%, 100% -20%, 100% 120%, 0 120%); }
}

@keyframes cinematicHide {
    0% { opacity: 1; transform: translateY(0) skewY(0deg); clip-path: polygon(0 -20%, 100% -20%, 100% 120%, 0 120%); }
    100% { opacity: 0; transform: translateY(-40px) skewY(-2deg); clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0 100%); }
}

.text-anim-fade-up .hero-dynamic-title {
    animation: cinematicReveal var(--hero-entrance-dur, 2s) cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0s;
}

.text-anim-fade-up .hero-dynamic-desc {
    animation: cinematicReveal var(--hero-entrance-dur, 2s) cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.2s;
}

.text-anim-fade-out .hero-dynamic-title {
    animation: cinematicHide var(--hero-exit-dur, 2s) cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
    animation-delay: 0s !important;
}

.text-anim-fade-out .hero-dynamic-desc {
    animation: cinematicHide var(--hero-exit-dur, 2s) cubic-bezier(0.19, 1, 0.22, 1) forwards !important;
    animation-delay: 0.2s !important;
}

/* --- ADDITIONAL PRO TEXT ANIMATIONS --- */

/* slide-left */
@keyframes slideLeftReveal {
    0% { opacity: 0; transform: translateX(-40px); }
    100% { opacity: 1; transform: translateX(0); }
}

.text-anim-slide-left .hero-dynamic-title {
    animation: slideLeftReveal var(--hero-entrance-dur, 2s) cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0s;
}

.text-anim-slide-left .hero-dynamic-desc {
    animation: slideLeftReveal var(--hero-entrance-dur, 2s) cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.2s;
}

/* blur-focus */
@keyframes blurFocusReveal {
    0% { opacity: 0; transform: scale(0.9); filter: blur(10px); }
    100% { opacity: 1; transform: scale(1); filter: blur(0px); }
}

.text-anim-blur-focus .hero-dynamic-title {
    animation: blurFocusReveal var(--hero-entrance-dur, 2s) cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0s;
}

.text-anim-blur-focus .hero-dynamic-desc {
    animation: blurFocusReveal var(--hero-entrance-dur, 2s) cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.2s;
}

/* flip-up */
@keyframes flipUpReveal {
    0% { opacity: 0; transform: perspective(400px) rotateX(-90deg); transform-origin: 50% 100%; }
    100% { opacity: 1; transform: perspective(400px) rotateX(0deg); transform-origin: 50% 100%; }
}

.text-anim-flip-up .hero-dynamic-title {
    animation: flipUpReveal var(--hero-entrance-dur, 2s) cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0s;
}

.text-anim-flip-up .hero-dynamic-desc {
    animation: flipUpReveal var(--hero-entrance-dur, 2s) cubic-bezier(0.19, 1, 0.22, 1) forwards;
    animation-delay: 0.2s;
}

/* Micro-interactions for buttons */
.hero-nav-btn {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.hero-nav-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
    backdrop-filter: blur(8px);
}

/* --- STUDIO-GRADE AMBIENT BACKGROUND --- */
.hero-bg-effect {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    transition: opacity 1.5s ease;
    opacity: 0;
}
.hero-bg-effect.active {
    opacity: 1;
}

@keyframes ambientBreathe {
    0% { background-position: 0% 50%; opacity: 0.7; transform: scale(1); }
    50% { background-position: 100% 50%; opacity: 1; transform: scale(1.05); }
    100% { background-position: 0% 50%; opacity: 0.7; transform: scale(1); }
}

/* Bright, sleek tech mesh */
.bg-effect-default {
    background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 1) 0%, rgba(240, 244, 248, 1) 100%);
}

.bg-effect-default::before {
    content: '';
    position: absolute;
    inset: -20%;
    background: 
        radial-gradient(circle at 10% 50%, color-mix(in srgb, var(--accent-color) 15%, transparent) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(79, 70, 229, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 10%, rgba(14, 165, 233, 0.08) 0%, transparent 50%);
    background-size: 200% 200%;
    animation: ambientBreathe 20s ease-in-out infinite alternate;
    mix-blend-mode: multiply;
}

/* Remove old chaotic effects, keep it clean and pro */
.bg-effect-particles, .bg-effect-holiday-snow, .bg-effect-mesh-2 {
    display: none;
}
