/* ═══════════════════════════════════════════
   Iris Kaminer — Personal Site
   Dark, sleek, gradient-accent design system
   ═══════════════════════════════════════════ */

:root {
  --bg: #070b14;
  --bg-alt: #0b1120;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf4;
  --text-dim: #96a0b5;
  --accent-1: #22d3ee;   /* cyan */
  --accent-2: #8b5cf6;   /* violet */
  --accent-3: #ec4899;   /* pink (sparingly) */
  --gradient: linear-gradient(120deg, var(--accent-1), var(--accent-2));
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 18px;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.accent { color: var(--accent-1); }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--gradient);
  color: #06090f;
  box-shadow: 0 8px 30px rgba(34, 211, 238, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.4);
}
.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(34, 211, 238, 0.5);
  transform: translateY(-2px);
}

/* ═══════════ NAV ═══════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a:not(.nav-cta) {
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.nav-links a:not(.nav-cta):hover { color: var(--text); }
.nav-cta {
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--gradient);
  color: #06090f;
  font-weight: 600;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(34, 211, 238, 0.35); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ═══════════ HERO ═══════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 560px; height: 560px;
  background: rgba(139, 92, 246, 0.18);
  top: -140px; right: -120px;
}
.hero-glow-2 {
  width: 480px; height: 480px;
  background: rgba(34, 211, 238, 0.12);
  bottom: -160px; left: -100px;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-1);
  border: 1px solid rgba(34, 211, 238, 0.3);
  border-radius: 999px;
  padding: 8px 18px;
  background: rgba(34, 211, 238, 0.06);
  margin-bottom: 28px;
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent-1);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 24px;
}
.hero-sub {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 560px;
  margin-bottom: 26px;
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}
.role-chip {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* photo */
.hero-photo {
  position: relative;
  width: min(340px, 80vw);
  aspect-ratio: 1;
  justify-self: center;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  border: 3px solid rgba(255, 255, 255, 0.08);
}
.photo-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, var(--accent-1), var(--accent-2), var(--accent-3), var(--accent-1));
  filter: blur(18px);
  opacity: 0.55;
  animation: spin 10s linear infinite;
}
.photo-orbit {
  position: absolute;
  inset: -28px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  animation: spin 24s linear infinite;
  z-index: 3;
  pointer-events: none;
}
.orbit-dot {
  position: absolute;
  top: -5px; left: 50%;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 14px var(--accent-1);
}
@keyframes spin { to { transform: rotate(360deg); } }

.scroll-hint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-mouse {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  position: relative;
}
.scroll-mouse::after {
  content: '';
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--accent-1);
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(0); }
}

/* ═══════════ METRICS ═══════════ */
.metrics {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.05), rgba(34, 211, 238, 0.03));
  padding: 56px 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.metric { text-align: center; }
.metric-value {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.metric-label {
  color: var(--text-dim);
  font-size: 14px;
  max-width: 230px;
  margin: 0 auto;
}

/* ═══════════ SECTIONS ═══════════ */
.section { padding: 110px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 22px;
}
.section-sub {
  color: var(--text-dim);
  font-size: 18px;
  max-width: 640px;
  margin-bottom: 40px;
}

/* ═══════════ ABOUT ═══════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  margin-top: 40px;
  align-items: start;
}
.about-text p {
  color: var(--text-dim);
  font-size: 17.5px;
  margin-bottom: 22px;
}
.about-text strong { color: var(--text); font-weight: 600; }
.about-text a {
  color: var(--accent-1);
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
  transition: border-color 0.2s ease;
}
.about-text a:hover { border-color: var(--accent-1); }

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.domain-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.domain-card:hover {
  transform: translateY(-5px);
  border-color: rgba(34, 211, 238, 0.4);
  background: var(--surface-hover);
}
.domain-icon {
  font-size: 26px;
  margin-bottom: 14px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.domain-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.domain-card p { color: var(--text-dim); font-size: 14px; line-height: 1.55; }

/* ═══════════ TIMELINE ═══════════ */
.timeline {
  margin-top: 56px;
  position: relative;
  padding-left: 36px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2), transparent);
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-marker {
  position: absolute;
  left: -36px; top: 26px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent-1);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.5);
}
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 32px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.timeline-card:hover {
  transform: translateX(6px);
  border-color: rgba(139, 92, 246, 0.45);
}
.timeline-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.timeline-head h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
}
.timeline-company {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-1);
  text-transform: uppercase;
}
.timeline-card > p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 18px; }
.timeline-card strong { color: var(--text); }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #c4b5fd;
}

/* ═══════════ PROJECTS ═══════════ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.project-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}
.project-card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, 0.4); }
.project-card:hover::before { transform: scaleX(1); }
.project-media {
  position: relative;
  margin: -32px -28px 24px;
  height: 168px;
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.16));
  border-bottom: 1px solid var(--border);
}
.project-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.project-media:hover video { transform: scale(1.04); }
.media-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(7, 11, 20, 0.35);
  transition: background 0.3s ease;
}
.project-media:hover .media-overlay { background: rgba(7, 11, 20, 0.15); }
.play-btn {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--gradient);
  color: #06090f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  padding-left: 4px;
  box-shadow: 0 6px 24px rgba(34, 211, 238, 0.4);
  transition: transform 0.3s ease;
}
.project-media:hover .play-btn { transform: scale(1.12); }
.media-label {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.project-media.missing { cursor: default; }
.project-media.missing .play-btn { display: none; }
.project-media.missing .media-label { color: var(--text-dim); text-transform: none; letter-spacing: 0.02em; }

.project-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent-1);
  margin-bottom: 16px;
  opacity: 0.85;
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.project-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* ═══════════ MARQUEE ═══════════ */
.marquee {
  margin-top: 48px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 18px;
  padding: 8px 0;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.tool-chip {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  padding: 16px 32px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  flex-shrink: 0;
}

/* ═══════════ FEATURE (YouTube) ═══════════ */
.feature-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(34, 211, 238, 0.06));
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 64px 56px;
}
.feature-card .section-title { font-size: clamp(28px, 3.6vw, 42px); }
.feature-visual { display: flex; justify-content: center; }
.play-orb {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  color: #06090f;
  box-shadow: 0 0 80px rgba(34, 211, 238, 0.4);
  animation: float 4s ease-in-out infinite;
}
.play-orb span { margin-left: 6px; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ═══════════ CONTACT ═══════════ */
.section-contact {
  background:
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(139, 92, 246, 0.15), transparent),
    var(--bg);
  text-align: center;
  padding-bottom: 140px;
}
.contact-inner .section-sub { margin-left: auto; margin-right: auto; }
.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ═══════════ FOOTER ═══════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--text-dim);
  font-size: 13.5px;
}

/* ═══════════ VIDEO LIGHTBOX ═══════════ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 12, 0.88);
  backdrop-filter: blur(10px);
}
.lightbox-box {
  position: relative;
  z-index: 1;
  width: min(1000px, 94vw);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6), 0 0 60px rgba(139, 92, 246, 0.15);
  transform: scale(0.96) translateY(12px);
  transition: transform 0.3s ease;
}
.lightbox.open .lightbox-box { transform: scale(1) translateY(0); }
.lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.lightbox-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
}
.lightbox-close {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  width: 34px; height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.lightbox-close:hover { background: var(--surface-hover); border-color: rgba(34, 211, 238, 0.5); }
#lightboxVideo {
  display: block;
  width: 100%;
  max-height: 72vh;
  background: #000;
}

/* ═══════════ REVEAL ANIMATIONS ═══════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero-photo { order: -1; width: min(240px, 60vw); }
  .hero-sub, .hero-roles, .hero-actions { margin-left: auto; margin-right: auto; justify-content: center; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { grid-template-columns: 1fr; text-align: center; padding: 48px 32px; }
  .feature-visual { margin-top: 8px; }
}

@media (max-width: 640px) {
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(7, 11, 20, 0.97);
    backdrop-filter: blur(16px);
    padding: 28px 24px 36px;
    gap: 22px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-burger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .metrics-grid { gap: 28px; }
  .section { padding: 80px 0; }
  .timeline { padding-left: 28px; }
  .timeline-marker { left: -28px; }
  .timeline-card { padding: 24px 20px; }
}
