/* index.css - Services page styles only */

/* index.css - Enhanced with variables - Single Column Layout */
:root {
  --image-height-lg: 500px;
  --image-height-md: 400px;
  --image-height-sm: 350px;
  --image-height-xs: 300px;
  --service-max-width: 900px;
}

/* ===== HOMEPAGE CENTERING ===== */
/* Center main container */
main.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

/* Center all sections */
.hero,
.services-section,
.cta-section {
  text-align: center;
  margin: 0 auto;
}

/* Center hero content */
.hero h1,
.hero-subtitle,
.hero-stats {
  text-align: center;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  color: #333;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #666;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Center hero stats */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 3rem auto;
  max-width: 1000px;
}

.stat {
  text-align: center;
  min-width: 150px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  color: #666;
}

/* Center services section */
.services-section h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.section-intro {
  font-size: 1.3rem;
  color: #666;
  max-width: 800px;
  margin: 0 auto 3rem;
  text-align: center;
}

/* ===== LAYOUT & CONTAINERS ===== */
main {
  padding: 2rem 0;
  min-height: 70vh;
}

/* Single column layout - each service takes full attention */
.services-container {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
  margin-top: 2rem;
  max-width: var(--service-max-width);
  margin-left: auto;
  margin-right: auto;
  padding: 0 1.5rem;
}

/* ===== TYPOGRAPHY ===== */
h1 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: var(--primary-black);
  position: relative;
  padding-bottom: 1rem;
}

h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 5px;
  background-color: var(--primary-red);
}

.service-subtitle {
  padding: 2.5rem;
  text-align: center;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-black);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.5;
  min-height: 120px;
}

/* Center service descriptions */
.service-description {
  text-align: center;
  padding: 0 2rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Center service CTA buttons */
.service-cta {
  display: inline-block;
  text-align: center;
  margin: 1rem auto;
  padding: 0.8rem 1.5rem;
  background: #667eea;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s;
}

.service-cta:hover {
  background: #5a67d8;
}

/* ===== CTA SECTION CENTERING ===== */
.cta-section {
  text-align: center;
  padding: 80px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  margin-top: 4rem;
}

.cta-section .container {
  max-width: 800px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-primary {
  background: white;
  color: #667eea;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== SERVICE BOX COMPONENT ===== */
.service-box {
  background: var(--primary-white);
  border-radius: 16px;
  border: 3px solid var(--primary-black);
  overflow: hidden;
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* ===== SERVICE IMAGES ===== */
.service-image1,
.service-image2,
.service-image3,
.service-image4,
.service-image5 {
  width: 100%;
  object-fit: contain;
  border-bottom: 3px solid var(--primary-black);
  display: block;
  background-color: #f8f9fa;
  height: var(--image-height-lg);
}

/* Individual height adjustments using CSS variables */
.service-image1 {
  height: var(--image-height-lg);
} /* 500px */
.service-image2 {
  height: 800px;
} /* Kept as fixed value */
.service-image3 {
  height: var(--image-height-md);
} /* 400px */

.service-image5 {
  height: var(--image-height-lg);
} /* 500px */
/* Service overlay */
.service-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(102, 126, 234, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.service-image-container {
  position: relative;
}

.service-image-container:hover .service-overlay {
  opacity: 1;
}

.service-overlay i {
  font-size: 3rem;
  color: white;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .services-container {
    gap: 3rem;
    max-width: 800px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-stats {
    gap: 30px;
  }

  .stat {
    min-width: 130px;
  }

  .service-subtitle {
    font-size: 1.6rem;
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  main {
    padding: 1.5rem 0;
  }

  h1 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.3rem;
  }

  .hero-stats {
    gap: 20px;
    margin: 2rem auto;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .services-container {
    gap: 2.5rem;
    padding: 0 1.25rem;
  }

  .service-box {
    border-radius: 14px;
  }

  .service-subtitle {
    padding: 1.75rem;
    font-size: 1.4rem;
    min-height: 100px;
  }

  .service-image1,
  .service-image2,
  .service-image3,
  .service-image4,
  .service-image5 {
    height: var(--image-height-md);
  }

  .cta-section {
    padding: 60px 20px;
  }

  .cta-section h2 {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: 25px;
  }

  .stat {
    min-width: 200px;
  }

  .services-container {
    gap: 2rem;
    padding: 0 1rem;
  }

  .service-box {
    border-width: 2px;
    border-radius: 12px;
  }

  .service-subtitle {
    padding: 1.5rem;
    font-size: 1.3rem;
    min-height: 90px;
  }

  .service-image1,
  .service-image2,
  .service-image3,
  .service-image4,
  .service-image5 {
    height: var(--image-height-sm);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: 1.8rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .service-subtitle {
    font-size: 1.2rem;
    padding: 1.25rem;
    min-height: 80px;
  }

  .service-image1,
  .service-image2,
  .service-image3,
  .service-image4,
  .service-image5 {
    height: var(--image-height-xs);
  }
}

/* Service animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.service-box {
  animation: fadeInUp 0.6s ease-out;
}

.service-box:nth-child(1) {
  animation-delay: 0.1s;
}
.service-box:nth-child(2) {
  animation-delay: 0.2s;
}
.service-box:nth-child(3) {
  animation-delay: 0.3s;
}
.service-box:nth-child(4) {
  animation-delay: 0.4s;
}
.service-box:nth-child(5) {
  animation-delay: 0.5s;
}

/* Fade in for hero */
.hero h1,
.hero-subtitle,
.hero-stats {
  animation: fadeInUp 0.8s ease-out;
}

.hero-subtitle {
  animation-delay: 0.2s;
}

.hero-stats {
  animation-delay: 0.4s;
}
