/* ========================================
   Alignment Zones - Custom Styles
   Fonts: Inter (body) + Domine (headings)
   ======================================== */

/* Base Typography */
body {
    font-family: 'Inter', sans-serif;
}

h1,
h2,
h3,
h4,
.font-heading {
    font-family: 'Domine', serif;
}

/* Hero image positioning */
.hero-image {
    object-position: top;
}

@media (min-width: 768px) {
    .hero-image {
        object-position: center 20%;
    }
}

/* Text Outline Effect */
.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5);
    color: transparent;
}

/* ========================================
   Gradient Blur Effect (Progress blur from top)
   ======================================== */
.gradient-blur {
    position: fixed;
    z-index: 25;
    inset: 0 0 auto 0;
    height: 15%;
    pointer-events: none;
}

.gradient-blur>div,
.gradient-blur::before,
.gradient-blur::after {
    position: absolute;
    inset: 0;
}

.gradient-blur::before {
    content: "";
    z-index: 1;
    backdrop-filter: blur(0.5px);
    mask: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 1) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 0) 37.5%);
}

.gradient-blur>div:nth-of-type(1) {
    z-index: 2;
    backdrop-filter: blur(1px);
    mask: linear-gradient(to top, rgba(0, 0, 0, 0) 12.5%, rgba(0, 0, 0, 1) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 0) 50%);
}

.gradient-blur>div:nth-of-type(2) {
    z-index: 3;
    backdrop-filter: blur(2px);
    mask: linear-gradient(to top, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 1) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 0) 62.5%);
}

.gradient-blur>div:nth-of-type(3) {
    z-index: 4;
    backdrop-filter: blur(4px);
    mask: linear-gradient(to top, rgba(0, 0, 0, 0) 37.5%, rgba(0, 0, 0, 1) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 0) 75%);
}

.gradient-blur>div:nth-of-type(4) {
    z-index: 5;
    backdrop-filter: blur(8px);
    mask: linear-gradient(to top, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 1) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 0) 87.5%);
}

.gradient-blur>div:nth-of-type(5) {
    z-index: 6;
    backdrop-filter: blur(16px);
    mask: linear-gradient(to top, rgba(0, 0, 0, 0) 62.5%, rgba(0, 0, 0, 1) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 0) 100%);
}

.gradient-blur>div:nth-of-type(6) {
    z-index: 7;
    backdrop-filter: blur(32px);
    mask: linear-gradient(to top, rgba(0, 0, 0, 0) 75%, rgba(0, 0, 0, 1) 87.5%, rgba(0, 0, 0, 1) 100%);
}

.gradient-blur::after {
    content: "";
    z-index: 8;
    backdrop-filter: blur(64px);
    mask: linear-gradient(to top, rgba(0, 0, 0, 0) 87.5%, rgba(0, 0, 0, 1) 100%);
}

/* ========================================
   Hero Title Animation
   ======================================== */
@keyframes aura-letter-enter {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(10px);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* ========================================
   Zones Slider Hint Animation
   ======================================== */
@keyframes slide-hint {
    0% {
        transform: translateX(0);
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    60% {
        transform: translateX(120px);
        opacity: 1;
    }

    100% {
        transform: translateX(120px);
        opacity: 0;
    }
}

.animate-slide-hint {
    animation: slide-hint 2.5s ease-out 0.5s 1 forwards;
}

/* ========================================
   Lottie Player Styles
   ======================================== */
.zone-lottie {
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.zone-card:hover .zone-lottie {
    opacity: 1;
}

/* Mobile: Always full opacity */
@media (max-width: 767px) {
    .zone-lottie {
        opacity: 1;
    }
}

/* ========================================
   Zone Image Styles (index.html)
   ======================================== */

/* Desktop: Dark emerald tint to full color + zoom on hover */
.zone-image {
    filter: brightness(0.7);
    transform: scale(1);
    transition: filter 0.5s ease, transform 0.7s ease;
}

.zone-card:hover .zone-image {
    filter: none;
    transform: scale(1.08);
}

/* Mobile: Appear animation with dark emerald tint */
.zone-card-mobile .zone-image {
    filter: sepia(100%) saturate(150%) hue-rotate(90deg) brightness(0.5);
    transition: filter 0.8s ease, transform 0.5s ease;
}

.zone-card-mobile.in-view .zone-image {
    filter: none;
}

/* Mobile shine effect on appear */
.zone-card-mobile::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
    z-index: 15;
}

.zone-card-mobile.in-view::after {
    animation: card-shine 0.8s ease-out forwards;
}

@keyframes card-shine {
    0% {
        opacity: 0;
        transform: translateX(-100%);
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* ========================================
   Testimonial Card Hover Effects
   ======================================== */
.testimonial-card {
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.testimonial-card:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow:
        0 25px 50px -12px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(16, 185, 129, 0.15);
    transform: translateY(-4px);
    background: rgba(16, 185, 129, 0.15) !important;
}

/* Text colors for glassmorphic cards */
.testimonial-card p.text-neutral-600 {
    color: rgba(255, 255, 255, 0.9) !important;
}

.testimonial-card h4.text-neutral-900 {
    color: white !important;
}

.testimonial-card p.text-neutral-400,
.testimonial-card span.text-neutral-400 {
    color: rgba(255, 255, 255, 0.7) !important;
}

.testimonial-card .border-neutral-100 {
    border-color: rgba(255, 255, 255, 0.2) !important;
}

/* Emoji icon backgrounds - slightly more visible */
.testimonial-card .bg-neutral-50 {
    background: rgba(255, 255, 255, 0.2) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.testimonial-card .bg-emerald-50 {
    background: rgba(16, 185, 129, 0.2) !important;
    border-color: rgba(16, 185, 129, 0.4) !important;
}

/* Beam line background */
.testimonial-card .bg-neutral-100 {
    background: rgba(255, 255, 255, 0.2) !important;
}

/* ========================================
   Testimonial Transition Animation
   ======================================== */

/* Gradient beam animation - subtle sweep from left to right */
@keyframes beam-sweep {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

/* Destination zone shine animation - starts dull, lights up when beam arrives */
@keyframes zone-shine {

    0%,
    70% {
        opacity: 0.5;
        filter: grayscale(50%);
    }

    85% {
        opacity: 1;
        filter: grayscale(0%);
    }

    100% {
        opacity: 1;
        filter: grayscale(0%);
    }
}

/* Destination icon pop animation - subtle scale bounce */
@keyframes icon-pop {

    0%,
    70% {
        transform: scale(1);
    }

    80% {
        transform: scale(1.15);
    }

    90% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1.1);
    }
}

/* Active state animations */
.testimonial-card[data-state="active"] .scroll-beam {
    animation: beam-sweep 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.testimonial-card[data-state="active"] .destination-zone {
    animation: zone-shine 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.testimonial-card[data-state="active"] .destination-icon {
    animation: icon-pop 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Reset animations when not in view */
.testimonial-card:not([data-state="active"]) .scroll-beam {
    width: 0%;
    animation: none;
}

.testimonial-card:not([data-state="active"]) .destination-zone {
    opacity: 0.5;
    filter: grayscale(50%);
    animation: none;
}

.testimonial-card:not([data-state="active"]) .destination-icon {
    transform: scale(1);
    animation: none;
}