:root {
  --bg: #0b1b2c;
  --fg: #e9f2ff;
  --accent: #4cb3ff;
  --muted: #0f2439;
  --card: #112b42;
  --text: #cdd9e5;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  --radius: 12px;
  --max-width: 1100px;
  --carousel-gap: 6px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 27, 44, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 20px;
}

.nav__container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo {
  display: flex;
  align-items: center;
}

.nav__logo img {
  height: 65px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.nav__item {
  margin: 0;
}

.nav__link {
  display: block;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text);
  transition: background 160ms ease, color 160ms ease;
  white-space: nowrap;
}

.nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg);
}

.nav__link.is-active {
  color: var(--accent);
  background: rgba(76, 179, 255, 0.1);
}

.nav__toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--fg);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 720px) {
  .nav__toggle {
    display: block;
  }
  
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(11, 27, 44, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 300ms ease, opacity 300ms ease, padding 300ms ease;
  }
  
  .nav__menu.is-open {
    max-height: 500px;
    opacity: 1;
    padding: 12px 20px;
  }
  
  .nav__link {
    padding: 12px 16px;
    width: 100%;
  }
}

.hero {
  position: relative;
  background: url("images/pool4.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: var(--fg);
  padding: 72px 20px 96px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(12, 47, 78, 0.65), transparent 40%),
    linear-gradient(135deg, rgba(7, 15, 26, 0.75), rgba(7, 20, 36, 0.73));
  backdrop-filter: blur(2px);
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.eyebrow {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 0 0 16px;
  color: var(--fg);
}

.lead {
  font-size: 18px;
  max-width: 640px;
  margin: 0 0 24px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 160ms ease, color 160ms ease;
}

.button--primary {
  background: var(--accent);
  color: #072036;
  box-shadow: var(--shadow);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--fg);
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: 72px 20px;
}

.section--muted {
  background: var(--muted);
}

.section__header {
  max-width: var(--max-width);
  margin: 0 auto 32px;
}

.section__header h2 {
  margin: 0 0 8px;
  color: var(--fg);
}

.section__header p {
  margin: 0;
  max-width: 640px;
}

.wie-zijn-wij {
  max-width: var(--max-width);
  margin: 0 auto;
  background: var(--card);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.wie-zijn-wij h3 {
  margin: 0 0 20px;
  color: var(--fg);
  font-size: 24px;
  font-weight: 600;
}

.wie-zijn-wij p {
  margin: 0 0 20px;
  line-height: 1.8;
  color: var(--text);
}

.wie-zijn-wij p:last-child {
  margin-bottom: 0;
}

.options-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.option-card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.option-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 22px 64px rgba(9, 30, 66, 0.45),
    0 0 0 1px rgba(76, 179, 255, 0.4),
    0 0 20px rgba(76, 179, 255, 0.3);
}

.option-card__image {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.option-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 360ms ease;
}

.option-card:hover .option-card__image img {
  transform: scale(1.05);
}

.option-card__content {
  padding: 20px;
}

.option-card__content h3 {
  margin: 0 0 12px;
  color: var(--fg);
  font-size: 20px;
  font-weight: 600;
}

.option-card__content p {
  margin: 0;
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

@media (max-width: 960px) {
  .options-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .options-grid {
    grid-template-columns: 1fr;
  }
}

.cards {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  color: var(--fg);
}

.steps {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: 20px;
  display: grid;
  gap: 12px;
}

.steps li {
  background: var(--card);
  padding: 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  list-style: none;
  box-shadow: var(--shadow);
}

.steps h4 {
  margin: 0 0 6px;
  color: var(--fg);
}

.gallery {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.carousel {
  overflow: visible;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: var(--carousel-gap);
  transition: transform 420ms ease;
  will-change: transform;
}

.carousel__item {
  min-width: calc(100% - var(--carousel-gap));
  flex: 0 0 calc(100% - var(--carousel-gap));
}

.gallery__link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.gallery__item {
  background: #0b2236;
  border-radius: var(--radius);
  color: var(--fg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  transform: translateY(26px);
  opacity: 0.65;
  transition:
    transform 360ms ease,
    opacity 360ms ease,
    box-shadow 240ms ease;
  height: 100%;
}

.gallery__item:hover {
  cursor: pointer;
  transform: translateY(18px);
  opacity: 1;
  box-shadow:
    0 22px 64px rgba(9, 30, 66, 0.45),
    0 0 0 1px rgba(76, 179, 255, 0.4),
    0 0 20px rgba(76, 179, 255, 0.3);
}

.gallery__item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 360ms ease;
}

.gallery__item figcaption {
  padding: 12px 14px;
  font-weight: 600;
}

.carousel__controls {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  padding: 0 4px;
}

.carousel__btn {
  pointer-events: auto;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(8, 18, 31, 0.7);
  color: var(--fg);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 160ms ease, background 160ms ease;
  position: relative;
}

.carousel__btn--prev {
  transform: translateX(-40px);
}

.carousel__btn--next {
  transform: translateX(40px);
}

.carousel__btn--prev:hover {
  transform: translateX(-40px) translateY(-2px);
  background: rgba(76, 179, 255, 0.2);
}

.carousel__btn--next:hover {
  transform: translateX(40px) translateY(-2px);
  background: rgba(76, 179, 255, 0.2);
}

.carousel__dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.carousel__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  padding: 0;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.carousel__dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.1);
}

@media (min-width: 720px) {
  .carousel__item {
    min-width: calc((100% - var(--carousel-gap)) / 2);
    flex: 0 0 calc((100% - var(--carousel-gap)) / 2);
  }
}

@media (min-width: 1080px) {
  .carousel__item {
    min-width: calc((100% - var(--carousel-gap)) / 2);
    flex: 0 0 calc((100% - var(--carousel-gap)) / 2);
  }
}

@media (min-width: 1400px) {
  .carousel__item {
    min-width: calc((100% - (var(--carousel-gap) * 2)) / 3);
    flex: 0 0 calc((100% - (var(--carousel-gap) * 2)) / 3);
  }
}

.gallery__item.is-visible {
  transform: translateY(0);
  opacity: 1;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
}

.gallery__item.is-visible:hover {
  box-shadow:
    0 22px 64px rgba(9, 30, 66, 0.45),
    0 0 0 1px rgba(76, 179, 255, 0.4),
    0 0 20px rgba(76, 179, 255, 0.3);
}

.gallery__item.is-visible img {
  transform: scale(1.03);
}

.gallery__item.is-visible:hover img {
  transform: scale(1.06);
}

.project-layout {
  max-width: var(--max-width);
  margin: 0 auto 32px;
  overflow: hidden;
}

.project-hero {
  float: left;
  width: 45%;
  margin: 0 32px 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.project-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.project-content {
  max-width: var(--max-width);
  margin: 0 auto;
}

.project-text {
  padding: 0;
  white-space: pre-line;
  line-height: 1.8;
  text-align: justify;
}

@media (max-width: 960px) {
  .project-hero {
    float: none;
    width: 100%;
    margin: 0 0 24px 0;
  }
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.project-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  transition: transform 240ms ease, box-shadow 240ms ease;
  cursor: pointer;
}

.project-gallery img:hover {
  transform: scale(1.02);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

/* Lightbox styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 240ms ease;
}

.lightbox.is-active {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.lightbox__content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 80px;
}

.lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fg);
  font-size: 32px;
  font-weight: 300;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
  line-height: 1;
  padding: 0;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.lightbox__prev,
.lightbox__next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10000;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--fg);
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease, transform 160ms ease;
  padding: 0;
}

.lightbox__prev {
  left: 20px;
}

.lightbox__next {
  right: 20px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

@media (max-width: 720px) {
  .lightbox__content {
    padding: 50px 60px;
  }
  
  .lightbox__prev {
    left: 10px;
  }
  
  .lightbox__next {
    right: 10px;
  }
  
  .lightbox__close {
    top: 10px;
    right: 10px;
  }
}

.contact {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: start;
}

.contact__info {
  color: var(--text);
}

.contact__info h2 {
  margin: 0 0 20px;
  color: var(--fg);
}

.contact__info p {
  margin: 0 0 16px;
  line-height: 1.7;
}

.contact__info p:last-child {
  margin-bottom: 0;
}

.contact__list {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--fg);
}

.contact__form {
  background: var(--card);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 6px;
  color: var(--fg);
  font-weight: 600;
}

input,
textarea {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0c1f32;
  color: var(--fg);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

input::placeholder,
textarea::placeholder {
  color: rgba(205, 217, 229, 0.5);
  font-weight: 400;
  letter-spacing: 0.01em;
}

input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: rgba(205, 217, 229, 0.5);
  font-weight: 400;
  letter-spacing: 0.01em;
}

input::-moz-placeholder,
textarea::-moz-placeholder {
  color: rgba(205, 217, 229, 0.5);
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 1;
}

input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: rgba(205, 217, 229, 0.5);
  font-weight: 400;
  letter-spacing: 0.01em;
}

.footer {
  padding: 28px 20px;
  text-align: center;
  color: #91a8c3;
  background: #08121f;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

