/* Antix-R Travel Agency - Custom Stylesheet */

@import url('https://fonts.cdnfonts.com/css/nexa-bold');
@import url('https://fonts.cdnfonts.com/css/nexa');
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-teal: #062B28;
    --primary-light: #0E534E;
    --brand-gold: #F5B82E;
    --brand-gold-hover: #E5A51E;
    --brand-dark-card: #08332F;
    --text-dark: #1E293B;
}

/* Base resets & typography with Nexa */
html, body {
    scroll-behavior: smooth;
    font-family: 'Nexa', 'Plus Jakarta Sans', sans-serif;
}

h1, h2, h3, h4, .font-heading {
    font-family: 'Nexa Bold', 'Nexa', 'Outfit', sans-serif;
    font-weight: 900;
}

.font-script {
    font-family: 'Caveat', cursive;
}

/* Header scroll dynamics */
.header-scrolled {
    background-color: rgba(6, 43, 40, 0.95) !important;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding-top: 0px;
    padding-bottom: 0px;
}

/* Custom Hero Background using user's uploaded image */
.hero-banner {
    background-image: url('../images/hero-bg.avif');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
}

@media (min-width: 1024px) {
    .hero-banner {
        background-position: right 32% center;
    }
}

.hero-text-glow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7), 0 4px 25px rgba(0, 0, 0, 0.5);
}

/* Glassmorphism Card Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
    background: rgba(8, 51, 47, 0.85);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Pulse animation for Video Story play button */
@keyframes pulse-ring {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 184, 46, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 16px rgba(245, 184, 46, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(245, 184, 46, 0);
    }
}

.pulse-play {
    animation: pulse-ring 2.5s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

/* Floating Search Box Tabs */
.search-tab-btn.active {
    color: #062B28;
    font-weight: 700;
    border-bottom: 2.5px solid #F5B82E;
}

.search-tab-btn:not(.active) {
    color: #64748B;
}

.search-tab-btn:not(.active):hover {
    color: #0F5A54;
}

/* Polaroid Photography Stack & Tilted Cards */
.polaroid-container {
    position: relative;
    perspective: 1000px;
}

.polaroid-card-1 {
    transform: rotate(-6deg) translateY(10px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.polaroid-card-1:hover {
    transform: rotate(-2deg) translateY(-8px) scale(1.03);
    z-index: 20;
}

.polaroid-card-2 {
    transform: rotate(7deg) translateY(-15px) translateX(25px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 6px 14px rgba(0, 0, 0, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.polaroid-card-2:hover {
    transform: rotate(3deg) translateY(-25px) scale(1.03);
    z-index: 25;
}

/* Airplane Trail Dashed Line Animation */
@keyframes plane-drift {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(12px, -8px) rotate(4deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.airplane-float {
    animation: plane-drift 5s ease-in-out infinite;
}

/* Destination Cards Hover */
.destination-card {
    transition: all 0.4s ease;
}

.destination-card:hover {
    transform: translateY(-8px);
}

.destination-card:hover .dest-img {
    transform: scale(1.08);
}

.destination-card .dest-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.2) 40%, rgba(6, 43, 40, 0.95) 100%);
}

/* Scale-in animation for modals */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.animate-scale-in {
    animation: scaleIn 0.25s ease-out forwards;
}

/* Smooth custom scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
    background: #CBD5E1;
    border-radius: 4px;
}

/* React Bits - ScrollExpand Component Styles */
.scroll-expand {
    position: relative;
    width: 100%;
    height: 100%;
}

.scroll-expand--scroller {
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    overscroll-behavior: contain;
}

.scroll-expand--scroller::-webkit-scrollbar {
    display: none;
}

.scroll-expand__track {
    position: relative;
    width: 100%;
}

.scroll-expand__stage {
    position: sticky;
    top: 0;
    width: 100%;
    overflow: hidden;
    --se-title-size: 4rem;
}

.scroll-expand__frame {
    position: absolute;
    inset: 0;
    clip-path: inset(21% 29% 21% 29% round 24px);
    will-change: clip-path;
}

.scroll-expand__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
    transform-origin: center;
    user-select: none;
    -webkit-user-drag: none;
}

.scroll-expand__scrim {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to top, rgba(6, 43, 40, 0.85), rgba(0, 0, 0, 0.2) 45%, rgba(6, 43, 40, 0.45));
    opacity: 0;
}

.scroll-expand__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6%;
    opacity: 0;
    will-change: opacity, transform;
}

.scroll-expand__title {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 6%;
    text-align: center;
    font-size: var(--se-title-size);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: #fff;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    will-change: opacity, transform;
}

.scroll-expand__hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    pointer-events: none;
    will-change: opacity, transform;
}
::-webkit-scrollbar-thumb:hover {
    background: #94A3B8;
}
