/* 1. Navbar: Animation & Color Shift */
@keyframes slideFromTop {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes navBackgroundShift {
    0% { background-color: rgb(145, 199, 224); }
    50% { background-color: rgba(4, 185, 170, 0.95); }
    100% { background-color: rgba(179, 15, 194, 0.712); }
}

.custom-navbar {
    animation: slideFromTop 1s ease-out forwards, navBackgroundShift 10s infinite;
    padding: 15px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-link {
    color: #1a1a1a !important;
    font-size: 13px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-link:hover { color: #d32f2f !important; }

/* 2. Hero & Slideshow Design (Height 100%) */
.tourism-hero {
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.cinematic-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.cinematic-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out; /* Cross-fade effect */
    display: flex;
    align-items: center;
    justify-content: center;
}

.cinematic-slide.active {
    opacity: 1;
}

.cinematic-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Soft coloring for tourism (Gentle on eyes) */
    filter: brightness(0.75) contrast(1) saturate(0.9);
    /* The Zoom (Ken Burns) Effect */
    transform: scale(1.05);
    transition: transform 6s linear;
}

.cinematic-slide.active img {
    transform: scale(1.2); /* Slow zoom in while active */
}

/* 3. Text Overlays */
.slide-overlay {
    position: absolute;
    text-align: center;
    color: white;
    z-index: 10;
}

.slide-overlay h2 {
    font-size: 4.5rem;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 2px 2px 20px rgba(0,0,0,0.6);
}

.slide-overlay p {
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* Animations for Text */
@keyframes fadeInUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.active .fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .slide-overlay h2 { font-size: 2.5rem; }
    .slide-overlay p { font-size: 1rem; }
}

/* Color Palette */
:root {
    --navy: #003366;
    --gold: #ffc107;
    --soft-bg: #fdfaf5;
}

.about-section {
    background-color: var(--soft-bg);
    overflow: hidden;
}

.text-navy { color: var(--navy); }

/* Visual Container */
.travel-visual-container {
    position: relative;
    padding: 20px;
}

.rounded-custom {
    border-radius: 30px;
}

/* Floating Badges Animation */
.floating-badge {
    position: absolute;
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 10px;
    font-weight: bold;
    z-index: 5;
    animation: float 4s ease-in-out infinite;
}

.badge-1 { top: 10%; left: -5%; animation-delay: 0s; }
.badge-2 { top: -5%; left: 45%; animation-delay: 1s; }
.badge-3 { top: 25%; right: -5%; animation-delay: 2s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Journey Line */
.journey-path {
    position: absolute;
    top: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

/* The "About Us" Button - Matching your Interchick style */
.btn-about-us {
    background-color: var(--gold);
    color: var(--navy);
    font-weight: 700;
    padding: 15px 40px;
    border-radius: 50px;
    text-transform: uppercase;
    transition: all 0.3s;
    border: none;
}

.btn-about-us:hover {
    background-color: var(--navy);
    color: white;
    transform: scale(1.05);
}

/* Scroll Animations */
.reveal-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: 1s all ease;
}

.reveal-right {
    opacity: 0;
    transform: translateX(50px);
    transition: 1s all ease;
}

.active-scroll {
    opacity: 1;
    transform: translateX(0);
}

/* Section Wrapper & Parallax Background */
.tourism-services {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
    background-color: #001a33; /* Fallback Navy */
}

.parallax-bg-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Replace this URL with your chosen background image */
    background-image: url('https://images.unsplash.com/photo-1547471080-7cc2caa01a7e?auto=format&fit=crop&w=1920');
    background-attachment: fixed; /* Creates Parallax */
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
    z-index: 1;
}

.z-index-2 { position: relative; z-index: 2; }

/* Headline Decoration */
.underline-custom {
    width: 60px;
    height: 3px;
    background-color: #ffc107;
    margin-top: 15px;
}

.shadow-text { text-shadow: 2px 2px 10px rgba(0,0,0,0.5); }

/* Service Card Design */
.service-card-image {
    position: relative;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Gradient Overlay to make text readable */
.card-overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: linear-gradient(to top, rgba(0,26,51,0.95) 0%, rgba(0,26,51,0) 100%);
    transition: height 0.4s ease;
}

/* Card Content Positioning */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    color: white;
    transform: translateY(40px); /* Start slightly lower */
    transition: transform 0.4s ease;
}

.icon-wrap i {
    font-size: 35px;
    color: #ffc107;
}

.card-content h3 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.description {
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.4s ease;
    margin-bottom: 25px;
}

.btn-explore {
    color: #ffc107;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-bottom: 2px solid transparent;
    transition: border 0.3s;
}

/* Hover Effects */
.service-card-image:hover .main-img {
    transform: scale(1.15); /* Soft Zoom */
}

.service-card-image:hover .card-content {
    transform: translateY(0); /* Move content up */
}

.service-card-image:hover .description {
    opacity: 1; /* Show text on hover */
}

.service-card-image:hover .btn-explore {
    border-bottom: 2px solid #ffc107;
}

/* 1. Multi-Color Gradient Animation */
@keyframes footerGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-footer {
    /* Changing more than one color (Teal, Soft Blue, Light Mint) */
    background: linear-gradient(-45deg, #a4c9c9, #b8d8d8, #af7319, #b9f31b);
    background-size: 400% 400%;
    animation: footerGradient 15s ease infinite;
    color: #003366; /* Navy Blue text for high contrast */
}

.footer-title {
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.footer-text {
    line-height: 1.8;
    font-size: 1rem;
    opacity: 0.9;
}

/* Social Icon Styling from your design */
.social-circle {
    width: 45px;
    height: 45px;
    border: 2px solid #003366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #003366;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-circle:hover {
    background-color: #003366;
    color: #fff;
    transform: scale(1.1);
}

/* 2. Bottom Copyright Bar */
.footer-bottom {
    background-color: rgba(223, 191, 159, 0.8); /* Soft Sand/Peach color from image */
    border-top: 1px solid rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

.bottom-links a {
    color: #003366;
    text-decoration: none;
    border-bottom: 1px solid #003366;
    transition: opacity 0.3s;
}

.bottom-links a:hover {
    opacity: 0.7;
}

/* Responsive fixes */
@media (max-width: 767px) {
    .main-footer { text-align: center; }
    .social-icons { justify-content: center; }
}

.text-navy { color: #003366; }

.underline-custom {
    width: 60px;
    height: 3px;
    background-color: #ffc107;
    margin-top: 10px;
}

/* Gallery Item Box */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px; /* Rounded corners for a modern feel */
    cursor: pointer;
    background-color: #f8f9fa;
}

/* Force image to fill the 4x3 ratio box */
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is the "magic" that makes them same size */
    transition: transform 0.5s ease;
}

/* Hover Zoom Effect */
.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay Styling */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.4); /* Navy tint */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-overlay span {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid white;
    padding: 8px 15px;
    font-size: 0.85rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Overlay Effect */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 51, 102, 0.5); /* Navy blue translucent */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-overlay span {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid white;
    padding: 10px 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

/* Hover States */
.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}

/* Force images to fill containers in Masonry style */
.object-fit-cover {
    object-fit: cover;
}

/* Scroll Animation Trigger */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: 0.8s all ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Color & Texture */
.text-navy { color: #003366 !important; }
.bg-light-blue { background-color: #f0f7ff; }

/* Feature Icons */
.feature-icon-sm i {
    font-size: 1.5rem;
    color: #ffc107;
}

/* Glassmorphism Stat Cards */
.stat-card {
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(0, 51, 102, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 51, 102, 0.1);
    border-color: #ffc107;
}

/* Responsive Margin for Stat Grid */
@media (max-width: 991px) {
    .stat-card.mt-4 { margin-top: 0 !important; }
    .stat-grid { margin-top: 40px; }
}

/* Scroll Animation Extensions (Ensuring they match your existing JS) */
.active-scroll {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Contact Section Styling */
.contact-location-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

.map-card {
    position: relative;
    border: 8px solid white;
}

.map-overlay-info {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: rgba(0, 51, 102, 0.9);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.contact-form-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
}

/* Floating Input Effect */
.form-control:focus {
    background-color: #fff !important;
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.1);
    border: 1px solid #ffc107 !important;
}

/* Special Button for Zanzibar Star */
.btn-navy-action {
    background-color: #003366;
    color: white;
    border: none;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.btn-navy-action:hover {
    background-color: #ffc107;
    color: #003366;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 51, 102, 0.2);
}

/* Matching your existing animations */
.reveal-left, .reveal-right {
    opacity: 0;
    transition: all 1s ease;
}

.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }

.active-scroll {
    opacity: 1 !important;
    transform: translate(0, 0) !important;
}

/* Container that hides the scrollbar */
.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* The track that actually moves */
.marquee-track {
    display: flex;
    width: calc(350px * 10); /* Adjust based on card width x number of cards */
    animation: scrollRightToLeft 25s linear infinite;
}

/* Pause animation on hover */
.marquee-track:hover {
    animation-play-state: paused;
}

/* Individual Card Sizing for the slider */
.service-card-image {
    flex: 0 0 350px; /* Fixed width for each card */
    height: 480px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* The Animation Logic */
@keyframes scrollRightToLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-350px * 3)); /* Moves by exactly 3 cards before resetting */
    }
}

/* Ensure images fit within fixed width cards */
.main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

 /* WhatsApp Floating Button */
  .whatsapp-float {
      position: fixed;
      bottom: 2rem;
      right: 2rem;
      background: #25D366;
      color: white;
      font-size: 1.5rem;
      width: 3.5rem;
      height: 3.5rem;
      text-align: center;
      line-height: 3.5rem;
      border-radius: 50%;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
      transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
      animation: jump 1.5s infinite alternate;
      z-index: 9999;
      text-decoration: none;
  }

  .whatsapp-float:hover {
      transform: scale(1.15);
      box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  }


  @keyframes jump {
      0% {
          transform: translateY(0);
      }
      100% {
          transform: translateY(-5px);
      }
  }

  /* Smaller screen adjustments */
  @media (max-width: 600px) {
      .whatsapp-float {
          bottom: 1rem;
          right: 1rem;
          width: 3rem;
          height: 3rem;
          font-size: 1.25rem;
          line-height: 3rem;
      }
  }

  /* ===============================================
   RESPONSIVE IMPROVEMENTS – ZANZIBAR STAR TOURS
   =============================================== */

/* Mobile First: adjust typography and spacing */
body {
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- SMALL DEVICES (phones, <576px) ---------- */
@media (max-width: 575.98px) {
  /* Navbar */
  .navbar-brand img { height: 45px; }
  .nav-link { font-size: 12px; padding: 8px 10px; }

  /* Hero section */
  .tourism-hero { height: 80vh; }
  .slide-overlay h2 { font-size: 1.8rem; }
  .slide-overlay p { font-size: 0.95rem; }

  /* About section */
  .about-section { padding: 40px 15px; text-align: center; }
  .travel-visual-container { padding: 10px; }
  .floating-badge { display: none; } /* Simplify mobile visuals */

  /* Buttons */
  .btn-about-us { width: 100%; padding: 12px 20px; font-size: 0.9rem; }

  /* Marquee service cards */
  .service-card-image { flex: 0 0 90%; height: 300px; }
  .card-content h3 { font-size: 1.1rem; }
  .description { font-size: 0.85rem; }

  /* Footer */
  .main-footer { text-align: center; }
  .footer-title { font-size: 1.25rem; }
  .social-icons { justify-content: center; }
  .footer-bottom { flex-direction: column; font-size: 0.8rem; text-align: center; }
  .bottom-links { flex-direction: column; gap: 0.5rem; }
}

/* ---------- SMALL TABLETS (≥576px and <768px) ---------- */
@media (min-width: 576px) and (max-width: 767.98px) {
  .slide-overlay h2 { font-size: 2.5rem; }
  .slide-overlay p { font-size: 1.1rem; }
  .about-section h2 { font-size: 2rem; }
  .service-card-image { flex: 0 0 300px; height: 350px; }
}

/* ---------- TABLETS (≥768px and <992px) ---------- */
@media (min-width: 768px) and (max-width: 991.98px) {
  .navbar-brand img { height: 55px; }
  .slide-overlay h2 { font-size: 3rem; }
  .slide-overlay p { font-size: 1.3rem; }

  .about-section .col-lg-6 {
    flex: 1 1 100%;
    text-align: center;
  }

  .travel-visual-container {
    margin-bottom: 25px;
  }

  .service-card-image {
    flex: 0 0 320px;
    height: 400px;
  }
}

/* ---------- LAPTOPS & SMALL DESKTOPS (≥992px and <1200px) ---------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .slide-overlay h2 { font-size: 3.5rem; }
  .slide-overlay p { font-size: 1.4rem; }
  .service-card-image { flex: 0 0 330px; height: 450px; }
}

/* ---------- LARGE DESKTOPS (≥1200px) ---------- */
@media (min-width: 1200px) {
  .slide-overlay h2 { font-size: 4rem; }
  .slide-overlay p { font-size: 1.6rem; }
}

/* ---------- ULTRAWIDE MONITORS (≥1600px) ---------- */
@media (min-width: 1600px) {
  .tourism-hero { height: 120vh; }
  .cinematic-slide img { object-fit: cover; }
  .slide-overlay h2 { font-size: 5rem; }
}



.container, .container-fluid {
  padding-left: 1rem;
  padding-right: 1rem;
}

html {
  scroll-behavior: smooth;
}

