:root {
  --primary: #004e92;
  --secondary: #000428;
  --accent: #0a8cb0;
  --light: #f8f9fa;
  --dark: #222;
}


body {
  margin: 0;
  padding: 0;
  position: relative;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
}

/* Flow layers */
.flow-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  animation: flow 60s linear infinite;
  pointer-events: none; /* allows clicks through the background */
  z-index: -1;
}

/* Animate the flow movement */
@keyframes flow {
  0% { transform: translate(-25%, -25%) rotate(0deg); }
  50% { transform: translate(-20%, -30%) rotate(180deg); }
  100% { transform: translate(-25%, -25%) rotate(360deg); }
}



/* ==================== Navbar ==================== */
.navbar {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  /* padding: 0.8rem 2rem; */
  padding: 15px 20px; 
}

.navbar .nav-link {
  color: #fff;
  position: relative;
  padding: 8px 18px;
  margin: 0 6px;
  transition: all 0.3s ease;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  width: 100%;
}

.navbar-nav {
  margin-right: 40px;
}

@media (max-width: 991px) {
   .navbar-collapse .nav-link::after {
    display: none;
  }
  /* .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    z-index: 9999;
    padding: 15px 20px; 
    border-radius: 0 0 10px 10px;
  } */
    .navbar-collapse {
    position: absolute;
    top: 100%;
    right: 0px; /* distance from right edge */
    width: auto; /* don't take full width */
    min-width: 200px; /* optional: minimum width */
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    z-index: 9999;
    padding: 15px 20px;

  }


  /* Left-align menu items instead of center */
  .navbar-collapse .nav-item {
    text-align: start; /* left-align */
    margin: 8px 0;
  }

  .navbar-collapse .nav-link {
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 15px;
    transition: all 0.3s ease;
    border-radius: 5px;
    position: relative; 
  }

  /* Underline hover and active */
  .navbar-collapse .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
  }

  .navbar-collapse .nav-link:hover::after,
  .navbar-collapse .nav-link.active::after {
    width: 100%;
  }

  .navbar-collapse .nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent);
  }
}

/* ==================== Carousel ==================== */
#heroCarousel {
  height: 550px;
  overflow: hidden;
}

#heroCarousel .carousel-item {
  height: 550px;
  position: relative;
}

#heroCarousel .carousel-item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: brightness(65%);
}

#heroCarousel .carousel-caption {
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

#heroCarousel h1 {
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

#heroCarousel p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

#heroCarousel .btn {
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: #fff;
}

#heroCarousel .btn:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ==================== About Section ==================== */

/* #about p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #555;
} */

.about-feature {
  background: #fff;
  transition: all 0.3s ease;
}

.about-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.about-feature i {
  display: block;
  color: var(--primary);
}

.about-feature h6 {
  margin-bottom: 3px;
  font-size: 0.95rem;
  color: var(--dark);
}

.about-feature p {
  font-size: 0.85rem;
  color: #666;
}

#about .btn {
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0, 78, 146, 0.3);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
}

#about .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 78, 146, 0.4);
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

/* ==================== Services Section ==================== */
.service-card {
  border: none;
  border-radius: 15px;
  transition: all 0.5s ease;
  background: #fff;
  color: var(--dark);
  text-align: center;
}

.service-card:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  color: var(--primary);
  transition: all 0.5s ease;
}

.service-card:hover .icon-box {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.service-card h4,
.service-card p {
  transition: color 0.5s ease;
}

/* ==================== Contact Section ==================== */
#contact .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  z-index: 1;
}

.contact-form-box {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  max-width: 900px;
  z-index: 2;
  position: relative;
}

.btn-gradient {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: none;
  color: #fff;
  border-radius: 30px;
  transition: all 0.4s ease;
}

.btn-gradient:hover {
  background: linear-gradient(135deg, var(--accent), var(--primary));
  transform: scale(1.05);
}

.contact-box {
  transition: all 0.4s ease;
}

.contact-box:hover {
  transform: translateY(-8px);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff !important;
}

.contact-box:hover i,
.contact-box:hover h5,
.contact-box:hover p {
  color: #fff !important;
}

/* ==================== Footer ==================== */
.footer {
  background: var(--secondary);
  color: #fff;
}

.footer a {
  color: #a8a8a8;
  transition: all 0.3s ease;
}
.footer p {
  color: #a8a8a8;
  transition: all 0.3s ease;
}

.footer a:hover {
  color: var(--accent) !important;
  text-decoration: underline;
}
/* ==================== Headings ==================== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Segoe UI", Roboto, sans-serif;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 15px;
  text-transform: capitalize;
}

h1 {
  font-size: 2.8rem;
  color: var(--secondary);
}

h2 {
  font-size: 2.2rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
}

/* Hover effect for headings */
h2:hover, h3:hover, h4:hover {
  color: var(--accent);
  transition: color 0.3s ease;
}

/* ==================== Paragraphs ==================== */
p {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

p.lead {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--dark);
}

p.small {
  font-size: 0.9rem;
  color: #666;
}
/* Any box or card hover la inside text white aagum */
.service-card:hover h1,
.service-card:hover h2,
.service-card:hover h3,
.service-card:hover h4,
.service-card:hover h5,
.service-card:hover h6,
.service-card:hover p,
.about-feature:hover h1,
.about-feature:hover h2,
.about-feature:hover h3,
.about-feature:hover h4,
.about-feature:hover h5,
.about-feature:hover h6,
.about-feature:hover p,
.contact-box:hover h1,
.contact-box:hover h2,
.contact-box:hover h3,
.contact-box:hover h4,
.contact-box:hover h5,
.contact-box:hover h6,
.contact-box:hover p {
  color: #fff !important;
}
/* Floating Gear Button */
.theme-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10000;
  font-size: 1.3rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}
.theme-toggle-btn:hover {
  transform: rotate(90deg);
}

/* Hidden Panel */
.theme-panel {
  position: fixed;
  bottom: 80px;
  right: -250px; /* hidden initially */
  width: 220px;
  background: #fff;
  padding: 15px;
  border-radius: 10px;
  transition: right 0.4s ease;
  z-index: 9999;
}
.theme-panel.open {
  right: 20px; /* visible when open */
}
/* Banner/Carousel Headings & Paragraphs - White only */
#heroCarousel h1,
#heroCarousel p {
  color: #fff !important;
}
#contact h2{
  color: #fff !important;
}



/* Initial state: hidden above */
.carousel-caption h1,
.carousel-caption p,
.carousel-caption a {
  opacity: 0;
  transform: translateY(-50px); /* start 50px above */
  transition: all 0.8s ease;    /* smooth transition */
}

/* When active, slide down into place */
.carousel-caption.animate h1,
.carousel-caption.animate p,
.carousel-caption.animate a {
  opacity: 1;
  transform: translateY(0);
}

 .about-feature {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--dark);
  transition: all 0.5s ease;
}

.about-feature::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: all 0.5s ease;
  z-index: 0;
}

.about-feature:hover::before {
  left: 0; /* slide gradient from left */
}

.about-feature:hover {
  color: #fff; /* text turns white */
  transform: translateY(-5px) scale(1.02); /* subtle lift */
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.about-feature h5,
.about-feature p,
.about-feature i {
  position: relative;
  z-index: 1; /* keep text/icons above gradient */
  transition: color 0.5s ease;
}

/* Partner logos carousel */
.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.partner-logo img {
  max-height: 80px;
  filter: grayscale(70%);
  transition: all 0.4s ease;
}

.partner-logo:hover img {
  filter: grayscale(0%);
  transform: scale(1.1);
}

/* Optional: add small shadow */
.partner-logo:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent, #00c6ff));
}
/* Make iframe responsive */
  .map-responsive iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
  }

  /* Contact links hover */
  #contact a:hover {
    color: #fefefe; /* your theme highlight color */
    transition: 0.3s;
  }

  .Mission:hover{
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
   transition: all 0.3s ease;

  }
.Mission:hover h3,
.Mission:hover p {
  color: #fff;
}
.owl-carousel .item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.owl-carousel .item img {
  max-height: 200px;
  object-fit: cover;
  width: 100%;
}

.owl-carousel .item .p-3 {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-link {
  color: #6c757d;        /* muted text matching theme */
  text-decoration: none;  /* remove underline */
  transition: color 0.3s;
}

.contact-link:hover {
  color: #0d6efd;         /* your primary theme color on hover */
  text-decoration: none;
}

.team-member {
  text-align: center;
}

.team-img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid #fff;
  box-shadow: 0px 5px 15px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-img:hover {
  transform: scale(1.05);
  box-shadow: 0px 8px 20px rgba(0,0,0,0.25);
}
/* .why:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
} */
 .why {
  position: relative;
  background: #fff;
  color: #000;
  overflow: hidden;
  transition: all 0.4s ease;
}

.why::before {
  content: "";
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, var(--primary), var(--secondary));
  transition: all 0.5s ease;
  z-index: 0;
}

.why:hover::before {
  bottom: 0;
}

.why * {
  position: relative;
  z-index: 1;
}

.why:hover {
  color: #fff;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 12px 25px rgba(0,0,0,0.25);
}

.why:hover h5,.why:hover p {
  
  color: #fff;
}
.zoom-logo {
  animation: zoomInOut 3s ease-in-out infinite;
}

@keyframes zoomInOut {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.3); /* zoom-in */
  }
  100% {
    transform: scale(1);   /* zoom-out */
  }
}
.team-section {
  background: url("../images/istock.jpg") center/cover no-repeat;
  min-height: 300px; /* full screen height */
  position: relative;
  padding-bottom: 50px;
}

.team-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5); /* dark overlay */
}

.team-section .container {
  position: relative;
  z-index: 2;
}

.team-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 15px;
  backdrop-filter: blur(6px);
  transition: all 0.4s ease;
  animation: fadeZoom 3s ease-in-out infinite;
}

.team-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

@keyframes fadeZoom {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.team-section p,h5{
  color: white;
}