/* Algemene stijlen */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background: linear-gradient(to bottom, #faf3e0, #fbe7c6);
  color: #333;
  padding: 20px;
}

/* Navigatie */
nav {
  background: #ff7f50;
  padding: 10px;
  border-radius: 8px;
  text-align: center;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 5px;
  transition: 0.3s;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Header */
header {
  text-align: center;
  padding: 20px;
}

h1 {
  font-size: 2rem;
  color: #d35400;
}

h2 {
  font-size: 1rem;
  font-weight: 400;
  color: #555;
}

/* Showreel Video */
.showreel {
  display: flex;
  justify-content: center;
  margin: 30px 0;
}

.video-wrapper {
  width: 90%;
  max-width: 1000px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* Portfolio Grid */
.container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 20px;
  margin-top: 20px;
  max-width: 1200px;
  margin: 0 auto;
  justify-content: center;
}

/* Cards */
.card {
  background: #f0f0f0;
  /* Iets minder wit */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.card:hover {
  transform: translateY(-5px);
}

.card__header {
  position: relative;
  width: 100%;
  height: 250px;
  /* Beperk de hoogte van de header */
  overflow: hidden;
  /* Verbergt alles buiten de container */
}

.card__header img {
  width: 100%;
  /* Zorgt ervoor dat de afbeelding de volledige breedte van de card opvult */
  height: auto;
  /* Zorgt ervoor dat de afbeelding zijn verhoudingen behoudt */
  object-fit: cover;
  /* Zorgt ervoor dat de afbeelding mooi wordt bijgesneden */
  object-position: center;
  /* Centreert de afbeelding */
}

/* Card Body */
.card__body {
  padding: 15px;
}

.tag {
  display: inline-block;
  padding: 5px 10px;
  font-size: 0.8rem;
  border-radius: 5px;
  font-weight: bold;
  margin-bottom: 10px;
}

.tag-red {
  background: #e74c3c;
  color: white;
}

.tag-blue {
  background: #3498db;
  color: white;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 30px;
  padding: 10px;
  background: #f4a261;
  color: white;
  border-radius: 8px;
}

footer a {
  color: white;
  text-decoration: underline;
}

.btn-alt {
  display: inline-block;
  background: #ff7f50;
  color: white;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-weight: bold;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s ease-in-out;
}

.btn-alt:hover {
  background: #e76f45;
}

/* Stijl voor de contact-trigger (de klikbare tekst) */
.contact-trigger {
  cursor: pointer;
  color: #ff7f50;
  font-weight: bold;
  transition: color 0.3s;
}

.contact-trigger:hover {
  color: #e76f45;
}

/* Beperkt de breedte van het formulier */
.contact-form {
  max-width: 400px; /* Niet te breed */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  background: #f0f0f0;
  padding: 0 15px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  margin-top: 10px; /* Zodat het iets los komt van de tekst */
}

/* Zorgt dat het formulier bij openen netjes uitklapt */
.contact-form.open {
  max-height: 350px; /* Pas aan afhankelijk van de hoogte van het formulier */
  padding: 15px;
}

/* Formulierstijl */
.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Inputs en textarea */
.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

/* Stijl voor de send-knop */
.contact-form button {
  background: #ff7f50;
  color: white;
  border: none;
  padding: 10px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  text-align: center;
  margin-top: 10px; /* Extra ruimte boven de knop */
}

/* Effect bij hover */
.contact-form button:hover {
  background: #e76f45;
}



/* Responsiveness */
@media (max-width: 900px) {
  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 0.9rem;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .container {
    grid-template-columns: 1fr;
    /* Op kleinere schermen één video per rij */
  }
}