/* Transparent Top Header */
.top-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  z-index: 1000;
  padding: 0.5rem 1rem;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 90%;
  margin: auto;
}

.header-logo {
  height: 40px;
  width: auto;
}

.top-header button {
  background-color: rgba(255, 255, 255, 0);
  color: #2c3843;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.top-header button:hover {
  background-color: #2c3843;
  color: white;
}

/* === Body === */
body {
  padding-top: 70px;
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f0f4f8;
  color: #333;
}

/* === Header === */
header {
  text-align: center;
  padding: 6rem 1rem;
}

h1 {
  margin: 0;
  font-size: 3rem;
  padding-top: 4rem;
}

h2 {
  margin: 0;
  font-size: 2rem;
}

/* === Gallery Grid === */
.grid {
  padding: 2rem;
  max-width: 1200px;
  margin: auto;
}

.card {
  width: 30%;
  margin-bottom: 24px;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  vertical-align: top;
  border-radius: 10px;

}

.card:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  border-radius: 10px;

}

.card img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  border: 3px solid transparent;
  transition: border 0.2s ease;
}

.card:hover img {
  border: 3px solid #2c3843;
}

.card .caption {
  padding: 0.5rem ;
}

.card .caption h3 {
  margin: 0.3rem 0;
  font-size: 1.1rem;

}

.card .caption p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* === Responsive === */
@media (max-width: 900px) {
  .card {
    width: 45%;
  }
}

@media (max-width: 600px) {
  .card {
    width: 100%;
  }
}

/* === Modal === */
  #modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .modal-content {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
  }

  .modal-header {
    margin-bottom: 1rem;

  }

  #modal-title {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    text-align: center;

  }

  #modal-video {
    width: 100%;
    max-height: 400px;
    display: block;
    margin-bottom: 1rem;
    border-radius: 10px;

  }

  #modal-desc {
    font-size: 1rem;
    line-height: 1.5;
    max-width: 100%;
    text-align: center;

  }

/* === Header Animation === */
header h1,
header p {
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* === Footer === */
footer {
  background-color: #a1b1bf;
  padding: 1.5rem;
  text-align: center;
  color: white;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-logo {
  height: 40px;
  width: auto;
}

footer button {
  background-color: rgba(225, 225, 225, 0);
  color: #2c3843;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  font-size: 1rem;
}

footer button:hover {
  background-color: #2c3843;
  color: white;
}
