/* ==========================================================================
   Main Stylesheet - Wanderlust Travel Agency
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RESET & BASE STYLES
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

section {
    max-width: 100%;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/* --------------------------------------------------------------------------
   2. RESPONSIVE TYPOGRAPHY
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    h1 { font-size: 1.75rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.5rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.25rem !important; }
    p { font-size: 0.875rem !important; }
}

@media (min-width: 641px) and (max-width: 1024px) {
    h1 { font-size: 2.25rem !important; }
    h2 { font-size: 1.75rem !important; }
}

/* --------------------------------------------------------------------------
   3. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.container-responsive {
    width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 640px) {
    .container-responsive {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container-responsive {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.no-horizontal-scroll {
    overflow-x: hidden !important;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* --------------------------------------------------------------------------
   4. ANIMATIONS & KEYFRAMES
   -------------------------------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.card-enter {
    animation: slideUp 0.6s ease-out forwards;
}

.mobile-menu-enter {
    animation: slideInTop 0.4s ease-out forwards;
}

/* --------------------------------------------------------------------------
   5. HERO SECTION STYLES
   -------------------------------------------------------------------------- */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-mask {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: linear-gradient(to bottom, transparent 0%, rgba(249, 250, 251, 0.3) 50%, #f9fafb 100%);
    pointer-events: none;
    z-index: 15;
}

.overlay-gradient {
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
}

.text-shadow {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   6. HEADER STYLES
   -------------------------------------------------------------------------- */
   
/* Transparent header by default (hero image visible) */
#main-header {
    max-width: calc(100% - 2rem) !important;
    background-color: transparent !important;
    backdrop-filter: blur(0px);
    transition: all 0.3s ease;
}

/* Header with semi-transparent background on scroll */
#main-header.header-scrolled {
    background-color: rgba(20, 184, 166, 0.3) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    #main-header {
        width: calc(100% - 1.5rem) !important;
        border-radius: 1rem !important;
    }
}

/* --------------------------------------------------------------------------
   7. FLIP CARD STYLES
   -------------------------------------------------------------------------- */
.flip-card {
    perspective: 1000px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flip-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 1.5rem;
    overflow: hidden;
}

.flip-card-front {
    background: white;
}

.flip-card-back {
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    text-align: center;
}

.flip-card-image {
    height: 55%;
    width: 100%;
    object-fit: cover;
}

/* --------------------------------------------------------------------------
   8. UPCOMING TRIPS CARD STYLES
   -------------------------------------------------------------------------- */
.single-upconing-card {
    position: relative;
    width: 280px;
    flex-shrink: 0;
    perspective: 1000px;
}

.single-upconing-card .shadow {
    position: relative;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.single-upconing-card .shadow img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.single-upconing-card .content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 1rem;
    border-radius: 0 0 1rem 1rem;
    transition: all 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.single-upconing-card .content .title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.single-upconing-card .content .title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.single-upconing-card .content .title a:hover {
    color: #14b8a6;
}

.single-upconing-card .content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
}

.single-upconing-card .details {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transform: rotateY(-180deg);
    transition: all 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.single-upconing-card:hover .details {
    opacity: 1;
    visibility: visible;
    transform: rotateY(0deg);
}

.single-upconing-card:hover .shadow {
    opacity: 0;
    visibility: hidden;
    transform: rotateY(180deg);
}

.single-upconing-card:hover .content {
    opacity: 0;
    visibility: hidden;
    transform: rotateY(180deg);
}

.single-upconing-card .details .title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.single-upconing-card .details .title a {
    color: white;
    text-decoration: none;
}

.single-upconing-card .details .offer-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 1rem;
    margin-bottom: 1rem;
}

.single-upconing-card .details .offer-text {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.single-upconing-card .details .offer-sub {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
}

.single-upconing-card .details .btn {
    background: white;
    color: #0d9488;
    padding: 0.75rem 2rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}

.single-upconing-card .details .btn:hover {
    background: #f0f0f0;
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------
   9. CAROUSEL & SLIDER STYLES
   -------------------------------------------------------------------------- */
.upcomming-card-slider {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem 0;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 640px) {
    .upcomming-card-slider {
        gap: 1rem;
        padding: 1rem 0;
    }
}

.upcomming-card-slider::-webkit-scrollbar {
    display: none;
}

.zigzag-row-1 {
    margin-top: 0;
}

.zigzag-row-2 {
    margin-top: 60px;
}

@media (max-width: 640px) {
    .zigzag-row-2 {
        margin-top: 40px;
    }
}

.tps-arrow-left-right {
    position: relative;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 10;
    transition: all 0.3s;
}

@media (min-width: 640px) {
    .carousel-arrow {
        width: 50px;
        height: 50px;
    }
}

.carousel-arrow:hover {
    background: #14b8a6;
    color: white;
}

.carousel-arrow.prev {
    left: -20px;
}

.carousel-arrow.next {
    right: -20px;
}

@media (max-width: 640px) {
    .carousel-arrow.prev {
        left: 5px;
    }
    .carousel-arrow.next {
        right: 5px;
    }
    .carousel-arrow {
        width: 36px;
        height: 36px;
    }
    .carousel-arrow svg {
        width: 20px;
        height: 20px;
    }
}

/* --------------------------------------------------------------------------
   10. MOBILE MENU STYLES
   -------------------------------------------------------------------------- */
#mobile-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
}

/* --------------------------------------------------------------------------
   11. CUSTOM SCROLLBAR
   -------------------------------------------------------------------------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* --------------------------------------------------------------------------
   12. GRID & LAYOUT FIXES
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .grid {
        gap: 1rem !important;
    }
}

button, .btn {
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   13. NAVIGATION DOTS
   -------------------------------------------------------------------------- */
.nav-dot {
    transition: all 0.3s ease;
}

.nav-dot.active {
    transform: scale(1.3);
    background-color: #14b8a6;
}

/* --------------------------------------------------------------------------
   14. CARD SLIDE TRANSITIONS
   -------------------------------------------------------------------------- */
.card-slide {
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

/* --------------------------------------------------------------------------
   15. SCROLL REVEAL ANIMATIONS (Discovery Builders Style)
   -------------------------------------------------------------------------- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal-scale.active {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.scroll-delay-1 { transition-delay: 0.1s; }
.scroll-delay-2 { transition-delay: 0.2s; }
.scroll-delay-3 { transition-delay: 0.3s; }
.scroll-delay-4 { transition-delay: 0.4s; }

/* Package card scroll animation */
.package-card {
    opacity: 0;
    transform: translateY(80px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.package-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.package-card.visible.delay-1 { transition-delay: 0.1s; }
.package-card.visible.delay-2 { transition-delay: 0.2s; }
.package-card.visible.delay-3 { transition-delay: 0.3s; }
.package-card.visible.delay-4 { transition-delay: 0.4s; }

/* Parallax helper */
[data-speed] {
    will-change: transform;
}
