html {
  overflow-x: hidden;
}

:root {
  --primary-blue: #0d6efd;
  --dark-blue: #0a46a3;
  --light-bg: #f8f9fa;
  --text-dark: #212529;
}
.emi-box {
  background-color: #e7f3ff;
  border-left: 5px solid #007bff;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 8px;
  animation: fadeInDown 0.5s ease;
}
.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
}
.modal-content {
  border-radius: 15px;
  border: none;
}
body {
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar-brand {
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--primary-blue) !important;
}
.nav-link {
  font-weight: 600;
  margin: 0 10px;
  transition: 0.3s;
}
.nav-link:hover {
  color: var(--primary-blue) !important;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  padding: 100px 0;
  background:
    linear-gradient(
      to right,
      rgba(28, 35, 64, 0.95) 0%,
      rgba(28, 35, 64, 0.85) 50%,
      rgba(28, 35, 64, 0.75) 100%
    ),
    url("photo3.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(77, 97, 252, 0.08) 0%,
    transparent 60%
  );
  z-index: 1;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff !important;
}

.hero-section .text-primary {
  color: #5b9cff !important;
  background: none;
  -webkit-text-fill-color: inherit;
}

.hero-section .lead {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-img {
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.3s ease;
  opacity: 0.85;
  mix-blend-mode: luminosity;
}

.hero-img:hover {
  transform: scale(1.02);
  opacity: 1;
}

/* Buttons */
.btn-primary-custom {
  background: linear-gradient(135deg, #4d61fc 0%, #4d61fc 100%);
  color: white;
  padding: 14px 35px;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(77, 97, 252, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary-custom::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6b7dff 0%, #5869ff 100%);
  transition: left 0.3s ease;
  z-index: 0;
}

.btn-primary-custom:hover::before {
  left: 0;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(77, 97, 252, 0.5);
}

.btn-primary-custom span,
.btn-primary-custom {
  position: relative;
  z-index: 1;
}

/* Hero Section Outline Button */
.hero-section .btn-outline-primary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.9);
  background: transparent;
  transition: all 0.3s ease;
}

.hero-section .btn-outline-primary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* Content Sections */
.section-padding {
  padding: 80px 0;
}
.section-img {
  border-radius: 15px;
  width: 100%;
  height: auto;
  transition: 0.5s;
}
.section-img:hover {
  transform: scale(1.02);
}

/* What We Do Section Styles */
.mission-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 0.1;
  white-space: nowrap;
}

.mission-description {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.7;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.3s ease;
}

.benefit-item:hover {
  transform: translateX(5px);
}

.benefit-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -8px;
}

.benefit-icon svg {
  width: 40px;
  height: 50px;
  display: block;
}

.benefit-content {
  flex: 1;
}

.benefit-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.benefit-description {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Responsive adjustments for What We Do */
@media (max-width: 991px) {
  .mission-heading {
    font-size: 1.3rem;
  }

  .benefits-list {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .benefit-icon {
    width: 45px;
    height: 45px;
  }

  .benefit-icon svg {
    width: 45px;
    height: 45px;
  }

  .benefit-title {
    font-size: 1.05rem;
  }

  .benefit-description {
    font-size: 0.85rem;
  }
}

/* Area of Expertise Section Styles */
.expertise-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 20px;
}

.expertise-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: transform 0.3s ease;
}

.expertise-item:hover {
  transform: translateX(5px);
}

.expertise-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.expertise-icon svg {
  width: 50px;
  height: 50px;
  display: block;
}

.expertise-content {
  flex: 1;
}

.expertise-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.3;
}

.expertise-description {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Responsive adjustments for Area of Expertise */
@media (max-width: 991px) {
  .expertise-list {
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

@media (max-width: 576px) {
  .expertise-icon {
    width: 45px;
    height: 45px;
  }

  .expertise-icon svg {
    width: 45px;
    height: 45px;
  }

  .expertise-title {
    font-size: 1.05rem;
  }

  .expertise-description {
    font-size: 0.85rem;
  }
}

/* Partner Section Styles */
.partner-card {
  display: block;
  text-decoration: none;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.4s ease;
  background: #fff;
  margin-top: -50px;
}

.partner-logo {
  max-height: 60px; /* Fixed height for consistency */
  width: auto;
  margin-bottom: 15px;
  filter: grayscale(100%); /* Elegant grayscale by default */
  opacity: 0.7;
  transition: all 0.4s ease;
}

/* Larger logos for specific partners */
.partner-logo[alt="HCL"],
.partner-logo[alt="Airtel"] {
  max-height: 120px;
}

.partner-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #666;
  margin-bottom: 0;
  transition: color 0.4s ease;
}

/* Hover Effects */
.partner-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.partner-card:hover .partner-logo {
  filter: grayscale(0%); /* Full color on hover */
  opacity: 1;
  transform: scale(1.1);
}

.partner-card:hover .partner-name {
  color: var(--primary-blue);
}
/* Timeline Container */
.timeline-container {
  position: relative;
  padding: 40px 0;
}

/* Base Box Style */
.step-box {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 25px;
  border-radius: 100px; /* Fully rounded capsule look */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #eee;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 550px;
  position: relative;
  z-index: 2;
}

.step-box:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(13, 110, 253, 0.15);
}

/* Icon Styles */
.step-icon {
  width: 80px;
  height: 80px;
  background: #fff;
  border: 5px solid #0d6efd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #0d6efd;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.step-content {
  padding: 0 25px;
}

/* Right-side Map & Address Styling */
.map-address-col {
  display: flex;
  align-items: center; /* Aligns map and text vertically center */
  gap: 12px;
  padding-left: 20px; /* Separates it from the social icons */
}

.footer-map-box {
  width: 80px;
  height: 65px;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #444;
  flex-shrink: 0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.footer-map-box:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
  border-color: #007bff;
}

.footer-address-text {
  font-size: 11px;
  line-height: 1.4;
  color: #adb5bd;
  margin: 0;
  text-align: left;
}
.footer-map-box {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
}

/* .map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
} */
.footer-map-box {
  width: 120px;
  height: 90px;
  border-radius: 8px;
  overflow: hidden;
  position: relative; /* IMPORTANT */
}

.map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 120px; /* fixed size same as map */
  height: 90px; /* fixed size same as map */
  z-index: 2;
}

/* Mobile handling: Stacks on mobile, stays side-by-side on Desktop */
@media (max-width: 768px) {
  .map-address-col {
    padding-left: 0;
    justify-content: center;
    margin-top: 20px;
  }
}

/* The Curved Connector Path (Desktop only) */
@media (min-width: 768px) {
  .timeline-container::before {
    content: "";
    position: absolute;
    top: 60px;
    left: 50%;
    width: 2px;
    height: 85%;
    border-left: 4px dashed #0d6efd; /* Fallback line */
    z-index: 1;
    opacity: 0.2;
    display: none; /* We use the specific curves below */
  }

  /* Individual Curves mimicking the image */
  .timeline-row {
    position: relative;
  }

  /* Right-side curve connector */
  .left-step::after {
    content: "";
    position: absolute;
    right: -100px;
    top: 50%;
    width: 150px;
    height: 200px;
    border: 4px solid #0d6efd;
    border-left: none;
    border-bottom: none;
    border-radius: 0 100px 0 0;
    z-index: 1;
    opacity: 0.3;
  }

  /* Left-side curve connector */
  .right-step::after {
    content: "";
    position: absolute;
    left: -100px;
    top: 50%;
    width: 150px;
    height: 200px;
    border: 4px solid #0d6efd;
    border-right: none;
    border-bottom: none;
    border-radius: 100px 0 0 0;
    z-index: 1;
    opacity: 0.3;
  }

  /* Remove curve from last step */
  .timeline-row:last-child .step-box::after {
    display: none;
  }
}

/* Mobile Adjustments */
@media (max-width: 767px) {
  .step-box {
    flex-direction: column;
    border-radius: 20px;
    text-align: center;
    padding: 40px 20px;
  }
  .step-icon {
    margin-bottom: 20px;
  }
  .step-content {
    text-align: center !important;
  }
  .step-content ul li i {
    display: none;
  } /* Clean up list for mobile */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .partner-logo {
    max-height: 45px;
  }
  .partner-name {
    font-size: 0.75rem;
  }
}

/* Footer */
footer {
  background: #111;
  color: #ccc;
  padding: 60px 0 20px;
}
footer h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 20px;
}
footer a {
  color: #ccc;
  text-decoration: none;
  transition: 0.3s;
}
footer a:hover {
  color: var(--primary-blue);
}
.social-icons i {
  font-size: 1.5rem;
  margin-right: 15px;
  cursor: pointer;
  transition: 0.3s;
}
.social-icons i:hover {
  color: var(--primary-blue);
}
/* Popup Overlay */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s ease,
    visibility 0.4s ease;
  overflow-y: auto;
}

#popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Popup Modal */
.popup-modal {
  background-image: url("popbg.jfif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  width: 90%;
  max-width: 520px;
  padding: 5px 14px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 25px 50px rgba(101, 153, 221, 0.7);
  transform: scale(0.8);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Background overlay for text readability */
.popup-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.39);
  border-radius: 18px;
  z-index: 1;
}

.popup-modal > * {
  position: relative;
  z-index: 2;
}

#popup-overlay.active .popup-modal {
  transform: scale(1);
  opacity: 1;
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 18px;
  right: 22px;
  font-size: 52px;
  color: #747373;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  font-weight: 300;
  z-index: 3;
}

.popup-close:hover {
  color: #333;
  transform: rotate(90deg);
}

/* Logo */
.popup-logo {
  margin: 0 auto 25px;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(202, 198, 198, 0.2));
}

/* Heading */
.popup-heading {
  font-size: 1.75rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  line-height: 1.3;
}

/* Subheading */
.popup-subheading {
  font-size: 1rem;
  color: #7f8c8d;
  margin-bottom: 25px;
  line-height: 1.5;
}

/* Pricing Section */
.popup-pricing {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 18px;
}

.price-old {
  font-size: 1.3rem;
  color: #e74c3c;
  text-decoration: line-through;
  font-weight: 500;
}

.price-new {
  font-size: 2rem;
  color: #27ae60;
  font-weight: 800;
}

/* Description */
.popup-description {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 30px;
  line-height: 1.6;
}

.popup-description strong {
  color: #27ae60;
  font-weight: 700;
}

.text-linethrough {
  text-decoration: line-through;
  color: #e74c3c;
}

/* Button */
.popup-button {
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  color: white;
  border: none;
  padding: 14px 50px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(46, 204, 113, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.popup-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(46, 204, 113, 0.4);
  background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
}

.popup-button:active {
  transform: translateY(-1px);
}

/* Prevent scrolling when popup is active */
body.popup-active {
  overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .popup-modal {
    padding: 40px 25px;
    max-width: 95%;
  }

  .popup-logo {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
  }

  .popup-heading {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .popup-subheading {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .price-old {
    font-size: 1.1rem;
  }

  .price-new {
    font-size: 1.6rem;
  }

  .popup-description {
    font-size: 0.85rem;
    margin-bottom: 25px;
  }

  .popup-button {
    padding: 12px 40px;
    font-size: 0.95rem;
  }

  .popup-close {
    font-size: 28px;
    top: 15px;
    right: 18px;
  }
}
/* Make select look like input fields */
.form-select {
  border: 1px solid #ced4da;
  border-radius: 8px;
  height: 46px;
  padding: 10px 12px;
  font-size: 15px;
  background-color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.form-select:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.15rem rgba(13, 110, 253, 0.15);
  outline: none;
}

.form-select:invalid {
  color: #6c757d;
}

.form-select option {
  color: #000;
}

.form-select:hover {
  border-color: #0d6efd;
}

.form-select:active {
  transform: scale(0.99);
}
