/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --primary: #653BA2;
  /* Brand blue (adjustable) */
  --secondary: #f59e0b;
  /* Accent yellow/orange */
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --success: #10b981;
  --hover: #52298b;
  --error: red;
}

body {
  background: #fff;
  color: var(--dark);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1156px;
  margin: 0 auto;
  padding: 4rem 1rem;
}

section {
  padding: 4rem 0;
}

p {
  margin-bottom: 0.5rem;
  color: var(--gray);
}

html {
  font-size: 16px;
}

p {
  font-size: 1em;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Open Sans', sans-serif;
  font-weight: 700;
  line-height: 1.15;
}

h1,
.text-size-h1 {
  font-family: 'Poppins', sans-serif;
  padding-bottom: 0.75rem;
  font-size: 2.49rem;
}

h2,
.text-size-h2 {
  font-size: 2.07rem;
}

h3,
.text-size-h3 {
  font-size: 1.73rem;
}

h4,
.text-size-h4 {
  font-size: 1.44rem;
}

h5,
.text-size-h5 {
  font-size: 1.2rem;
}

.text-caption {
  font-size: 0.83rem;
}

small,
.text-small {
  font-size: 0.69rem;
}

/* List style */
ul li {
  list-style: none;
  color: var(--gray);
  padding-bottom: 0.35rem;
  display: flex;
  gap: 0.25rem;
}

/* a (links) */




/* Input style */
input {
  padding: 0.5rem 0.25rem;
  border: 0.1rem solid var(--primary);
  border-radius: 1.5rem;
}

input:hover {
  box-shadow: lightpink;
}

/* Buttons */
.btn,
.btn-2 {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  gap: 0.25rem;
}

.btn {
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 2rem;
}

.btn:hover {
  background: var(--hover);
  transform: translateY(-2px);
}

.btn-2 {
  color: var(--primary);
}

.btn-2:hover {
  text-decoration: underline;
}

.text-center {
  text-align: center;
}

.flex {
  display: flex;
}

.center {
  align-items: center;
}

/* ===== HERO SLIDER ===== */
.hero {
  padding: 1.5rem 0;
}

.hero-cta {
  white-space: 20px;
  gap: 1rem;
}

.hero-content {
  max-width: 600px;
}

.hero h1 {
  color: var(--primary);
}

.hero-left {
  width: 45%;
  padding-block: 8rem;
}

.hero-card-body-text,
.hero-left span {
  margin-bottom: 6px;
}

.hero-right {
  width: 55%;
  padding-block: 8rem;
}

.hero-left {
  align-items: center;
}

.hero-right {
  background-image: url(assets/svg/hero-shape.svg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right;
  padding: 1rem 0 0 0;
}

.hero-right-inner {
  margin-top: 6rem;
}

.hero-card {
  background-color: #fff;
  border-radius: 1rem;
  max-height: 19.5rem;
}

.hero-card-head {
  margin-top: -2.5rem;
  background-color: #47D7CE;
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  border-radius: 1rem 1rem 0 0;
}

.hero-card-body {
  display: grid;
  padding: 0.5rem 1.5rem 1.5rem 1.5rem;
  gap: 0.75rem;
}

.hero-card-body-text {
  padding: 0.65rem;
  gap: 0.25rem;
  border-radius: 1.5rem;
  background-color: #f7f8f9;
}

/* ===== LOGO SLIDER SECTION ===== */
.logo-slider {
  padding: 0 0 4rem 0 !important;
  gap: 4.5rem;
  overflow: hidden;
}

/* ===== SERVICE SECTION ===== */
.service {
  background: var(--light);
  border-radius: 1.5rem;
  padding: 1.5rem;
}

.service-top,
.testimonials-top {
  justify-content: space-between;
  padding: 0 0 1rem 0 !important;
}

.services-cards {
  gap: 2.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

.service-card {
  border: var(--primary) 0.2rem solid;
  border-radius: 1.5rem;
}

.service-card-img img {
  height: 14rem;
  width: 17rem;
  border-radius: 1.3rem 1.29rem 0 0;
}

.service-card-content {
  padding: 1rem;
}

.service-card-content h5 {
  padding-bottom: 1.5rem;
}

.service-card-content {
  padding-bottom: 0.5rem;
}

.service-card-content p {
  width: 15rem;
}

/* Slider container styles */
.slider-container {
  position: relative;
  /* Needed for absolute positioning of children */
  width: 100%;
  /* Ensure full width */
}

/* Navigation buttons - absolute positioning */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  background: var(--primary);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity 1.9s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slider-btn:disabled {
  cursor: not-allowed;
  pointer-events: none;
  /* Prevents clicks when disabled */
  display: none;
}

.left-btn {
  left: 0.5rem;
  /* Half outside container */
}

.right-btn {
  right: 0.5rem;
  /* Half outside container */
}

.slider-btn:hover {
  background: var(--hover);
  transform: translateY(-50%) scale(1.04);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2),
    0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Card container styles */
.services-cards {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
  scroll-behavior: smooth;
}

.services-cards::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari, Opera */
}

/* Card styles */
.service-card {
  user-select: none;
  scroll-snap-align: start;
  flex: 0 0 auto;
}

/* ===== WHY CHOOSE US SECTION ===== */
.why-choose-us-left h5 {
  padding-bottom: 2rem;
}

.why-choose-us-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.why-choose-us-point {
  gap: 0.75rem;
  border: var(--primary) 0.18rem solid;
  border-radius: 1.25rem;
  padding: 0.5rem 0.5rem 0 0.5rem;
}



.why-choose-us-right,
.local-heading-right {
  padding-left: 3.5rem;
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonials {
  padding: 0 2.5rem 0 2.5rem;
}

.testimonials-cards {
  gap: 2.5rem;
}

.testimonials-cards>div:nth-child(even) {
  margin-top: 5rem;
  /* Adjust padding as needed */
}

.testimonial-card {
  background-image: url(assets/img/local-seo.webp);
  background-size: calc(20.25rem);
  padding: 4rem 0 0 0;
}

/* ===== FLIP CARD ===== */
.flip-card {
  perspective: 1000px;
  width: 20.25rem;
  height: 20.25rem;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

/* Shared Card Face Styles */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Front Side - Image with Cover Fit */
.flip-card-front {
  background: #fff;
}

.card-image-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.card-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Ensures image covers container */
  object-position: center;
  /* Focus on image center */
  display: block;
  filter: grayscale(1);
}

.image-overlay {
  color: #fff !important;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 1rem;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.9) 0%,
      rgba(0, 0, 0, 0.4) 70%,
      transparent 100%);
}


/* Back Side Content */
.flip-card-back {
  background: #fff;
  transform: rotateY(180deg);
  padding: 1.5rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
}

.flip-card-back .content {
  color: #333;
  line-height: 1.6;
}

/* ===== LOCAL HEADING ===== */
.local-heading-right {
  align-content: center;
}

.local-heading-left img {
  width: 94%;
  border-radius: 1.25rem;
  filter: grayscale(1);
  transition-duration: 1s;
}

.local-heading-left img:hover {
  filter: grayscale(0);
}

.local-heading-right h4,
.contact-left h4 {
  color: var(--primary);
  padding-bottom: 1rem;
}

.local-heading-right ul,
.contact-left ul {
  padding-bottom: 1rem;
}

.local-heading-right ul li {
  font-size: 1.25rem;
}

/* ===== CALL CTA ===== */
.call-cta-outer {
  padding: 2rem;
  border-radius: 1.25rem;
  backdrop-filter: blur(5.25rem);
}

.call-cta-inner {
  text-align: center;
  padding: 2rem;
  border: var(--primary) 0.12rem solid;
  position: relative;
}

.call-cta-inner h4 {
  color: var(--primary);
  padding-bottom: 1rem;
}

.call-cta-inner p {
  padding-bottom: 0.25rem;
}

.call-ctas {
  gap: 1rem;
  justify-content: center
}

.call-cta-shapes {
  gap: 48rem;
}

.call-cta-shapes img {
  z-index: -1;
  position: absolute;
  top: 172.9rem;
}

.call-cta-shapes>img:nth-child(2) {
  right: 13rem;
}

/* ===== FAQ SECTION ===== */
.faq h5 {
  padding-bottom: 1.5rem;
  text-align: center;
}

/* Accordion container */
.accordion {
  max-width: 90%;
  margin: 0 auto;
}

/* Accordion item */
.accordion-item {
  border: 0.1rem solid var(--primary);
  background: transparent;
  border-radius: 0.75rem;
  overflow: hidden;
  margin-bottom: 1rem;
}

/* Accordion header (button) */
.accordion-header {
  width: 100%;
  padding: 0.75rem 1rem;
  text-align: left;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s ease;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  backdrop-filter: blur(1rem);
}

.accordion-header:hover {
  background: var(--light);
}

/* Chevron icon */
.accordion-icon {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Accordion content */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.5rem;
  background: #ffffff;
}

.accordion-item.active .accordion-content {
  max-height: 300px;
  /* Adjust based on content */
  padding: 0 1.5rem 1.5rem;
}

/* Content styling */
.accordion-content p:last-child {
  margin-bottom: 0;
}

/* ===== CONTACT FORM SECTION ===== */
.contact {
  width: 70%;
  gap: 2rem;
}

.contact-container {
  width: 50%;
  display: flex;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
  padding: 0.5rem;
}

.form-container {
  flex: 1;
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--dark-color);
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  color: #777;
}

.input-wrapper input,
.input-wrapper select,
.input-wrapper textarea {
  width: 100%;
  padding: 0.5rem 1rem;
  border: 0.1rem solid var(--primary);
  border-radius: 1.5rem;
  font-size: 1rem;
  transition: var(--transition);
}

.input-wrapper textarea {
  min-height: 120px;
  resize: vertical;
  padding-top: 15px;
}

.input-wrapper input:focus,
.input-wrapper select:focus,
.input-wrapper textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(164, 36, 243, 0.316);
}

.error-message {
  color: var(--error);
  font-size: 0.85rem;
  height: 1rem;
}

.info-container {
  flex: 0 0 350px;
  background-color: var(--primary-color);
  color: white;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.info-container h2 {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.info-item i {
  font-size: 1.2rem;
  margin-top: 3px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.social-links a {
  color: white;
  background-color: rgba(255, 255, 255, 0.2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
}

/* Modal */
.modal {
  backdrop-filter: blur(0.1rem);
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: var(--light);
  padding: 2rem;
  border-radius: 1.5rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  position: relative;
  color: var(--primary);
}

.success-icon {
  font-size: 4rem;
  color: var(--success-color);
  margin-bottom: 1rem;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #777;
}

.modal-btn {
  background-color: var(--primary-color);
  color: navy;
  border: none;
  padding: 10px 20px;
  border-radius: var(--border-radius);
  margin-top: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-btn:hover {
  background-color: var(--secondary-color);
}

/* ===== CTA SECTION ===== */
.cta {
  background: var(--primary);
  color: white;
  text-align: center;
}

.cta .btn {
  background: white;
  color: var(--primary);
  margin-top: 1rem;
}

/* ===== FOOTER ===== */
.footer-top {
  padding: 2rem 0;
  gap: 2.5rem;
  color: var(--primary);
}

footer h5 {
  padding-bottom: 1rem;
}

footer li {
  padding-bottom: 0.75rem;
}

footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: 0.1s ease-in-out;
}

footer a:hover {
  scale: 1.1;
  padding-left: 0.25rem;
  font-size: 600;
}

.footer-about,
.footer-menu,
.footer-links,
.footer-social {
  width: 25%;
}

.footer-about p {
  padding-right: 1rem;
  text-align: justify;
}

.footer-bottom {
  background-color: var(--primary);
}

.footer-bottom>div {
  padding: 0.5rem 0 !important;
  justify-content: space-between;
  color: var(--light);

}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 768px) {

}

/* ===== NAVIGATION MENU ===== */
.header {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.25),
      rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(1.25rem) saturate(160%) contrast(110%);
  -webkit-backdrop-filter: blur(1.25rem) saturate(160%) contrast(110%);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700 !important;
  color: var(--primary);
  text-decoration: none;
}

.logo span {
  color: var(--dark);
}

/* Desktop Menu */
.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link,
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: color 0.3s ease;
}

.nav-link:hover,
.dropdown-link:hover {
  background: linear-gradient(135deg, #512DA8 0%, #653BA2 50%, #7B1FA2 100%);
  color: var(--light);
}

/* Dropdown Menu (Optional) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--light);
  width: 200px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  list-style: none;
  padding: 1rem 0;
  z-index: 999;
}

.nav-item:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-item {
  padding: 0.5rem 1.5rem;
}

.dropdown-link {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.dropdown-link:hover {
  color: var(--light);
}

/* Mobile Menu (Hamburger) */
.hamburger {
  display: none;
  cursor: pointer;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px auto;
  background: var(--dark);
  transition: all 0.3s ease;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    margin: 1rem 0;
    text-align: center;
  }

  /* Dropdown for Mobile */
  .dropdown-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-item:hover .dropdown-menu {
    max-height: 200px;
  }

  .dropdown-item {
    padding: 0.5rem 0;
  }
}