/* 
   style.css
   Bootstrap-free, responsive layout for Dirk van Sloten
*/

/* ============ RESET & BASE ============ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: #f4f4f4;
  background-color: #050608;
  line-height: 1.6;
}

/* Utility container */
.container {
  width: 90%;
  margin: 0 auto;
  max-width: 1100px;
}

/* ============ PRELOADER ============ */
#preloader {
  position: fixed;
  inset: 0;
  background: #050608;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.loader-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: #ffc451;
  animation: spin 0.8s linear infinite;
}

.loader-text {
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #bbb;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ============ HEADER ============ */
#header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  padding: 16px 0;
  background: rgba(5, 6, 8, 0.5);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

#header.header-scrolled {
  padding: 10px 0;
  background: rgba(5, 6, 8, 0.95);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo a {
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
}

.logo span {
  color: #ffc451;
}

/* Nav */
.nav {
  display: flex;
  gap: 20px;
}

.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #ffc451;
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: #ffc451;
}

.nav a:hover::after {
  width: 60%;
}

/* UNIVERSAL LINK STYLE — matches nav typography but uses yellow palette */
a {
  font-family: "Raleway", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffc451; /* your main yellow */
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

/* Hover: brighter yellow */
a:hover {
  color: #ffe08e; /* bright yellow highlight */
  opacity: 1;
}

/* Optional: underline on hover (remove if not wanted) */
a:hover {
  text-decoration: underline;
}


/* ============ HERO ============ */
#hero {
  position: relative;
  height: 100vh;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  color: #fff;
  overflow: hidden;
  background: url("assets/img/dvsbg.webp") center center / cover no-repeat;
}

#hero .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(0, 0, 0, 0.2), #050608 75%);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 3rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-content h1 span {
  color: #ffc451;
}

.hero-content h2 {
  margin-top: 16px;
  font-size: 1.5rem;
  font-weight: 300;
}

.hero-tagline {
  margin-top: 18px;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease;
}

.btn.primary {
  background: #ffc451;
  color: #111;
}

.btn.primary:hover {
  background: #ffe08e;
  transform: translateY(-1px);
}

.btn.ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.btn.ghost:hover {
  border-color: #ffc451;
  color: #ffc451;
  transform: translateY(-1px);
}

/* ============ SECTIONS ============ */
.section {
  padding: 100px 0;
  background: #050608;
}

.section-alt {
  background: #0b0d11;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-family: "Raleway", system-ui, sans-serif;
  font-size: 2rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* About layout */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr);
  gap: 40px;
}

.about-text p + p {
  margin-top: 14px;
}

.about-highlights {
  display: grid;
  gap: 16px;
}

.about-card {
  background: #10131a;
  border-radius: 10px;
  padding: 18px 18px 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.about-card h3 {
  font-size: 1rem;
  margin-bottom: 8px;
}

/* Generic grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.card {
  background: #10131a;
  border-radius: 12px;
  padding: 22px 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.card p {
  color: rgba(255, 255, 255, 0.75);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
  background: #141824;
}



/* WORK SECTION */
.work-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.work-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.work-card:hover .work-thumb img {
  transform: scale(1.13);
  filter: brightness(1.66);
}

/* WORK GRID — max 3 cards per row */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
}



/* Placeholder thumb style — replace with real images later */
.placeholder-thumb {
  background: linear-gradient(135deg, #ffc451, #ff9f43);
  color: #111;
}

/* Contact layout */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.6fr);
  gap: 40px;
  align-items: flex-start;
}

.contact-note {
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Contact form */
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: 8px;
  border: 1px solid #262a35;
  background: #050608;
  color: #fff;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: #ffc451;
  box-shadow: 0 0 0 1px rgba(255, 196, 81, 0.3);
  background: #050608;
}

#form-status {
  min-height: 20px;
  font-size: 0.9rem;
  margin-top: 4px;
}

#form-status.success {
  color: #9be7a5;
}

#form-status.error {
  color: #ff8a80;
}


/* Honeypot field (for bots only) */
.hp-wrapper {
  position: absolute;
  left: -9999px;
  top: 0;
  height: 0;
  overflow: hidden;
}
/* For screen readers, the label is still there, which is fine.
   Bots will see the field and fill it; humans never see it. */



/* ============ FOOTER ============ */
#footer {
  padding: 28px 0;
  background: #050608;
  border-top: 1px solid #141824;
}

.footer-inner {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============ BACK TO TOP ============ */
#back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffc451;
  color: #111;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 900;
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: #ffe08e;
}

/* ============ SCROLL REVEAL ============ */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ABOUT SECTION — IMAGE LAYOUT */
.about-photos {
  display: grid;
  gap: 18px;
  align-content: start;
}

.about-photo {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

/* Two-image vertical layout for portraits */
.photo-1 {
  grid-row: span 1;
}

.photo-2 {
  grid-row: span 1;
}


/* ============ RESPONSIVE ============ */

@media (max-width: 1100px) {
  .work-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}


@media (max-width: 900px) {
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photos {
    max-width: 450px;
    margin: 0 auto;
  }
}


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

@media (max-width: 768px) {
  #header .header-inner {
    flex-direction: column;
    gap: 10px;
  }

  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .nav a {
    font-size: 0.8rem;
  }

  #hero {
    text-align: center;
    align-items: flex-end;
    padding-bottom: 80px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-content h2 {
    font-size: 1.2rem;
  }

  .section {
    padding: 80px 0;
  }
}
