* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.fade-in {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
}


/* HEADER */
header {
    display: flex;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.9) 20%, rgba(0, 0, 0, 0) 50%),
        url('../img/foto/DSC0978.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 60vh;
    box-shadow: 0px 10px 8px rgb(0, 0, 0);
    
}

header img {
    max-width: 200px;
    height: auto;
    justify-self: flex-start;
    align-self: flex-start;
}


nav.navbar {
  display: flex;;
  justify-content: flex-end;
  padding: 1rem 2rem;
  width: 100%;
}

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

.nav-menu li a {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #d84a63;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  font-weight: bold;
}

.nav-menu li a:hover {
  background-color: #b63c52;
}


/* MAIN SECTIONS */
section.intro, section.contact {
    background-color: rgba(222, 211, 211, 0.8);
    padding: 30px;
    text-align: center;
}


section.intro h2, section.contact h2 {
    font-size: x-large;
    color: #a74a4a;
}

section.intro p, section.contact p {
    color: #000000;
    font-size: large;
}

section.intro {
  background-color: rgba(222, 211, 211, 0.8);
  padding: 30px;
}

section.intro>h1 {
    font-size: 2.5em;
    color: #4a74a7;
    margin-bottom: 40px;
}

section.intro div.intro {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin: 0 auto;
    width: 60vw;
}

section.intro p {
    margin-top: 30px; ;
}

section.intro img {
  max-width: 250px;
  border-radius: 10px;
}

section.contact a {
    color: #6a4040;
    font-size: large;
}


/* PORTFOLIO */
section.portfolio {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

section.portfolio a {
    text-decoration: none;
    color: inherit;
    transition: transform 0.5s ease;
}

section.portfolio a:hover {
    transform: scale(1.02);
}

section.portfolio div {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 15vw;
    width: 100vw;
    text-align: center;
    color: #ffffff;
}

div.dieren {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/foto/DSC_5533_2.jpg');
    background-size: cover;
    background-position: center;
}

div.vogels {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/foto/_DSC0555.jpg');
    background-size: cover;
    background-position: center;
}

div.nacht {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/foto/DSC_1131.jpg');
    background-size: cover;
    background-position: center 45%;
}

div.sport {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/foto/foto-113.jpg');
    background-size: cover;
    background-position: center 75%;
}

div.steden {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/Berlijn/IMG_3705.JPG');
    background-size: cover;
    background-position: center 70%;
}

div.pers {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)),
        url('../img/persfoto/_DSC8552.jpg');
    background-size: cover;
    background-position: center 45%;
}


/* INSTAGRAM */
div.instagram {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    width: 70vw;
    text-align: center;
    margin: 0 auto;
}


/* FOOTER */
footer img {
    max-height: 300px;
}

footer {
    background-color: rgb(33, 33, 33);
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: #d84a63;
    width: 100%;
}

footer div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 2fr 1fr;
    margin: 0px 0px 0px 5%;
}

.mail {
    grid-row: 1;
    grid-column: 2;
    margin: 80px 0px;
}

.contact {
    font-size: xx-large;
    grid-row: 1;
    grid-column: 2;
}

.name {
    font-size: xx-large;
    grid-row: 2;
    grid-column: 1;
}

p.kvk1 {
    grid-row: 2;
    grid-column: 2;
    margin: 0;
}

p.kvk2 {
    grid-row: 2;
    grid-column: 2;
    color: #777777;
    margin-top: 40px;
}

div.icons {
    grid-row: 2;
    grid-column: 1;
    margin: 70px 0px;
    display: flex;
    align-items: center;
}

div.icons a {
    margin-right: 20px;
}

a:link {
    color: #777777;
    background-color: transparent;
    text-decoration: none;
}

a:visited {
    color: #777777;
    background-color: transparent;
    text-decoration: none;
}

a:hover {
    color: #616161;
    background-color: transparent;
    text-decoration: underline;
}

.bg {
    background-color: gray;
}

.c {
    display: flex;
    justify-content: center;
    padding: 15px;
    color: white;
}


/* contact form */

/* Algemene styling voor de secties */
section.diensten, section.form{
  width: 50%;
  margin: 2rem auto;
  padding: 0 1rem;
  font-family: 'Libertinus Math', serif;
  color: #333;
}

div.contact{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background-color: rgb(210, 210, 210);
}

/* Tabellenstijl */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
  font-size: 1rem;
  background-color: #f9f9f9;
}

thead tr {
  background-color: #d84a63;
  color: white;
  font-weight: bold;
}

tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

tbody tr:hover {
  background-color: #ffe1e8;
}

th, td {
  padding: 0.75rem 1rem;
  text-align: left;
  border: 1px solid #ddd;
}

/* Kleine tekstjes onder de tabel */
section p.libertinus-math-regular em {
  font-size: 0.9rem;
  color: #666;
  display: block;
  margin-top: 0.25rem;
}

/* Linkje onderaan */
a.libertinus-math-regular {
  display: inline-block;
  margin-top: 1.5rem;
  color: #d84a63;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

a.libertinus-math-regular:hover {
  color: #b63c52;
}

/* Formulier styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 1rem;
}

.contact-form label {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: 'Libertinus Math', serif;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #d84a63;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 100px;
  font-family: 'Libertinus Math', serif;
}

.submit-btn {
  background-color: #d84a63;
  color: white;
  font-weight: 700;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.submit-btn:hover {
  background-color: #b63c52;
}



/* Tablet */

@media screen and (max-width: 900px) {
  div.gallery-items {
    column-count: 2;
  }

  section.intro h2, section.contact h2 {
    font-size: large;
  }
  section.intro p, section.contact p {
    font-size: medium;
  }
  section.intro>h1 {
    font-size: 2em;
  }
  section.intro, div.intro {
    flex-direction: column;
    justify-content: start;
    box-sizing: border-box;
  }
  section.intro div {
    max-width: 80vw;
  }
  section.intro img {
    max-width: 200px;
  }
  section.portfolio {
    flex-direction: column;
    align-items: center;  
    gap: 20px;
  }
  section.portfolio a {
    width: 100%;
  }
  header {
    height: 50vh;
  }
  header img {
    max-width: 150px;
  }
  nav.navbar {
    flex-direction: column;
    align-items: end;
    justify-content: start;
  }
  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    text-align: right;
  }
  .nav-menu li a {
    padding: 0.5rem 1rem;
  }
  footer div {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }
  footer .mail {
    margin: 90px 0px;
  }
  footer .contact {
    font-size: large;
    margin-top: 60px;
  }
  footer p.kvk2 {
    margin-top: 0;
  }
}

/* Mobile */

@media screen and (max-width: 600px) {
  div.gallery-items {
    column-count: 1;
  }

  section.intro,
  section.contact {
    padding: 1rem;
  }

  section.intro h2,
  section.contact h2 {
    font-size: 1.2rem;
  }

  section.intro p,
  section.contact p {
    font-size: 1rem;
    line-height: 1.5;
  }

  section.intro > h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  section.intro div.intro {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  section.intro img {
    max-width: 150px;
    height: auto;
  }

  form.contact-form input,
  form.contact-form select,
  form.contact-form textarea,
  form.contact-form button {
    width: 100%;
    box-sizing: border-box;
  }

  header img {
    max-width: 120px;
  }

  nav.navbar {
    flex-direction: column;
    align-items: flex-end;
    padding: 0.5rem 1rem;
  }

  .nav-menu {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
  }

  .nav-menu li a {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
  }

  footer div.footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  footer .mail,
  footer .contact {
    margin: 0;
  }

  .submit-btn {
    font-size: 1rem;
    width: 100%;
  }

  table, thead, tbody, th, td, tr {
  display: block;
  }

  table {
    background-color: transparent;
  }

  section.diensten, section.form {
    width: 80%;
  }

  thead {
    display: none; /* kopregel verbergen */
  }

  tbody tr {
    margin-bottom: 1rem;
    width: 100%;
    border: 1px solid #ccc;
    padding: 1rem;
    background-color: #fff;
    border-radius: 8px;
  }

  td {
    padding: 0.5rem;
    text-align: left;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    color: #d84a63;
    margin-bottom: 0.3rem;
  }
}
