/* Prevents background scroll when menu is active */
body.menu-open {
    overflow: hidden;
}

/* 1. CSS VARIABLES - The "Theme" of your brand */
:root {
    --primary-orange: #ff4d00;
    --deep-bg: #0a0a0c;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --text-main: #ffffff;
    --text-dim: #a0a0a0;
    --accent-gradient: linear-gradient(90deg, #ff4d00, #ff8c00);
}

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

body {
    background-color: var(--deep-bg);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    overflow-x: hidden;
}


/* 3. GLASS NAVBAR - Final Layout */
/* 3. GLASS NAVBAR */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* Changed from 8% to 3% to move everything toward the edges */
    padding: 12px 3%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    /* Starts transparent for the sky view */
    transition: all 0.4s ease;
}

.glass-nav.scrolled {
    background: rgba(0, 0, 0, 0.85) !important;
    backdrop-filter: blur(10px);
    /* Keeps the same tight horizontal padding when scrolled */
    padding: 10px 3%;
}

/* Brand Unit: Icon + Text */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 12px;
    /* Perfect breathing room between icon and text */
}

#main-logo {
    height: 40px;
    /* Aligns with the height of 'The Adventure' */
    width: auto;
    object-fit: contain;
}

.logo-text {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

/* The Orange Gradient Part */
.logo-text span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

/* Navigation Links Alignment */
.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
}

/* Ensure the Nav Links stay on the right */
.glass-nav {
    display: flex;
    justify-content: space-between;
    /* Pushes Logo left and Links right */
    align-items: center;
    padding: 15px 8%;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary-orange);
}

/* 4. HERO SECTION & VIDEO */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
    /* Darkens video so text is readable */
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 5. BUTTONS - VIEW PACKAGE SECTION */
.btn-main {
    background: var(--accent-gradient);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.4s;
    display: inline-block;
    margin: 10px;
}

.btn-main:hover {
    box-shadow: 0 0 25px rgba(255, 77, 0, 0.5);
    transform: translateY(-3px);
}

.btn-outline {
    border: 1px solid var(--text-dim);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    transition: 0.3s;
    display: inline-block;
}

.btn-outline:hover {
    border-color: var(--primary-orange);
    color: var(--primary-orange);
}


/* 6. VALUE CARDS & RE-IMAGINE SECTION */
.value-prop {
    padding: 100px 8%;
    background-color: var(--deep-bg);
    text-align: center;
}

/* Updated Title Style */
.value-prop h2 {
    font-size: 2.8rem;
    margin-bottom: 50px;
    color: white;
    font-weight: 800;
}

/* Link to your existing gradient logic */
.value-prop h2 span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.v-card {
    background: rgba(255, 255, 255, 0.03);
    /* Subtle glass effect */
    padding: 50px 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.v-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-orange);
    transform: translateY(-15px);
    /* The "perfect" lift effect */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.v-card .icon {
    font-size: 3rem;
    /* Larger, clearer icons */
    margin-bottom: 25px;
    display: block;
}

.v-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: white;
}

.v-card p {
    color: var(--text-dim);
    line-height: 1.7;
}

/* ====== ONGOING TOUR PACKAGE - SCROLL & REVEAL=====*/
.scroll-container {
    overflow: hidden;
    width: 100%;
    position: relative;
    padding: 40px 0;
}

.scroll-track {
    display: flex;
    width: max-content;
    gap: 30px;
    padding-left: 50px;
    /* Gap before the first card */
    padding-right: 50px;
    /* NEW: Gap after the last card */

    animation: scrollRightToLeft 20s linear infinite;
    animation-delay: 8s;
}

.scroll-container:hover .scroll-track {
    animation-play-state: paused;
}

/* --- UPDATE STARTS HERE --- */

.v-card {
    flex-shrink: 0;
    width: 320px;
    height: 420px;
    /* Fixed height to keep cards uniform */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease;
}

.v-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-orange);
}

.card-img {
    height: 200px;
    /* Restores the original photo height */
    width: 100%;
    border-radius: 15px;
    margin-bottom: 15px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    /* Important: Prevents photo from shrinking */
}

/* This is the part that hides/shows the button */
.card-reveal {
    margin-top: auto;
    /* Pushes button to the bottom */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s ease;
}

.v-card:hover .card-reveal {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Ongoing Tour Package Section */
.ongoing-packages {
    padding: 80px 0;
    text-align: center;
    /* This centers the H2 and the scroll-container */
}

.ongoing-packages h2 {
    font-size: 3rem;
    color: #ffffff;
    margin-bottom: 50px;
    display: inline-block;
    /* Helps with centering */
}

.ongoing-packages h2 span {
    color: #ff4d00;
    /* High contrast orange for 'Tour Packages' */
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 3. VIBRANT BUTTON RECOVERY */
.btn-itinerary {
    width: 90%;
    /* Centered inside card */
    margin: 0 auto 20px auto;
    padding: 12px 0;
    background: linear-gradient(135deg, #ff4d00, #ff8700);
    /* THE ORANGE GRADIENT */
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 77, 0, 0.3);
    display: block;
    /* Ensures margin: auto works */
    transition: all 0.3s ease;
}

.btn-itinerary:hover {
    box-shadow: 0 6px 20px rgba(255, 77, 0, 0.5);
    transform: scale(1.03);
}

/* --- KEYFRAMES --- */
@keyframes scrollRightToLeft {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 2. THE BADGE - Premium Centered Look */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #ffffff;
    z-index: 10;
    display: flex;
    /* Ensures text is centered */
    align-items: center;
    /* Ensures text is centered */
    justify-content: center;
    /* Ensures text is centered */
    line-height: 1;
}

/* Green for Ongoing */
.badge.ongoing {
    background: #00c853;
    box-shadow: 0 4px 10px rgba(0, 200, 83, 0.4);
}

/* Yellowish Orange for Limited */
.badge.limited {
    background: #ffab00;
    box-shadow: 0 4px 10px rgba(255, 171, 0, 0.4);
}

/* 3. TEXT FORMATTING FIX */
.v-card h3 {
    font-size: 1.4rem;
    margin: 15px 0 5px 0;
    /* Better spacing for destination name */
    font-weight: 700;
    color: #ffffff;
}

.text-dim {
    color: #a0a0a0;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

/* =========================================
   RE-IMAGINE SECTION (NON-SCROLLING)
   ========================================= */

/* This forces the 3-column layout back */
.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    width: 100%;
}

/* This is the new unique class for these cards */
.value-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    min-height: 320px;
    /* Makes them boxy/square instead of tall */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.value-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-orange);
    transform: translateY(-10px);
}

.value-card .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.value-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: #ffffff;
}

.value-card p {
    color: var(--text-dim);
    line-height: 1.6;
    font-size: 0.95rem;
    /* This completes the line that was missing */
}

/* --- Navigation Arrows Styling --- */
.scroll-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.nav-arrow:hover {
    background: #ff4d00;
    /* Your brand orange */
    border-color: #ff4d00;
    box-shadow: 0 0 15px rgba(255, 77, 0, 0.4);
}

.nav-arrow.left {
    left: 20px;
    opacity: 0;
    pointer-events: none;
}

.nav-arrow.right {
    right: 20px;
}

.nav-arrow.active {
    opacity: 1;
    pointer-events: auto;
}

/* Stop auto-animation when user interacts */
.manual-mode {
    animation: none !important;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-toggle {
    display: none;
    /* Hidden on Desktop */
}

/* --- Mobile Fixes --- */
@media (max-width: 768px) {
    .nav-arrow {
        display: none;
    }

    /* Hide arrows on mobile, use swipe instead */

    .v-card {
        width: 280px;
        flex-shrink: 0;
    }
}