:root {
  --primary: #0f62fe;
  --light: #f9f9f9;
  --dark: #111;
}

/* ========== HERO SECTION ========== */
.hero {
  background: linear-gradient(to right, #0f62fe, #0353e9);
  color: white;
  text-align: center;
  padding: 5rem 2rem;
  animation: fadeInSlide 1s ease-out both;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: slideInUp 1s ease-out 0.2s both;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
  animation: slideInUp 1s ease-out 0.4s both;
}

.btn {
  background: white;
  color: var(--primary);
  padding: 0.9rem 1.6rem;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
  background: #e0e0e0;
  transform: scale(1.05);
}

.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cards per row for laptop/desktop */
  gap: 1.5rem; /* reduced gap */
  max-width: 900px; /* slightly smaller width */
  margin: 0 auto;
  padding: 2rem 1rem;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.3s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-img-wrapper {
  width: 100%;
  height: 110px; /* smaller image height */
  overflow: hidden;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card h3 {
  font-size: 1rem;
  margin: 0.6rem 1rem 0.3rem;
}

.service-card p {
  font-size: 0.85rem;
  margin: 0 1rem 1rem;
  color: #555;
}


/* Tablet & Mobile: 1 card per row */
@media (max-width: 768px) {
  .services {
    grid-template-columns: 1fr; /* stack on small screens */
    padding: 1.5rem 1rem;
  }

  .service-img-wrapper {
    height: 100px;
  }

  .service-card h3 {
    font-size: 1rem;
  }

  .service-card p {
    font-size: 0.85rem;
  }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
  .service-img-wrapper {
    height: 90px;
  }

  .service-card h3 {
    font-size: 0.95rem;
  }

  .service-card p {
    font-size: 0.8rem;
  }
}



/* ========== ANIMATIONS ========== */
@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 1024px) {
  .hero h2 {
    font-size: 2.5rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1.5rem;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 0.7rem 1.3rem;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero h2 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 0.95rem;
  }


}
@media (max-width: 768px) {
  .services {
    grid-template-columns: 1fr; /* 1 column on small screens */
  }
}


/* Base layout for desktop */
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 20vh;
  padding: 40px;
  gap: 40px;
  flex-direction: row;
}

.banner-image {
  flex: 1;
  background: url('../Images/seo.jpg') no-repeat center center/cover;
  height: 100%;
  border-radius: 12px;
  min-height: 300px;
}

.banner-text {
  flex: 1;
  padding: 40px;
  text-align: right;
}

.banner-text h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.banner-text p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.cta-button {
  padding: 12px 24px;
  background: #0073e6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
}

/* Media Query: Mobile & Tablets */
@media (max-width: 768px) {
  .banner {
    flex-direction: column;
    height: auto;
    padding: 20px;
  }

  .banner-image {
    width: 100%;
    height: 100px;
  }

  .banner-text {
    padding: 10px 0;
    text-align: center;
  }

  .banner-text h1 {
    font-size: 1.5rem;
  }

  .banner-text p {
    font-size: 1rem;
  }
}
