/********** GLOBAL STYLES **********/

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --secondary: #1e3a5f;
  --accent: #f59e0b;
  --light: #f8fafc;
  --dark: #0f172a;
  --text: #475569;
  --white: #ffffff;
  --border: #e2e8f0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background: #ffffff;
  overflow-x: hidden;
  line-height: 1.7;
}

.container {
  max-width: 1200px;
}

section {
  padding: 80px 0;
}

img {
  border-radius: 12px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark);
  font-weight: 700;
}

p {
  font-size: 16px;
  line-height: 1.8;
}

.shadow-sm {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05) !important;
}

/********** BUTTONS **********/

.btn {
  font-weight: 600;
  border-radius: 10px;
  padding: 12px 28px;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 12px 25px rgba(13, 148, 136, 0.3);
}

.btn-square {
  width: 36px;
  height: 36px;
}

.btn-sm-square {
  width: 28px;
  height: 28px;
}

.btn-lg-square {
  width: 46px;
  height: 46px;
}

.btn-square,
.btn-sm-square,
.btn-lg-square {
  padding-left: 0;
  padding-right: 0;
  text-align: center;
}

/********** BACK TO TOP **********/

.back-to-top {
  position: fixed;
  display: none;
  right: 30px;
  bottom: 30px;
  border-radius: 50%;
  z-index: 99;
}

/********** NAVBAR **********/

.sticky-top {
  transition: all 0.4s ease;
}

.navbar {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

.navbar-brand img {
  max-height: 65px;
}

.navbar-light .navbar-nav .nav-link {
  position: relative;
  margin-left: 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--primary);
}

.navbar-light .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0%;
  height: 3px;
  background: var(--primary);
  border-radius: 10px;
  transition: 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
  width: 100%;
}

@media (max-width: 991.98px) {
  .navbar-light .navbar-nav .nav-link {
    margin-left: 0;
    padding: 12px 0;
  }
}

/********** HERO CAROUSEL **********/

.carousel-item {
  position: relative;
  /* Removed display: flex and align-items from here to protect native animations */
}

.carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  z-index: 1;
}

/* Forces text up over the dark background mask */
.carousel-item .container {
  position: relative;
  z-index: 2;
}

.carousel-item h1 {
  font-size: 18px;
  letter-spacing: 2px;
}

.carousel-item h5 {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.2;
}

@media (max-width: 768px) {
  /* Handle mobile height adjustments via the inner utility layer */
  .carousel-item .d-flex {
    min-height: 75vh !important;
  }

  .carousel-item h5 {
    font-size: 2.3rem;
  }
}

/********** PRIMARY SECTIONS **********/

.bg-primary {
  background: linear-gradient(
    135deg,
    var(--primary),
    var(--primary-dark)
  ) !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary p {
  color: white !important;
}

/********** CARDS **********/

.card {
  border: none;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.card img {
  height: 260px;
  object-fit: cover;
}

.card-body {
  padding: 25px;
}

.card-title {
  font-size: 20px;
  font-weight: 700;
}

.card-footer {
  background: white;
  border-top: 1px solid var(--border);
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

/********** PRODUCT CATEGORY SIDEBAR **********/

.nav.flex-column a {
  padding: 12px 16px;
  border-radius: 10px;
  color: var(--dark);
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav.flex-column a:hover {
  background: var(--primary);
  color: white !important;
  padding-left: 22px;
}

/********** SERVICE SECTION **********/

.service-item {
  position: relative;
  height: 350px;
  padding: 0 30px;
  transition: 0.5s;
}

.service-item .service-icon {
  width: 150px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  border-radius: 50%;
  transform: rotate(-14deg);
}

.service-item .service-icon i {
  transform: rotate(15deg);
}

.service-item a.btn {
  position: absolute;
  width: 60px;
  bottom: -48px;
  left: 50%;
  margin-left: -30px;
  opacity: 0;
}

.service-item:hover a.btn {
  bottom: -24px;
  opacity: 1;
}

/********** PRICE CAROUSEL **********/

.price-carousel::after {
  position: absolute;
  content: "";
  width: 100%;
  height: 50%;
  bottom: 0;
  left: 0;
  background: var(--primary);
  border-radius: 8px 8px 50% 50%;
  z-index: -1;
}

.price-carousel .owl-nav {
  margin-top: 35px;
  width: 100%;
  display: flex;
  justify-content: center;
}

.price-carousel .owl-nav .owl-prev,
.price-carousel .owl-nav .owl-next {
  margin: 0 5px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: var(--primary);
  border-radius: 50%;
  font-size: 22px;
  transition: 0.3s;
}

.price-carousel .owl-nav .owl-prev:hover,
.price-carousel .owl-nav .owl-next:hover {
  background: var(--primary);
  color: white;
}

/********** TEAM CAROUSEL **********/

@media (min-width: 576px) {
  .team-item .row {
    height: 350px;
  }
}

.team-carousel .owl-nav {
  position: absolute;
  width: 100%;
  top: calc(50% - 22px);
  display: flex;
  justify-content: space-between;
  padding: 0 45px;
}

.team-carousel .owl-nav .owl-prev,
.team-carousel .owl-nav .owl-next {
  width: 45px;
  height: 45px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.team-carousel .owl-nav .owl-prev:hover,
.team-carousel .owl-nav .owl-next:hover {
  background: var(--dark);
}

/********** TESTIMONIALS **********/

.testimonial-carousel .owl-dots {
  margin-top: 15px;
  display: flex;
  justify-content: center;
}

.testimonial-carousel .owl-dot {
  margin: 0 5px;
  width: 20px;
  height: 20px;
  background: var(--light);
  border: 2px solid var(--primary);
  border-radius: 20px;
  transition: 0.3s;
}

.testimonial-carousel .owl-dot.active {
  width: 40px;
  background: var(--primary);
}

.testimonial-carousel .owl-item img {
  width: 150px;
  height: 150px;
}

/********** ABOUT PAGE **********/

.custom-hr {
  border: none;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary),
    var(--primary-dark)
  );
  border-radius: 10px;
}

.rounded-circle {
  transition: all 0.3s ease;
}

.rounded-circle:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(13, 148, 136, 0.2);
}

/********** VERTICAL LINE **********/

.vertical-line-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px;
}

.vertical-line {
  position: relative;
  width: 2px;
  height: 50%;
  background-color: var(--primary);
}

.vertical-line::before,
.vertical-line::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
}

.vertical-line::before {
  top: 0;
  border-bottom-color: var(--primary);
}

.vertical-line::after {
  bottom: 0;
  border-top-color: var(--primary);
}

/********** FOOTER **********/

footer {
  background: #0f172a;
}

footer h4 {
  font-size: 20px;
  margin-bottom: 25px;
}

footer a {
  transition: 0.3s ease;
}

footer a:hover {
  color: var(--primary) !important;
  padding-left: 5px;
}

footer .btn-outline-light:hover {
  background: var(--primary);
  border-color: var(--primary);
}

/********** GLASS EFFECT **********/

.bg-white {
  backdrop-filter: blur(12px);
}