/* index.css */

/* Font Import (Add this to <head> in index.html if not in global.css) */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* Header Section (Hero) */
header[role="banner"] {
  position: relative;
  min-height: 75vh;
  max-width: 90%;
  margin: 0 auto;
  margin-top: 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--light);
  padding: 4rem 2rem;
  border-radius: 30px;
  overflow: hidden;
  text-align: center;
  z-index: 1;
  box-shadow: var(--shadow-dark);
  background-color: #000;
}

.header-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
}

.header-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 1.2s ease-in-out, transform 1.2s ease-in-out;
  transform: scale(1.05);
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  will-change: opacity, transform;
}

.header-image.active {
  opacity: 1;
  transform: scale(1);
}

header[role="banner"] img {
  display: block;
  max-width: 100%;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 5;
  padding: 8px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-light);
}

.dot {
  width: 12px;
  height: 12px;
  background: var(--light);
  border: 2px solid var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  border-color: var(--dark);
  transform: scale(1.2);
}

.dot:hover,
.dot:focus {
  background: var(--tertiary);
  border-color: var(--dark);
  transform: scale(1.2);
  outline: none;
}

.header-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  backdrop-filter: blur(5px);
  box-shadow: var(--shadow-light);
  animation: fadeInUp 1.5s ease-in-out;
}

.header-content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
  animation: pulse 2s infinite alternate;
}

@keyframes pulse {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}

.header-content p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  animation: fadeInUp 2s ease-in-out;
}

/* Call-to-Action Buttons */
.cta-buttons {
  display: flex;
  gap: 1.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--dark);
  background: var(--accent);
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-light);
}

.cta-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark);
}

.cta-button:active {
  transform: translateY(0);
}

/* Learn more button */
.learn-more {
  max-width: 250px;
}

/* Services Preview */
.services-preview-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
  justify-content: center;
}

.service-preview {
  background: var(--light);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 280px;
  max-width: 320px;
}

.service-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 80% 20%, rgba(78, 205, 196, 0.15), transparent);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-preview:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-dark);
}

.service-preview:hover::before {
  opacity: 1;
}

.service-image {
  width: 100%;
  max-width: 220px;
  height: 16rem;
  margin-bottom: 1.2rem;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.service-preview:hover .service-image {
  transform: scale(1.03);
}

.service-preview h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.service-preview p {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.5;
}

.service-preview .learn-more-link {
  display: inline-block;
  margin-top: 1.2rem;
  color: var(--secondary);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-preview:hover h3,
.service-preview:hover .learn-more-link {
  color: var(--accent);
}

.service-preview:hover .learn-more-link {
  transform: translateX(4px);
}

/* Why Choose Us */
.why-choose-us-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  max-width: 1400px;
  margin: 5rem auto;
  padding: 0 2rem;
}

.why-choose-us-item {
  background: var(--light);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.why-choose-us-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(78, 205, 196, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.why-choose-us-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-dark);
}

.why-choose-us-item:hover::before {
  opacity: 1;
}

.why-choose-us-item i {
  font-size: 2.8rem;
  color: var(--tertiary);
  margin-bottom: 1.2rem;
}

.why-choose-us-item h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.why-choose-us-item p {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--dark);
  line-height: 1.5;
}

.why-choose-us-item:hover i,
.why-choose-us-item:hover h3 {
  color: var(--accent);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .services-preview-container {
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .service-preview {
    max-width: 300px;
  }
}

@media (max-width: 1024px) {
  header[role="banner"] {
    min-height: 65vh;
    max-width: 92%;
    margin-top: 4.5rem;
  }
  .header-content h1 {
    font-size: 2.5rem;
  }
  .header-content p {
    font-size: 1.1rem;
  }
  .services-preview-container {
    padding: 0 1.5rem;
  }
  .why-choose-us-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 0 1.5rem;
  }
}

@media (max-width: 768px) {
  /* Header */
  header[role="banner"] {
    min-height: 60vh;
    max-width: 94%;
    margin-top: 4rem;
    padding: 3rem 1rem;
  }
  .header-content {
    padding: 2rem 1rem;
    max-width: 700px;
  }
  .header-content h1 {
    font-size: 2.2rem;
  }
  .header-content p {
    font-size: 1rem;
  }
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .cta-button {
    padding: 0.7rem 1.4rem;
    font-size: 1rem;
  }
  .slider-dots {
    bottom: 15px;
    gap: 8px;
    padding: 6px 10px;
  }
  .dot {
    width: 10px;
    height: 10px;
  }

  /* Services Preview */
  .services-preview-container {
    flex-direction: column;
    gap: 2rem;
    padding: 0 1rem;
  }
  .service-preview {
    max-width: 100%;
    padding: 1.5rem;
  }
  .service-image {
    max-width: 180px;
    height: 14rem;
  }
  .service-preview h3 {
    font-size: 1.3rem;
  }
  .service-preview p {
    font-size: 0.95rem;
  }
  .service-preview .learn-more-link {
    font-size: 0.95rem;
  }

  /* Why Choose Us */
  .why-choose-us-container {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 1rem;
  }
  .why-choose-us-item {
    padding: 1.5rem;
  }
  .why-choose-us-item i {
    font-size: 2.5rem;
  }
  .why-choose-us-item h3 {
    font-size: 1.3rem;
  }
  .why-choose-us-item p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  /* Header */
  header[role="banner"] {
    min-height: 55vh;
    max-width: 96%;
    margin-top: 3rem;
    padding: 2rem 0.8rem;
  }
  .header-content {
    padding: 1.5rem 0.8rem;
    max-width: 100%;
  }
  .header-content h1 {
    font-size: 1.8rem;
  }
  .header-content p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  .cta-button {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  .slider-dots {
    bottom: 10px;
    gap: 6px;
    padding: 4px 8px;
  }
  .dot {
    width: 8px;
    height: 8px;
  }

  /* Services Preview */
  .services-preview-container {
    margin: 3rem auto;
    padding: 0 0.8rem;
  }
  .service-preview {
    padding: 1.2rem;
    min-width: 0; /* Allow full flexibility */
  }
  .service-image {
    max-width: 150px;
    height: 12rem;
  }
  .service-preview h3 {
    font-size: 1.2rem;
  }
  .service-preview p {
    font-size: 0.9rem;
  }
  .service-preview .learn-more-link {
    font-size: 0.9rem;
    margin-top: 1rem;
  }

  /* Why Choose Us */
  .why-choose-us-container {
    margin: 3rem auto;
    padding: 0 0.8rem;
  }
  .why-choose-us-item {
    padding: 1.2rem;
  }
  .why-choose-us-item i {
    font-size: 2.2rem;
  }
  .why-choose-us-item h3 {
    font-size: 1.2rem;
  }
  .why-choose-us-item p {
    font-size: 0.9rem;
  }
}

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