/* Variables for colors and styling */
:root {
    --primary-color: #C87B1E;
    --secondary-color: #E27D18;
    --accent-color: #C87B1E;
    --dark-bg: #1e1e1e;
    --light-bg: #f8f9fa;
    --text-color: #333333;
    --white: #ffffff;
    --transition: all 0.3s ease-in-out;
    --font-main: 'Outfit', sans-serif;
    --font-heading: 'Playfair Display', serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}

.section-padding {
    padding: 2rem 0;
}

.home section.section-padding {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 249, 255, 0.96));
    border-radius: 0;
    border: none;
    padding: 2rem 0;
    margin: 0;
    backdrop-filter: none;
}

/* =============================================
   Tour Packages Section – Captain Ally Style
   ============================================= */
.tour-packages {
    background: #ffffff;
    padding: 4rem 0 5rem;
}

.tour-packages .section-title {
    margin-bottom: 2.5rem;
}

.tour-packages .section-title h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 3rem;
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 0.3rem;
    letter-spacing: -0.5px;
}

.tour-packages .section-title h2 span {
    color: #2d3748;
}

.tour-packages .section-title p {
    color: #5a6a7a;
    font-size: 1.05rem;
}

/* Tour Cards Grid */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Individual Tour Card */
.tour-card {
    background: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: none;
}

/* Card Image */
.tour-card-img {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 12px;
}

.tour-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 12px;
}

.tour-card:hover .tour-card-img img {
    transform: scale(1.05);
}

/* Card Content */
.tour-card-body {
    padding: 1.2rem 0 0.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.tour-card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 400;
    color: #222222;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

.tour-card-body p {
    color: #666666;
    font-family: 'Inter', 'Outfit', sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* SEE DETAILS Button – matches Captain Ally */
.tour-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 0.7rem 1.8rem;
    border-radius: 4px;
    text-decoration: none;
    font-family: 'Inter', 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: none;
    align-self: center;
    border: none;
}

.tour-btn:hover {
    background-color: #b56c12;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(216, 129, 24, 0.3);
}

.home .tour-btn {
    padding: 0.2rem 1.8rem !important;
}

/* Tour Packages Responsive */
@media (max-width: 992px) {
    .tour-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .tour-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .tour-packages .section-title h2 {
        font-size: 2.2rem;
    }
    .tour-card-body h3 {
        font-size: 1.6rem;
    }
    .tour-packages {
        padding: 2rem 0 3rem;
    }
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--dark-bg);
}

span {
    color: var(--primary-color);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-main);
    font-size: 1rem;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(216, 129, 24, 0.2);
}

.btn-primary:hover {
    background: #b56c12;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(216, 129, 24, 0.4);
}

.btn-block {
    display: block;
    width: 100%;
}

/* Navbar */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: linear-gradient(90deg, #E27D18 0%, #ff9f43 100%);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

nav.scrolled {
    background: linear-gradient(90deg, #E27D18 0%, #ff9f43 100%);
    padding: 1rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

/* Modern Brand Logo */
.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.brand-logo:hover {
    transform: translateY(-2px);
    opacity: 0.95;
}
.brand-logo .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.brand-logo:hover .logo-icon {
    transform: rotate(10deg) scale(1.1);
}
.brand-logo .logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.5px;
    line-height: 1;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.brand-logo .logo-accent {
    font-weight: 300;
    font-size: 1.8rem;
    color: rgba(255,255,255,0.9);
    margin-left: 2px;
}
.brand-logo .logo-img {
    height: 50px;
    width: 50px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.brand-logo:hover .logo-img {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: var(--transition);
    position: relative;
}

nav.scrolled .nav-links a {
    color: rgba(255, 255, 255, 0.9);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-links a::after {
    display: none;
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

nav.scrolled .hamburger {
    color: var(--white);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

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

.slide.active {
    opacity: 1;
}

.slide-1 { background-image: url('../assets/images/farasi.jpg'); }
.slide-2 { background-image: url('../assets/images/fashen.jpg'); }
.slide-3 { background-image: url('../assets/images/gari.JPG'); }
.slide-4 { background-image: url('../assets/images/jetski.JPG'); }
.slide-5 { background-image: url('../assets/images/kayaki.jpg'); }
.slide-6 { background-image: url('../assets/images/sadan.jpg'); }
.slide-7 { background-image: url('../assets/images/kwadi1.JPG') !important; }

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

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-size: 4.5rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero h1 span {
    color: var(--secondary-color);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

#about {
    position: relative;
    background: url('../assets/images/zuri01.jpg') center/cover no-repeat;
    min-height: 100vh;
    color: var(--white);
    overflow: hidden;
    filter: brightness(1.12);
}

#about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 0;
}

#about .about-container {
    position: relative;
    z-index: 1;
}

#about .about-text h1,
#about .about-text h3,
#about .about-text p {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}


.about-container:not(:has(.about-img)) {
    display: block;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-container:not(:has(.about-img)) .features {
    justify-content: center;
}

.about-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    aspect-ratio: 4/3;
}

.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.about-img:hover img {
    transform: scale(1.05);
}

#about .about-text h1 {
    font-size: 3.5rem;
}

#about .about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.95);
}

#about .about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.8;
}

.img-badge {
    position: absolute;
    bottom: -20px;
    right: 20px;
    background: var(--white);
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.img-badge span {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.about-text h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
}

.features {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.feature span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--dark-bg);
}

/* Experience Section */
.experience {
    background-color: var(--white);
}

.section-title {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.section-title p {
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 2rem;
}

.experience-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    background: var(--light-bg);
    transition: var(--transition);
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.experience-card img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.experience-card:hover img {
    transform: scale(1.05);
}

.card-content {
    padding: 2rem;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Floating WhatsApp "Book" button (bottom-right) */
.whatsapp-book {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    z-index: 999999 !important;
    background: #25D366 !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 14px !important;
    border-radius: 50px !important;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.18) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: transform 0.15s ease, box-shadow 0.15s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.whatsapp-book i {
    font-size: 1.1rem;
}
.whatsapp-book:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.22);
}

/* On very small screens show only the icon to avoid covering content */
@media (max-width: 420px) {
    .whatsapp-book {
        padding: 14px !important;
        right: 14px !important;
        bottom: 14px !important;
        border-radius: 50% !important;
        width: 55px !important;
        height: 55px !important;
        justify-content: center !important;
    }
    .whatsapp-book span {
        display: none !important;
    }
    .whatsapp-book i {
        font-size: 1.8rem !important;
        margin: 0 !important;
    }
}

/* Slight offset when footer is visible (keeps button above footer on large screens) */
@media (min-width: 900px) {
    footer + .whatsapp-book { bottom: 90px; }
}

/* Services Section */
.services {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.services .section-title {
    margin-bottom: 0.3rem;
}

.services .section-title h1,
.services .section-title h2 {
    margin-bottom: 0.2rem;
    font-size: 1.8rem;
}

.services .gallery-caption {
    padding: 0.4rem !important;
}

/* Ondoa background nyeupe ya gallery-item ndani ya services */
.services .gallery-item {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1rem;
}

.service-card {
    background: transparent;
    padding: 0;
    border-radius: 0;
    text-align: center;
    transition: var(--transition);
    box-shadow: none;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: none;
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.home .gallery-item {
    background: transparent;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none !important;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.home .gallery-item:hover,
.home .photo-card,
.home .photo-card:hover,
.home .service-card,
.home .service-card:hover,
.home .experience-card,
.home .experience-card:hover {
    box-shadow: none !important;
}

/* Moving Photo Section */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
}

.photo-card {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    background: var(--white);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
    animation: float 10s ease-in-out infinite;
}

.photo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 0;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1.2rem 0 0.5rem;
    text-align: left;
}

.gallery-caption h4 {
    font-family: var(--font-heading);
    color: #222222;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
    font-weight: 400;
}

.gallery-caption p {
    color: #666;
    font-size: 0.95rem;
}

/* Testimonials Section */
.testimonials-slider-container {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
    position: relative;
}

.testimonials-slider-container::before,
.testimonials-slider-container::after {
    content: "";
    height: 100%;
    width: 150px;
    position: absolute;
    z-index: 2;
    pointer-events: none;
}

.testimonials-slider-container::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.testimonials-slider-container::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, var(--white) 0%, rgba(255, 255, 255, 0) 100%);
}

.testimonials-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollTestimonials 35s linear infinite;
}

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

.testimonials-track .testimonial-card {
    width: 350px;
    flex-shrink: 0;
}

@keyframes scrollTestimonials {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-50% - 1rem));
    }
}

.testimonial-card {
    background: var(--light-bg);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
}

.testimonial-card::before {
    content: '\f10d';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: rgba(0, 119, 182, 0.1);
}

.stars {
    color: #FFD700;
    margin-bottom: 1rem;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: #555;
}

.testimonial-card h4 {
    color: var(--dark-bg);
}

/* Contact Section */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: rgba(0, 119, 182, 0.1);
    padding: 1rem;
    border-radius: 50%;
}

.info-item h4 {
    margin-bottom: 0.5rem;
    color: var(--dark-bg);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition);
}

.input-group textarea {
    resize: vertical;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.1);
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 1.5rem;
    border-radius: 10px;
    border: 1px solid #c3e6cb;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.footer-logo {
    /* Adjusted for the new brand-logo */
}
footer .footer-logo.brand-logo {
    justify-content: center;
}
footer .brand-logo .logo-icon {
    color: var(--white);
    box-shadow: none;
}
footer .brand-logo .logo-text,
footer .brand-logo .logo-accent {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--white);
    background: rgba(255,255,255,0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.delay-1 { animation-delay: 0.3s; }
.delay-2 { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optimized reveal – fade only, smoother */
.reveal {
    opacity: 0;
        padding-top: var(--nav-height);
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.reveal.active {
    opacity: 1;
    transform: none;
}

/* Responsive */
@media (max-width: 992px) {
    .about-container,
    .contact-container {
        grid-template-columns: 1fr;
    }
    .about-img {
        order: -1;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    #about {
        padding: 1rem;
    }
    .about-container {
        padding: 2.5rem 1.5rem 2.5rem 1.5rem !important;
        gap: 2rem;
    }
    .about-text h2 {
        font-size: 2rem !important;
    }
    .modal-close {
        top: 0.8rem;
        right: 0.8rem;
        font-size: 1.6rem;
    }
    .contact-container {
        padding: 1.5rem;
        gap: 2rem;
    }
    .hero h1 { font-size: 3rem; }
    .about-text h2, .section-title h2 { font-size: 2.5rem; }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        color: var(--dark-bg) !important;
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    nav.scrolled .hamburger {
        color: var(--dark-bg);
    }
}

/* ==========================================================================
   Gallery Page Premium Cards & Filtering Styles (Isolated)
   ========================================================================== */

/* Filter Tabs Container */
.gallery-page .filter-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 3rem;
}

.gallery-page .filter-btn {
    padding: 0.6rem 1.4rem;
    background-color: var(--light-bg);
    border: 1px solid #e0e0e0;
    border-radius: 30px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    cursor: pointer;
    transition: var(--transition);
}

.gallery-page .filter-btn:hover {
    background-color: #eaeaea;
    border-color: #ccc;
}

.gallery-page .filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.25);
}

/* Gallery Grid & Item Cards */
.gallery-page .gallery-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1.5rem !important;
}

.gallery-page .gallery-item {
    background: var(--white) !important;
    border: 1px solid #eaeaea !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04) !important;
    transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.3s ease !important;
    min-height: 100% !important;
}

.gallery-page .gallery-item:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08) !important;
}

/* Image styling */
.gallery-page .item-img-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.gallery-page .item-img-container img {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    object-fit: cover !important;
    transition: transform 0.5s ease !important;
}

.gallery-page .gallery-item:hover .item-img-container img {
    transform: scale(1.08) !important;
}

/* Floating Elements */
.gallery-page .badge-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #0b2240;
    color: var(--white);
    padding: 0.3rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    text-transform: capitalize;
    z-index: 5;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.gallery-page .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background-color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 5;
    transition: var(--transition);
}

.gallery-page .wishlist-btn i {
    font-size: 0.95rem;
    color: #444;
    transition: var(--transition);
}

.gallery-page .wishlist-btn:hover {
    transform: scale(1.1);
}

.gallery-page .wishlist-btn.active i {
    color: #ff385c !important;
}

/* Gallery Caption Details */
.gallery-page .gallery-caption {
    padding: 1.2rem !important;
    text-align: left !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    justify-content: space-between !important;
}

.gallery-page .gallery-caption h4 {
    font-size: 1.05rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    color: #1a1a1a !important;
    margin-bottom: 0.4rem !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8rem;
}

/* Card Footer with Rating and Booking */
.gallery-page .card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.8rem;
    border-top: 1px solid #f0f0f0;
}

.gallery-page .rating-box {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #222;
}

.gallery-page .rating-num {
    margin-right: 3px;
}

.gallery-page .star-icon {
    color: #0077B6;
    font-size: 0.85rem;
    margin-right: 3px;
}

/* Booking Action Button */
.gallery-page .card-book-btn {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 2px 6px rgba(0, 119, 182, 0.15);
}

.gallery-page .card-book-btn:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
    transform: translateY(-1px);
    color: var(--white);
}

/* Gallery Responsive Adjustments */
@media (max-width: 1200px) {
    .gallery-page .gallery-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .gallery-page .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .gallery-page .gallery-grid {
        grid-template-columns: 1fr !important;
        gap: 1.2rem !important;
    }
    .gallery-page .filter-container {
        justify-content: flex-start !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 0.8rem !important;
        margin-bottom: 2rem !important;
        -webkit-overflow-scrolling: touch;
    }
    .gallery-page .filter-btn {
        padding: 0.5rem 1.1rem !important;
        font-size: 0.88rem !important;
        flex-shrink: 0;
    }
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 100000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
}

.close-modal {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover,
.close-modal:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.modal-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.modal-gallery img:hover {
    transform: scale(1.05);
}
