* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, sans-serif;
  line-height: 1.5;
  color: #222;
  
  /* To be able to push the footer down when content isn't long enough */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

img, video {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

header, footer {
  padding: 1rem 1.25rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

main section {
  padding: 3rem 1.25rem;
}

main section p a:hover {
	background: rgb(150 190 77);
}

main ul {
	padding-left: 0;
	list-style-position: inside;
}

#hero, #about, #cta, #contact {
  max-width: 1000px;
  margin: 0 auto;
}

#hero {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

#hero a,
#cta a,
button {
  display: inline-block;
  background: #111;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
}

/* FEATURES GRID */
#features {
  max-width: 1200px;
  margin: 0 auto;
}

#features h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.video-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
  aspect-ratio: 16 / 9;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 2; /* Ensures the hovered card stays above its neighbors */
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.video-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.15) 45%,
    rgba(0,0,0,0.05) 100%
  );
  pointer-events: none;
}

.video-title {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  margin: 0;
  z-index: 1;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-shadow:
    0 1px 2px rgba(0,0,0,0.9),
    0 2px 8px rgba(0,0,0,0.8);
}

/* Tablet */
@media (max-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: stacked */
@media (max-width: 600px) {
  .video-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .video-card {
    width: 100%;
  }

  nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

form {
  display: grid;
  gap: 0.75rem;
  max-width: 500px;
}

input, textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

footer p {
  margin: 0;
  text-align: center;
}

.messages {
  max-width: 1000px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
}

.message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 0.5rem;
  background: #e9f7ef;
  color: #1d5e35;
  border: 1px solid #b7e4c7;
}

.logo {
  max-width: 130px;
  width: 100%;
  height: auto;
  display: block;
}

footer {
  margin-top: auto;
  margin-bottom: 12px;
}
