/* ============================================================
   DESIGN TOKENS  (from Figma)
   ============================================================ */
:root {
  /* Colors */
  --color-bg:           #1C1C1C;
  --color-hero-grad:    linear-gradient(55.22deg, #1C1C1C 36.26%, #08463B 93.28%);
  --color-green:        #3DCFB6;
  --color-green-50:     rgba(61, 207, 182, 0.5);
  --color-accent:       #02F4BF;
  --color-white:        #FFFFFF;
  --color-white-80:     rgba(255, 255, 255, 0.8);

  /* Typography */
  --font-heading: 'Fira Code', monospace;
  --font-body:    'Karla', sans-serif;

  /* Spacing */
  --space-xs:  8px;
  --space-s:   12px;
  --space-m:   16px;
  --space-l:   24px;
  --space-xl:  32px;
  --space-2xl: 40px;
  --space-3xl: 64px;

  /* Layout */
  --max-width:    1200px;
  --header-h:     80px;
  --radius-card:  20px;
  --radius-pill:  100px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

.section-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 18px;
  color: var(--color-green);
  margin-bottom: var(--space-m);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 24px;
  height: 48px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
  border: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-green);
  color: var(--color-bg);
}
.btn--primary:hover { opacity: 0.85; }

.btn--secondary {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
}
.btn--secondary:hover { border-color: var(--color-green); color: var(--color-green); }

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 1px solid var(--color-white);
  font-size: 18px;
  padding: 0 24px;
  height: 48px;
}
.btn--outline:hover { border-color: var(--color-green); color: var(--color-green); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.text-link {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--color-green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { opacity: 0.75; }

/* ============================================================
   LANGUAGE SWITCH
   ============================================================ */
.lang-switch {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--color-green);
  border-radius: var(--radius-pill);
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  height: 28px;
}

.lang-switch__en,
.lang-switch__de {
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 28px;
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-green-50);
  transition: background 0.2s, color 0.2s;
  user-select: none;
}

.lang-switch__en.active,
.lang-switch__de.active {
  background: var(--color-green);
  color: var(--color-white);
  font-weight: 700;
  border-radius: var(--radius-pill);
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, backdrop-filter 0.3s;
}

.header.scrolled {
  background: rgba(28, 28, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  text-decoration: none;
}
.logo__icon { flex-shrink: 0; }
.logo__name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -0.03em;
}

/* Desktop nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}
.nav__list {
  display: flex;
  gap: var(--space-xl);
}
.nav__link {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-white);
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 4px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--color-green);
  transition: width 0.25s;
}
.nav__link:hover::after { width: 100%; }

/* Burger button */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-l);
  width: 238px;
  min-height: 252px;
  padding: 40px;
  background: var(--color-hero-grad);
  border: 1px solid var(--color-green);
  border-radius: 30px;
  transform: scale(0.9);
  transition: transform 0.3s;
}
.mobile-menu.open .mobile-menu__card { transform: scale(1); }

.mobile-menu__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-white);
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-l);
}
.mobile-menu__link {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-white);
  letter-spacing: -0.03em;
  transition: color 0.2s;
}
.mobile-menu__link:hover { color: var(--color-green); }

.lang-switch--menu { margin-top: var(--space-xs); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-grad);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-m);
}

.hero__greeting {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-white-80);
  margin-bottom: var(--space-xs);
}

.hero__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: var(--space-m);
}

.hero__role {
  font-family: var(--font-heading);
  font-size: clamp(22px, 4vw, 40px);
  font-weight: 400;
  color: var(--color-green);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-xl);
}

.hero__cta {
  display: flex;
  gap: var(--space-m);
  flex-wrap: wrap;
}

/* Left lateral: scroll pill + green line */
.hero__lateral-left {
  position: absolute;
  left: 96px;
  bottom: 0;
  width: 30px;
  height: 312px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 1;
}
.hero__scroll-pill {
  width: 30px;
  height: 48px;
  border: 1px solid var(--color-green);
  border-radius: 32px;
  display: flex;
  justify-content: center;
  padding-top: 10px;
  flex-shrink: 0;
}
.hero__scroll-tick {
  display: block;
  width: 0;
  height: 12px;
  border-left: 1px solid #fff;
  animation: scrollPulse 2s ease-in-out infinite;
}
.hero__lat-line {
  flex: 1;
  width: 0;
}
.hero__lat-line--green { border-left: 1px solid var(--color-green); }
.hero__lat-line--white { border-left: 1px solid rgba(255, 255, 255, 0.5); }

/* Right lateral: email + socials + white line */
.hero__lateral-right {
  position: absolute;
  right: 96px;
  bottom: 0;
  width: 32px;
  height: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  z-index: 1;
}
.hero__email-rotated {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.hero__email-rotated:hover { color: var(--color-green); }
.hero__lat-socials {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.hero__lat-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: opacity 0.2s;
}
.hero__lat-social-link:hover { opacity: 0.7; }

/* Marquee */
.hero__marquee {
  position: absolute;
  bottom: 78px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 120vw;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(3px);
  padding: 12px 0;
  z-index: 1;
}
.hero__marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}
.hero__marquee-set {
  display: flex;
  align-items: center;
  gap: 56px;
  padding-right: 56px;
}
.hero__marquee-item {
  font-family: var(--font-body);
  font-size: 32px;
  line-height: 1.2;
  color: var(--color-green);
  white-space: nowrap;
  flex-shrink: 0;
}
.hero__marquee-sep {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--color-green);
  flex-shrink: 0;
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--marquee-offset, -50%)); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding-block: 120px;
}

.about__inner {
  display: flex;
  align-items: flex-start;
  gap: 96px;
}

/* --- Photo column --- */
.about__photo-col {
  flex: 0 0 568px;
}

.about__frame {
  position: relative;
  width: 568px;
  height: 568px;
}

/* SVG decorative concentric-corner lines */
.about__deco {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  display: none;
}

.about__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  filter: grayscale(100%);
  border-radius: 30px;
}

/* --- Text column --- */
.about__text-col {
  flex: 0 0 568px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 98px;
}

.about__who-label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 24px;
  line-height: 28px;
  color: var(--color-green);
}

/* Glass card */
.about__card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 32px;
  background: rgba(61, 207, 182, 0.1);
  border: 1px solid var(--color-green);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border-radius: 30px;
}

.about__card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-green);
}

.about__card-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about__bio {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.2;
  text-align: justify;
  color: var(--color-white);
}

/* Highlight bullet points */
.about__highlights {
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.highlight-item__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.highlight-item__text {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.2;
  color: var(--color-white-80);
  padding-top: 5px;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills {
  position: relative;
  padding-block: 48px;
  background: radial-gradient(
    22.43% 43.85% at 1.22% 52.45%,
    rgba(8, 70, 59, 0.3) 0%,
    #1C1C1C 100%
  );
  overflow: hidden;
}

.skills__inner {
  display: flex;
  align-items: flex-start;
  gap: 96px;
}

/* --- Left card column (520px in Figma) --- */
.skills__card-col {
  flex: 0 0 520px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skills__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  line-height: 28px;
  color: var(--color-green);
}

.skills__card {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 32px;
  background: rgba(61, 207, 182, 0.1);
  border: 1px solid var(--color-green);
  border-radius: 30px;
}

.skills__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-green);
}

.skills__card-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.skills__desc {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.2;
  text-align: justify;
  color: var(--color-white);
}

/* CTA block (right-aligned) */
.skills__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

.skills__cta-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  color: var(--color-white);
  align-self: stretch;
  text-align: right;
}

.skills__cta-text {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-white);
  align-self: stretch;
  text-align: right;
}

/* --- Right skill grid (632px in Figma) --- */
.skills__grid {
  flex: 0 0 632px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: flex-start;
  gap: 40px 72px;
  padding-top: 48px;   /* matches Figma top: 48px offset vs section top */
}

/* Individual skill item (104 × 116px in Figma) */
.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 104px;
  min-height: 116px;
}

.skill-item__icon-wrap {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.skill-item:hover .skill-item__icon-wrap {
  transform: translateY(-4px);
}

.skill-item__icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.skill-item__name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  text-align: center;
  letter-spacing: -0.03em;
  color: var(--color-white);
}

/* ============================================================
   PORTFOLIO / PROJECTS
   ============================================================ */
.portfolio {
  padding-block: 120px;
  border-top: 1px solid var(--color-green-50);
}

.portfolio__header {
  margin-bottom: 64px;
}

.portfolio__label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 24px;
  color: var(--color-green);
  margin-bottom: 16px;
}

.portfolio__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 6vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-green);
  margin-bottom: 24px;
}

.portfolio__intro {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-white-80);
  max-width: 700px;
}

.portfolio__body {
  display: flex;
  align-items: flex-start;
  gap: 48px;
}

/* --- Project list (left column) --- */
.portfolio__list {
  flex: 1;
  min-width: 0;
  list-style: none;
}

.plist-row {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--color-green-50);
  cursor: pointer;
  transition: border-color 0.2s;
  outline: none;
}
.plist-row:first-child { border-top: 1px solid var(--color-green-50); }

.plist-row:hover,
.plist-row.active { border-bottom-color: var(--color-green); }

.plist-row:hover .plist-row__title,
.plist-row.active .plist-row__title { color: var(--color-green); }

.plist-row:hover .plist-row__arrow,
.plist-row.active .plist-row__arrow { transform: translateX(4px); }

.plist-row__num {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-white-80);
  flex-shrink: 0;
  width: 32px;
}

.plist-row__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--color-white);
  flex: 1;
  transition: color 0.2s;
}

.plist-row__tech {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ptag {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-green);
  letter-spacing: -0.02em;
}

.ptag-sep {
  font-family: var(--font-heading);
  font-size: 16px;
  color: var(--color-green);
  user-select: none;
}

.plist-row__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

/* --- Preview panel (right column) --- */
.portfolio__preview {
  flex: 0 0 380px;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.portfolio__preview.is-visible {
  opacity: 1;
  pointer-events: all;
}

.ppreview__card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-green);
  border-radius: var(--radius-card);
  background: rgba(61, 207, 182, 0.05);
  overflow: hidden;
}

.ppreview__img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

.ppreview__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.ppreview__img-wrap:hover .ppreview__img { transform: scale(1.04); }

.ppreview__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
}

.ppreview__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ppreview__num {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-white-80);
}

.ppreview__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.03em;
  color: var(--color-white);
}

.ppreview__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: var(--color-green);
}

.ppreview__desc {
  font-size: 15px;
  line-height: 1.5;
  color: var(--color-white-80);
}

.ppreview__tech {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ppreview__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 4px;
}

/* --- Project detail modal --- */
.proj-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.proj-modal.open {
  opacity: 1;
  pointer-events: all;
}

.proj-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

/* Wide landscape card (Figma 03_a: 1248×656) */
.proj-modal__card {
  position: relative;
  z-index: 1;
  width: min(1248px, 100%);
  background: linear-gradient(55.22deg, #1C1C1C 36.26%, #08463B 93.28%);
  border: 1px solid var(--color-green);
  border-radius: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 56px 80px;
  gap: 88px;
  transform: scale(0.9);
  transition: transform 0.3s;
  overflow: hidden;
}
.proj-modal.open .proj-modal__card { transform: scale(1); }

.proj-modal__close {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(28, 28, 28, 0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.proj-modal__close:hover { background: rgba(61, 207, 182, 0.25); }

/* Left: content column (480px) */
.proj-modal__content {
  flex: 0 0 480px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.proj-modal__heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.proj-modal__num {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 128px;
  line-height: 100px;
  letter-spacing: -0.02em;
  color: var(--color-green);
}

.proj-modal__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 64px;
  line-height: 80%;
  letter-spacing: -0.03em;
  color: var(--color-white);
}

.proj-modal__details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.proj-modal__label-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.proj-modal__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 24px;
  line-height: 120%;
  color: var(--color-green);
}

.proj-modal__desc {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 120%;
  color: var(--color-white);
}

.proj-modal__tech {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px;
}

.modal-tech-tag {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-white);
}

.modal-tech-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.proj-modal__actions {
  display: flex;
  flex-direction: row;
  gap: 32px;
}

/* Right: image column */
.proj-modal__img-col {
  flex: 1;
  min-width: 0;
}

.proj-modal__img-wrap {
  width: 100%;
  aspect-ratio: 520 / 370;
  border-radius: 30px;
  overflow: hidden;
}

.proj-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* "Next project" text+arrow button (bottom-right) */
.proj-modal__next-btn {
  position: absolute;
  bottom: 40px;
  right: 80px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-green);
  background: none;
  border: none;
  cursor: pointer;
  transition: gap 0.2s;
}
.proj-modal__next-btn:hover { gap: 14px; }

.arrow-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-green);
}

/* ============================================================
   REFERENCES  (testimonial slider)
   ============================================================ */
.references {
  padding-block: 80px 48px;
  overflow: hidden;
}

.references__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 32px;
  line-height: 42px;
  color: var(--color-green);
  text-align: center;
  margin-bottom: 48px;
}

/* Stage — full bleed, clips the track */
.references__stage {
  position: relative;
  width: 100%;
  overflow: hidden;
}

/* Left / right fade overlays */
.references__stage::before,
.references__stage::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 12%;
  z-index: 1;
  pointer-events: none;
}
.references__stage::before {
  left: 0;
  background: linear-gradient(90deg, var(--color-bg) 0%, transparent 100%);
}
.references__stage::after {
  right: 0;
  background: linear-gradient(270deg, var(--color-bg) 0%, transparent 100%);
}

/* Track — all cards side by side, shifted by JS */
.references__track {
  display: flex;
  align-items: center;
  gap: 64px;
  padding-block: 20px;           /* space for the scale-up on active card */
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Individual reference card */
.ref-card {
  flex-shrink: 0;
  width: 632px;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  gap: 44px;
  background: rgba(61, 207, 182, 0.1);
  border: 1px solid var(--color-green);
  border-radius: 32px;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease, transform 0.4s ease;
}

/* Decorative oversized quote mark */
.ref-card::before {
  content: '\201C';
  position: absolute;
  top: 8px;
  left: 24px;
  font-size: 140px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.06);
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
}

.ref-card.active {
  background: rgba(61, 207, 182, 0.3);
  transform: scale(1.03);
}

.ref-card__quote {
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 120%;
  color: rgba(255, 255, 255, 0.8);
}
.ref-card.active .ref-card__quote { color: var(--color-white); }

.ref-card__footer {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ref-card__line {
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 32px;
}
.ref-card.active .ref-card__line { background: var(--color-white); }

.ref-card__author {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 120%;
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}
.ref-card.active .ref-card__author { color: var(--color-white); }

/* Navigation row */
.references__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.ref-arrow {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  transition: color 0.2s;
  padding: 0;
}
.ref-arrow:hover  { color: var(--color-green); }
.ref-arrow:disabled { opacity: 0.3; cursor: not-allowed; }

.ref-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ref-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-white);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s;
}
.ref-dot.active { background: var(--color-green); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding-block: 120px;
  border-top: 1px solid var(--color-green-50);
}
.contact__intro {
  margin-bottom: 64px;
}
.contact__headline {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 7vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--color-green);
}
.contact__body {
  display: flex;
  gap: 80px;
  align-items: flex-start;
  margin-bottom: 64px;
}
.contact__text {
  flex: 0 0 340px;
}
.contact__subheading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-green);
  margin-bottom: var(--space-m);
}
.contact__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-white);
}

/* Form */
.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--color-green);
}

.form-field {
  display: flex;
  flex-direction: column;
  padding: var(--space-xl) var(--space-m);
  border-bottom: 1px solid var(--color-green-50);
  gap: 0;
}
.form-field__label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 20px;
  color: var(--color-green);
  margin-bottom: var(--space-m);
  cursor: pointer;
}
.form-field__input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-white-80);
  width: 100%;
  resize: none;
  /* disable webkit autofill color override */
  -webkit-text-fill-color: rgba(255,255,255,0.8);
}
.form-field__input::placeholder { color: rgba(255,255,255,0.5); }
.form-field__input:-webkit-autofill,
.form-field__input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--color-bg) inset;
  -webkit-text-fill-color: rgba(255,255,255,0.8);
  transition: background-color 9999s ease-in-out 0s;
}

.form-field__input--textarea { min-height: 80px; }

.form-field__error {
  font-size: 13px;
  color: #ff6b6b;
  min-height: 18px;
  margin-top: 4px;
  display: block;
}
/* No layout shift: error space is always reserved */

/* invalid state */
.form-field.invalid .form-field__label { color: #ff6b6b; }
.form-field.invalid { border-bottom-color: rgba(255,107,107,0.5); }

/* Privacy checkbox */
.form-privacy {
  padding: var(--space-xl) var(--space-m);
}
.privacy-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  cursor: pointer;
}
.privacy-label__checkbox { position: absolute; opacity: 0; width: 0; height: 0; }
.privacy-label__box {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border: 2px solid var(--color-green);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  margin-top: 2px;
}
.privacy-label__checkbox:checked ~ .privacy-label__box {
  background: var(--color-green);
}
.privacy-label__checkbox:checked ~ .privacy-label__box::after {
  content: '';
  display: block;
  width: 6px; height: 10px;
  border-right: 2px solid var(--color-bg);
  border-bottom: 2px solid var(--color-bg);
  transform: rotate(45deg) translate(-1px, -1px);
}
.privacy-label__text {
  font-size: 15px;
  color: var(--color-white);
  line-height: 1.5;
}

/* Form submit row */
.form-submit {
  padding: var(--space-xl) var(--space-m) 0;
  display: flex;
  justify-content: flex-end;
}

/* Feedback message */
.form-feedback {
  padding: var(--space-m);
  border-radius: 8px;
  font-size: 15px;
  margin: var(--space-m);
}
.form-feedback.success {
  background: rgba(61, 207, 182, 0.1);
  border: 1px solid var(--color-green);
  color: var(--color-green);
}
.form-feedback.error {
  background: rgba(255, 107, 107, 0.1);
  border: 1px solid #ff6b6b;
  color: #ff6b6b;
}

/* Socials */
.contact__socials {
  display: flex;
  align-items: center;
  gap: var(--space-m);
  margin-top: var(--space-xl);
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border: 1px solid var(--color-green-50);
  border-radius: 50%;
  transition: border-color 0.2s, background 0.2s;
}
.social-link:hover { border-color: var(--color-green); background: rgba(61,207,182,0.1); }
.social-link img { width: 24px; height: 24px; object-fit: contain; filter: brightness(0) invert(1); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding-block: 64px 24px;
  border-top: 1px solid var(--color-green-50);
}
.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}
.footer__tagline {
  font-size: 16px;
  color: var(--color-white);
  line-height: 1.5;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  align-items: flex-end;
}
.footer__link {
  font-size: 16px;
  color: var(--color-white);
  transition: color 0.2s;
  position: relative;
}
/* Hover dot indicator (Figma: 32. footer button) */
.footer__link::before {
  content: '';
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px solid var(--color-green);
  background: var(--color-green);
  opacity: 0;
  transition: opacity 0.2s;
}
.footer__link:hover::before { opacity: 1; }
.footer__link:hover { color: var(--color-green); }

.footer__copy {
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-green);
  text-align: center;
}

/* ============================================================
   RESPONSIVE — TABLET  (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }

  .about__inner {
    flex-direction: column;
    align-items: center;
    gap: 48px;
  }
  .about__photo-col { flex: none; width: 100%; max-width: 480px; }
  .about__frame     { width: 100%; height: auto; aspect-ratio: 1; }
  .about__text-col  { flex: none; width: 100%; padding-top: 0; }
  .about__card-title { font-size: 48px; }

  .skills__inner {
    flex-direction: column;
    gap: 48px;
  }
  .skills__card-col { flex: none; width: 100%; }
  .skills__grid     { flex: none; width: 100%; padding-top: 0; gap: 32px 48px; justify-content: center; }
  .skills__headline { font-size: 48px; }
  .skills__cta      { align-items: flex-start; }
  .skills__cta-heading,
  .skills__cta-text  { text-align: left; }

  .portfolio__body { gap: 0; }
  .portfolio__preview { display: none; }

  .references__track { gap: 32px; }
  .ref-card { width: min(520px, 80vw); }

  .proj-modal { padding: 16px; }
  .proj-modal__card {
    flex-direction: column;
    padding: 40px 24px 80px;
    gap: 32px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .proj-modal__content { flex: none; width: 100%; }
  .proj-modal__num   { font-size: 72px; line-height: 72px; }
  .proj-modal__title { font-size: 40px; }
  .proj-modal__img-col { width: 100%; }
  .proj-modal__next-btn { right: 24px; bottom: 24px; }

  .hero__lateral-left,
  .hero__lateral-right { display: none; }
  .hero__marquee-item { font-size: 22px; }

  .contact__body { flex-direction: column; gap: var(--space-xl); }
  .contact__text { flex: none; width: 100%; }

  .footer__inner { flex-direction: column; gap: var(--space-l); }
  .footer__nav { align-items: flex-start; }
}

/* ============================================================
   RESPONSIVE — LARGE PHONE  (≤ 680px)
   ============================================================ */
@media (max-width: 680px) {
  /* About — cap photo width so it doesn't feel oversized */
  .about__photo-col { max-width: 320px; margin-inline: auto; }

  /* Skills — tighter card padding */
  .skills__card { padding: 40px 28px; }

  /* Portfolio list rows — hide number earlier */
  .plist-row__num { display: none; }

  /* References */
  .ref-card { width: min(460px, calc(100vw - 48px)); }

  /* Contact — stack text and form earlier */
  .contact__body { flex-direction: column; gap: var(--space-l); }
  .contact__text { flex: none; width: 100%; }
}

/* ============================================================
   RESPONSIVE — MOBILE  (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  /* Hero */
  .hero__cta { flex-direction: column; align-items: flex-start; }

  /* About */
  .about { padding-block: 80px; }
  .about__photo-col { max-width: 100%; }
  .about__card-title { font-size: 56px; }

  /* Skills — match Figma mobile specs */
  .skills__label    { font-size: 18px; }
  .skills__card     { padding: 24px 32px; }
  .skills__headline { font-size: 56px; line-height: 0.8; }
  .skills__grid     { gap: 32px 16px; }
  .skills__cta      { align-items: flex-end; }
  .skills__cta-heading,
  .skills__cta-text  { text-align: right; }

  /* Portfolio — match Figma mobile specs */
  .portfolio__label    { font-size: 18px; }
  .portfolio__headline { font-size: 56px; }
  /* Row: wrap title + arrow on line 1, tech tags on line 2 */
  .plist-row        { flex-wrap: wrap; padding: 32px 0; gap: 10px 0; }
  .plist-row__num   { display: none; }
  .plist-row__title { flex: 1; }
  .plist-row__tech  { display: flex; flex-wrap: wrap; gap: 4px; width: 100%; order: 10; }
  .plist-row__arrow { order: 2; }
  /* Tech tag font: 18px matches Figma mobile */
  .ptag, .ptag-sep  { font-size: 18px; }

  /* References — nearly full-width cards */
  .references__headline { font-size: 24px; }
  .references__track    { gap: 24px; }
  .ref-card {
    width: min(358px, calc(100vw - 32px));
    padding: 40px;
    gap: 44px;
  }
  .ref-card__quote { font-size: 18px; }

  /* Hero marquee — hide on small mobile */
  .hero__marquee { display: none; }

  /* Contact — match Figma mobile specs */
  .contact__headline { font-size: 56px; }
  .form-submit { justify-content: center; }
  .form-submit .btn { min-width: 139px; }

  /* Footer — keep brand + nav side-by-side (override ≤900px column) */
  .footer__inner { flex-direction: row; align-items: flex-start; gap: var(--space-m); }
  .footer__nav   { align-items: flex-end; }
  .footer__tagline { font-size: 14px; }
  .footer__link    { font-size: 14px; }
}

/* ============================================================
   RESPONSIVE — VERY SMALL  (≤ 360px)
   ============================================================ */
@media (max-width: 360px) {
  /* Skills grid — 2 columns instead of 3 to avoid squeezing */
  .skills__grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }

  /* Buttons full width */
  .hero__cta .btn { width: 100%; justify-content: center; }

  /* Footer stack vertically on tiny screens */
  .footer__inner { flex-direction: column; }
  .footer__nav   { align-items: flex-start; }
}
