@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

/* --- Root Variables & Basic Setup --- */
:root {
  --primary-color: #0a2351; /* Deep Blue */
  --accent-color: #d9262d; /* Teal */
  --text-color: #555;
  --heading-color: #333;
  --bg-light: #f8f9fa;
  --dark-grey-bg: #e9e9e9;
  --white: #ffffff;
  --font-family: "Poppins", sans-serif;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --border-radius: 8px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px; /* Offset for sticky navbar */
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-weight: 600;
}

.section-padding {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 40px;
}

.section-title h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--primary-color);
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 4px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
}

.text-center .section-title h2::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-title p {
  color: #888;
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 12px 30px;
  font-weight: 500;
  border-radius: var(--border-radius);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #16a085;
  border-color: #16a085;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(22, 160, 133, 0.3);
}

/* --- Navbar --- */
.navbar {
  transition: all 0.3s ease-in-out;
  background-color: transparent;
  padding: 15px 0;
}

.navbar.scrolled {
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  padding: 10px 0;
}

.navbar-brand {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}
.navbar.scrolled .navbar-brand {
  color: var(--primary-color);
}
.navbar:not(.scrolled) .navbar-brand {
  color: var(--white);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  margin: 0 10px;
  transition: color 0.3s;
}
.navbar.scrolled .nav-link {
  color: var(--primary-color);
}
.nav-link:hover,
.nav-link.active {
  color: var(--white) !important;
}
.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--accent-color) !important;
}

/* --- Hero Section --- */
#hero .carousel,
#hero .carousel-inner,
#hero .carousel-item {
  min-height: 28rem;
  height: 100vh;
  position: relative;
  overflow: hidden;
  color: var(--white);
}

#hero .carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero .carousel-item img {
  object-fit: cover;
  min-height: 28rem;
  width: 100%;
  height: 100%;
  display: block;
}

/* Dark overlay on images for text readability */
#hero .carousel-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 35, 81, 0.6);
}

/* Fixed Content Overlay */
.hero-content-overlay {
  position: absolute;
  top: 3%;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
}

.ht-head {
  font-size: clamp(1.7rem, 4.5vw, 3rem);
  font-weight: 700;
  color: var(--white);
}

.ht-para {
  font-size: clamp(0.92rem, 1.9vw, 1.2rem);
  color: rgba(255, 255, 255, 0.9);
}

/* --- Plans & Services Section --- */
.plan-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 0.1rem solid var(--bg-light);
}

.plan-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
  border: 0.1rem solid var(--accent-color);
}

.plan-card .icon-box {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 2rem;
}

.plan-card h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
}

.plan-card p {
  flex-grow: 1;
}

.btn-learn-more {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  margin-top: 15px;
  transition: color 0.3s;
}
.btn-learn-more:hover {
  color: var(--primary-color);
}
.btn-learn-more i {
  margin-left: 5px;
  transition: transform 0.3s;
}
.btn-learn-more:hover i {
  transform: translateX(5px);
}

/* --- Benefits Section --- */
#benefits {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(../images/slide-img1.jpg) no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  position: relative;
  background-blend-mode: darken;
}

.benefit-item {
  padding: 30px;
  box-shadow: var(--box-shadow);
  backdrop-filter: blur(0.8rem);
  background: rgba(255, 255, 255, 0.1);
}

#benefits .col-lg-4:not(:first-child) .benefit-item {
  border-left: 5px solid var(--primary-color);
}
.benefit-item .icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}
.benefit-item h4 {
  color: var(--bg-light);
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.benefit-item p {
  color: var(--dark-grey-bg);
}

/* --- Testimonials & Partners (Owl Carousel) --- */
.testimonial-card {
  background: var(--white);
  padding: 30px;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--box-shadow);
  border: 0.1rem solid var(--bg-light);
  margin: 1rem;
  transition: all 0.3s ease;

  &:hover {
    background-color: var(--bg-light);
    border: 0.1rem solid var(--primary-color);
    transform: translateY(-1rem);
  }
}

.testimonial-card p {
  font-style: italic;
  color: #666;
  margin-bottom: 20px;
}

.testimonial-card h5 {
  color: var(--primary-color);
  font-weight: 600;
}

.testimonial-card span {
  font-size: 0.9rem;
  color: #999;
}

.owl-dot span {
  height: 1.1rem !important;
}
.owl-dot.active span {
  background: var(--accent-color) !important;
}

.partners-title {
  color: #999;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.2rem;
  margin-bottom: 30px;
}
.partners-carousel .item img {
  max-width: 150px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s ease;
  margin: auto;
}
.partners-carousel .item img:hover {
  filter: grayscale(0%);
  opacity: 1;
}

/* --- FAQ Section --- */
.accordion-item {
  border: 1px solid #e9ecef;
  border-radius: var(--border-radius) !important;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.accordion-header {
  border-radius: var(--border-radius);
}
.accordion-button {
  font-weight: 600;
  color: var(--primary-color);
  background-color: var(--white);
  border-radius: var(--border-radius);
}
.accordion-button:not(.collapsed) {
  color: var(--white);
  background-color: var(--primary-color);
  box-shadow: none;
}
.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(26, 188, 156, 0.25);
  border-color: var(--accent-color);
}
.accordion-button::after {
  filter: brightness(0) invert(1);
}
.accordion-button:not(.collapsed)::after {
  filter: none;
}
.accordion-body {
  background-color: var(--bg-light);
}

/* --- Contact Form --- */
.contact-form {
  padding: 30px;
  box-shadow: var(--box-shadow);
}
.contact-form .form-control {
  padding: 0.9rem 1rem;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form .form-control:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 0.25rem rgba(26, 188, 156, 0.25);
}

/* --- Footer --- */
#footer {
  background-color: var(--dark-grey-bg);
}

#footer h5 {
  color: var(--accent-color);
}

#footer p,
#footer a,
#footer ul li a {
  text-decoration: none;
  color: var(--heading-color);
  transition: all 0.3s ease;
}

#footer p a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  font-size: 1.2rem;
  color: #fff !important;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.social-link:hover {
  transform: translateY(-4px) scale(1.05);
}
#footer ul li a:hover {
  color: var(--accent-color);
}
/* Brand hover colors */
.foot-icon .facebook {
  background: #1877f2;
}
.foot-icon .instagram {
  background: #e1306c;
}
.foot-icon .linkedin {
  background: #0077b5;
}
.foot-icon .youtube {
  background: #ff0000;
}

/* --- Scroll-to-Top Button --- */
.scroll-to-top,
#contact-icons a {
  position: fixed;
  bottom: 1.4rem;
  right: 1.8rem;
  width: 45px;
  height: 45px;
  background-color: var(--accent-color);
  color: var(--white);
  border-radius: 50%;
  text-align: center;
  line-height: 45px;
  font-size: 1.2rem;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

#contact-icons a {
  display: block;
  bottom: 4.68rem;
  opacity: 1;
  visibility: visible;
}
#contact-icons .whatsapp-btn {
  background-color: #25d366;
  bottom: 8rem;
  font-size: 1.6rem;
}
#contact-icons .call-btn {
  background-color: var(--primary-color);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* --- Animations on Scroll --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 1s ease-out forwards;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* --- Responsive Design --- */
@media (max-width: 991.98px) {
  html {
    scroll-padding-top: 60px;
  }
  #hero .carousel,
  #hero .carousel-inner,
  #hero .carousel-item {
    height: auto;
  }
  .navbar-collapse {
    background-color: var(--white);
    text-align: center;
    padding: 1rem 0;
  }
  .nav-link,
  .navbar.scrolled .nav-link {
    color: var(--primary-color);
  }
  .navbar-brand,
  .navbar.scrolled .navbar-brand {
    color: var(--primary-color);
  }
  .hero-content-overlay {
    top: 10%;
  }
  .hero-text h1 {
    font-size: 2.5rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .section-padding {
    padding: 60px 0;
  }
  .section-title h2 {
    font-size: 2rem;
  }
  #benefits .col-lg-4:not(:first-child) .benefit-item {
    border-top: 5px solid var(--primary-color);
    border-left: none;
  }
}

@media (max-width: 475px) {
  .navbar-brand {
    font-size: 0.9rem;
    font-weight: 600;
  }
}
