* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  color: #ededed;
  background: #081b29;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  background: #051129;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.logo {
  font-size: 25px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  animation: slideRight 1s ease forwards;
  opacity: 0;
}

#menu-icon {
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  display: none;
  z-index: 101;
}

/* ===== NAVBAR ===== */
.navbar {
  display: flex;
  gap: 30px;
}

.navbar a {
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  opacity: 0;
  animation: slideTop 0.5s ease forwards;
  animation-delay: calc(0.2s * var(--i));
}

.navbar a:hover,
.navbar a.active {
  color: #0ef;
}

/* ===== SERVICES SECTION ===== */
#services {
  color: aliceblue;
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 4rem;
}

.sub-title {
  text-align: center;
  font-size: 60px;
  padding-bottom: 50px;
}

.sub-title span {
  color: #0ef;
}

.container {
  padding: 120px 10%;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Responsive 1 to 3 columns */
  grid-gap: 40px;
  margin-top: 50px;
}

.services-list div {
  background-color: transparent;
  padding: 40px;
  font-size: 13px;
  font-weight: 13px;
  border-radius: 20px;
  transition: background 0.5s, transform 0.5s;
  box-shadow: 1px 1px 20px #012290f7, 1px 1px 40px #0053b8f7;
  min-height: 250px;
}

.services-list div:hover {
  transform: translateY(-10px);
}

.services-list div h2 {
  font-size: 30px;
  font-family: 'Times New Roman', Times, serif;
  font-weight: 500;
  margin-bottom: 15px;
  text-align: center;
}

.services-list div p {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
}

.services-list div img {
  width: 250px;
  height: 150px;
  object-fit: contain;
}

.services-list div a {
  text-decoration: none;
  color: #000000;
  font-size: 12px;
  margin-top: 20px;
  display: inline-block;
}

/* ===== BUTTON STYLE ===== */
.read {
  display: inline-block;
  padding: 12px 28px;
  background: #0ef;
  border-radius: 40px;
  font-size: 16px;
  color: #081b29;
  letter-spacing: 1px;
  text-decoration: none;
  font-weight: 600;
  opacity: 0;
  animation: slideTop 1s ease forwards;
  animation-delay: 0.5s;
  box-shadow: 0 0 5px #0ef, 0 0 25px #0ef;
}

.read:hover {
  box-shadow: 0 0 5px cyan, 0 0 25px cyan, 0 0 50px cyan, 0 0 100px cyan, 0 0 200px cyan;
}

/* ===== ANIMATIONS ===== */
@keyframes slideRight {
  0% {
    transform: translateX(-100px);
    opacity: 0;
  }
  100% {
    transform: translateX(0px);
    opacity: 1;
  }
}

@keyframes slideTop {
  0% {
    transform: translateY(-100px);
    opacity: 0;
  }
  100% {
    transform: translateY(0px);
    opacity: 1;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container {
    padding: 80px 5%;
  }

  .service-icon {
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  #menu-icon {
    display: block;
  }

  .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: #051129;
    display: none;
    padding: 10px 0;
  }

  .navbar a {
    margin: 10px 0;
    display: block;
    text-align: center;
  }

  .navbar.active {
    display: flex;
  }

  .services-list {
    grid-template-columns: 1fr;
  }

  .service-icon {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 20px;
  }

  .sub-title {
    font-size: 40px;
  }

  .service-icon {
    max-width: 140px;
  }
}
