/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  font-family: 'Segoe UI', 'Montserrat', sans-serif;
  /* background: #f7f9fc; */
  color: #222;
  overflow-x: hidden;
}




/* ================= HERO ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #23ab4b, #010602);
  padding: 0 20px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('../assets/images/ourservices-heroimage.webp') center/cover no-repeat;
  opacity: 0.25;
  z-index: 0;
  transform: scale(1.1);
  animation: zoomOnce 1.5s ease forwards;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: auto;
}

.hero h1 {
  font-size: 60px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 30px;
}

/* BUTTONS */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
}

.hero .btn.primary {
  background: #22c55e;
  color: #fff;
}

.hero .btn.primary:hover {
  background: #15803d;
  transform: translateY(-2px);
}

/* TEXT ANIMATION */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 0.8s ease forwards;
}

.delay { animation-delay: 0.3s; }
.delay2 { animation-delay: 0.6s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoomOnce {
  from { transform: scale(1.2); }
  to { transform: scale(1); }
}

/* ================= SERVICES ================= */
.services-header {
  text-align: center;
  margin: 20px 0;
}


.services-title {
  font-size: 36px;
  font-weight: 700;
 color: #005B1F
}

/* FLEX GRID (CENTER FIXED) */
.cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* CENTER ALL ROWS */
  gap: 1.5rem;
  max-width: 1400px;   /* keeps content centered */
  margin: 2rem auto;   /* center horizontally */
  padding: 0 20px;     /* 👈 LEFT & RIGHT SPACE ONLY */
}

/* CARD */
.service-card {
  flex: 1 1 calc(25% - 1.5rem);
  max-width: calc(25% - 1.5rem);

  background: linear-gradient(135deg, #e8f5e9, #c8e6c9, #a5d6a7);
  padding: 1.2rem;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.07);
  text-align: center;
  transition: all 0.3s ease;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* ICON */
.icon-circle {
  width: 50px;
  height: 50px;
  background: #f1f8f3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  color: #4CAF50;
  margin: 0 auto 1rem;
}

.card-title {
  font-size: 22px;
  font-weight: 600;
  color: #000;
}

.card-list {
  text-align: left;
  font-size: 0.9rem;
  margin: 10px 0;
  padding-left: 18px;
}

.btn-card {
  background: #4CAF50;
  color: #fff;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  margin-top: auto;
}

.btn-card:hover {
  background: #388e3c;
}

/* ================= SPOTLIGHT ================= */

.services-spotlight
{
  padding: 30px 20px;
  text-align: center;
  background: linear-gradient(135deg, #b9f3cf, #c8e6c9)
}


.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #005B1F
}

.section-sub {
  font-size: 1rem;
  color: #333;
  margin-top: 10px;
}

/* GRID */
.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
  perspective: 1000px;
}

/* FLIP CARD */
.spotlight-card {
  position: relative;
  width: 100%;
  height: 300px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.spotlight-card:hover {
  transform: rotateY(180deg);
}

/* FRONT (GREEN GRADIENT) */
.card-front {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  background: linear-gradient(135deg, #43a047, #2e7d32);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* BACK */
/* UPDATED CARD BACK */
/* BACK CARD FIX - Is section ko replace karein */
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  backface-visibility: hidden;
  background: #e8f5e9;
  color: #2e7d32;
  transform: rotateY(180deg);

  /* Alignment Fixes */
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important; /* Elements ko center mein layega */
  align-items: center !important;
  padding: 20px;
  box-sizing: border-box;
}

/* Back side ke andar ke elements ka gap */
.card-back p {
  margin-bottom: 15px !important; /* Paragraph aur Button ke beech gap */
  font-size: 0.95rem;
  line-height: 1.4;
}

.card-back .btn-card {
  margin-top: 0 !important; /* Purane margin ko reset karne ke liye */
  width: fit-content;
}
/* ================= CTA ================= */
.ready-cta {
  margin: 60px auto;
  padding: 3rem 2rem;
  border-radius: 20px;
  text-align: center;
  background: linear-gradient(135deg, #e3f2fd, #c8e6c9);
  max-width: 1200px;
}

.cta-title {
  font-size: 2rem;
  color: #1b5e20;
}

.cta-sub {
  margin-top: 10px;
  color: #2e7d32;
}

.cta-actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

/* BUTTONS */
.btn-primary,
.btn-phone {
  padding: 12px 20px;
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: #1b5e20;
}

.btn-phone {
  background: #388e3c;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .service-card {
    flex: 1 1 calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }

  .service-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
}






/* ================= KEYFRAMES ================= */

/* Smooth text reveal */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Background zoom only once */
@keyframes zoomOnce {
  from {
    transform: scale(1.2);
  }
  to {
    transform: scale(1);
  }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .hero p { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .hero p { font-size: 15px; }
}

@media (max-width: 360px) {
  .hero h1 { font-size: 26px; }
}


/* RESPONSIVE */
@media(max-width:768px){
  .cta-title { font-size: 1.5rem; }
  .cta-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary,
  .btn-phone {
    width: 100%;
    justify-content: center;
  }
}