:root {
    --primary-color: #ffc107;
    --secondary-color: #021a5a; /* Navy blue */
    --text-color: #e2e8f0; /* Light text for dark mode */
    --light-bg: #0f172a; /* Darkest background */
    --white: #1e293b; /* Dark slate for cards */
    --nav-height: 110px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--primary-color);
}

/* Navbar */
.navbar {
    background-color: var(--secondary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--nav-height);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 90px;
    width: auto;
    object-fit: contain;
}

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

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    min-height: calc(100vh - var(--nav-height));
    min-height: calc(100svh - var(--nav-height));
    background: url('bbkk.png') center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    margin-top: var(--nav-height);
    padding: 48px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 20px;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-letter {
    display: inline-block;
    white-space: pre;
    opacity: 0;
    animation: letterJoin 460ms cubic-bezier(0.2, 0.75, 0.25, 1) calc(70ms + var(--letter-index) * 24ms) both;
}

.mobile-title-break {
    display: none;
}

@keyframes letterJoin {
    from {
        opacity: 0;
        transform: translateX(calc(var(--letter-direction) * 70px)) rotate(calc(var(--letter-direction) * 8deg));
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0);
    }
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
    animation: heroEnter 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 1020ms both;
}

.booking-widget {
    animation: heroEnter 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 1160ms both;
}

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

/* Booking Widget */
.booking-widget {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 0 auto;
    color: var(--text-color);
    text-align: left;
}

.booking-widget h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.form-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 20px;
    gap: 15px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-color);
}

.form-group input,
.form-group select {
    padding: 12px 15px;
    background: var(--light-bg);
    color: var(--text-color);
    border: 1px solid #334155;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary-color);
}

.swap-icon {
    flex: 0 0 auto;
    justify-content: center;
    align-items: center;
    padding-bottom: 12px;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-primary {
    background: #25D366;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.btn-primary:hover {
    background: #128C7E;
}

/* Services */
.services {
    background-color: var(--light-bg);
}

.services-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.service-item {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    font-weight: 600;
    color: var(--text-color);
    transition: transform 0.3s, background 0.3s;
}

.service-item:hover {
    transform: translateY(-5px);
    background: var(--primary-color);
    color: var(--secondary-color);
}

.service-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 15px;
    transition: color 0.3s;
}

.service-item:hover i {
    color: var(--secondary-color);
}

/* Partners */
.partners {
    background-color: var(--white);
}

.partners-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.partner-tag {
    background: var(--light-bg);
    color: var(--text-color);
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid #334155;
}

.partner-tag i {
    color: var(--primary-color);
    margin-right: 10px;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.footer-col p {
    margin-bottom: 10px;
    color: #ccc;
}

.footer-col i {
    width: 25px;
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: background 0.3s;
}

.social-links a:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #aaa;
}

/* Scroll travel animations */
.scroll-plane,
.scroll-train {
    position: fixed;
    color: var(--primary-color);
    z-index: 999;
    pointer-events: none;
    top: -100px;
    left: -100px;
    transition: transform 0.1s ease-out, opacity 0.2s ease-out;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
}

.scroll-plane {
    font-size: 3rem;
    opacity: 0.5;
}

.scroll-train {
    font-size: 3rem;
    opacity: 0;
}

/* Responsive */
@media(max-width: 768px) {
    :root {
        --nav-height: 80px;
    }
    .nav-container {
        height: var(--nav-height);
    }
    .logo-img {
        height: 60px;
    }
    .hero {
        padding: 36px 0;
    }
    .form-row {
        flex-direction: column;
        align-items: stretch;
    }
    .swap-icon {
        display: none;
    }
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    .mobile-title-break {
        display: block;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 28px;
    }
    .hero p,
    .booking-widget {
        animation-duration: 600ms;
    }
    .nav-links {
        display: none;
    }
    .scroll-plane,
    .scroll-train {
        font-size: 2rem;
    }
}

@media(prefers-reduced-motion: reduce) {
    #scrollPlane,
    #scrollTrain {
        display: none;
    }
    .hero h1,
    .hero p,
    .booking-widget {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .hero-letter {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
/* Tour Packages Section */
.tour-packages {
    background-color: var(--light-bg);
    padding: 80px 0;
}
.package-category + .package-category {
    margin-top: 64px;
}
.package-category-title {
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 28px;
    color: var(--text-color);
    font-size: 1.8rem;
    text-align: center;
}
.destination-showcase {
    position: relative;
    display: grid;
    min-height: 500px;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: end;
    gap: 24px;
    overflow: hidden;
    padding: 38px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: #10263c;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
    isolation: isolate;
}
.destination-showcase::after {
    position: absolute;
    z-index: 1;
    background: linear-gradient(90deg, rgba(3, 12, 28, 0.88) 0%, rgba(3, 12, 28, 0.68) 38%, rgba(3, 12, 28, 0.32) 100%), linear-gradient(0deg, rgba(3, 12, 28, 0.54), transparent 55%);
    content: "";
    inset: 0;
}
.destination-feature {
    position: absolute;
    inset: 0;
}
.destination-feature-image {
    position: absolute;
    z-index: 0;
    width: 100%;
    height: 100%;
    inset: 0;
    object-fit: cover;
    transition: opacity 350ms ease, transform 700ms ease;
}
.destination-feature-copy {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 0;
    width: min(48%, 500px);
    transform: translateY(-50%);
}
.destination-feature-label {
    display: block;
    margin-bottom: 14px;
    color: #fbd66b;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}
.destination-feature-copy h4 {
    margin-bottom: 14px;
    color: #fff;
    font-size: clamp(2.6rem, 5vw, 5rem);
    font-weight: 800;
    line-height: 0.98;
    text-transform: uppercase;
}
.destination-feature-copy p {
    max-width: 410px;
    margin-bottom: 24px;
    color: #e2e8f0;
    font-size: 1rem;
    line-height: 1.7;
}
.destination-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    padding: 14px 20px;
    border-radius: 8px;
    background: var(--primary-color);
    color: #10213d;
    font-weight: 700;
    text-decoration: none;
    transition: gap 180ms ease, background 180ms ease;
}
.destination-feature-link:hover {
    gap: 24px;
    background: #ffd54f;
}
.destination-feature-link:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}
.packages-grid {
    position: relative;
    z-index: 2;
    grid-area: 1 / 2 / 2 / 3;
    align-self: end;
    display: flex;
    gap: 16px;
    min-width: 0;
    overflow-x: auto;
    padding: 12px 2px 14px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.packages-grid::-webkit-scrollbar {
    display: none;
}
.package-item {
    position: relative;
    flex: 0 0 clamp(190px, 19vw, 250px);
    height: 330px;
    cursor: pointer;
    background: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 32px rgba(0,0,0,0.32);
    scroll-snap-align: start;
    isolation: isolate;
}
.package-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}
.package-item:hover .package-img {
    transform: scale(1.05);
}
.package-info {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 70px 16px 16px;
    background: linear-gradient(transparent, rgba(2, 10, 28, 0.96) 38%);
    text-align: left;
}
.package-info h4 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 1.2rem;
}
.package-info .btn-primary {
    display: none;
}
.package-info p {
    margin-bottom: 12px;
    color: #f1f5f9;
    font-size: 0.84rem;
}
.package-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
}
.carousel-position {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 14px;
    max-width: 440px;
}
.carousel-progress {
    flex: 1;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #334155;
}
.carousel-progress-fill {
    display: block;
    width: 10%;
    height: 100%;
    border-radius: inherit;
    background: var(--primary-color);
    transition: width 250ms ease;
}
.carousel-count {
    min-width: 58px;
    color: var(--text-color);
    font-size: 0.85rem;
    font-variant-numeric: tabular-nums;
}
.carousel-buttons {
    display: flex;
    gap: 10px;
}
.carousel-button {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid #475569;
    border-radius: 50%;
    background: var(--white);
    color: var(--text-color);
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.carousel-button:hover:not(:disabled),
.carousel-button:focus-visible {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--secondary-color);
}
.carousel-button:focus-visible,
.packages-grid:focus-visible,
.package-item:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}
.carousel-button:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}
@media (max-width: 600px) {
    .destination-showcase {
        min-height: 740px;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 1fr auto;
        gap: 12px;
        padding: 22px;
    }
    .destination-feature-copy {
        top: 32px;
        bottom: auto;
        left: 22px;
        width: calc(100% - 44px);
        transform: none;
    }
    .destination-feature-copy h4 {
        font-size: clamp(2rem, 10vw, 3rem);
    }
    .destination-feature-copy p {
        margin-bottom: 16px;
        font-size: 0.85rem;
    }
    .packages-grid {
        grid-area: 2 / 1 / 3 / 2;
        margin: 0 -4px;
    }
    .package-item {
        flex-basis: 72%;
        height: 290px;
    }
    .package-carousel-controls {
        gap: 12px;
    }
    .carousel-position {
        gap: 8px;
    }
    .carousel-button {
        width: 40px;
        height: 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .packages-grid {
        scroll-behavior: auto;
    }
    .package-img,
    .destination-feature-image,
    .carousel-progress-fill,
    .carousel-button {
        transition: none;
    }
}
