@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(120deg, #f0f4ff 0%, #ffffff 100%);
  color: #222;
  line-height: 1.6;
}

p {
  font-style: normal;
  font-weight: bold;
}

header {

  position: sticky;
  top: 0;
  background: linear-gradient(90deg, #ffffff, #f0f4ff);
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  animation: slideDown 0.5s ease-in-out;
  transition: box-shadow 0.3s ease;
}

body.scrolled header {
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.15);
}

header .logo img {
  max-height: 50px;
  transition: transform 0.3s ease;
}

header .logo img:hover {
  transform: scale(1.1);
}

header .nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 20px;
}

header .nav-list li {
  font-size: 18px;
}

header .nav-list a {
  text-decoration: none;
  color: #333;
  padding: 15px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  font-weight: bold;
}

header .nav-list a.active {
  background-color: #0056b3;
  color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header .nav-list a:hover {
  background-color: #007BFF;
  color: #fff;
  transform: scale(1.1);
}

header:hover {
  background: #eef2ff;
}

.back-to-main {
  text-align: center;
  margin-top: 20px;
}

.back-to-main .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: #007BFF;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.back-to-main .btn:hover {
  background-color: #0056b3;
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  margin-bottom: 3rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #0056b3;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.gallery img {
  flex: 1 1 calc(33.333% - 1rem);
  max-width: 360px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
    flex-direction: column;
  }

  header .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  header .nav-list a {
    padding: 0.6rem 1.2rem;
    font-size: 16px;
  }

  .gallery img {
    flex: 1 1 calc(50% - 1rem);
  }
}

@media (max-width: 576px) {
  header {
    padding: 0.5rem;
  }

  header .nav-list a {
    padding: 0.4rem 0.8rem;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: 1.8rem;
  }

  header .nav-list a {
    padding: 0.5rem 1rem;
    font-size: 14px;
  }

  .back-to-main .btn {
    padding: 10px 15px;
    font-size: 16px;
  }

  .gallery img {
    flex: 1 1 100%;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
