/* ============================================================
   Ultra Slider — ultra-slider.css
   Lightweight: ~6 KB. Zero framework dependency.
   ============================================================ */

/* ---------- Core Layout ---------- */
.us-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    height: 85vh; /* overridden by Elementor responsive control */
    background: #111;
}

.us-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.us-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    will-change: opacity, transform;
    z-index: 0;
}

.us-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* ---------- Transitions ---------- */

/* Fade (default) */
.us-transition-fade .us-slide {
    transition: opacity var(--us-trans-speed, 800ms) cubic-bezier(.4,0,.2,1);
}

/* Slide */
.us-transition-slide .us-slide {
    transform: translateX(100%);
    transition: transform var(--us-trans-speed, 800ms) cubic-bezier(.4,0,.2,1),
                opacity var(--us-trans-speed, 800ms);
}
.us-transition-slide .us-slide.is-active       { transform: translateX(0); }
.us-transition-slide .us-slide.us-slide-exit   { transform: translateX(-100%); opacity: 0; }
.us-transition-slide .us-slide.us-slide-enter  { transform: translateX(100%); }

/* Zoom-Fade */
.us-transition-zoom-fade .us-slide {
    transition: opacity var(--us-trans-speed, 800ms) ease,
                transform var(--us-trans-speed, 800ms) ease;
    transform: scale(1.08);
}
.us-transition-zoom-fade .us-slide.is-active { transform: scale(1); }

/* Flip */
.us-transition-flip .us-track {
    perspective: 1200px;
}
.us-transition-flip .us-slide {
    backface-visibility: hidden;
    transition: opacity calc(var(--us-trans-speed, 800ms) * 0.5) ease,
                transform var(--us-trans-speed, 800ms) ease;
    transform: rotateY(90deg);
}
.us-transition-flip .us-slide.is-active { transform: rotateY(0deg); }

/* ---------- Background / Ken Burns ---------- */
.us-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    will-change: transform;
}

/* Ken Burns keyframes */
@keyframes us-kb-zoom-in   { from { transform: scale(1);    } to { transform: scale(1.15); } }
@keyframes us-kb-zoom-out  { from { transform: scale(1.15); } to { transform: scale(1);    } }
@keyframes us-kb-pan-right { from { transform: scale(1.1) translateX(-3%); } to { transform: scale(1.1) translateX(3%); } }
@keyframes us-kb-pan-left  { from { transform: scale(1.1) translateX(3%); }  to { transform: scale(1.1) translateX(-3%); } }
@keyframes us-kb-pan-up    { from { transform: scale(1.1) translateY(3%); }  to { transform: scale(1.1) translateY(-3%); } }
@keyframes us-kb-pan-down  { from { transform: scale(1.1) translateY(-3%); } to { transform: scale(1.1) translateY(3%); } }

.us-slide.is-active .us-kb.us-kb--zoom-in   { animation: us-kb-zoom-in   var(--us-autoplay, 5000ms) linear forwards; }
.us-slide.is-active .us-kb.us-kb--zoom-out  { animation: us-kb-zoom-out  var(--us-autoplay, 5000ms) linear forwards; }
.us-slide.is-active .us-kb.us-kb--pan-right { animation: us-kb-pan-right var(--us-autoplay, 5000ms) linear forwards; }
.us-slide.is-active .us-kb.us-kb--pan-left  { animation: us-kb-pan-left  var(--us-autoplay, 5000ms) linear forwards; }
.us-slide.is-active .us-kb.us-kb--pan-up    { animation: us-kb-pan-up    var(--us-autoplay, 5000ms) linear forwards; }
.us-slide.is-active .us-kb.us-kb--pan-down  { animation: us-kb-pan-down  var(--us-autoplay, 5000ms) linear forwards; }

/* ---------- Overlay ---------- */
.us-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* ---------- Content ---------- */
.us-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1140px;
    padding: 0 24px;
    margin: 0 auto;
    text-align: center; /* Elementor overrides via inline selector */
}

/* Heading base */
.us-heading {
    color: #fff;
    margin: 0 0 .5em;
    line-height: 1.1;
    opacity: 0;
}

/* Description base */
.us-description {
    color: rgba(255,255,255,.88);
    margin: 0 auto 2em;
    opacity: 0;
}

/* ---------- Content Animations ---------- */

/* fade-up */
@keyframes us-fade-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* fade-down */
@keyframes us-fade-down {
    from { opacity: 0; transform: translateY(-40px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* fade-left */
@keyframes us-fade-left {
    from { opacity: 0; transform: translateX(50px); }
    to   { opacity: 1; transform: translateX(0); }
}
/* fade-right */
@keyframes us-fade-right {
    from { opacity: 0; transform: translateX(-50px); }
    to   { opacity: 1; transform: translateX(0); }
}
/* zoom-in */
@keyframes us-zoom-in {
    from { opacity: 0; transform: scale(.7); }
    to   { opacity: 1; transform: scale(1); }
}
/* flip-x */
@keyframes us-flip-x {
    from { opacity: 0; transform: perspective(600px) rotateX(60deg); }
    to   { opacity: 1; transform: perspective(600px) rotateX(0deg); }
}
/* slide-up (clip) */
@keyframes us-slide-up {
    from { opacity: 0; clip-path: inset(100% 0 0 0); }
    to   { opacity: 1; clip-path: inset(0 0 0 0); }
}
/* typewriter handled by JS */

/* Apply animation when slide is active */
.us-slide.is-active .us-heading[data-anim="fade-up"]   { animation: us-fade-up   .7s .1s cubic-bezier(.2,.8,.2,1) both; }
.us-slide.is-active .us-heading[data-anim="fade-down"]  { animation: us-fade-down  .7s .1s cubic-bezier(.2,.8,.2,1) both; }
.us-slide.is-active .us-heading[data-anim="fade-left"]  { animation: us-fade-left  .7s .1s cubic-bezier(.2,.8,.2,1) both; }
.us-slide.is-active .us-heading[data-anim="fade-right"] { animation: us-fade-right .7s .1s cubic-bezier(.2,.8,.2,1) both; }
.us-slide.is-active .us-heading[data-anim="zoom-in"]    { animation: us-zoom-in    .7s .1s cubic-bezier(.2,.8,.2,1) both; }
.us-slide.is-active .us-heading[data-anim="flip-x"]     { animation: us-flip-x     .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.us-slide.is-active .us-heading[data-anim="slide-up"]   { animation: us-slide-up   .7s .1s cubic-bezier(.2,.8,.2,1) both; }

.us-slide.is-active .us-description[data-anim="fade-up"]   { animation: us-fade-up   .7s .3s cubic-bezier(.2,.8,.2,1) both; }
.us-slide.is-active .us-description[data-anim="fade-down"]  { animation: us-fade-down  .7s .3s cubic-bezier(.2,.8,.2,1) both; }
.us-slide.is-active .us-description[data-anim="fade-left"]  { animation: us-fade-left  .7s .3s cubic-bezier(.2,.8,.2,1) both; }
.us-slide.is-active .us-description[data-anim="fade-right"] { animation: us-fade-right .7s .3s cubic-bezier(.2,.8,.2,1) both; }
.us-slide.is-active .us-description[data-anim="zoom-in"]    { animation: us-zoom-in    .7s .3s cubic-bezier(.2,.8,.2,1) both; }
.us-slide.is-active .us-description[data-anim="none"]       { opacity: 1; animation: none; }

/* Buttons stagger */
.us-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center !important;
    align-items: center;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
}
.us-slide.is-active .us-buttons {
    animation: us-fade-up .7s .5s cubic-bezier(.2,.8,.2,1) both;
}

/* ---------- Buttons ---------- */
.us-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: .02em;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, color .25s ease, background .25s ease, border-color .25s ease;
    -webkit-tap-highlight-color: transparent;
    /* Per-slide CSS variables */
    background: var(--us-btn-bg, #ffffff);
    color: var(--us-btn-color, #111);
}

.us-btn span {
    position: relative;
    z-index: 2;
    transition: color .25s ease;
}

/* --- Styles --- */
.us-btn--outline {
    background: transparent;
    border-color: var(--us-btn-color, #ffffff);
    color: var(--us-btn-color, #ffffff);
}

.us-btn--ghost {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.3);
    color: var(--us-btn-color, #ffffff);
    backdrop-filter: blur(8px);
}

.us-btn--gradient {
    background: linear-gradient(135deg, var(--us-btn-bg, #6366f1), color-mix(in srgb, var(--us-btn-bg, #6366f1) 60%, #ec4899));
    border: none;
    color: var(--us-btn-color, #ffffff);
}

/* --- Hover Effects --- */

/* Lift Shadow */
.us-hover--lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0,0,0,.35);
}

/* Slide Background */
.us-hover--slide-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.15);
    transform: translateX(-101%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
    z-index: 1;
}
.us-hover--slide-bg:hover::before { transform: translateX(0); }

/* Ripple */
.us-hover--ripple::after {
    content: '';
    position: absolute;
    width: 0; height: 0;
    background: rgba(255,255,255,.25);
    border-radius: 50%;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    transition: width .5s ease, height .5s ease, opacity .5s ease;
    opacity: 0;
    z-index: 1;
}
.us-hover--ripple:hover::after {
    width: 250%; height: 250%;
    opacity: 0;
}
/* JS adds .us-ripple-active for click ripple */

/* Bounce Scale */
.us-hover--bounce:hover  { transform: scale(1.06); }
.us-hover--bounce:active { transform: scale(.97); }

/* Glow Pulse */
@keyframes us-glow {
    0%,100% { box-shadow: 0 0 0   6px rgba(255,255,255,.2); }
    50%      { box-shadow: 0 0 20px 10px rgba(255,255,255,.35); }
}
.us-hover--glow:hover { animation: us-glow 1.2s ease infinite; }

/* Border Draw In */
.us-hover--border-in {
    background: transparent;
    color: var(--us-btn-color, #fff);
}
.us-hover--border-in::before,
.us-hover--border-in::after {
    content: '';
    position: absolute;
    transition: all .35s ease;
}
.us-hover--border-in::before {
    top: 0; left: 0;
    width: 0; height: 2px;
    background: var(--us-btn-color, #fff);
}
.us-hover--border-in::after {
    bottom: 0; right: 0;
    width: 0; height: 2px;
    background: var(--us-btn-color, #fff);
}
.us-hover--border-in:hover::before,
.us-hover--border-in:hover::after { width: 100%; }

/* ---------- Arrows ---------- */
.us-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px; height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.35);
    transition: background .2s, transform .2s;
    padding: 0;
}
.us-arrow:hover { background: rgba(0,0,0,.6); transform: translateY(-50%) scale(1.1); }
.us-arrow--prev { left: 20px; }
.us-arrow--next { right: 20px; }
.us-arrow svg { fill: #fff; flex-shrink: 0; stroke: #fff; stroke-width: 2.5; fill: none; }

/* ---------- Dots ---------- */
.us-dots {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}
.us-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,.4);
    transition: background .3s, transform .3s;
    padding: 0;
}
.us-dot.is-active { background: #fff; transform: scale(1.3); }

/* ---------- Progress bar ---------- */
.us-progress {
    position: absolute;
    bottom: 0; left: 0;
    height: 3px;
    background: rgba(255,255,255,.7);
    z-index: 10;
    transform-origin: left;
    transform: scaleX(0);
}
.us-progress.is-running {
    animation: us-progress-run linear forwards;
    animation-duration: var(--us-autoplay, 5000ms);
}
@keyframes us-progress-run { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    .us-heading, .us-description, .us-buttons,
    .us-bg, .us-slide, .us-btn { animation: none !important; transition: none !important; }
    .us-slide.is-active .us-heading,
    .us-slide.is-active .us-description,
    .us-slide.is-active .us-buttons { opacity: 1; }
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .us-arrow { width: 38px; height: 38px; }
    .us-arrow--prev { left: 10px; }
    .us-arrow--next { right: 10px; }
    .us-buttons { justify-content: center; }
}
