/*   =========================================
     ARA TECHNICS - layout Hoofd pagina
     Auteur: Arne (Ara Technics)
     ========================================= */


/* =========================================================
   🎨 KLEUREN EN BASISVARIABELEN
========================================================= */
:root {
  --bg: #0f1720;
  --card: #0b1220;
  --muted: #9aa6b2;
  --accent: #7ae691;
  --accent-dark: #3fd95f;
  --text: #e6eef6;
  --glass: rgba(255,255,255,0.03);
  --max-width: 1100px;
}

/* =========================================================
   🧱 BASISSTIJLEN
========================================================= */
* { box-sizing: border-box; }

html, body {
  scroll-behavior: smooth;
  height: 100%;
  margin: 0;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: #07101a;
  color: var(--text);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem;
}

/* =========================================================
   🧭 HEADER
========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), transparent);
  border-bottom: 1px solid rgba(255,255,255,0.03);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.logo {
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  font-size: 1.2rem;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* === Hamburger menu === */
.hamburger {
  display: none;
  width: 40px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 3px;
  margin: 6px 0;
  width: 100%;
  background: var(--text);
  border-radius: 3px;
  opacity: 0.9;
}

/* === Navigatie === */
.nav a {
  color: var(--muted);
  margin: 0 0.6rem;
  text-decoration: none;
}
.nav a:hover {
  color: var(--accent-dark);
}

/* =========================================================
   🔘 BUTTONS
========================================================= */
.cta {
  background: var(--accent);
  color: #0b0b0b;
  border: none;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.cta.small {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
}
.cta:hover {
  background: var(--accent-dark);
  color: #07101a;
}

/* Universele knoppen */
.btn {
  display: inline-block;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  background: var(--accent);
  color: #07101a;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
}
.btn-margin { margin-top: 0.8rem; }

/* =========================================================
   🌄 HERO SECTIE
========================================================= */
.hero {
  padding: 3rem 0;
  margin-top: 0;
  text-align: center;
  background: rgba(127,127,127,0.03);
  border-radius: 12px;
  margin-bottom: 2rem;
}
.hero h1 {
  margin-bottom: 1rem;
  color: var(--accent);
}
.hero .lead {
  color: var(--text);
  font-size: 1.05rem;
  max-width: 760px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}



/* =========================================================
   🧩 ALGEMENE KAARTEN OPMAAK
========================================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  align-items: start;
}

.card {
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.thumb {
  aspect-ratio: 1 / 1;
  width: 90%;
  margin: 0 auto 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass);
  border-radius: 8px;
  font-weight: 700;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* =========================================================
   ⚙️ SERVICES SECTIE
========================================================= */
.services-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
  align-items: stretch;
}

.services .service-card {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem;
  min-height: 200px;
  text-align: center;
  border-radius: 10px;
}

.services .service-icon {
  font-size: 8rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.services .service-card p {
  flex-grow: 1;
  margin: 0.5rem 0;
}

/* =========================================================
   💼 PORTFOLIO SECTIE
========================================================= */

/* Initieel verbergen van extra kaarten */
#portfolio-extra { display: none; }

.portfolio-actions {
  text-align: center;
  margin-top: 1rem;
}

.hidden { display: none; }

/* Layout en hoogte van portfolio kaarten */
.portfolio .cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.portfolio .card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card);
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
  text-align: left;
  height: 100%;
  min-height: 320px;
}

.portfolio .thumb {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 0.6rem;
  background: var(--glass);
  display: flex;
  align-items: center;
  justify-content: center;
}

.portfolio .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lange icon */
.large-icon {
  display: flex;             
  align-items: center;    
  justify-content: center;
  height: 100%;
}

/* Groot icoon */
.large-icon div {
  font-size: 10rem;           
  line-height: 1;
}

/* === Image modal (centraal beeld) === */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  max-width: 90%;
  max-height: 85%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.25);
  animation: zoomIn 0.3s ease;
}

/* Smooth animatie bij openen */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Sluitknop rechtsboven */
.close {
  position: fixed;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10000;
}

.close:hover {
  color: #ff5555;
}

/* =========================================================
   ✉️ CONTACTFORMULIER
========================================================= */
.contact-form { max-width: 900px; margin-top: 1rem; }

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.8rem;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.7rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  background: transparent;
  color: var(--text);
}
.form-row textarea {
  resize: vertical;
  min-height: 120px;
}
.form-actions {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-top: 0.4rem;
}
.note { color: var(--muted); margin-top: 0.6rem; }

/* =========================================================
   📋 COPY POPUP
========================================================= */
#copy-popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #0b0b0b;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, bottom 0.35s ease;
  z-index: 9999;
}
#copy-popup.show {
  opacity: 1;
  bottom: 50px;
}

/* =========================================================
   🍪 COOKIE POPUP
========================================================= */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 32, 0.9);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
  font-size: 0.95rem;
  z-index: 10000;
  max-width: 90%;
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, bottom 0.4s ease;
}

.cookie-popup.show {
  opacity: 1;
  pointer-events: auto;
  bottom: 40px;
}

.cookie-popup .btn.small {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.cookie-popup .btn.small:hover {
  background: var(--accent-dark);
  color: #07101a;
}

/* =========================================================
   ⚫ FOOTER + SOCIALS
========================================================= */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.03);
  text-align: center;
  color: var(--muted);
}

.social-links {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.social-links li a {
  color: var(--accent);
  font-weight: 600;
}

/* =========================================================
   📱 RESPONSIVE
========================================================= */
@media (max-width: 900px) {
  .header-inner { padding: 0.6rem 1rem; }
  .nav { display: none; }
  .hamburger { display: none; }
  .form-row { flex-direction: column; }
  .container { padding-left: 1.2rem; padding-right: 1.2rem; }
  .hero h1 { font-size: 1.8rem; }
}

/* =========================================================
   📱 MOBIELE AANPASSINGEN (EXTRA)
========================================================= */
@media (max-width: 800px) {

  /* 🔧 Wat ik aanbied – icoontjes verbergen */
  .services .thumb {
    display: none;
  }

  /* 📸 Portfolio – grotere beelden op mobiel */

  .portfolio .thumb {
    width: 70%;
  }

}

/* =========================================================
   📱 MOBIELE AANPASSINGEN — Forceer verbergen icoontjes
   Breakpoint: 800px (smartphones + kleine tablets)
========================================================= */
@media (max-width: 800px) {

  /* Verberg alle gebruikelijke icon containers binnen services */
  .services .service-icon,
  .services .thumb,               /* als je icons in .thumb zet */
  .services .service-card i,
  .services .service-card svg,
  .services .service-card img.icon,
  .services .service-card .icon,
  .services .service-card::before, /* in geval van pseudo-elementen */
  .services .service-card::after {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Zorg dat de tekst in de kaarten netjes gecentreerd staat en meer ruimte krijgt */
  .services .service-card {
    padding-top: 1.2rem;
    padding-bottom: 1.2rem;
    text-align: center;
    min-height: auto;
  }

  .services .service-card h4 {
    margin-top: 0.25rem;
    font-size: 1.05rem;
  }

  .services .service-card p {
    margin-top: 0.4rem;
    font-size: 0.98rem;
    color: var(--muted);
  }

  /* Kleine layoutfixes zodat er geen horizontaal scroll meer kan ontstaan */
  html, body {
    overflow-x: hidden;
  }
}


/* =========================================================
   🖱️ SCROLLBAR
========================================================= */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0b1220; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #3fd95f; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #7ae691; }

/* =========================================================
   Scroll effects
========================================================= */
section, .hero, .card {
  transform-style: preserve-3d;
  perspective: 1000px;
  overflow: hidden;
}

/* 🧭 Fix horizontale scrollbar door GSAP-animaties */
html, body {
  overflow-x: hidden;
}

/* ✨ Hover 3D tilt + glow effect op kaarten */
.card {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  transform-origin: center;
}

.card:hover {
  transform: translateY(-6px) rotateX(3deg) rotateY(-3deg) scale(1.02);
  box-shadow: 0 10px 25px rgba(122, 230, 145, 0.25);
}

/* 🔘 Hover feedback voor knoppen */
.btn, .cta {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover, .cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 18px rgba(122, 230, 145, 0.3);
}

.btn:active, .cta:active {
  transform: translateY(0);
  box-shadow: none;
}

.nav a {
  position: relative;
  overflow: hidden;
  display: inline-block;
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav a:hover::after {
  width: 100%;
}

.hero h1:hover {
  color: var(--accent-dark);
  text-shadow: 0 0 10px rgba(122, 230, 145, 0.4);
  transition: color 0.4s ease, text-shadow 0.4s ease;
}

.hero .btn:hover {
  color: var(--text) !important;
}


/* 🪄 Subtiele depth in hero en icoontjes */
.hero {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.service-icon {
  display: inline-block;
  transform-style: preserve-3d;
  cursor: pointer;
}


/* Fix: centreer service-icoontjes op desktop */
@media (min-width: 801px) {
  /* maak het icon-vak een perfect vierkant en centreer de inhoud */
  .services .service-card .thumb {
    width: 200px;                /* vaste breedte voor consistente look */
    height: 150px;               /* vaste hoogte zodat het altijd precies centreert */
    margin: 0 auto 0.6rem;       /* centreer horizontaal en geef onderruimte */
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);    /* behoud bestaande uitstraling */
    border-radius: 8px;
    overflow: hidden;
  }
}


/* =========================================
   📱 iPhone visibility fix – animaties zichtbaar maken
   ========================================= */
@supports (-webkit-touch-callout: none) {
  [data-aos],
  .fade-in,
  .reveal,
  .hidden,
  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* =========================================
   📱 Mobiele versie – animaties uitschakelen
   ========================================= */
@media (max-width: 900px) {
  [data-aos],
  .fade-in,
  .reveal,
  .scroll-animate {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
}



section, .text, p, h2, h3 {
  backface-visibility: visible !important;
  transform: none !important;
}


.fade-in,
[data-aos],
.reveal,
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible,
[data-aos].visible,
.reveal.visible,
.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   🚀 Mobiel – direct tonen, geen fade of delay
   ========================================= */
@media (max-width: 900px), (pointer: coarse) {
  [data-aos],
  .fade-in,
  .reveal,
  .scroll-animate,
  .gsap-animate,
  .hero,
  section,
  .card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }

  /* Ook binneninhoud forceren */
  .hero *,
  section *,
  .card * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation-delay: 0s !important;
    animation-duration: 0s !important;
  }
}
