/* 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; }
/* Container and Track Adjustments */
.marquee-container {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.marquee-track {
    display: flex;
    /* Allows cards to wrap on very small screens if not using JS animation */
    flex-wrap: nowrap; 
    transition: transform 0.5s ease;
}

/* Service Card Responsiveness */
.service-card-image {
    flex: 0 0 85%; /* Mobile: Shows one card + a peek of the next */
    max-width: 350px;
    min-width: 280px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

/* Tablet Screens (min-width: 768px) */
@media (min-width: 768px) {
    .service-card-image {
        flex: 0 0 45%; /* Shows ~2 cards */
    }
}

/* Desktop Screens (min-width: 1024px) */
@media (min-width: 1024px) {
    .service-card-image {
        flex: 0 0 30%; /* Shows 3 cards */
    }
    
    .marquee-track {
        justify-content: center; /* Centers cards if they don't fill the width */
        flex-wrap: wrap; /* Switches from marquee to grid on large screens */
    }
}

/* Ensure Images fit */
.main-img {
    width: 100%;
    height: 400px; /* Fixed height for uniformity */
    object-fit: cover;
}

@media (max-width: 575.98px) {
  /* Navbar */
  .navbar-brand img { height: 45px; }
  .nav-link { font-size: 12px; padding: 8px 10px; }
}


/* 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;
}


/* 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;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}



/* Section Background */
.tourism-services {
    background: linear-gradient(rgba(0, 21, 36, 0.8), rgba(0, 21, 36, 0.8)), 
                url('https://images.unsplash.com/photo-1547471080-7cc2caa01a7e?auto=format&fit=crop&w=1920') center/cover fixed;
    padding: 80px 0;
}

/* Card Container */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

/* Individual Card Design */
.service-card-modern {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 450px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.service-card-modern:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.4);
}

/* Image Handling */
.service-card-modern .main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.service-card-modern:hover .main-img {
    transform: scale(1.1);
}

/* Content Overlay */
.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 10%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    color: white;
}

.icon-badge {
    width: 50px;
    height: 50px;
    background: #ffc107; /* Warning Yellow */
    color: #001524;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.btn-modern {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
    display: inline-block;
    width: fit-content;
}

.btn-modern:hover {
    background: #ffc107;
    color: #000;
    border-color: #ffc107;
}

/* --- Experience Section --- */
.bg-light-blue {
    background-color: #f0f7ff;
}

.text-navy {
    color: #001524;
}

.feature-icon-sm {
    font-size: 1.5rem;
    color: #ffc107;
}

/* Glassmorphism Stat Cards */
.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

/* Fix for mobile stats: remove top margin on small screens */
@media (max-width: 767px) {
    .stat-card.mt-4 {
        margin-top: 0 !important;
    }
    .stat-grid .row {
        row-gap: 15px;
    }
}

/* --- Footer Styling --- */
.main-footer {
    background: #001524;
    color: #ffffff;
}

.footer-title {
    color: #ffc107;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: 0.3s;
}

.footer-link:hover {
    color: #ffc107;
}

.social-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.social-circle:hover {
    background: #ffc107;
    color: #000;
}

/* --- Animation Classes --- */
.reveal-left, .reveal-right, .reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal { transform: translateY(30px); }

.active-scroll, .reveal.active {
    opacity: 1 !important;
    transform: translate(0) !important;
}


 /* 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;
      }
  }
