html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f5f5f5;
}

main {
  flex: 1;
}

.container {
  max-width: 1000px;
  margin: auto;
  padding: 2rem;
}

.header, .footer {
  background: #ffffff00;
  color: rgb(17, 17, 17);
  padding: 1rem;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
}

nav a {
  color: rgb(0, 0, 0);
  margin-right: 1rem;
  text-decoration: none;
}
.hero {
  position: relative;
  height: 70vh;
  background-image: url("../images/MarcelBG.webp");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* Dark overlay for readability */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 1rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.card {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  white-space: pre-line;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
} 
.card img {
  width: 100%;
  /* height: 270px; */
  aspect-ratio: 3 / 4;
  /* object-fit: cover; */
  object-fit: contain;
  background: #eee;
  border-radius: 6px;
  transition: transform 0.3s ease;
}
.card:hover img {
  transform: scale(1.05);
}

.links a {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.9rem;
}
.links {
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.card:hover .links {
  opacity: 1;
}

/* larger screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1200px;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
}
/* Tablet and smaller screens */
@media (max-width: 768px) {
  .hero {
    height: 50vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .container {
    padding: 1.5rem;
  }

  /* .card img {
    height: 220px;
  } */
}
/* Mobile screens */
@media (max-width: 480px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    margin-top: 0.5rem;
  }

  .hero {
    height: 45vh;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .container {
    padding: 1rem;
  }

  /* .card img {
    height: 200px;
  } */
}