:root {
  --primary-color: #003049; /* Deep Navy */
  --accent-color: #547792; /* Muted Slate Blue */
  --text-dark: #000000; /* Pure Black */
  --text-light: #ffffff; /* Pure White */
  --white: #ffffff;
  --black: #000000;
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 15px 40px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 25px 60px rgba(0, 0, 0, 0.18);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

h1,
h2,
h3,
h4,
h5,
.brand-h1 {
  font-family: "Playfair Display", serif !important;
  font-weight: 600;
}

/* ==========================================================================
   1. GLOBAL BODY STYLES
   ========================================================================== */
body {
  font-family:
    "Inter",
    -apple-system,
    system-ui,
    sans-serif;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: clip; /* clip allows sticky to work better than hidden */
  -webkit-font-smoothing: antialiased;
}

.cstm_space {
  padding: 60px 0;
}
/* ==========================================================================
   TOP HEADER CUSTOMIZATION
   ========================================================================== */
.top-header {
  background-color: #05141e;

  font-weight: 500;
}

.top-header-text {
  color: #ffffff;
}

.top-header-link {
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 6px 0;
}

.topbar-divider {
  width: 1px;
  height: 18px;
  background-color: rgba(255, 255, 255, 0.1);
}

.icon-box-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: white;
  color: var(--primary-color);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.top-header-link:hover {
  color: #ffffff;
}

.top-header-link:hover .icon-box-premium {
  background-color: var(--accent-color);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(84, 119, 146, 0.4);
}

.brand_logo {
  width: 300px;
}

header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  background-color: #ffffff !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

header.scrolled-header {
  box-shadow: var(--shadow-sm);
}

.navbar {
  padding: 1.2rem 0;
  background-color: #ffffff;
}

.navbar.scrolled {
  padding: 1.2rem 0; /* Keep padding consistent to avoid shaking/jumping */
}

@media (max-width: 500px) {
  .brand_logo {
    width: 250px;
  }
}
@media (max-width: 350px) {
  .brand_logo {
    width: 200px;
  }
}
/* ==========================================================================
   3. NAVIGATION LINKS & ANIMATIONS
   ========================================================================== */
.nav-link-custom a {
  position: relative;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--primary-color) !important;
  transition: var(--transition);
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.nav-link-custom a::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link-custom a:hover::after,
.nav-link-custom a.active::after {
  width: 100%;
}

.nav-link-custom a.active {
  color: var(--accent-color) !important;
}

/* Hero Section High-End */
.hero-slider .item {
  height: 85vh;
  max-height: 650px;
  display: flex;
  align-items: center;
}
.hero-title {
  font-size: 48px;
}

.hero-bg-1 {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)),
    url("../img/banner-1.webp");
}
.hero-bg-2 {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.4)),
    url("../img/banner-2.webp");
}

/* Custom Hero Dots */
.hero-slider.owl-theme .owl-dots {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 30px 0;
  z-index: 10;
  margin-top: 0 !important;
}

.hero-slider.owl-theme .owl-dots .owl-dot span {
  width: 10px;
  height: 10px;
  margin: 5px 4px;
  background: rgba(255, 255, 255, 0.4);
  display: block;
  transition: all 0.4s ease;
  border-radius: 30px;
}

.hero-slider.owl-theme .owl-dots .owl-dot.active span,
.hero-slider.owl-theme .owl-dots .owl-dot:hover span {
  background: var(--accent-color);
  width: 35px;
}

.hero-slider .item h1,
.hero-slider .item h2,
.hero-slider .item p,
.hero-slider .item .hero-tagline,
.cstm_cta h1,
.cstm_cta h2,
.cstm_cta p {
  color: var(--white) !important;
}

.owl-nav {
  display: none !important;
}
/* ==========================================================================
   4. BRANDING STYLES (AJAY MOHAN SHARMA)
   ========================================================================== */
.brand-h1 {
  font-size: 1.6rem;
  line-height: 1.2;
}

.brand-span {
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.8;
  margin-top: 2px;
}
/* About */
.about-img-wrapper img {
  max-width: 500px;
  object-fit: cover;
}

/* Buttons */
.btn-accent {
  background: var(--accent-color);
  color: var(--white) !important;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: 500;
  transition: var(--transition);
}

.btn-accent:hover {
  background: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 48, 73, 0.25);
}

.btn-primary {
  background-color: var(--primary-color) !important;
  color: var(--white) !important;
  padding: 10px 16px;
  border-radius: 4px;
  border: none;
  font-weight: 500;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--accent-color) !important;
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0, 48, 73, 0.2);
}

/* Service Card Premium Pass */
.service-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(84, 119, 146, 0.15);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-color);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-15px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 70px;
  height: 70px;
  background: rgba(84, 119, 146, 0.05);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 2rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--primary-color);
  color: var(--white);
  transform: scale(1.1) rotate(10deg);
}

/* Section Headlines */
.headline-accent {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.headline-main {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.page-header {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)),
    url(../img/banner-4.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 100px 0;
  color: #ffffff !important;
}

.page-header h1 {
  color: #ffffff !important;
}

.page-header .breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7) !important;
  transition: var(--transition);
}

.page-header .breadcrumb-item a:hover {
  color: #ffffff !important;
  opacity: 1;
}

.page-header .breadcrumb-item.active {
  color: #ffffff !important;
  opacity: 1;
}

.page-header .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}
/* Footer Premium */
footer {
  background: var(--primary-color);
  padding: 6rem 0 0;
}

.navbar.scrolled {
  padding: 0.6rem 0;
}

.footer-nav li a {
  transition: var(--transition);
  opacity: 0.8;
  display: inline-block;
}

.footer-nav li a:hover {
  opacity: 1;
  transform: translateX(8px);
}

.footer-title-spacing {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1rem;
  width: 100%;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  color: var(--white) !important;
  border-radius: 50%;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social-icon:hover,
.contact-item:hover .social-icon {
  background: var(--white) !important;
  color: var(--primary-color) !important;
  border-color: var(--white) !important;
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.contact-item {
  transition: var(--transition);
  display: flex;
  align-items: center;
}

.contact-item:hover span,
.contact-item:hover a {
  color: var(--white) !important;
  opacity: 1;
  transform: translateX(8px);
}

.contact-item span,
.contact-item a {
  transition: var(--transition);
  display: inline-block;
}

/* Copyright Bar */
.cstm_copyright {
  background: #00263a; /* Slightly darker shift for visual depth */
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.cstm_copyright a {
  transition: var(--transition);
  opacity: 1;
}

.cstm_copyright a:hover {
  color: var(--accent-color) !important;
  opacity: 1;
}
/* Background Images & Overlays */
.hero-slider .item {
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

/* Hero Section High-End Overlays */

.cstm_cta {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)),
    url("../img/banner-3.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 100px 0;
  position: relative;
}

/* Mobile Responsiveness for Navbar */
@media (max-width: 991.98px) {
  .brand-h1 {
    font-size: 1.25rem;
  }
  .brand-span {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
  }
  .navbar {
    padding: 0.75rem 0;
  }
  .navbar-collapse {
    background: var(--white);
    padding: 1.5rem;
    margin-top: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
  }
  .nav-link-custom a {
    padding: 0.75rem 0 !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
}

@media (max-width: 575.98px) {
  .brand-h1 {
    font-size: 1.1rem;
  }
  .brand-span {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }
  .hero-slider .item {
    height: 55vh;
    max-height: 650px;
    display: flex;
    align-items: center;
  }
  .hero-title {
    font-size: 30px;
  }
  .hero-slider.owl-theme .owl-dots {
    bottom: 0px;
  }
}

/* ==========================================================================
   PREMIUM WHY CHOOSE SECTION
   ========================================================================== */
.premium-why-section {
  background-color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.premium-why-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at center,
    rgba(84, 119, 146, 0.03) 0%,
    transparent 50%
  );
  z-index: 0;
  pointer-events: none;
}

.tracking-wide {
  letter-spacing: 0.15em;
}

.line-height-lg {
  line-height: 1.8;
}

.premium-why-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 40px 30px;
  position: relative;
  z-index: 1;
  height: 100%;
  border: 1px solid rgba(0, 48, 73, 0.05);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.premium-why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 48, 73, 0.08);
  border-color: rgba(84, 119, 146, 0.2);
}

/* Testimonial Premium Design - Minimalist */
.testimonial-carousel {
    padding: 20px 0;
}

.testimonial-carousel .owl-item {
    padding: 10px 15px; /* Handle spacing here instead of JS margin */
    display: flex !important;
    height: auto !important;
}

.testimonial-carousel .owl-stage {
    display: flex !important;
}

.testimonial-carousel .item {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    width: 100% !important;
}

.testimonial-card {
  background: #ffffff;
  border: 1px solid #eceef2;
  border-radius: 4px;
  padding: 30px;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: var(--accent-color);
  background-color: #fafbfc;
}

.testimonial-card p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #555;
  font-style: italic;
  margin-bottom: 0;
  flex-grow: 1 !important;
}

.testimonial-card .quote-icon i {
  color: #ccc;
  font-size: 1.5rem;
}

.premium-icon-box {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  color: #ffffff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(0, 48, 73, 0.2);
}

.premium-why-card:hover .premium-icon-box {
  background: var(--accent-color);
  transform: rotate(10deg) scale(1.05);
}

.premium-card-bg {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(84, 119, 146, 0.08) 0%,
    transparent 70%
  );
  border-radius: 50%;
  z-index: -1;
  transition: var(--transition);
}

.premium-why-card:hover .premium-card-bg {
  transform: scale(2.5);
}

/* ==========================================================================
   PREMIUM CONTACT PAGE
   ========================================================================== */
.contact-info-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(84, 119, 146, 0.1);
  box-shadow: 0 10px 20px rgba(0, 48, 73, 0.02);
  transition: var(--transition);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--accent-color);
  transition: var(--transition);
}

.contact-info-card:hover::before {
  height: 100%;
}

.contact-info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 48, 73, 0.08);
  border-color: transparent;
}

.contact-icon-wrapper {
  width: 52px !important;
  height: 52px !important;
  background: rgba(84, 119, 146, 0.1);
  color: var(--primary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.contact-info-card:hover .contact-icon-wrapper {
  background: var(--primary-color);
  color: #ffffff;
  transform: rotateY(180deg);
}

.modern-form {
  background: linear-gradient(145deg, #ffffff 0%, #fcfdfe 100%);
  border: 1px solid rgba(84, 119, 146, 0.1) !important;
}

.modern-form .form-control,
.modern-form .form-select {
  border: 1px solid rgba(84, 119, 146, 0.2);
  border-radius: 8px !important;
  padding: 16px 20px;
  font-size: 0.95rem;
  transition: var(--transition);
  background-color: #f8fafc;
}

/* ==========================================================================
   FLOATING BUTTONS (WhatsApp & Back to Top)
   ========================================================================== */
.floating-btn-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 1050;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-btn {
  background-color: #25d366;
}

.whatsapp-btn:hover {
  background-color: #128c7e;
  color: #fff;
  transform: scale(1.1);
}

.back-to-top-btn {
  background-color: var(--primary-color);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.back-to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover {
  background-color: var(--accent-color);
  color: #fff;
  transform: scale(1.1) translateY(-3px);
}

@media (max-width: 575.98px) {
  .floating-btn-container {
    bottom: 20px;
    right: 20px;
  }
  .floating-btn {
    width: 50px;
    height: 50px;
  }
}

.modern-form .form-control:focus,
.modern-form .form-select:focus {
  background-color: #ffffff;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px rgba(84, 119, 146, 0.1);
}

.modern-form .form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

@media (max-width: 991.98px) {
  .contact-header-bg::after {
    display: none;
  }
}

/* ==========================================================================
   TESTIMONIAL CAROUSEL DOTS CSTM
   ========================================================================== */
.testimonial-carousel .owl-dots {
  text-align: center;
  margin-top: 35px;
}

.testimonial-carousel .owl-dot {
  outline: none !important;
  border: none !important;
}

.testimonial-carousel .owl-dot span {
  width: 10px;
  height: 10px;
  background: rgba(0, 48, 73, 0.15) !important;
  display: block;
  border-radius: 50%;
  margin: 0 6px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.testimonial-carousel .owl-dot.active span,
.testimonial-carousel .owl-dot:hover span {
  background: var(--accent-color) !important;
  width: 28px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(84, 119, 146, 0.3);
}

.owl-carousel .owl-dots.disabled {
  display: block !important;
}

/* ==========================================================================
   MOBILE OFFCANVAS MENU CUSTOMIZATION
   ========================================================================== */
.toggler-custom[aria-expanded="true"] .menu-open-icon {
  display: none !important;
}

.toggler-custom[aria-expanded="true"] .menu-close-icon {
  display: inline-block !important;
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: -100%;
    width: auto;
    min-width: 260px;
    max-width: 85vw;
    height: 100vh;
    z-index: -1; /* Goes UNDER the header which is likely z-index auto or higher */
    background-color: var(--white);
    box-shadow: 10px 0 25px rgba(0, 0, 0, 0.1);
    padding: 100px 2rem 2rem 1.5rem;
    display: block !important;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .navbar-collapse.show {
    left: 0 !important;
  }

  .navbar-collapse.collapsing {
    left: -100%;
    height: 100vh !important;
    display: block !important;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .nav-link-custom .nav-item {
    margin: 15px 0 !important;
  }

  .nav-link-custom a::after {
    left: 0;
    transform: translateX(0);
  }

  .nav-link-custom .btn-primary {
    margin: 20px 0 0 0 !important;
    display: inline-block;
  }
}
