/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #f9f9f9;
}

/* Container styles */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header styles */
header {
  background: #121858;
  color: #fff;
  padding: 1rem 0;
}

header h1 {
  font-size: 1.8rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

/* Hero section */
.hero {
  background: linear-gradient(to right, #121858, #3f51b5);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

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

.hero .btn {
  background: #ffbd00;
  color: #000;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 1rem;
  display: inline-block;
  text-decoration: none;
  transition: background 0.3s ease;
}

.hero .btn:hover {
  background: #e6a800;
}

/* Services section */
.services {
  background: #fff;
  padding: 3rem 0;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.service-boxes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service {
  background: #f1f1f1;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.service i {
  font-size: 2.5rem;
  color: #121858;
  margin-bottom: 1rem;
}

/* About section */
.about {
  padding: 3rem 1rem;
  background: #fff;
  text-align: center;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Blog section */
.blog {
  padding: 3rem 1rem;
  background: #f9f9f9;
  text-align: center;
}

.blog h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.blog-post {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.blog-post img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.blog-post:hover img {
  transform: scale(1.05);
}

.blog-post a {
  background: #ffbd00;
  color: #000;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.blog-post a:hover {
  background: #e6a800;
}

/* Team section */
.team {
  padding: 3rem 1rem;
  background: #fff;
  text-align: center;
}

.team h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.team p {
  margin-bottom: 2rem;
}

.team-grid {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
}

.team-member {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  max-width: 300px;
}

.team-member img {
  width: 100%;
  max-width: 160px;
  height: 192px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member img:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Testimonials section */
.testimonials {
  background: #f9f9f9;
  padding: 3rem 0;
  text-align: center;
}

.testimonials h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

.testimonial-card {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 320px;
  margin: 0 auto;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.testimonial-image {
  width: 100%;
  max-width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  transition: opacity 0.3s ease;
}

.testimonial-quote {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
  line-height: 1.5;
}

.testimonial-name {
  font-weight: 600;
  color: #121858;
}

/* Contact section */
.contact {
  padding: 3rem 1rem;
  background: #fff;
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact form {
  max-width: 500px;
  margin: 0 auto;
  animation: fadeIn 1s ease-in-out;
}

.contact input,
.contact textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #ffffff;
  color: #222;
}

.contact input:focus,
.contact textarea:focus {
  border-color: #121858;
  outline: none;
  box-shadow: 0 0 5px rgba(18, 24, 88, 0.3);
}

.contact textarea {
  resize: vertical;
  min-height: 120px;
}

.contact button {
  background: #ffbd00;
  color: #000;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact button:hover {
  background: #e6a800;
}

/* Footer styles */
footer {
  background: #121858;
  color: #fff;
  padding: 3rem 0;
}

.footer-about,
.footer-links,
.footer-contact,
.footer-subscribe {
  animation: fadeIn 1s ease-in-out;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffbd00;
}

.footer-contact p {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: #ffbd00;
}

.footer-subscribe form input {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  background-color: #ffffff;
  color: #222;
}

.footer-subscribe form button {
  background: #ffbd00;
  color: #000;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.footer-subscribe form button:hover {
  background: #e6a800;
}

/* Tailwind class overrides */
.bg-white {
  background-color: #ffffff;
}

.bg-gray-100 {
  background-color: #f7fafc;
}

.bg-gray-700 {
  background-color: #e2e8f0;
}

.text-gray-600 {
  color: #4a5568;
}

.text-gray-800 {
  color: #1a202c;
}

.border-gray-300 {
  border-color: #e2e8f0;
}

.border-gray-600 {
  border-color: #cbd5e0;
}

.bg-indigo-900 {
  background-color: #3c366b;
}

.bg-indigo-800 {
  background-color: #4c51bf;
}

.text-white {
  color: #ffffff;
}

/* Animations */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive styles */
@media (max-width: 1024px) {
  .testimonial-card {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-about,
  .footer-links,
  .footer-contact,
  .footer-subscribe {
    text-align: center;
  }

  .footer-about .flex {
    justify-content: center;
  }

  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-subscribe form {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-subscribe input,
  .footer-subscribe button {
    width: 100%;
    max-width: 300px;
  }

  .contact form {
    max-width: 100%;
  }

  .testimonial-grid,
  .team-grid,
  .blog .grid {
    flex-direction: column;
    align-items: center;
  }

  .testimonial-card,
  .team-member,
  .blog-post {
    max-width: 100%;
  }

  .team-member img {
    max-width: 140px;
    height: 168px;
  }

  .blog-post img {
    height: 10rem;
  }
}

@media (max-width: 640px) {
  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .services h2,
  .about h2,
  .blog h2,
  .team h2,
  .testimonials h2,
  .contact h2 {
    font-size: 1.75rem;
  }

  .service,
  .team-member,
  .testimonial-card,
  .blog-post {
    padding: 1rem;
  }

  .team-member img {
    max-width: 120px;
    height: 144px;
  }

  .testimonial-image {
    max-width: 80px;
    height: 80px;
  }

  .blog-post img {
    height: 8rem;
  }
}