/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: #f9fafc;
  color: #333;
  overflow-x: hidden;
  text-align: center;
}

/* HEADER */
header {
  background: linear-gradient(135deg, #0079c1, #2c8ed6);
  padding: 60px 20px 80px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
}

header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05), transparent);
  pointer-events: none;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: fadeDown 1.2s ease both;
}

.logo {
  height: 70px;
  margin-bottom: 15px;
  animation: floatLogo 4s ease-in-out infinite;
}

.page-title {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* GRID */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 60px;
  max-width: 1200px;
  margin: 80px auto;
  padding: 0 20px;
}

.grid-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.grid-item:nth-child(1) { animation-delay: 0.3s; }
.grid-item:nth-child(2) { animation-delay: 0.5s; }
.grid-item:nth-child(3) { animation-delay: 0.7s; }
.grid-item:nth-child(4) { animation-delay: 0.9s; }
.grid-item:nth-child(5) { animation-delay: 1.1s; }

.grid-item img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.6s ease;
  animation: float 4s ease-in-out infinite;
}

.grid-item h3 {
  color: #1e74bc;
  font-size: 18px;
  margin-top: 15px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.grid-item p {
  font-size: 14px;
  color: #555;
  max-width: 220px;
  margin: 10px auto 0;
  opacity: 0.85;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* HOVER EFFECTS */
.grid-item:hover {
  transform: translateY(-12px);
}

.grid-item:hover img {
  transform: scale(1.2) rotate(2deg);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.2);
  filter: brightness(1.15) contrast(1.15);
}

.grid-item:hover h3 {
  color: #105a94;
  transform: translateY(-6px);
}

.grid-item:hover p {
  opacity: 1;
  transform: translateY(-4px);
}

/* FLOATING ANIMATIONS */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* FADE IN / ENTRANCE */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  header {
    padding: 40px 20px 60px;
  }

  .logo {
    height: 60px;
  }

  .page-title {
    font-size: 28px;
  }

  .grid-container {
    gap: 30px;
  }

  .grid-item img {
    width: 150px;
    height: 150px;
  }
}
