/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styles */
body {
  font-family: 'Roboto', sans-serif;
  background-color: #f4f4f9;
  color: #333;
  line-height: 1.6;
  text-align: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  background-color: #f8f9fa;
  flex-direction: column;
}

/* Header Section */
.header-container {
  margin: 30px auto;
  padding: 20px;
  text-align: center;
}

.animated-header {
  font-size: 3rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #0c3572;
  border-bottom: 3px solid #0c3572;
  animation: slideIn 1.5s ease-out, bounce 1s ease-in-out 1.5s;
}

/* Services Section */
.services {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
}

.service-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.service-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  padding: 10px;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item img {
  margin-right: 12px;
  width: 30px; /* Size of the logo */
  height: auto;
}

.service-item:hover {
  background-color: #0c3572;
  color: white;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Container Section */
.conttainer {
  display: flex;
  flex-wrap: wrap;
  max-width: 1500px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin-bottom: 20px;
  width: 100%;
  padding: 20px;
}

/* Text Section */
.text-section {
  flex: 1;
  padding: 40px;
  text-align: left;
}

.text-section h2 {
  color: #0c3572;
  font-size: 24px;
  margin-bottom: 10px;
}

.text-section h1 {
  color: #333;
  font-size: 32px;
  margin-bottom: 20px;
}

.text-section p {
  color: #666;
  font-size: 16px;
  line-height: 1.6;
}

/* Image Section */
.image-section {
  flex: 1;
  position: relative;
}

.image-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

/* Info Box */
.info-box {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: #0c3572;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  max-width: 300px;
}

.info-box p {
  margin: 0 0 10px;
  font-size: 14px;
}

/* Media Queries */

/* For tablets and smaller devices (max-width: 1024px) */
@media (max-width: 1024px) {
  .conttainer {
      flex-direction: column;
      align-items: center;
      padding: 10px;
  }

  .text-section {
      padding: 15px;
  }

  .image-section {
      margin-top: 15px;
      flex: 1 1 100%;
  }

  .text-section h1 {
      font-size: 26px;
  }

  .text-section p {
      font-size: 14px;
  }

  .service-container {
      flex-direction: column;
  }

  .service-item {
      font-size: 16px;
  }
}

/* For mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  .conttainer {
      flex-direction: column;
      align-items: center;
  }

  .text-section, .image-section {
      flex: 1 1 100%;
      padding: 15px;
  }

  .text-section h1 {
      font-size: 24px;
  }

  .text-section p {
      font-size: 14px;
  }

  .info-box {
      position: static;
      margin-top: 20px;
      max-width: 100%;
  }

  .service-container {
      flex-direction: column;
      gap: 15px;
  }

  .service-item {
      font-size: 14px;
      justify-content: center;
  }

  .service-item img {
      margin-right: 10px;
      width: 25px; /* Adjust logo size */
  }
}

/* For very small mobile devices (max-width: 480px) */
@media (max-width: 480px) {
  .conttainer {
      padding: 10px;
  }

  .text-section h1 {
      font-size: 20px;
  }

  .text-section p {
      font-size: 12px;
  }

  .service-container {
      flex-direction: column;
      gap: 10px;
  }

  .service-item {
      font-size: 12px;
      justify-content: center;
  }

  .service-item img {
      margin-right: 8px;
      width: 20px; /* Further reduce logo size */
  }

  .info-box {
      font-size: 12px;
      padding: 15px;
  }
}
