html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;  /* 🔒 Prevent horizontal scroll */
    width: 100%;
    height: 100%;
    font-family: "Plus Jakarta Sans", sans-serif !important;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    scroll-behavior: smooth;
  }
  

.container {
    flex:1;
}

/* Spacing */
.navbar-nav .nav-item {
    margin-left: 15px;
}

/* Menu links */
.navbar-nav .nav-link {
    font-size: 1.2rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    color: white !important;
}

/* Underline animation */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}
/* 🔑 Completely remove border and focus outline
.navbar-toggler {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* When clicked or focused */
/* .navbar-toggler:focus,
.navbar-toggler:active {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}  */

.navbar .nav-link:focus,
.navbar .navbar-brand:focus,
.navbar .navbar-toggler:focus {
    outline: none !important;
    box-shadow: none !important;
}



.logo-img {
  height: 120px;         /* Tumhari desired logo ka actual size */
  width: auto;
  object-fit: contain;
  display: block;
  margin: -30px 0;      /* Extra space ko upar/neeche adjust karne ke liye */
}
section[id] {
    scroll-margin-top: 80px; /* Navbar height ke barabar */
}
@media (max-width: 992px) {
    section[id] {
        scroll-margin-top: 240px; /* Tablet view */
    }
}

@media (max-width: 576px) {
    section[id] {
        scroll-margin-top: 250px; /* Mobile view */
    }
}


.scrolling-wrapper {
    scroll-behavior: smooth;
    white-space: nowrap;
    padding-bottom: 10px;
}

.scrolling-wrapper::-webkit-scrollbar {
    display: none;
}
.custom-input {
    background-color: #ddffe7 !important;
    border: 1px solid #167d7f;
    color: #167d7f;
}

.custom-input::placeholder {
    color: #167d7f;
    opacity: 0.8;
}


.hero-section {
    background: url('/images/background.png') center center / cover no-repeat;
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #167d7f;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    padding-bottom: 0;
    gap: 10px; /* 🔑 Fixed gap between logo and tagline */
}


/* Overlay for better text visibility */
.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(45, 43, 43, 0.793); /* Mint overlay */
    z-index: 1;
}
.hero-logo-wrapper {
    height: 250px;           /* ✅ Control visible height */
    width: auto;
    overflow: hidden;        /* ✅ Crop image bottom */
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Show top part */
    z-index: 2;
}

.hero-logo {
    height: 350px;          /* ✅ Keep full image size */
    width: auto;
    object-fit: contain;
    object-position: top;   /* ✅ Focus from top */
    animation: zoomFade 2s ease-in-out;
    
}

/* Tablet */
@media (max-width: 992px) {
    .hero-logo-wrapper {
        height: 200px;  /* proportional to logo */
    }
    .hero-logo {
        max-height: 270px;
    }
}

/* Mobile */
@media (max-width: 576px) {
    .hero-logo-wrapper {
        height: 160px;
    }
    .hero-logo {
        max-height: 220px;
    }
}

.tagline {
    color: #167d7f;
    font-weight: 700!important;
    font-size: 1.5rem!important;
    z-index: 2!important;
    animation: slideUp 2s ease-out;
    /* text-shadow: 1px 1px 4px #fdf8f8; */
    margin-top: 30px;  /* remove extra margin */
}



/* Animations */
@keyframes zoomFade {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    0% {
        transform: translateY(30px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* about section styling */
.about-section {
    display: flex;
    justify-content: center;
}

.about-card {
    background-color: #98d7c2;
    padding: 40px;
    border-radius: 15px;  /* curved box */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    text-align: justify;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.about-card h2 {
    color: #167d7f;
    font-weight: 700;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

/* services card styling */

.carousel-indicators button {
  background-color: #167d7f !important;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: #167d7f;
  border-radius: 50%;
  padding: 10px;
}

/* ===== Service Page Styling (Updated) ===== */
.service-section {
  margin: 60px 0;
  padding: 40px 30px;
  background-color: #ddffe7;  /* soft green tone */
  border-radius: 15px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect on whole section */
.service-section:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Alternate layout (even sections reverse) */
.service-section:nth-child(even) {
  flex-direction: row-reverse;
}

/* Text side */
.service-section .text-side {
  flex: 1 1 50%;
  min-width: 300px;
}

/* Heading styling */
.service-section h2 {
  color: #167d7f;
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.service-section p,
.service-section ul {
  color: #333;
  font-size: 1rem;
  line-height: 1.7;
}

/* Service image side */
.service-section .image-side {
  flex: 1 1 45%;
  min-width: 280px;
  display: flex;
  justify-content: center;
}

.service-section .image-side img {
  width: 100%;
  max-width: 420px;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid #167d7f;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

/* Subtle zoom on hover image */
.service-section .image-side img:hover {
  transform: scale(1.05);
}

/* Section divider */
.section-divider {
  width: 80px;
  height: 4px;
  margin: 15px auto;
  border-radius: 2px;
  background: linear-gradient(90deg, #167d7f, #98d7c2);
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 15px;
  height: 4px;
  background: #167d7f;
  border-radius: 2px;
}

.section-divider::before { left: -25px; }
.section-divider::after { right: -25px; }

/* Page header small description */
.page-header p {
  font-size: 1.1rem;
  font-style: italic;
  /* color: #555 !important; */
  color:black;
  background: #f0fdf4;
  border-left: 4px solid #167d7f;
  border-right: 4px solid #167d7f;
  padding: 12px 18px;
  border-radius: 8px;
  display: inline-block;
  margin-top: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .service-section {
    flex-direction: column !important;
    text-align: center;
  }
  .service-section .text-side,
  .service-section .image-side {
    order: unset !important;
    flex: 1 1 100%;
  }
  .service-section .image-side img {
    height: auto;
    max-height: 220px;
  }
}

/* Global content wrapper for better margins */
.middle-section {
  max-width: 1200px;   /* poore page ki max width fix */
  margin: 0 auto;      /* center me laane ke liye */
  padding: 0 20px;     /* left-right se thoda gap */
}

.middle-section :target {
  scroll-margin-top: 120px!important; 
}
