/* ============================================================
   GLOBAL RESET
============================================================ */
html,
body {
  margin: 0;
  padding: 0;
  font-family: "Degular", sans-serif;
  /* overflow-x: hidden !important; */
}
section,
.container-xxl,
.container,
.row,
.col {
  overflow-x: hidden !important;
}

* {
  box-sizing: border-box;
}

/* ============================================================
   ROOT VARIABLES
============================================================ */
:root {
  --primary: linear-gradient(180deg, #0c6b70 0%, #08929a 100%);
  --secondary: #963d98;
  --light: #f0f6ff;
  --dark: #262b47;
}

/* Regular */
@font-face {
  font-family: "Degular";
  src: url("../fonts/DegularDemo-Regular.otf") format("woff2"),
    url("../fonts/Degular-Regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Bold */
@font-face {
  font-family: "Degular";
  src: url("../fonts/DegularDemo-Bold.otf") format("woff2"),
    url("../fonts/DegularDemo-Bold.otf") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   WHATSAPP FLOAT BUTTON
============================================================ */
/* Common Style for Both Buttons */
.whatsapp-float,
.back-to-top {
  position: fixed;
  bottom: 30px; /* same distance from bottom */
  width: 55px; /* same size */
  height: 55px; /* same size */
  border-radius: 50%; /* fully round */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff; /* icon color */
  font-size: 28px; /* icon size */
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: 0.3s ease;
}

/* WhatsApp specific */
.whatsapp-float {
  left: 15px;
  background-color: #25d366;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #0c6b70;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
  transition: 0.3s ease;
  z-index: 9999;
}

.back-to-top i {
  font-size: 26px;
  line-height: 1 !important; /* FIX vertical shifting */
  margin-top: 2px !important; /* FINAL PERFECT CENTER FIX */
  display: inline-block;
}

/* ============================================================
   SPINNER
============================================================ */
#spinner {
  opacity: 0;
  visibility: hidden;
  z-index: 99999;
  transition: opacity 0.5s ease-out, visibility 0s linear 0.5s;
}

#spinner.show {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease-out, visibility 0s linear 0s;
}

/* ============================================================
   TYPOGRAPHY
============================================================ */
h1,
h2,
.fw-bold {
  font-weight: 700 !important;
  font-family: "Degular", sans-serif;
}

h3,
h4,
.fw-semi-bold {
  font-weight: 600 !important;
  font-family: "Degular", sans-serif;
}

h5,
h6,
.fw-medium {
  font-weight: 500 !important;
  font-family: "Degular", sans-serif;
}

/* ============================================================
   GRADIENT TEXT & BACKGROUND
============================================================ */
.text-primary-gradient {
  background: linear-gradient(
    to bottom right,
    var(--primary),
    var(--secondary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-secondary-gradient {
  background: linear-gradient(
    to bottom right,
    var(--secondary),
    var(--primary)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-primary-gradient {
  background: linear-gradient(
    to bottom right,
    var(--primary),
    var(--secondary)
  );
}

.bg-secondary-gradient {
  background: linear-gradient(
    to bottom right,
    var(--secondary),
    var(--primary)
  );
}

/* ============================================================
   BUTTONS
============================================================ */
.btn {
  transition: 0.5s;
}

.btn.btn-primary-gradient,
.btn.btn-secondary-gradient {
  position: relative;
  overflow: hidden;
  border: none;
  color: #fff;
  z-index: 1;
}

.btn.btn-primary-gradient::after,
.btn.btn-secondary-gradient::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  z-index: -1;
  transition: 0.5s;
}

.btn.btn-primary-gradient,
.btn.btn-secondary-gradient::after {
  background: linear-gradient(
    to bottom right,
    var(--primary),
    var(--secondary)
  );
}

.btn.btn-secondary-gradient,
.btn.btn-primary-gradient::after {
  background: linear-gradient(
    to bottom right,
    var(--secondary),
    var(--primary)
  );
}

.btn.btn-primary-gradient:hover::after,
.btn.btn-secondary-gradient:hover::after {
  opacity: 1;
}

/* Button Sizes */
.btn-square {
  width: 38px;
  height: 38px;
}

.btn-sm-square {
  width: 32px;
  height: 32px;
}

.btn-lg-square {
  width: 48px;
  height: 48px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50px;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  right: 45px;
  bottom: 45px;
  display: none;
  z-index: 99;
  border: none;
  background: linear-gradient(
    to bottom right,
    var(--primary),
    var(--secondary)
  );
}

/* Logo */
.logo {
  max-height: 60px;
  transition: all 0.3s ease;
}

/* navbar-section */

/* ===============================
   STICKY NAVBAR
================================ */
/* Make navbar clean, no vertical scrollbar */
.custom-navbar {
  overflow: visible !important; /* allows dropdowns to show */
  height: auto !important;
}

/* Fix nav links height */
.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
  padding-top: 0.7rem !important;
  padding-bottom: 0.7rem !important;
  line-height: 1 !important;
}

/* Fix dropdown menu position */
.dropdown-menu {
  margin-top: 0 !important;
}

/* Ensure container doesn’t add scroll */
.navbar .container {
  overflow: visible !important;
}

.custom-navbar {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: #fff;
  padding: 12px 0;
}

/* NAV LINKS */
.nav-link {
  font-size: 16px;
  padding: 8px 12px;
  font-weight: 500;
  color: #111 !important;
}

#active-nav a {
  color: orange !important;
  font-weight: 600;
}

.nav-link:hover {
  color: orange !important;
}

/* ===============================
   DESKTOP DROPDOWN HOVER
================================ */
@media (min-width: 992px) {
  .products-dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }

  .products-dropdown .dropdown-menu {
    display: block;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease-in-out;
    visibility: hidden;
  }

  .products-dropdown:hover .dropdown-menu {
    visibility: visible;
  }
}

/* ===============================
   MOBILE DROPDOWN FIX
================================ */
@media (max-width: 991px) {
  /* Allow bootstrap to control display */
  .dropdown-menu {
    position: relative !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    border: none;
    box-shadow: none;
    background: #f8f8f8;
    margin-left: 15px;
    padding: 10px 0;
  }

  .dropdown-item {
    padding: 10px 20px;
  }
}

/*Main-section*/
.shape {
  position: relative;
  top: -124px;
  width: 100%;
  background: #fff;
  height: 150px;
}
.carousel-img {
  width: 70%; /* Adjust percentage for desired size */
  max-width: 400px; /* Optional fixed max size */
  height: auto; /* Keep aspect ratio */
  margin: 0 auto; /* Center horizontally */
  display: block;
}

.hero-img {
  position: relative; /* Needed for z-index to work */
  z-index: 2; /* Higher than surrounding elements */
  margin-top: 60px; /* Pull image upward to float above */
  margin-right: -30px; /* Slight overflow to the right */
  max-width: 100%;
  height: auto;
}

.hero-header {
  background: linear-gradient(180deg, #0c6b70 0%, #08929a 100%);
  padding-bottom: 50px;
}

/* Responsive tweaks for mobile */
@media (max-width: 767px) {
  .hero-header h1 {
    margin-top: 10px; /* More space above heading on mobile */
    font-size: 1.8rem;
  }

  .hero-header p {
    margin-bottom: 10px; /* Reduce gap below paragraph */
    font-size: 1rem;
  }

  .hero-header .btn {
    margin-top: 5px;
    margin-bottom: 5px;
    display: block;
    width: 100%;
  }

  .carousel-img {
    width: 70%; /* Adjust percentage for desired size */
    max-width: 400px; /* Optional fixed max size */
    height: auto; /* Keep aspect ratio */
    margin: 0 auto; /* Center horizontally */
    display: block;
    margin-top: 60px;
    margin-bottom: 10px;
  }
  .hero-img {
    margin-top: 0px;
    padding-top: 10px;
    margin-bottom: -20px; /* Pull image closer to buttons */
    width: 100%;
    height: auto;
  }
}

/* Apply styles only between 770px and 1350px */
@media (min-width: 767px) and (max-width: 900px) {
  .hero-header h1 {
    font-size: 1.5rem; /* Adjust heading size for mid-range screens */
    margin-top: 10px;
    text-align: center;
  }

  .hero-header p {
    font-size: 1rem; /* Slightly larger text */
    margin-bottom: 50px;
    text-align: center;
    padding-bottom: 50px;
  }

  .hero-img {
    margin-top: 40px; /* Balanced spacing */
    margin-right: -20px; /* Slight overflow for effect */
    padding-top: 50px;
    width: auto;
    height: auto;
  }

  .carousel-img {
    width: 65%; /* Consistent smaller size */
    max-width: 350px; /* Prevent oversized images */
    margin: 0 auto;
    display: block;
  }
}
/* Mobile-first styles (default) */
@media (min-width: 900px) and (max-width: 1350px) {
  .hero-header h1 {
    font-size: 2 rem; /* Adjust heading size for mid-range screens */
    margin-top: 10px;
    text-align: center;
  }

  .hero-header p {
    font-size: 1rem; /* Slightly larger text */
    margin-bottom: 15px;
    text-align: center;
    padding-bottom: 50px;
  }

  .hero-img {
    margin-top: 40px; /* Balanced spacing */
    margin-right: -20px; /* Slight overflow for effect */
    width: auto;
    height: auto;
  }

  .carousel-img {
    width: 65%; /* Consistent smaller size */
    max-width: 350px; /* Prevent oversized images */
    margin: 0 auto;
    display: block;
  }
}
/* ABOUT US SECTION */
.about-section {
  background: #dae7f0;
  color: #1b4648;
}
.about-section h2,
p {
  color: #0a3d62;
}
.about-section img {
  border-radius: 20px;
  margin-left: 30px;
  margin-right: 20px;
}
.about-content {
  background: #b7c5cb;
  margin-right: 20px;
  border-radius: 20px;
  text-align: justify;
}
.about-content h2 {
  text-align: left;
}
.about-content a {
  border: 2px solid #1b4648;
  font-weight: bold;
  color: #0a3d62;
}
.about-content,
.arrow-icon {
  font-weight: 300px;
}
.about-content a:hover {
  border: 2px solid #128c7e;
  background: #128c7e;
  font-weight: bold;
  color: #fff;
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .about-content {
    top: 0;
    margin-top: -20px;
    margin-right: 20px;
    margin-left: 20px;
  }

  .about-section img {
    margin-top: 20px;
    margin: auto;
    display: block;
  }
  /* Mobile tap/hover effect */
  .about-content a:hover,
  .about-content a:active,
  .about-content a:focus {
    border: 2px solid #128c7e;
    background: #128c7e;
    font-weight: bold;
    color: #fff;
  }
}
/* services-section */
.service-card {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3; /* ✅ Controls card height */
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.services-section h2 {
  color: #0a3d62;
}
.service-card:hover {
  transform: translateY(-5px);
}

.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-label {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: #fff;
  color: #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  text-transform: capitalize;
}

.service-card:hover {
  transform: translateY(-5px);
}
.service-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-label {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background-color: #fff;
  color: #000;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.9rem;
  text-transform: capitalize;
}
.service-card .arrow-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: url("https://cdn-icons-png.flaticon.com/512/271/271228.png")
    no-repeat center center;
  background-size: 60%; /* Better scaling */
  z-index: 10; /* IMPORTANT */
  background-color: #fff; /* If you want white circle */
  border-radius: 50%;
}

.card-title {
  margin-top: 15px;
  font-weight: 500px;
  color: #0a3d62;
}
/* products */
/* Product Cards */
.products-section {
  background: #dae7f0;
}

.product-text {
  color: #fff;
}
.section-title {
  color: #0a3d62;
}
.section-subtitle {
  color: #0c6b70;
}
.product-card {
  padding: 25px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 250px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  box-shadow: 0 8px 20px #00000020;
  transition: 0.3s ease;
}

/* Hover effect */
.product-card:hover {
  transform: translateY(-5px);
}

/* White icons */
.product-icon i {
  font-size: 32px;
  color: #fff;
  margin-bottom: 15px;
}

/* Text inside cards */
.product-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 15px;
}

/* Learn More button */
.learn-btn {
  background: rgba(255, 255, 255, 0.85);
  padding: 8px 18px;
  border-radius: 20px;
  font-weight: 600;
  color: #0a3d62;
  text-decoration: none;
  width: fit-content;
  transition: 0.3s;
}

.learn-btn:hover {
  background: #fff;
}

/* Bigger right card */
.big-card {
  min-height: 430px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .product-card {
    min-height: 220px;
    padding: 20px;
  }

  .big-card {
    min-height: 300px;
  }

  .product-icon i {
    font-size: 28px;
  }

  .product-text {
    font-size: 15px;
  }
}

/* Section Base */
.rs-testimonial-section {
  background: #f9f9f9;
}

/* Card */
.rs-t-card {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
  transition: 0.4s ease;
  transform: scale(0.95);
  min-height: 270px;
}

.rs-t-card:hover {
  transform: scale(1);
}

/* Header area */
.rs-t-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.rs-t-header img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px solid #08929a;
}

/* Stars */
.stars {
  color: #ffb800;
  font-size: 16px;
  letter-spacing: 2px;
}

/* Text */
.rs-t-card p {
  margin: 0;
  font-size: 15px;
  color: #555;
  line-height: 1.5;
}

/* Carousel Center Animation */
.owl-item.active.center .rs-t-card {
  transform: scale(1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Remove scrollbar */
.owl-stage-outer {
  overflow: hidden !important;
}

/* Nav Buttons */
.owl-nav button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: linear-gradient(
    to bottom right,
    var(--primary),
    var(--secondary)
  ) !important;
  color: #fff !important;
  margin: 10px;
  font-size: 20px !important;
  transition: 0.3s;
}

.owl-nav button:hover {
  background: linear-gradient(
    to bottom right,
    var(--secondary),
    var(--primary)
  ) !important;
}

/* Mobile Friendly */
@media (max-width: 767px) {
  .rs-t-card {
    padding: 20px;
    min-height: auto;
  }
  .rs-t-header img {
    width: 60px;
    height: 60px;
  }
}

.Testimonial .carousel-item {
  background: #dae7f0;
  color: #0a3d62;
}

.Testimonial h5 {
  color: #0a3d62;
}

.Testimonial h2 {
  color: #0a3d62;
}

.Testimonial .text-secondary {
  color: red;
}

.Testimonial .card img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid #0a3d62; /* Bootstrap primary color */
}
.Testimonial .carousel-item {
  transition: transform 0.8s ease-in-out;
}
/* ================================
   BASE FOOTER STYLES
================================ */
.carvex-footer {
  background: #0f6b70; /* teal background */
  /* font-family: "Poppins", sans-serif; */
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 40px;
  /* padding-left: 30px; */
  text-align: center;
}

/* ================================
   FOOTER LINKS
================================ */
.carvex-footer .footer-link {
  color: #d9f4f5;
  text-decoration: none;
  transition: 0.3s;
}

.carvex-footer .footer-link:hover {
  color: #ffffff;
}

/* ================================
   LOGO & COPY TEXT
================================ */
.carvex-footer .footer-logo-text {
  font-size: 32px;
  font-weight: 700;
}

/* ================================
   CTA SECTION
================================ */
.cta-container {
  background: linear-gradient(180deg, #0c6b70 0%, #08929a 100%);
  border-radius: 12px;
  padding: 30px 25px;
  margin-top: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.cta-container h4 {
  font-size: 22px;
  margin: 0;
}

.cta-btn {
  background: #d6ff6b; /* exact neon green */
  color: #000 !important;
  border-radius: 25px;
  padding: 10px 28px;
  font-weight: 600;
  transition: 0.3s ease-in-out;
}

.cta-btn:hover {
  background: #c8f459;
}

/* ================================
   SOCIAL ICONS
================================ */
.social-icons i {
  font-size: 20px;
  transition: 0.3s;
  color: #d9f4f5;
}

.social-icons i:hover {
  color: #ffffff;
  transform: scale(1.1);
}

/* ================================
   UTILITY FIXES
================================ */
.footer .btn.btn-link {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  text-align: left;
  color: #d9f4f5;
  text-decoration: none;
}

.footer .btn.btn-link:hover {
  color: #ffffff;
}

/* ================================
   RESPONSIVE | MOBILE
================================ */
@media (max-width: 767px) {
  .cta-container {
    text-align: center;
    padding: 25px 20px;
  }

  .cta-container h4 {
    margin-bottom: 15px;
    width: 100%;
  }

  .cta-btn {
    width: 100%;
    margin-top: 10px;
  }

  .carvex-footer .footer-logo-text {
    font-size: 28px;
  }
}
