/* Preloader */
/* === Preloader (Optimized for mobile & desktop) === */
#preloader {
  position: fixed;
  left: 0; 
  top: 0;
  width: 100vw; 
  height: 100vh;
  z-index: 9999;
  background: #fff url("../assets/images/ZF6H.gif") no-repeat center center;
  background-size: 80px 80px; /* adjust loader size */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* Smooth scrolling */
html { scroll-behavior: smooth; }
body { margin:0; font-family:'Open Sans', sans-serif; overflow-x:hidden; }

/* Navbar */
.navbar { background-color: #002f5b; }
.navbar-brand img { height: 40px; }
.nav-link { font-family: 'Poppins', sans-serif; font-weight:600; font-size:0.95rem; color:#fff !important; }
.nav-link:hover { color:#ffd700 !important; }
.navbar .nav-link.active { color: #ffd700 !important; border-bottom: 2px solid #ffd700; }

/* Hero Carousel */
#heroCarousel { position:relative; height:100vh; margin-top:-56px; overflow:hidden; }
.carousel-inner { position:relative; width:100%; height:100%; overflow:hidden; }
.carousel-item {
  height:100vh;
  background-size:cover;
  background-position:center;
  position:absolute;
  top:0; left:0; width:100%;
  opacity:0;
  transition: opacity 1s ease-in-out;
}
.carousel-item.active { position:relative; opacity:1; }
.carousel-item::before {
  content:""; position:absolute; top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.45); z-index:1;
}
.hero-content {
  position:absolute; top:50%; left:50%;
  transform: translate(-50%, -50%);
  color:#fff; text-align:center; z-index:2;
  max-width:700px; width:90%;
}
.hero-content h1 { font-family:'Poppins', sans-serif; font-weight:700; font-size:3rem; margin-bottom:15px; }
.hero-content p { font-family:'Open Sans', sans-serif; font-size:1.2rem; margin-bottom:20px; }
.hero-content .btn { font-weight:600; border-radius:30px; padding:10px 25px; }

.carousel-control-prev-icon, .carousel-control-next-icon {
  background-color: rgba(0,0,0,0.6);
  border-radius:50%; padding:15px;
}

/* Indicators fix */
.carousel-indicators {
  bottom: 40px;
  z-index: 3;
}
.carousel-indicators [data-bs-target] {
  background-color:#ffd700;
  width:10px; height:10px; border-radius:50%;
}

/* Sections general */
section { padding:80px 0; }
#services { background-color:#f8f9fa; }

/* About Section */
#about { background:#fff; }
#about img {
  border-radius:10px;
  box-shadow:0 5px 15px rgba(0,0,0,0.1);
}
#about ul.list-unstyled li img {
  width:18px; height:18px; margin-right:8px; vertical-align:middle;
}

/* Services Section */
#services .card {
  transition: all 0.4s ease;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
}
#services .card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(0, 47, 91, 0.15);
}
#services .card img {
  display: block;
  margin: 0 auto 15px auto;
  transition: all 0.3s ease;
}
#services .card:hover img { transform: scale(1.05); }
#services .card h5 { transition: color 0.3s ease; }
#services .card:hover h5 { color: #ffc107; }
#services .card p { color: #555; font-size: 0.95rem; }
#services h2 { font-weight:700; letter-spacing:0.5px; }

/* Contact Section */
#contact {
  background-color:#002f5b;
  color:white;
}
#contact .contact-info {
  text-align:center;
}
#contact i {
  color:#ffd700;
  font-size:24px;
  margin-right:10px;
}
#contact a {
  color:#ffd700;
  text-decoration:none;
}
#contact a:hover {
  color:#fff;
}

/* Social media links */
.social-icons {
  margin-top:25px;
}
.social-icons a {
  display:inline-block;
  width:40px; height:40px;
  line-height:40px;
  text-align:center;
  background:#ffd700;
  color:#002f5b;
  border-radius:50%;
  margin:0 6px;
  transition:0.3s ease;
  text-decoration: none;      /* ✅ Ondoa underline */
  border: none;               /* ✅ Ondoa border yoyote */
  outline: none;
}
.social-icons a:hover {
  background:#fff;
  color:#002f5b;
  text-decoration: none;
}

/* Footer */
footer {
  background:#001a33;
  color:white;
  text-align:center;
  padding:20px 0;
}
footer a { 
	color:#ffd700; 
	text-decoration: none !important;
	border: none !important;
	outline: none !important;
}
footer a:hover { color:#ffd700  !important; transition:0.3s ease; }

/* Back to Top Button */
#backToTop {
  position:fixed;
  bottom:30px; right:30px;
  background-color:#ffd700;
  color:#002f5b;
  border:none; border-radius:50%;
  padding:12px 15px; cursor:pointer;
  font-size:18px; box-shadow:0 2px 6px rgba(0,0,0,0.3);
  display:none; z-index:999;
  transition:opacity 0.5s ease, transform 0.3s ease;
}
#backToTop.show { display:block; animation:fadeInUp 0.6s ease; }
@keyframes fadeInUp {
  0% {opacity:0; transform:translateY(20px);}
  100% {opacity:1; transform:translateY(0);}
}

/* Navbar container */
.navbar-wrapper {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 999;
  background-color: transparent;
}

/* Top navbar (contacts + social icons) */
.navbar-top {
  background-color: #255685;
  color: #fff;
  padding: 4px 0; /* ilikua 6px, sasa imepunguzwa */
  font-size: 13.5px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.navbar-top .container {
  display: flex;
  justify-content: space-between;
  align-items: center; /* Hii inaweka contact info na icons level moja */
  flex-wrap: wrap;
  min-height: 40px; /* hii inasaidia vertical alignment */
}

/* Contact info (left side) */
.navbar-top .contact-info {
  display: flex;
  gap: 22px;
  align-items: center;
  line-height: 1; /* inazuia kuonekana kubwa mno */
}

.navbar-top .contact-info span {
  display: flex;
  align-items: center; /* i na text vinakaa level sawa */
}

.navbar-top .contact-info i {
  margin-right: 6px;
  color: #ffd700;
  font-size: 15px;
  line-height: 1;
}

/* Social icons (right side) */
.navbar-top .social-icons {
  display: flex;
  align-items: center; /* zimewekwa vertical center */
  justify-content: flex-end;
  gap: 8px;
  line-height: 1;
  margin-top: 3px;
}

.navbar-top .social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffd700 ;
  color: #002f5b;
  border-radius: 50%;
  font-size: 14px;
  transition: 0.3s ease;
}

.navbar-top .social-icons a:hover {
  background: #fff;
  color: #002f5b;
}

/* Main navbar (logo + links) */
.navbar-main {
  background-color: #fff;
  padding: 10px 0;
  border-top: 2px solid #fff;
}

.navbar-main .navbar-brand img {
  height: 65px; /* ongeza urefu */
  width: auto; /* weka auto ili isiharibu uwiano wa picha */
  transition: 0.3s ease; /* optional - effect kidogo */
}

.navbar-main .nav-link {
  color: #002f5b !important;
  margin-left: 18px;
  font-weight: 500;
  transition: 0.3s;
}

.navbar-main .nav-link:hover {
  color: #ffd700 !important;
}




/* ===== Gallery Section ===== */
#gallery .gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: transform 0.3s ease;
}

#gallery .gallery-item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.5s ease, opacity 0.5s ease;
}

/* Hover effect for desktop */
#gallery .gallery-item:hover img {
  transform: scale(1.1);
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  #heroCarousel {
    height: 80vh;
  }

  .carousel-item {
    height: 80vh;
    background-position: center top;
  }

  .hero-content {
    top: 55%;
    transform: translate(-50%, -50%);
    padding: 0 20px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .hero-content .btn {
    padding: 8px 16px;
    font-size: 0.85rem;
  }

  .carousel-indicators {
    bottom: 20px;
  }
  
  #about .btn {
    margin-bottom: 25px !important;
  }
  
  .top-bar {
    text-align: center;
  }

  .social-icons-top {
    margin-top: 5px;
  }

  .main-navbar {
    padding: 8px 0;
  }
}

/* Responsive behavior for small screens */
@media (max-width: 768px) {
  .navbar-top .container {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-align: center;
  }

  .navbar-top .contact-info {
    justify-content: center;
    gap: 10px;
  }

  .navbar-top .social-icons {
    justify-content: center;
    margin-top: 3px;
  }

  .navbar-main .navbar-brand img {
    height: 45px;
  }

  .navbar-main .nav-link {
    margin-left: 0;
    text-align: center;
    padding: 8px 0;
  }
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 767px) {
  #gallery .gallery-item img {
    height: 180px; /* kidogo ndogo kwenye simu */
  }
}

/* Tracking Section */
#tracking {
  background: #f8f9fa; /* light background for contrast */
  padding: 80px 0;
}

#tracking h2 {
  color: #002f5b;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

#tracking p {
  color: #555;
  font-size: 16px;
  margin-bottom: 30px;
}

/* Input and button layout */
#tracking .form-control {
  border: 2px solid #002f5b;
  border-radius: 30px;
  height: 50px;
  font-size: 16px;
  padding: 10px 20px;
  transition: 0.3s ease;
}

#tracking .form-control:focus {
  border-color: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  outline: none;
}

/* Button styling */
#tracking .btn {
  border-radius: 30px;
  font-weight: 600;
  padding: 12px 40px;
  transition: 0.3s ease;
  border: none;
}

#tracking .btn:hover {
  background-color: #002f5b;
  color: #fff;
  transform: translateY(-2px);
}

/* Add subtle shadow for floating look */
#tracking .form-control,
#tracking .btn {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* ===== Responsive (Mobile) ===== */
@media (max-width: 768px) {
  #tracking {
    padding: 60px 20px;
  }

  #tracking h2 {
    font-size: 1.8rem;
  }

  #tracking .form-control {
    width: 90% !important;
    height: 46px;
    font-size: 15px;
  }

  #tracking .btn {
    width: 90%;
    margin-top: 15px;
    padding: 10px;
  }
}

/* Download App Section */
#download-section {
  background-color: #002f5b;
  padding: 40px 0;
}

#download-section .container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

#download-section h2 {
  color: #fff;
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0;
}

#download-section .store-badges a {
  text-decoration: none;   /* ✅ Removes the underline */
}

#download-section .store-badges a img {
  height: 60px; /* Increased from 40px */
  margin: 0 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border-radius: 10px;
  display: inline-block;
  vertical-align: middle;
}

#download-section .store-badges a img:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.25);
}

/* Mobile view */
@media (max-width: 768px) {
  #download-section {
    text-align: center;
    padding: 30px 15px;
  }

  #download-section .container {
    flex-direction: column;
    gap: 15px;
  }

  #download-section h2 {
    font-size: 1.3rem;
  }

  #download-section .store-badges a img {
    height: 55px; /* Slightly smaller but still large */
  }
}
