/* ============================================
   sterngold.nl — Design System "Spectrum"
   Dark base, pride-inspired gradient accents
   ============================================ */

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

:root {
  --bg: #0a0a0a;
  --card-bg: #1a1a1a;
  --card-bg-hover: #222;
  --text: #f0f0f0;
  --text-muted: #999;
  --text-dim: #666;

  /* Spectrum gradient — pride-inspired */
  --coral: #FF6B6B;
  --gold: #FECA57;
  --cyan: #48DBFB;
  --pink: #FF9FF3;
  --violet: #C44AFF;
  --spectrum: linear-gradient(135deg, var(--coral), var(--gold), var(--cyan), var(--pink), var(--violet));
  --spectrum-h: linear-gradient(90deg, var(--coral), var(--gold), var(--cyan), var(--pink), var(--violet));

  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --max-width: 960px;
  --prose-width: 720px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }

a { color: var(--cyan); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--pink); }

/* --- Layout --- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 2rem; }
.prose { max-width: var(--prose-width); }

section { padding: 5rem 0; }

/* --- Spectrum utilities --- */
.gradient-text {
  background: var(--spectrum);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.spectrum-line {
  height: 2px;
  background: var(--spectrum-h);
  border: none;
  border-radius: 1px;
}

.spectrum-line-thin {
  height: 1px;
  background: var(--spectrum-h);
  border: none;
  opacity: 0.4;
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../img/hero-sailing-full.png') center 55% / cover no-repeat;
  filter: brightness(0.4);
  z-index: 0;
}

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

.hero h1 {
  margin-bottom: 0.5rem;
  letter-spacing: -1px;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 2rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s ease infinite;
}

.scroll-hint span {
  display: block;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  opacity: 0.5;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* --- Section labels --- */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--text-muted);
  margin-bottom: 2rem;
  display: inline-block;
  position: relative;
}

.section-label::after {
  content: '';
  display: block;
  height: 2px;
  margin-top: 6px;
  background: var(--spectrum-h);
  border-radius: 1px;
}

/* --- About section --- */
.about-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 3rem;
  align-items: start;
}

.photo-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  padding: 4px;
  background: var(--spectrum);
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--card-bg);
  border: 3px solid var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-dim);
}

.about-text p {
  color: var(--text);
  font-size: 1.05rem;
}

.about-text p.muted { color: var(--text-muted); font-size: 0.95rem; }

/* --- Timeline --- */
.timeline {
  display: flex;
  gap: 0;
  margin: 2.5rem 0;
  position: relative;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--spectrum-h);
}

.timeline-item {
  flex: 1;
  min-width: 120px;
  text-align: center;
  position: relative;
  padding-top: 2.5rem;
}

.timeline-dot {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--violet);
  background: var(--bg);
  transition: background 0.3s, border-color 0.3s;
}

.timeline-item:hover .timeline-dot {
  background: var(--violet);
}

.timeline-item:nth-child(1) .timeline-dot { border-color: var(--coral); }
.timeline-item:nth-child(2) .timeline-dot { border-color: var(--gold); }
.timeline-item:nth-child(3) .timeline-dot { border-color: var(--gold); }
.timeline-item:nth-child(4) .timeline-dot { border-color: var(--cyan); }
.timeline-item:nth-child(5) .timeline-dot { border-color: var(--pink); }
.timeline-item:nth-child(6) .timeline-dot { border-color: var(--violet); }
.timeline-item:nth-child(7) .timeline-dot { border-color: var(--coral); }

.timeline-item:nth-child(1):hover .timeline-dot { background: var(--coral); }
.timeline-item:nth-child(2):hover .timeline-dot { background: var(--gold); }
.timeline-item:nth-child(3):hover .timeline-dot { background: var(--gold); }
.timeline-item:nth-child(4):hover .timeline-dot { background: var(--cyan); }
.timeline-item:nth-child(5):hover .timeline-dot { background: var(--pink); }
.timeline-item:nth-child(6):hover .timeline-dot { background: var(--violet); }
.timeline-item:nth-child(7):hover .timeline-dot { background: var(--coral); }

.timeline-year {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.timeline-role {
  font-size: 0.75rem;
  color: var(--text-dim);
  line-height: 1.3;
}

/* --- Cards --- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #2a2a2a;
  border-top: 3px solid transparent;
  transition: border-color 0.4s, background 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--spectrum-h);
  opacity: 0;
  transition: opacity 0.4s;
}

.card:hover {
  background: var(--card-bg-hover);
  transform: translateY(-2px);
}

.card:hover::before { opacity: 1; }

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
}

.card h3 { color: var(--text); }
.card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0; }

.card-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  position: relative;
}

.card-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  background: var(--spectrum-h);
  transition: width 0.3s;
}

.card-link:hover::after { width: 100%; }

/* --- Highlights --- */
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.highlight-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #2a2a2a;
  transition: border-color 0.3s;
}

.highlight-card:hover { border-color: #3a3a3a; }

.highlight-company {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.highlight-company.booking { color: var(--cyan); }
.highlight-company.danone { color: var(--pink); }
.highlight-company.earlier { color: var(--gold); }

.highlight-card ul {
  list-style: none;
  padding: 0;
}

.highlight-card li {
  padding: 0.5rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-bottom: 1px solid #222;
  position: relative;
  padding-left: 1.2rem;
}

.highlight-card li:last-child { border-bottom: none; }

.highlight-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.highlight-card.booking li::before { background: var(--cyan); }
.highlight-card.danone li::before { background: var(--pink); }
.highlight-card.earlier li::before { background: var(--gold); }

/* --- Stats bar --- */
.stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  padding: 2rem 0;
  flex-wrap: wrap;
}

.stat { text-align: center; }

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.stat-number.coral { color: var(--coral); }
.stat-number.gold { color: var(--gold); }
.stat-number.cyan { color: var(--cyan); }
.stat-number.pink { color: var(--pink); }
.stat-number.violet { color: var(--violet); }

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.25rem;
}

/* --- Languages --- */
.languages {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.lang {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lang strong { color: var(--text); }

/* --- Connect / Footer --- */
.connect {
  text-align: center;
  padding: 5rem 0;
}

.connect h2 { margin-bottom: 0.5rem; }

.connect-tagline {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
}

.connect-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.connect-link {
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border: 1px solid #333;
  border-radius: 8px;
  transition: border-color 0.3s, background 0.3s;
}

.connect-link:hover {
  border-color: var(--cyan);
  background: rgba(72, 219, 251, 0.05);
}

footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-dim);
  font-size: 0.8rem;
  border-top: 1px solid #1a1a1a;
}

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* --- Responsive --- */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .photo-ring { margin: 0 auto; }

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

  .highlights { grid-template-columns: 1fr; }

  .timeline { gap: 0; overflow-x: auto; }
  .timeline-item { min-width: 100px; }

  .stats { gap: 1.5rem; }
  .stat-number { font-size: 2rem; }

  .hero { min-height: 80vh; }

  section { padding: 3rem 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .connect-links { flex-direction: column; align-items: center; }
}
