@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600&display=swap');

html {
  overflow-y: scroll;
}

body, body.aboutpage, body.contactpage {
  font-family: 'Outfit', sans-serif;
  margin: 0;
  padding: 0 0 0 0; /* padding-top wordt hieronder toegevoegd */
  background-image: url('images/stock.jpeg'); /* homepage */
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding-top: 50px; /* <-- zorgt dat content niet onder navbar komt */
}

/* Background overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
}

/* About page background */
body.aboutpage {
  background-image: url('images/about.jpg');
}

/* Contact page background */
body.contactpage {
  background-image: url('images/contact.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  padding: 2rem 1rem 0 1rem; /* wat ruimte rondom, geen top padding extra */
}

/* Donkere overlay op contactpagina */
body.contactpage::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.55);
  z-index: -1;
}

/* Tekststijl contactpagina */
body.contactpage header p,
body.contactpage header li {
  max-width: 700px;
  font-size: 1.1rem;
  color: #eee;
  margin-bottom: 1rem;
}

/* Contact page ul list styling */
body.contactpage ul {
  list-style: none;
  padding: 0;
  max-width: 700px;
  margin: 0 auto 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.contactpage ul li a {
  color: #3b82f6;
  text-decoration: none;
}

body.contactpage ul li a:hover {
  text-decoration: underline;
}

/* ============ GLOBAL NAVIGATION ============ */
nav {
  position: fixed !important; /* fixed zodat ie blijft hangen */
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(0, 0, 0, 0.8) !important;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  z-index: 9999;
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  box-sizing: border-box;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: color 0.2s ease;
  margin: 0 15px;
}

nav a:hover {
  color: #3b82f6;
}

/* Header */
header {
  background: transparent;
  color: white;
  padding: 60px 20px 40px;
  width: 100%;
  text-align: center;
  box-shadow: none;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 600;
}

header p {
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto 1rem;
  color: #ddd;
}

/* Section title */
h2 {
  margin: 40px 0 20px;
  font-size: 1.8rem;
  font-weight: 600;
  color: #f1f1f1;
}

/* Map styling */
#map {
  height: 450px;
  width: 90%;
  max-width: 960px;
  margin: 0 auto 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Form */
form {
  background: rgba(220, 220, 220, 0.4);
  width: 90%;
  max-width: 500px;
  margin: 0 auto 60px;
  padding: 32px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeIn 0.5s ease;
  color: #111;
}

form input[type="text"],
form input[type="email"],
form textarea {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  padding: 14px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  transition: all 0.2s ease;
}

form input:focus,
form textarea:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
  outline: none;
}

form textarea {
  resize: vertical;
  min-height: 100px;
}

form button {
  background: #3b82f6;
  color: white;
  padding: 14px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

form button:hover {
  background: #2563eb;
  transform: translateY(-1px);
}

form button:active {
  transform: scale(0.98);
}

/* Responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1rem;
    padding: 0 12px;
  }

  #map {
    height: 350px;
    width: 95%;
  }

  form {
    padding: 24px 20px;
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 16px 24px;
  text-align: center;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  margin-top: auto;
  width: 100%;
}

footer a {
  color: #3b82f6;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* Start met body onzichtbaar, fade-in effect */
body {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Zodra de pagina geladen is, fade-in */
body.fade-in {
  opacity: 1;
}

/* Voor fade-out als je weg gaat */
body.fade-out {
  opacity: 0;
}
