/* ═══════════════════════════════════════════════════════════
   GEZAMENLIJKE BEGINPAGINA — de-eijk.nl
   Brug tussen De_Eijk CIM (donker/oranje) en De_AIjk Agency (licht/indigo)
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ──────────────────────────────────────── */
:root {
  /* CIM */
  --cim-bg:       #0a1628;
  --cim-accent:   #ff6b35;
  --cim-muted:    #a0b4c8;
  --cim-border:   rgba(255, 107, 53, 0.35);
  --cim-glow:     rgba(255, 107, 53, 0.2);
  --cim-text:     #ffffff;

  /* Agency */
  --agency-bg:      #ffffff;
  --agency-accent:  #4f46e5;
  --agency-green:   #10b981;
  --agency-purple:  #7c3aed;
  --agency-border:  rgba(79, 70, 229, 0.3);
  --agency-glow:    rgba(79, 70, 229, 0.18);
  --agency-text:    #1f2937;
  --agency-muted:   #6b7280;

  /* Shared */
  --hero-bg:      #08101f;
  --section-bg:   #0b0e1a;
  --footer-bg:    #060911;
  --font:         'Inter', system-ui, sans-serif;
  --radius-card:  18px;
  --transition:   0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background: var(--section-bg);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ══════════════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;

  background: linear-gradient(155deg, #07101e 0%, #0b0e22 55%, #10082a 100%);
}

/* Dot-grid texture overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

/* Divider wave at bottom */
.hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--section-bg);
  clip-path: ellipse(55% 100% at 50% 100%);
}

/* Animated glow blobs — three brand colours */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  will-change: transform, opacity;
  z-index: 0;
}

.hero-glow--orange {
  width: 52%;
  height: 70%;
  background: rgba(255, 107, 53, 0.32);
  top: 20%;
  left: -8%;
  animation: glowFloat1 9s ease-in-out infinite;
}

.hero-glow--indigo {
  width: 58%;
  height: 65%;
  background: rgba(79, 70, 229, 0.36);
  top: -20%;
  right: -12%;
  animation: glowFloat2 11s ease-in-out infinite 1.5s;
}

.hero-glow--green {
  width: 40%;
  height: 50%;
  background: rgba(16, 185, 129, 0.24);
  bottom: 5%;
  right: 12%;
  animation: glowFloat3 13s ease-in-out infinite 3.5s;
}

@keyframes glowFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1);       opacity: 0.85; }
  33%       { transform: translate(5%, -9%) scale(1.12); opacity: 1;    }
  66%       { transform: translate(-4%, 6%) scale(0.93); opacity: 0.75; }
}

@keyframes glowFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1);        opacity: 0.8;  }
  40%       { transform: translate(-6%, 12%) scale(1.18); opacity: 1;   }
  70%       { transform: translate(4%, -6%) scale(0.88);  opacity: 0.7; }
}

@keyframes glowFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1);         opacity: 0.7; }
  50%       { transform: translate(-10%, -14%) scale(1.25); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 700px;
  width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  margin-bottom: 2rem;
}

/* Headline */
.hero-title {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

/* Typewriter line */
.hero-typewriter {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  min-height: 2em;
  margin-bottom: 1rem;

  /* Gradient text cycling between CIM orange and Agency indigo */
  background: linear-gradient(90deg, var(--cim-accent) 0%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tw-cursor {
  display: inline-block;
  font-weight: 300;
  background: linear-gradient(90deg, var(--cim-accent), #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: blink 0.9s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Meta tagline */
.hero-meta {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 3rem;
  font-weight: 400;
}

/* Scroll arrow */
.scroll-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.45);
  transition: border-color var(--transition), color var(--transition);
  animation: arrowBounce 2.2s ease-in-out infinite;
  cursor: pointer;
}

.scroll-arrow:hover {
  border-color: rgba(255,255,255,0.4);
  color: rgba(255,255,255,0.8);
}

@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* ── Hero entrance animations ───────────────────────────── */
.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards 0.2s;
}

.animate-slide-up {
  opacity: 0;
  transform: translateY(24px);
  animation: slideUp 0.8s ease forwards 0.35s;
}

.animate-fade-in-delay {
  opacity: 0;
  animation: fadeIn 0.7s ease forwards 0.7s;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════════════════
   KEUZEKAARTEN
   ══════════════════════════════════════════════════════════ */
.keuze {
  padding: 5rem 1.5rem 6rem;
  background: var(--section-bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  max-width: 1040px;
  margin: 0 auto;
}

/* ── Base card ──────────────────────────────────────────── */
.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  position: relative;
}

.card:hover {
  transform: translateY(-7px) scale(1.015);
}

/* ── Photo area ─────────────────────────────────────────── */
.card-photo-wrap {
  position: relative;
  height: 260px;
  overflow: hidden;
  flex-shrink: 0;
}

.card-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.5s ease;
}

.card:hover .card-photo-wrap img {
  transform: scale(1.04);
}

/* CIM: uitzoomen zodat hoofd volledig zichtbaar is + fade naar kaartachtergrond */
.card--cim .card-photo-wrap img {
  object-fit: contain;
  object-position: center top;
  background: var(--cim-bg);
}

.card--cim .card-photo-wrap {
  -webkit-mask-image:
    radial-gradient(ellipse 88% 85% at 50% 30%, black 45%, transparent 92%);
  mask-image:
    radial-gradient(ellipse 88% 85% at 50% 30%, black 45%, transparent 92%);
}

.card-photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  pointer-events: none;
}

/* ── Card body ──────────────────────────────────────────── */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.75rem 2rem;
}

.card-brand {
  margin-bottom: 0.5rem;
}

.card-logo {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.card-sub {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.7;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
  opacity: 0.8;
}

.card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
  flex: 1;
}

.card-bullets li {
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  opacity: 0.75;
}

.card-bullets li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: 100px;
  transition:
    background var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  align-self: flex-start;
}

.card-cta svg {
  transition: transform var(--transition);
}

.card:hover .card-cta svg {
  transform: translateX(3px);
}

/* ══════════════════════════════════════════════════════════
   CIM CARD SPECIFICS
   ══════════════════════════════════════════════════════════ */
.card--cim {
  background: var(--cim-bg);
  border: 1px solid rgba(255, 107, 53, 0.15);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  color: var(--cim-text);
}

.card--cim:hover {
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.5),
    0 0 0 1px var(--cim-border),
    0 0 60px var(--cim-glow);
}

.card--cim .card-photo-overlay {
  background: linear-gradient(to bottom, transparent, var(--cim-bg));
}

.card--cim .card-logo {
  color: var(--cim-accent);
}

.card--cim .card-sub {
  color: var(--cim-muted);
}

.card--cim .card-bullets li::before {
  background: var(--cim-accent);
}

.card--cim .card-cta {
  background: var(--cim-accent);
  color: #ffffff;
}

.card--cim .card-cta:hover {
  background: #ff8555;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
  transform: translateY(-1px);
}

/* ══════════════════════════════════════════════════════════
   AGENCY CARD SPECIFICS
   ══════════════════════════════════════════════════════════ */
.card--agency {
  background: var(--agency-bg);
  border: 1px solid rgba(79, 70, 229, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  color: var(--agency-text);
}

.card--agency:hover {
  box-shadow:
    0 12px 48px rgba(0, 0, 0, 0.25),
    0 0 0 1px var(--agency-border),
    0 0 60px var(--agency-glow);
}

.card--agency .card-photo-overlay {
  background: linear-gradient(to bottom, transparent, var(--agency-bg));
}

.card--agency .card-logo {
  background: linear-gradient(135deg, var(--agency-accent), var(--agency-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card--agency .card-sub {
  color: var(--agency-muted);
}

.card--agency .card-desc {
  color: var(--agency-text);
}

.card--agency .card-bullets {
  color: var(--agency-text);
}

.card--agency .card-bullets li {
  opacity: 0.65;
}

.card--agency .card-bullets li::before {
  background: linear-gradient(135deg, var(--agency-accent), var(--agency-purple));
}

.card--agency .card-cta {
  background: linear-gradient(135deg, var(--agency-accent), var(--agency-purple));
  color: #ffffff;
}

.card--agency .card-cta:hover {
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.4);
  transform: translateY(-1px);
  filter: brightness(1.08);
}

/* ══════════════════════════════════════════════════════════
   SCROLL REVEAL
   ══════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.65s ease,
    transform 0.65s ease;
}

.reveal--delay {
  transition-delay: 0.15s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.75rem 1.5rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  max-width: 1040px;
  margin: 0 auto;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-name {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  transition: color var(--transition);
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .hero-title {
    font-size: 2rem;
  }

  .keuze {
    padding: 3.5rem 1rem 4rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .card-photo-wrap {
    height: 220px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .card-body {
    padding: 1.25rem 1.25rem 1.5rem;
  }
}
