/* ===================================== HOME HERO SECTION START===================================== */
.hero-slider {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff;
    background-color: #111;
  }

  /* Background: Continuous slow-motion zoom */
  .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: continuousZoom 25s infinite alternate ease-in-out;
  }

  /* Content: Continuous vertical floating + initial fade-in */
  .hero-content {
    position: relative;
    padding: 0 20px;
    z-index: 2;
  }

  .hero-subtitle {
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    font-weight: 300;
  }

  .hero-title {
    font-family: "Italiana", serif;
    font-size: clamp(50px, 12vw, 90px);
    line-height: 0.95;
    margin: 5px 0 15px 0;
    font-weight: 400;
  }

  .hero-brand {
    font-family: "Raleway", sans-serif;
    font-size: 18px;
    letter-spacing: 3px;
    font-weight: 400;
    opacity: 0.8;
  }

  /* Scroll Indicator */
  .scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
  }

  .scroll-indicator span {
    display: block;
    width: 16px;
    height: 16px;
    border-bottom: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    animation: arrowBounce 2s infinite;
  }

  /* --- KEYFRAMES --- */

  /* Continuous floating loop */
  @keyframes continuousFloat {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-25px); } /* Moves up */
    100% { transform: translateY(0px); }  /* Moves back down */
  }

  /* One-time entry animation */
  @keyframes textReveal {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
  }

  /* Continuous Background Scale */
  @keyframes continuousZoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
  }

  /* Arrow Bouncing */
  @keyframes arrowBounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
  }

  /* Mobile Responsive */
  @media (max-width: 768px) {
    .hero-slider { height: 100vh; }
    .hero-title { font-size: 65px; }
    .hero-subtitle { font-size: 10px; letter-spacing: 2px; }
    .hero-brand { font-size: 14px; }
  }

/* ===================================== HOME FEATURED PROJECTS SECTION START===================================== */
/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Raleway:wght@300;400&display=swap');

.solutions-section {
  padding: 30px 20px;
  max-width: 1300px;
  margin: 0 auto;
  text-align: center;
}

/* Headings */
.header-container {
  margin-bottom: 20px;
}

.sub-heading {
  font-family: "Raleway", sans-serif;
  font-size: 22px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 0px;
}

.main-heading {
  font-family: "Italiana", serif;
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
}

/* Accordion Gallery */
.accordion-wrapper {
  display: flex;
  gap: 10px;
  height: 500px;
  width: 100%;
  overflow: hidden;
}

.accordion-item {
  position: relative;
  flex: 1;
  text-decoration: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 30px;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  overflow: hidden;
}

/* Image Styling */
.accordion-item img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  top: 0;
  left: 0;
}

/* Dark overlay for text readability */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  transition: opacity 0.4s ease;
}

.label {
  position: relative;
  z-index: 2;
  font-family: "Raleway", sans-serif;
  font-size: 20px;
  color: #ffffff;
  transition: opacity 0.3s ease, transform 0.4s ease;
  white-space: nowrap;
}

/* Hover Interaction Logic */
.accordion-wrapper:hover .accordion-item {
  flex: 0.5;
}

.accordion-wrapper:hover .accordion-item .label {
  opacity: 0;
}

.accordion-wrapper .accordion-item:hover {
  flex: 2;
}

.accordion-wrapper .accordion-item:hover .label {
  opacity: 1;
  transform: translateY(-10px);
}

.accordion-wrapper .accordion-item:hover .overlay {
  background: rgba(0,0,0,0.1);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {

  .accordion-wrapper {
    flex-direction: column;
    height: 800px;
  }

  .accordion-wrapper:hover .accordion-item {
    flex: 1;
  }

  .accordion-wrapper .accordion-item:hover {
    flex: 3;
  }

  .label {
    opacity: 1 !important;
    font-size: 18px;
  }

}

/* ===================================== HOME ABOUT SECTION START===================================== */
/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Raleway:wght@300;400;500&display=swap');

.about-section {
  padding: 30px 20px;
  background-color: #f9f9f9; /* Light background to match the image */
  display: flex;
  justify-content: center;
}

.about-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 60px; /* Space between text and image */
}

/* Left Content Styles */
.about-content {
  flex: 1;
}

.section-tag {
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  color: #666;
  margin-bottom: 10px;
}

.about-title {
  font-family: "Italiana", serif;
  font-size: clamp(40px, 5vw, 42px);
  font-weight: 400;
  color: #1a1a1a;
  margin: 0 0 10px 0;
}

.about-text {
  font-family: "Raleway", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  margin-bottom: 40px;
}

.about-text p {
  margin-bottom: 20px;
}

/* Button Style */
.btn-learn {
  display: inline-block;
  padding: 15px 35px;
  background-color: #CD9933; /* Blueish-grey from your image */
  color: #ffffff;
  text-decoration: none;
  font-family: "Raleway", sans-serif;
  font-weight: 500;
  border-radius: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-learn:hover {
  background-color: #0A3616;
  transform: translateY(-2px);
}

/* Right Image Styles */
.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  /* box-shadow: 0 10px 30px rgba(0,0,0,0.05); Soft shadow */
}

/* Responsive Tablet/Mobile Design */
@media (max-width: 992px) {
  .about-container {
    flex-direction: column; /* Stack vertically */
    gap: 40px;
    text-align: center;
  }

  .about-content {
    order: 2; /* Text goes below image on mobile */
  }

  .about-image {
    order: 1;
    width: 100%;
  }

  .about-text {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ===================================== HOME WHY CHOOSE US SECTION START===================================== */
/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Raleway:wght@300;400;600&family=Inter:wght@300;400&display=swap');

/* =====================================
   SERVICE HEADER
===================================== */

.service-header {
  text-align: center;
  margin: 0 auto 10px auto; /* center the block */
  max-width: 900px;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.service-subheading {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: center;
}

.service-main-heading {
  font-family: "Italiana", serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.1;
  text-align: center;
}

/* =====================================
   STATS SECTION
===================================== */

.stats-section {
  position: relative;
  padding: 30px 20px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  
  background-image: url('../images/bg.jpg'); 
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* Parallax effect */

  color: #ffffff;
  overflow: hidden;
  background-color: #444; /* Fallback color if image fails */
}

/* Dark Overlay */
.stats-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); 
  z-index: 1;
}

/* Container */
.stats-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

/* Header */
.stats-header {
  margin-bottom: 20px;
}

.stats-sub-tag {
  font-family: "Raleway", sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 15px;
  text-align: center;
}

.stats-main-title {
  font-family: "Italiana", serif;
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 400;
  margin: 0;
  text-align: center;
}

/* =====================================
   STATS GRID
===================================== */

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
}

.stat-item {
  flex: 1;
  min-width: 200px;
}

.stat-number {
  font-family: "Italiana", serif;
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  margin-bottom: 10px;
}

.stat-label {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 300;
  opacity: 0.9;
  letter-spacing: 0.5px;
}

/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 768px) {

  .stats-section {
    padding: 40px 20px;
    background-attachment: scroll;
  }

  .stats-grid {
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .stat-item {
    width: 100%;
  }

}


/* ===================================== HOME SERVICE SECTION START===================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700&display=swap');

.segmented-service-section {
  width: 100%;
  overflow-x: hidden;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.service-grid {
  display: flex;
  width: 100%;
  height: 600px;
}

.service-card {
  flex: 1;
  height: 100%;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

/* DESKTOP VIEW: Flip logic active */
@media (min-width: 1025px) {
  .service-card:hover .card-inner {
    transform: rotateY(180deg);
  }
}

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Desktop Front Styles */
.card-front {
  background-image: url('../images/bg.jpg'); 
  background-size: 600% 100%; 
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.f1 { background-position: 0% 0%; }
.f2 { background-position: 20% 0%; }
.f3 { background-position: 40% 0%; }
.f4 { background-position: 60% 0%; }
.f5 { background-position: 80% 0%; }
.f6 { background-position: 100% 0%; }

.card-front::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 50%);
}

.front-label {
  color: #fff;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.front-label h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0; font-weight: 700; }

/* Desktop Back Styles */
.card-back {
  background-color: #CD9933; 
  color: #fff;
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.info-icon { font-size: 40px; margin-bottom: 20px; color: #fff; }
.card-info { text-align: center; }
.card-info h3 { font-size: 20px; font-weight: 700; margin-bottom: 15px; }
.card-info p { font-size: 14px; line-height: 1.6; opacity: 0.9; }

/* --- TABLET VIEW: 2 cards per row, no flip --- */
@media (min-width: 601px) and (max-width: 1024px) {
  .service-grid {
    flex-wrap: wrap;
    height: auto;
    padding: 30px;
    gap: 20px;
  }

  .service-card {
    flex: 0 0 calc(50% - 10px); /* Exactly 2 cards per row */
    height: auto;
  }

  .card-inner {
    transform: none !important;
    height: auto;
  }

  .card-front { display: none; }

  .card-back {
    position: relative;
    transform: none;
    background-color: #f9f9f9;
    color: #1a1a1a;
    border-radius: 12px;
    padding: 40px 25px;
    border: 1px solid #eaeaea;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  }

  .info-icon { color: #0C63CE; }
  .card-info h3 { color: #000; font-size: 20px; }
  .card-info p { color: #555; }
}

/* --- MOBILE VIEW: 1 card per row, no flip --- */
@media (max-width: 600px) {
  .service-grid {
    flex-direction: column;
    height: auto;
    padding: 20px;
    gap: 15px;
  }

  .service-card { height: auto; width: 100%; }
  .card-inner { transform: none !important; height: auto; }
  .card-front { display: none; }

  .card-back {
    position: relative;
    transform: none;
    background-color: #f9f9f9;
    color: #1a1a1a;
    border-radius: 12px;
    padding: 35px 20px;
    border: 1px solid #eaeaea;
  }

  .info-icon { color: #0C63CE; margin-bottom: 10px; }
  .card-info h3 { font-size: 19px; }
  .card-info p { font-size: 14px; }
}

/* ===================================== HOME TESTIMONIALS SECTION START===================================== */
/* Updated Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Italiana&family=Raleway:ital,wght@0,400;0,600;0,700;1,400&family=Syne:wght@700&family=Inter:wght@400;700&display=swap');

.testimonial-section {
  background-color: #ffffff;
  padding: 30px 0 30px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden; 
}

.testimonial-header {
  text-align: center;
  margin-bottom: 10px;
  max-width: 900px;
  padding: 0 20px;
}

.testimonial-subheading {
  font-family: "Raleway", sans-serif;
  font-size: 18px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
}

.testimonial-main-heading {
  font-family: "Italiana", serif;
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.1;
}

/* --- Slider Core --- */
.testimonial-slider {
  width: 100%;
  padding: 45px 0 75px 0 !important; 
  cursor: grab;
  position: relative;
}

.testimonial-slider:active { cursor: grabbing; }

.testimonial-card {
  background: #fdfdfd;
  border-radius: 30px;
  padding: 20px 10px 10px 85px;
  position: relative;
  border: 1px solid #eaeaea;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  min-height: 200px;
  display: flex;
  align-items: center;
  margin-left: 10px;
  opacity: 0.3;
  transform: scale(0.85);
  filter: grayscale(100%);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.swiper-slide-active .testimonial-card {
  opacity: 1;
  transform: scale(1.03); 
  filter: grayscale(0%);
  border-color: #0A3616;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

/* Overlaps */
.profile-offset {
  position: absolute;
  left: -45px; 
  top: 50%;
  transform: translateY(-50%);
  width: 120px; 
  height: 120px;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 5;
}

.profile-offset img { width: 100%; height: 100%; object-fit: cover; }

.stars-offset {
  position: absolute;
  top: -24px; 
  right: 25px;
  background: #ffffff;
  padding: 10px 22px;
  border-radius: 15px;
  border: 1px solid #b9d9ff;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  z-index: 5;
}

.star-icon { color: #ffb400; font-size: 0.9rem; letter-spacing: 3px; }

/* Updated Typography for User Details */
.user-name { 
  color: #000; 
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem; 
  margin: 0 0 2px 0; /* Reduced margin to bring location closer */
  font-weight: 700; 
}

.user-location {
  font-family: "Raleway", sans-serif;
  color: #0A3616; /* Corporate blue */
  font-size: 0.6rem;
  margin: 0 0 12px 0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.user-text { 
  color: #555; 
  font-family: "Raleway", sans-serif;
  font-size: 1rem; 
  line-height: 1.6; 
  margin: 0; 
  font-style: italic; 
}

/* --- Pagination Fix --- */
.swiper-pagination {
  bottom: 40px !important;
  z-index: 20 !important;
  pointer-events: all !important;
}

.swiper-pagination-bullet {
  width: 12px; height: 12px;
  background: #0A3616 !important;
  opacity: 0.2;
  transition: all 0.3s ease;
  cursor: pointer !important;
}

.swiper-pagination-bullet-active { opacity: 1; width: 35px; border-radius: 10px; }

@media (max-width: 768px) {
  .testimonial-card { padding-left: 85px; margin-left: 45px; margin-right: 15px; }
  .profile-offset { width: 100px; height: 100px; left: -40px; }
}