:root {
  --bg-color: #8cff00;
  --text-color: #333;
  --accent-color: #ff7dd1;
  --header-bg: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
               Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  font-weight: normal;
  font-size: 1rem;
}

header {
  background-color: var(--header-bg);
  padding: 10px;
  border-bottom: 4px solid var(--accent-color);
  text-align: center;
}

.logo {
  width: 100%;
  max-width: 800px; /* limits size on large screens */
  height: auto;
  margin: 0 auto;
  display: block;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  padding: 10px 0;
}

nav a {
  text-decoration: none;
  font-weight: bold;
  color: var(--text-color);
  padding: 8px 14px;
  border-radius: 10px;
  transition: background-color 0.3s ease;
}

nav a:hover,
nav a:focus {
  background-color: var(--accent-color);
  color: white;
  outline: none;
}

main {
  padding: 20px;
}

/* Fade-in animation */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 1s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: cover;
  aspect-ratio: 4 / 3; /* optional but useful for uniform tiles */
  border-radius: 10px;
  border: 4px solid white;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}


.gallery img:hover {
  transform: scale(1.05);
}

footer {
  text-align: center;
  padding: 15px;
  background-color: var(--header-bg);
  border-top: 4px solid var(--accent-color);
  font-size: 0.9em;
}

/* Mobile Responsive */
@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
    line-height: 1.5;
  }
  
  .logo {
    max-width: 180px;
  }

  nav ul {
    flex-direction: column;
  }

  .gallery {
    flex-direction: column;
    align-items: center;
  }

  /* Left align text on mobile for readability */
  .fade-in {
    text-align: left;
    padding: 0 10px;
  }
}
