@import url('hero-slider.css');

/* ---------- Pagination: rectangle style + positioning ---------- */

/* make the pagination container positioned so it can sit beside .hero-text */
.hero-section { position: relative; }

/* place pagination to the right of the hero-text on desktop */
.hero-section .swiper-pagination {
  position: absolute;
  left: 60%;               /* distance from right edge of hero area */
  bottom: 15%;                /* center vertically */
  transform: translateY(-50%);
  display: flex;
  flex-direction: row;  /* stack page indicators vertically like your React look */
  gap: 10px;
  z-index: 30;
  pointer-events: auto;
}

/* change bullets to rounded rectangles */
.hero-section .swiper-pagination-bullet {
  width: 46px;      /* rectangle width */
  height: 5px;     /* rectangle height */
  border-radius: 8px;
  background: rgba(255,255,255,0.65);
  opacity: 1;       /* keep visible */
  transform-origin: center;
  transition: transform 250ms ease, background 250ms ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* active state: larger and colored */
.hero-section .swiper-pagination-bullet-active {
  background: #d11b1b; /* your red */
  transform: scale(1.12);
  box-shadow: 0 6px 18px rgba(209,27,27,0.28);
}

/* hover state */
.hero-section .swiper-pagination-bullet:hover {
  transform: scale(1.05);
  background: #d11b1b;
  cursor: pointer;
}

/* Move pagination under the button on small screens */
@media (max-width: 992px) {
  .hero-section .swiper-pagination {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    flex-direction: row;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    margin-bottom: 10px;
  }

  .hero-section .swiper-pagination-bullet {
    width: 10px;
    height: 8px;
    border-radius: 999px; /* more pill-like on mobile */
  }

  /* ensure the hero-text stacks above the pagination */
  .hero-content { flex-direction: column; align-items: center; text-align: center; }
  .hero-image { width: 100%; margin-bottom: 18px; }
  .hero-text { padding-left: 0; }
}

/* ---------- Navbar scrolled styles ---------- */
#mainNavbar {
  transition: padding 0.28s ease, box-shadow 0.28s ease, background-color 0.28s ease;
  padding: 1rem 0; /* default bigger padding */
}

#mainNavbar.scrolled {
  padding: 0.35rem 0; /* reduced padding when scrolled */
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.98); /* slight white bg to prevent transparency */
}

/* logo transition + size change */
#logoImg {
  transition: height 0.28s ease;
  height: 70px; /* default */
}

#mainNavbar.scrolled #logoImg {
  height: 54px; /* smaller on scroll */
}

.navbar {
  transition: all 0.3s ease;
}

.navbar-shrink {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,.08);
}


.about-section {
  background-color: #f8f9fa;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}



.watermark img {
  opacity: 0.08;
  object-fit: contain;
  max-width: 380px;
}

.about-section h2 {
  letter-spacing: 0.5px;
   color: #D62828;
}

.about-section p {
  margin-bottom: 1.5rem;
  color: #272626;
  font-size: 1.1rem;
}

.btn-outline-danger {
  border-width: 1px;
  transition: all 0.3s ease;
}

.btn-outline-danger:hover {
  background-color: #d62828;
  color: #fff;
  border-color: #d62828;
}

/* Fade-up Animations */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-up {
  animation: fadeUp 1s ease-out;
}

.animate-fade-up-delay {
  animation: fadeUp 1.2s ease-out;
}

.animate-fade-up-delay-2 {
  animation: fadeUp 1.4s ease-out;
}



/* Section Base */
.accreditations-section {
  background: url("assets/images/textures/grey-pattern.png") center/cover fixed;
  position: relative;
}

/* Titles (same styling consistency as before) */
.section-title {
  font-weight: 700;
  font-size: 1.75rem;
}
@media (min-width: 768px) {
  .section-title {
    font-size: 2.5rem;
  }
}

/* Scrolling Row */
.scrolling-row {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.scrolling-content {
  display: inline-flex;
  gap: 2.5rem;
  animation: scrollInfinite 40s linear infinite;
}

.scrolling-content img {
  height: 80px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.scrolling-content img:hover {
  transform: scale(1.05);
}

/* Infinite scroll keyframes */
@keyframes scrollInfinite {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Fade edges */
.fade-left,
.fade-right {
  position: absolute;
  top: 0;
  height: 100%;
  width: 60px;
  z-index: 5;
  pointer-events: none;
}
.fade-left {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}
.fade-right {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}


/*Navbar
/* Base Navbar Styling */
.navbar {
  transition: all 0.3s ease;
}

.nav-link {
  position: relative;
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  padding-bottom: 6px; /* give room for underline */
}

/* Hover underline animation */

/* Active page underline (persistent) */
.nav-link.active::after {
  width: 100%;
}

/* Optional: active link color */
.nav-link.active {
  color: var(--color-primary);
}

/* Navbar scroll shrink effect */
#mainNavbar.scrolled {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

#navbarNav .navbar-nav {
  position: relative;
}

/* Sliding red underline */
#nav-indicator {
  content: "";
  position: absolute !important;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #D62828;
  width: 0;
  transition: width 0.3s ease;
  
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #D62828;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ================= CORE SERVICES ================= */

.core-services-section {
  position: relative;
  overflow: hidden;
  padding: 80px 20px;
}

/* ===== PARALLAX BACKGROUND FIX ===== */
/* ===== FIXED PARALLAX BACKGROUND ===== */
.bg-parallax {
  position: absolute;
  top: 0px !important;                /* Force it to start at the very top of the section */
  left: 0;
  width: 100%;
  height: 120%;          /* Increased slightly for better movement headroom */
  z-index: 1;
  will-change: transform;
  pointer-events: none;  /* Ensures the background doesn't block clicks on cards */
  backface-visibility: hidden; /* Prevents flickering */
 
}

.bg-parallax img {
  position: absolute;
  top: -20% !important;
  left: 0;
  width: 100%;
  height: 130% !important;
  object-fit: cover;
  object-position: center; /* Ensures the image focal point stays centered */
  transition: none;
}


/* Overlays */
.overlay-primary {
  position: absolute;
  inset: 0;
  background: rgba(0, 90, 60, 0.8);
  mix-blend-mode: multiply;
  z-index: 2;
}

.overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(0,0,0,.2),
    transparent,
    rgba(0,0,0,.4)
  );
  z-index: 3;
}

/* Content container */
.core-services-content {
  position: relative;
  z-index: 20;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.core-services-content h2 {
  color: white;
  font-size: 32px;
  font-weight: bolder;
  margin-bottom: 20px;
  margin-top: 10px;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
}

/* Grid */
.services-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(4, minmax(280px, 1fr)); /* wider cards */
  max-width: 1600px;                  /* allow the section to stretch */
  margin: 0 auto;
}

/* Cards */
.service-card {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
  transition: all .3s ease;
  animation: float 1s ease-in-out;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,.2);
}

/* Offset like your Next.js version */
.service-card.even { margin-top: 20px; }
.service-card.odd { margin-bottom: 20px; }

/* Image */
.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

/* Text */
.service-body {
  padding: 20px;
  background: #ffffff !important;
  color: #000000;
  z-index: 30;
}

.service-body h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.divider {
  width: 48px;
  height: 2px;
  background: #00a86b;
  margin: 10px auto;
  transition: width .3s ease;
}

.service-card:hover .divider {
  width: 80px;
}

/* Float animation */
@keyframes float {
  from { transform: translateY(10px); opacity: 0.9; }
  to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 992px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}









