:root {
  --bs-primary: #3F52BF;
  --bs-primary-rgb: 63, 82, 191;
  --secondary-color: #FE8B75;
  --text-color: #2D2D2D;
  --white: #FFFFFF;
  --black: #000000;
  --gray: #EDEDED;
  --light-gray: #EAEFF3;
}

.btn-primary {
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #2f3acb;
  --bs-btn-hover-border-color: #2f3acb;
  --bs-btn-active-bg: #2f3acb;
  --bs-btn-active-border-color: #2f3acb;
}

/* General Styles */
body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text-color);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
}

h1 {
  font-size: 60px;
  line-height: 82px;
}

h2 {
  font-size: 50px;
  color: var(--black);
}

h3 {
  font-size: 24px;
  line-height: 33px;
}

h5 {
  font-size: 24px;
  line-height: 33px;
}

h6 {
  font-size: 14px;
  line-height: 19px;
  color: #453232;
}

/* Media query for tablets (e.g., screens less than 992px) */
@media (max-width: 991.98px) {
  h1 {
    font-size: 48px;
    line-height: 65px;
  }

  h2 {
    font-size: 40px;
  }

  h3 {
    font-size: 20px;
    line-height: 28px;
  }

  h5 {
    font-size: 20px;
    line-height: 28px;
  }

  h6 {
    font-size: 13px;
    line-height: 18px;
  }
}

/* Media query for mobile devices (e.g., screens less than 768px) */
@media (max-width: 767.98px) {
  h1 {
    font-size: 36px;
    line-height: 50px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 18px;
    line-height: 25px;
  }

  h5 {
    font-size: 18px;
    line-height: 25px;
  }

  h6 {
    font-size: 12px;
    line-height: 16px;
  }
}

p {
  font-size: 20px;
  line-height: 27px;
  color: var(--white);
}

p.p2 {
  color: var(--black);
}

p.subtitle {
  font-style: normal;
  font-weight: 400;
  font-size: 30px;
  line-height: 48px;
  color: #3F52BF !important;
}

/* Navbar */
.navbar {
  top: 55px;
}

@media (max-width: 767.98px) {
  .navbar {
    top: 0;
  }
}

.navbar-brand img {
  height: 75px;
}

/* Hero Section */
.hero-section {
  background: url('../images/hero.webp') center/cover;
  padding: 250px 0;
  color: var(--white);
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content h1 {
  font-weight: 700;
  font-size: 60px;
  line-height: 82px;
}

.hero-content p {
  font-size: 30px;
  line-height: 41px;
}

/* Media query for tablets (e.g., screens less than 992px) */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 200px 0;
    height: 60vh;
  }

  .hero-content h1 {
    font-size: 48px;
    line-height: 65px;
  }

  .hero-content p {
    font-size: 24px;
    line-height: 32px;
  }
}

/* Media query for mobile devices (e.g., screens less than 768px) */
@media (max-width: 767.98px) {
  .hero-section {
    padding: 150px 0;
    height: 50vh;
  }

  .hero-content h1 {
    font-size: 36px;
    line-height: 50px;
  }

  .hero-content p {
    font-size: 20px;
    line-height: 28px;
  }
}

/* Media query for very small devices (e.g., screens less than 576px) */
@media (max-width: 575.98px) {
  .hero-section {
    padding: 100px 0;
    height: 40vh;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 38px;
  }

  .hero-content p {
    font-size: 18px;
    line-height: 24px;
  }
}

/* Service Cards */
.service-card {
  overflow: hidden;
  transition: transform 0.3s;
  border: 1px solid var(--bs-primary);
  border-radius: 8px;
  max-height: 600px
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card .card-body {
  min-height: 202px;
  /* background: var(--bs-primary); */
  background-color: var(--bs-primary) !important;
  color: var(--white);
  padding: 20px;
}

/* Buttons */
.btn-default {
  padding: 15px 100px;
  height: 60px;
  background: var(--bs-primary);
  color: var(--white);
  border-radius: 30px;
  font-size: 24px;
  line-height: 28px;
  font-weight: 700;
  border: none;
}

.btn-default:hover {
  background-color: var(--bs-primary);
  color: var(--white);
  transform: translateY(-1px);
  /* Slight lift on hover */
}

/* Media query for tablets (e.g., screens less than 992px) */
@media (max-width: 991.98px) {
  .btn-default {
    padding: 12px 80px;
    height: 50px;
    font-size: 20px;
    line-height: 24px;
  }
}

/* Media query for mobile devices (e.g., screens less than 768px) */
@media (max-width: 767.98px) {
  .btn-default {
    padding: 10px 60px;
    height: 45px;
    font-size: 18px;
    line-height: 22px;
    border-radius: 25px;
  }
}

.btn-navigation {
  width: 40.5px;
  height: 40.5px;
  border: 0.625002px solid var(--bs-primary);
  border-radius: 62.5002px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Testimonials */
.carousel-inner {
  overflow: visible !important;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray);
  box-shadow: 0px 8.14815px 6.51852px rgba(49, 49, 49, 0.0392593), 0px 1.85185px 3.14815px rgba(49, 49, 49, 0.0240741);
  padding-bottom: 30px;
  position: relative;
  min-height: 280px;
}

.testimonial-quote {
  border-radius: 50%;
  background: var(--bs-primary);
  color: var(--white);
  font-size: 60px;
  line-height: 0;
  width: fit-content;
  padding: 40px 10px 15px;
  position: absolute;
  top: -25px;
  left: 75px;
  transform: translateX(-50%);
}

.testimonial-stars {
  font-size: 25px;
  color: var(--secondary-color);
}

.testimonial-paragraph {
  font-size: 18px;
  line-height: 24px;
  color: var(--text-color);
}

.testimonial-footer {
  border-top: 1px solid var(--light-gray);
  padding: 15px;
  position: absolute;
  bottom: 0;
  width: 100%;
  left: 0;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

/* Why Connect6 Section */
.icon-circle {
  width: 200px;
  height: 200px;
  background: var(--bs-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.icon-circle img {
  width: 110px;
  height: 110px;
}

/* Footer */
footer {
  background: var(--bs-primary);
  color: var(--white);
  padding: 50px 0;
}

footer button {
  background: var(--bs-primary) !important;
  color: var(--white) !important;
  border: 2px solid var(--white) !important;
  border-radius: 40px !important;
  font-size: 12px !important;
  padding: 3px 25px !important;
}

footer p, footer a {
  font-size: 12px;
  line-height: 21px;
  color: var(--white);
}

footer h6 {
  color: var(--white);
}

footer .social-bar a {
  text-decoration: none !important;
}

/* Modal Styling */
.custom-modal {
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-header {
  border-bottom: none;
  text-align: center;
  padding-bottom: 10px;
}

.modal-title {
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 1px;
}

.modal-title-line {
  display: inline-block;
  width: 30px;
  height: 2px;
  background-color: var(--bs-primary);
  margin: 0 10px;
  vertical-align: middle;
}

/* Form Styling */
.form-control, .form-select {
  border-radius: 5px;
  border: 1px solid #ddd;
  box-shadow: none;
  height: 45px;
  font-size: 14px;
  padding: 10px;
}

textarea.form-control {
  height: auto;
  resize: none;
}

.custom-submit-btn {
  background-color: var(--bs-primary);
  border: none;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  padding: 10px;
  transition: all 0.3s ease-in-out;
}

.custom-submit-btn:hover {
  background-color: #2f3acb;
}

/* Loader Styles */
#loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  display: none;
}

#loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  z-index: 1000;
  display: none;
  /* Hidden by default */
}

#loader p {
  color: var(--bs-primary) !important;
}

/* Spinner Animation */
.spinner {
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-top: 4px solid #3F52BF;
  /* Use your primary color */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Disabled Button Styles */
button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Back to Top Button */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  z-index: 1000;
}

/* Message Container Styles */
.message-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  max-width: 300px;
}

.message-content {
  padding: 15px;
  border-radius: 5px;
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Success Message */
.message-success {
  background-color: #28a745; /* Green */
}

/* Error Message */
.message-error {
  background-color: #dc3545; /* Red */
}
