* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f4f1eb;
  color: #222222;
}

.navigation {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;
  background-color: darkred;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.nav-links a {
  color: white;
  text-decoration: none;
}

.nav-links a:hover {
  color: #f4f1eb;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background-color: white;
}

.hero {
  height: 500px;

  background-image: url("images/banner.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;

  display: flex;
  align-items: end;
  justify-content: center;
}

.hero-message {
  width: 100%;
  padding: 20px;

  text-align: center;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;

  opacity: 0;
  transition: opacity 0.3s;
}

.hero:hover .hero-message {
  opacity: 1;
}

.content-section {
  max-width: 1000px;
  margin: auto;
  padding: 80px 30px;
}

.profile-photo {
  display: block;
  width: 220px;
  height: 280px;
  margin: 30px auto;

  object-fit: cover;
  border-radius: 43%;
}

#intro p {
  text-align: center;
  font-size: 1.2rem;
  line-height: 1.6;
}

.short-line {
  width: 15rem;
  height: 3px;
  background-color: #9e1b32;
  margin: 15px auto 0;
}

.card-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.card-link {
  flex: 1 1 250px;
  text-decoration: none;
  color: inherit;
}

.card {
  position: relative;
  width: 100%;
  height: 300px;

  overflow: hidden;
  background-color: white;
  cursor: pointer;
  border-radius: 10px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.card-link:hover .card {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text {
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  padding: 20px;

  background-color: rgba(0, 0, 0, 0.65);
  color: white;
}

.card-text h3,
.card-text p {
  margin: 0;
}

.card-text p {
  margin-top: 8px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}

.photo-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 5px;
}

/* Footer */

.footer {
  padding: 30px;
  text-align: center;
  background-color: #222222;
  color: white;
}

.footer p {
  margin: 0;
}

/* Mobile navigation */

@media (max-width: 700px) {
  .navigation {
    justify-content: flex-end;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;

    position: absolute;
    top: 100%;
    left: 0;

    width: 100%;
    padding: 20px;

    flex-direction: column;
    align-items: center;
    gap: 20px;

    background-color: darkred;
  }

  .nav-links.active {
    display: flex;
  }
}
