/* Global Styles */

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background: #fff9af;
  color: #333;
}

/* Hero Section */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center; /* Horizontal center */
  justify-content: center; /* Vertical center */
  background: url("https://images.pexels.com/photos/17824132/pexels-photo-17824132.jpeg")
    center/cover no-repeat;
  text-align: center;
  padding: 100px 20px;
  color: #fff;
}

.hero .logo {
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 50%;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 20px;
}

.hero-btn {
  background-color: #ffcc00;
  color: #004a99;
  padding: 15px 25px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s;
}

.hero-btn:hover {
  background-color: #e6b800;
}

/* Logo & H1 with continuous animation */
.logo,
h1 {
  display: inline-block;
  position: relative;
  overflow: hidden;
  animation: zoomGlow 3s ease-in-out infinite;
}

/* Continuous zoom + glow */
@keyframes zoomGlow {
  0%,
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 5px #fff) drop-shadow(0 0 10px #ffd700)
      drop-shadow(0 0 15px #ff8c00);
  }
  50% {
    transform: scale(1.12);
    filter: drop-shadow(0 0 15px #fff) drop-shadow(0 0 25px white)
      drop-shadow(0 0 35px #ff8c00);
  }
}

/* Shine effect */
.logo::after,
h1::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine 3s infinite; /* animate the pseudo-element */
}

/* Continuous shine */
@keyframes shine {
  0% {
    left: -100%;
  }
  100% {
    left: 150%;
  }
}

/* Main Layout */

main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}

.left,
.right {
  flex: 1 1 400px;
}

/* Carousel */

.carousel {
  position: relative;
  max-width: 450px;
  height: 380px;
  overflow: hidden;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #239ba7;
  background: url("https://images.pexels.com/photos/27307153/pexels-photo-27307153.jpeg")
    center/cover no-repeat;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.carousel_item {
  display: none;
  padding: 10px;
}

.carousel_item img {
  position: inherit;
  max-width: 450px;
  height: 250px;
  border-radius: 8px;
}

.carousel_item p {
  font-style: italic;
  color: white;
  font-weight: bold;
}

.carousel_item footer {
  margin-top: 5px;
  font-weight: bold;
  color: black;
}

.carousel_item.active {
  display: block;
}

/* Points Calculator */

.points form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.points input,
.points select,
.points button {
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.points button {
  background-color: #004a99;
  color: #fff;
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}

.points button:hover {
  background-color: #0066cc;
}

#result {
  font-weight: bold;
  color: red;
}

/* Services Section */

.service-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
}

.card {
  background: #fff;
  padding: 15px;
  flex: 1 1 180px;
  text-align: center;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card h3 {
  margin-top: 10px;
}

/* Consultation Form */

.consultation form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.consultation input,
.consultation textarea,
.consultation button {
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.consultation button {
  background-color: #004a99;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.consultation button:hover {
  background-color: #0066cc;
}

/* Footer */

.footer {
  background-color: #004a99;
  color: #fff;
  text-align: center;
  padding: 15px 0;
}

.footer a {
  color: #fff;
  margin: 0 10px;
  font-size: 1.5rem;
}

.footer a:hover {
  color: #ffcc00;
}

/* Responsive */

@media (max-width: 768px) {
  main {
    flex-direction: column;
  }

  .service-cards {
    flex-direction: column;
  }
}
