/**
 * Hero Animator - Main Stylesheet
 * Version: 1.0.0
 */

/* ========================================
   BASE STYLES
   ======================================== */

.ha-hero {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Height Variants */
.ha-hero-height-vh-100 { height: 100vh; }
.ha-hero-height-vh-90 { height: 90vh; }
.ha-hero-height-vh-80 { height: 80vh; }
.ha-hero-height-vh-70 { height: 70vh; }
.ha-hero-height-vh-60 { height: 60vh; }
.ha-hero-height-vh-50 { height: 50vh; }
.ha-hero-height-vh-40 { height: 40vh; }
.ha-hero-height-vh-30 { height: 30vh; }
.ha-hero-height-fit { height: auto; min-height: 400px; }

/* Horizontal Alignment - applied via content wrapper */
.ha-hero-h-left { }
.ha-hero-h-center { }
.ha-hero-h-right { }

/* Vertical Alignment - applied via content wrapper */
.ha-hero-v-top { }
.ha-hero-v-center { }
.ha-hero-v-bottom { }

/* ========================================
   BACKGROUND LAYER
   ======================================== */

.ha-hero-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.ha-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform;
}

/* ========================================
   KEN BURNS EFFECTS
   ======================================== */

.ha-ken-burns .ha-hero-bg {
    animation-timing-function: var(--ha-kb-easing, ease-in-out);
    animation-iteration-count: infinite;
    animation-fill-mode: both;
    animation-direction: alternate;
    animation-duration: var(--ha-kb-duration, 25s);
}

/* Zoom In */
.ha-kb-zoom-in .ha-hero-bg {
    animation-name: haKbZoomIn;
}
@keyframes haKbZoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(var(--ha-kb-scale, 1.15)); }
}

/* Zoom Out */
.ha-kb-zoom-out .ha-hero-bg {
    animation-name: haKbZoomOut;
    transform: scale(var(--ha-kb-scale, 1.15));
}
@keyframes haKbZoomOut {
    0% { transform: scale(var(--ha-kb-scale, 1.15)); }
    100% { transform: scale(1); }
}

/* Pan Left */
.ha-kb-pan-left .ha-hero-bg {
    animation-name: haKbPanLeft;
}
@keyframes haKbPanLeft {
    0% { transform: translateX(5%) scale(1.1); }
    100% { transform: translateX(-5%) scale(1.1); }
}

/* Pan Right */
.ha-kb-pan-right .ha-hero-bg {
    animation-name: haKbPanRight;
}
@keyframes haKbPanRight {
    0% { transform: translateX(-5%) scale(1.1); }
    100% { transform: translateX(5%) scale(1.1); }
}

/* Pan Up */
.ha-kb-pan-up .ha-hero-bg {
    animation-name: haKbPanUp;
}
@keyframes haKbPanUp {
    0% { transform: translateY(5%) scale(1.1); }
    100% { transform: translateY(-5%) scale(1.1); }
}

/* Pan Down */
.ha-kb-pan-down .ha-hero-bg {
    animation-name: haKbPanDown;
}
@keyframes haKbPanDown {
    0% { transform: translateY(-5%) scale(1.1); }
    100% { transform: translateY(5%) scale(1.1); }
}

/* Zoom + Pan Left */
.ha-kb-zoom-pan-left .ha-hero-bg {
    animation-name: haKbZoomPanLeft;
}
@keyframes haKbZoomPanLeft {
    0% { transform: scale(1) translateX(2%); }
    100% { transform: scale(var(--ha-kb-scale, 1.15)) translateX(-2%); }
}

/* Zoom + Pan Right */
.ha-kb-zoom-pan-right .ha-hero-bg {
    animation-name: haKbZoomPanRight;
}
@keyframes haKbZoomPanRight {
    0% { transform: scale(1) translateX(-2%); }
    100% { transform: scale(var(--ha-kb-scale, 1.15)) translateX(2%); }
}

/* Diagonal Top-Left to Bottom-Right */
.ha-kb-diagonal-tl-br .ha-hero-bg {
    animation-name: haKbDiagonalTLBR;
}
@keyframes haKbDiagonalTLBR {
    0% { transform: scale(1) translate(-2%, -2%); }
    100% { transform: scale(var(--ha-kb-scale, 1.15)) translate(2%, 2%); }
}

/* Diagonal Top-Right to Bottom-Left */
.ha-kb-diagonal-tr-bl .ha-hero-bg {
    animation-name: haKbDiagonalTRBL;
}
@keyframes haKbDiagonalTRBL {
    0% { transform: scale(1) translate(2%, -2%); }
    100% { transform: scale(var(--ha-kb-scale, 1.15)) translate(-2%, 2%); }
}

/* Pause on hover */
.ha-kb-pause-hover:hover .ha-hero-bg {
    animation-play-state: paused;
}

/* ========================================
   VIDEO BACKGROUND
   ======================================== */

.ha-hero-bg-video {
    position: relative;
    overflow: hidden;
}

.ha-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    transform-origin: center center;
    object-fit: cover;
}

.ha-video-fallback {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

.ha-video-youtube,
.ha-video-vimeo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transform-origin: center center;
}

.ha-video-youtube iframe,
.ha-video-vimeo iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Video interaction blocker - hides YouTube/Vimeo hover controls */
.ha-video-interaction-blocker {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: transparent;
    cursor: default;
}

/* When interaction is disabled, ensure iframe doesn't capture events */
.ha-video-no-interaction .ha-video-youtube iframe,
.ha-video-no-interaction .ha-video-vimeo iframe {
    pointer-events: none;
}

/* Also hide any YouTube branding that might show through */
.ha-video-no-interaction .ha-video-youtube,
.ha-video-no-interaction .ha-video-vimeo {
    overflow: hidden;
}

/* ========================================
   SLIDESHOW BACKGROUND
   ======================================== */

.ha-hero-bg-slideshow {
    position: relative;
}

.ha-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--ha-slideshow-transition, 1s) ease;
    will-change: opacity, transform;
}

.ha-slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slideshow Ken Burns per slide */
.ha-slide[data-ken-burns="zoom-in"].active {
    animation: haKbZoomIn var(--ha-slideshow-speed, 5s) ease-in-out;
}

.ha-slide[data-ken-burns="zoom-out"].active {
    animation: haKbZoomOut var(--ha-slideshow-speed, 5s) ease-in-out;
}

.ha-slide[data-ken-burns="pan-left"].active {
    animation: haKbPanLeft var(--ha-slideshow-speed, 5s) ease-in-out;
}

.ha-slide[data-ken-burns="pan-right"].active {
    animation: haKbPanRight var(--ha-slideshow-speed, 5s) ease-in-out;
}

/* Slideshow transition effects */
.ha-hero[data-slideshow-transition="slide"] .ha-slide {
    transform: translateX(100%);
    transition: transform var(--ha-slideshow-transition, 1s) ease, opacity var(--ha-slideshow-transition, 1s) ease;
}
.ha-hero[data-slideshow-transition="slide"] .ha-slide.active {
    transform: translateX(0);
}

.ha-hero[data-slideshow-transition="zoom"] .ha-slide {
    transform: scale(1.1);
}
.ha-hero[data-slideshow-transition="zoom"] .ha-slide.active {
    transform: scale(1);
}

.ha-hero[data-slideshow-transition="blur"] .ha-slide {
    filter: blur(20px);
}
.ha-hero[data-slideshow-transition="blur"] .ha-slide.active {
    filter: blur(0);
}

/* ========================================
   OVERLAY LAYER
   ======================================== */

.ha-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Animated gradient */
.ha-overlay-animated {
    background-size: 200% 200%;
    animation: haGradientShift 8s ease infinite;
}

@keyframes haGradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Pattern overlays */
.ha-overlay-pattern {
    background-color: rgba(0, 0, 0, 0.3);
}

.ha-pattern-dots {
    background-image: radial-gradient(circle, rgba(255,255,255,0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

.ha-pattern-lines {
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255,255,255,0.05) 2px,
        rgba(255,255,255,0.05) 4px
    );
}

.ha-pattern-grid {
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

.ha-pattern-diagonal {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(255,255,255,0.03) 10px,
        rgba(255,255,255,0.03) 20px
    );
}

.ha-pattern-noise {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ========================================
   CONTENT LAYER
   ======================================== */

.ha-hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    padding: 20px;
    box-sizing: border-box;
}

.ha-hero-h-left .ha-hero-content-wrapper { justify-content: flex-start; }
.ha-hero-h-center .ha-hero-content-wrapper { justify-content: center; }
.ha-hero-h-right .ha-hero-content-wrapper { justify-content: flex-end; }

.ha-hero-v-top .ha-hero-content-wrapper { align-items: flex-start; }
.ha-hero-v-center .ha-hero-content-wrapper { align-items: center; }
.ha-hero-v-bottom .ha-hero-content-wrapper { align-items: flex-end; }

.ha-hero-content {
    max-width: 800px;
    padding: 40px;
    box-sizing: border-box;
}

/* Typography */
.ha-hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.ha-hero-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-style: italic;
    line-height: 1.6;
    margin: 0 0 30px 0;
    color: #ffffff;
    opacity: 0.95;
}

/* ========================================
   TEXT ANIMATIONS
   ======================================== */

.ha-anim {
    opacity: 0;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

.ha-anim.ha-animated {
    animation-play-state: running;
}

/* Fade In */
.ha-anim-fade-in { animation-name: haFadeIn; }
@keyframes haFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Fade Up */
.ha-anim-fade-up { animation-name: haFadeUp; }
@keyframes haFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fade Down */
.ha-anim-fade-down { animation-name: haFadeDown; }
@keyframes haFadeDown {
    from { opacity: 0; transform: translateY(-40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Fade Left */
.ha-anim-fade-left { animation-name: haFadeLeft; }
@keyframes haFadeLeft {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Fade Right */
.ha-anim-fade-right { animation-name: haFadeRight; }
@keyframes haFadeRight {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Zoom In */
.ha-anim-zoom-in { animation-name: haZoomIn; }
@keyframes haZoomIn {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

/* Zoom Out */
.ha-anim-zoom-out { animation-name: haZoomOut; }
@keyframes haZoomOut {
    from { opacity: 0; transform: scale(1.2); }
    to { opacity: 1; transform: scale(1); }
}

/* Flip Up */
.ha-anim-flip-up { animation-name: haFlipUp; perspective: 1000px; }
@keyframes haFlipUp {
    from { opacity: 0; transform: perspective(1000px) rotateX(-90deg); }
    to { opacity: 1; transform: perspective(1000px) rotateX(0); }
}

/* Flip Down */
.ha-anim-flip-down { animation-name: haFlipDown; }
@keyframes haFlipDown {
    from { opacity: 0; transform: perspective(1000px) rotateX(90deg); }
    to { opacity: 1; transform: perspective(1000px) rotateX(0); }
}

/* Bounce In */
.ha-anim-bounce-in {
    animation-name: haBounceIn;
    animation-timing-function: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
@keyframes haBounceIn {
    0% { opacity: 0; transform: scale(0.3); }
    50% { opacity: 1; transform: scale(1.05); }
    70% { transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}

/* Slide Up */
.ha-anim-slide-up { animation-name: haSlideUp; }
@keyframes haSlideUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* Slide Down */
.ha-anim-slide-down { animation-name: haSlideDown; }
@keyframes haSlideDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* Blur In */
.ha-anim-blur-in { animation-name: haBlurIn; }
@keyframes haBlurIn {
    from { opacity: 0; filter: blur(20px); }
    to { opacity: 1; filter: blur(0); }
}

/* Glitch */
.ha-anim-glitch { animation-name: haGlitch; }
@keyframes haGlitch {
    0% { opacity: 0; transform: translate(0); text-shadow: none; }
    20% { opacity: 1; transform: translate(-3px, 3px); text-shadow: 3px 0 #ff00ff, -3px 0 #00ffff; }
    40% { transform: translate(3px, -3px); text-shadow: -3px 0 #ff00ff, 3px 0 #00ffff; }
    60% { transform: translate(-2px, 2px); text-shadow: 2px 0 #ff00ff, -2px 0 #00ffff; }
    80% { transform: translate(2px, -2px); text-shadow: -2px 0 #ff00ff, 2px 0 #00ffff; }
    100% { opacity: 1; transform: translate(0); text-shadow: none; }
}

/* Typewriter */
.ha-anim-typewriter {
    overflow: hidden;
    border-right: 3px solid white;
    white-space: nowrap;
    animation: haTypewriter 3s steps(40, end) forwards, haBlink 0.75s step-end infinite;
}
@keyframes haTypewriter {
    from { width: 0; opacity: 1; }
    to { width: 100%; opacity: 1; }
}
@keyframes haBlink {
    from, to { border-color: transparent; }
    50% { border-color: white; }
}

/* Letter Reveal (JS splits text) */
.ha-anim-letter-reveal .ha-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: haLetterReveal 0.5s ease forwards;
}
@keyframes haLetterReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Word Reveal (JS splits text) */
.ha-anim-word-reveal .ha-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: haWordReveal 0.6s ease forwards;
}
@keyframes haWordReveal {
    to { opacity: 1; transform: translateY(0); }
}

/* Wave (JS splits text) */
.ha-anim-wave .ha-letter {
    display: inline-block;
    opacity: 0;
    animation: haWave 0.6s ease forwards;
}
@keyframes haWave {
    0% { opacity: 0; transform: translateY(30px) rotate(10deg); }
    100% { opacity: 1; transform: translateY(0) rotate(0); }
}

/* ========================================
   BUTTON STYLES
   ======================================== */

.ha-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.ha-btn-wrapper {
    display: inline-block;
}

.ha-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 35px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    color: #ffffff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.ha-btn-text {
    position: relative;
    z-index: 2;
}

.ha-btn-icon {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
}

.ha-btn-icon svg {
    width: 1em;
    height: 1em;
    fill: currentColor;
}

.ha-btn-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Hover: Lift */
.ha-btn-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Hover: Grow */
.ha-btn-hover-grow:hover {
    transform: scale(1.05);
}

/* Hover: Shrink */
.ha-btn-hover-shrink:hover {
    transform: scale(0.95);
}

/* Hover: Pulse */
.ha-btn-hover-pulse:hover {
    animation: haBtnPulse 1s ease infinite;
}
@keyframes haBtnPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hover: Float */
.ha-btn-hover-float:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* Hover: Sink */
.ha-btn-hover-sink:hover {
    transform: translateY(4px);
}

/* Hover: Wobble */
.ha-btn-hover-wobble:hover {
    animation: haBtnWobble 1s ease;
}
@keyframes haBtnWobble {
    16.65% { transform: skew(-12deg); }
    33.3% { transform: skew(10deg); }
    49.95% { transform: skew(-6deg); }
    66.6% { transform: skew(4deg); }
    83.25% { transform: skew(-2deg); }
    100% { transform: skew(0); }
}

/* Hover: Buzz */
.ha-btn-hover-buzz:hover {
    animation: haBtnBuzz 0.3s linear infinite;
}
@keyframes haBtnBuzz {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-2px); }
    40% { transform: translateX(2px); }
    60% { transform: translateX(-2px); }
    80% { transform: translateX(2px); }
}

/* Hover: Skew */
.ha-btn-hover-skew:hover {
    transform: skew(-5deg);
}

/* Hover: Forward */
.ha-btn-hover-forward:hover {
    transform: translateX(8px);
}

/* Hover: Fill */
.ha-btn-hover-fill .ha-btn-effect {
    background: #ffffff;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.ha-btn-hover-fill:hover {
    color: #000000;
}
.ha-btn-hover-fill:hover .ha-btn-effect {
    transform: scaleX(1);
    transform-origin: left;
}

/* Hover: Shine */
.ha-btn-hover-shine .ha-btn-effect {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transform: translateX(-100%);
}
.ha-btn-hover-shine:hover .ha-btn-effect {
    animation: haBtnShine 0.8s ease;
}
@keyframes haBtnShine {
    to { transform: translateX(100%); }
}

/* Hover: Glow */
.ha-btn-hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    border-color: #ffffff;
}

/* Hover: Ripple */
.ha-btn-hover-ripple .ha-btn-effect {
    background: radial-gradient(circle, rgba(255,255,255,0.4) 0%, transparent 70%);
    transform: scale(0);
    opacity: 0;
}
.ha-btn-hover-ripple:hover .ha-btn-effect {
    animation: haBtnRipple 0.6s ease-out;
}
@keyframes haBtnRipple {
    0% { transform: scale(0); opacity: 1; }
    100% { transform: scale(2.5); opacity: 0; }
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.ha-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    animation: haFadeIn 1s ease 1.5s forwards;
}

.ha-scroll-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

/* Mouse style */
.ha-scroll-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 13px;
    position: relative;
}

.ha-scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: haScrollWheel 1.5s ease-in-out infinite;
}

@keyframes haScrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* Arrow style */
.ha-scroll-arrow svg {
    width: 30px;
    height: 30px;
    animation: haScrollBounce 2s ease-in-out infinite;
}

@keyframes haScrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* Chevron style */
.ha-scroll-chevron {
    display: flex;
    flex-direction: column;
    gap: -10px;
}

.ha-scroll-chevron svg {
    width: 24px;
    height: 24px;
    animation: haScrollChevron 2s ease-in-out infinite;
}

.ha-scroll-chevron svg:nth-child(2) {
    animation-delay: 0.15s;
    margin-top: -12px;
}

@keyframes haScrollChevron {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(5px); }
}

/* Line style */
.ha-scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.ha-scroll-line span {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(to bottom, transparent, white);
    animation: haScrollLine 1.5s ease-in-out infinite;
}

@keyframes haScrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

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

.ha-parallax .ha-hero-bg {
    height: 120%;
    top: -10%;
}

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

@media (max-width: 1024px) {
    .ha-hero-content {
        padding: 30px;
    }
    
    .ha-hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
    }
    
    .ha-hero-subtitle {
        font-size: clamp(0.95rem, 2vw, 1.15rem);
    }
}

@media (max-width: 768px) {
    .ha-hero-content {
        padding: 20px;
        max-width: 100% !important;
    }
    
    .ha-hero-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .ha-hero-subtitle {
        font-size: 1rem;
    }
    
    .ha-hero-button {
        padding: 12px 28px;
        font-size: 0.95rem;
    }
    
    .ha-hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .ha-hero-h-center .ha-hero-buttons {
        align-items: center;
    }
    
    /* Video fallback on mobile */
    .ha-hero:not([data-video-play-mobile="yes"]) .ha-video {
        display: none;
    }
    
    .ha-hero:not([data-video-play-mobile="yes"]) .ha-video-fallback {
        z-index: 1;
    }
}

/* Disable animations on mobile if set */
.ha-disable-mobile-anim .ha-anim {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

@media (max-width: 768px) {
    .ha-disable-mobile-anim .ha-ken-burns .ha-hero-bg {
        animation: none !important;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .ha-respect-reduced-motion .ha-hero-bg,
    .ha-respect-reduced-motion .ha-anim,
    .ha-respect-reduced-motion .ha-hero-button,
    .ha-respect-reduced-motion .ha-overlay-animated,
    .ha-respect-reduced-motion .ha-scroll-indicator * {
        animation: none !important;
        transition: none !important;
    }
    
    .ha-respect-reduced-motion .ha-anim {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* ========================================
   ELEMENTOR EDITOR
   ======================================== */

.elementor-editor-active .ha-anim {
    opacity: 1;
    transform: none;
    animation: none;
}
