/* ═══════════════════════════════════════════════════
   LAYOUT.CSS — Sections, Navigation, Components
   ═══════════════════════════════════════════════════ */

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-lg) var(--space-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--dur-slow) var(--ease-out-quart);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-20px);
}

.nav.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.nav.scrolled {
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  padding: var(--space-md) var(--space-xl);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: var(--clr-text-primary);
  transition: color var(--dur-fast);
}

.nav__logo:hover {
  color: var(--clr-accent);
}

.nav__links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav__link {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: color var(--dur-normal) var(--ease-out-quart);
  position: relative;
  padding: var(--space-xs) 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-accent);
  transition: width var(--dur-normal) var(--ease-out-expo);
}

.nav__link:hover,
.nav__link.active {
  color: var(--clr-text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Mobile menu toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  cursor: pointer;
  z-index: var(--z-overlay);
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--clr-text-primary);
  transition: all var(--dur-normal) var(--ease-out-expo);
  transform-origin: center;
}

.nav__toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(4.5px, 4.5px);
}

.nav__toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4.5px, -4.5px);
}

/* Mobile menu overlay */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: var(--z-modal);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2xl);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-out-quart);
}

.nav__mobile-menu.open {
  display: flex;
  opacity: 1;
}

.nav__mobile-link {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 300;
  color: var(--clr-text-secondary);
  transition: color var(--dur-normal);
  letter-spacing: var(--ls-tight);
}

.nav__mobile-link:hover {
  color: var(--clr-text-primary);
}

/* ─── Progress Indicator ─── */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--clr-accent), var(--clr-accent-violet));
  z-index: calc(var(--z-nav) + 1);
  transition: width 100ms linear;
  opacity: 0;
  transition: width 100ms linear, opacity var(--dur-slow);
}

.progress-bar.visible {
  opacity: 1;
}

/* ─── Sections ─── */
.section {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.section--intro {
  z-index: var(--z-intro);
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: var(--clr-bg-primary);
}

.section--hero {
  padding-top: calc(80px + var(--space-3xl));
  padding-bottom: var(--space-4xl);
  min-height: auto;
  align-items: flex-start;
}

.section--about {
  padding: var(--space-5xl) 0;
  min-height: auto;
  align-items: flex-start;
}

.section--education {
  padding: var(--space-5xl) 0;
}

.section--skills {
  padding: var(--space-5xl) 0;
}

.section--projects {
  padding: var(--space-5xl) 0;
}

.section--closing {
  padding: var(--space-5xl) 0;
  min-height: 100vh;
}

/* ─── Intro Screen ─── */
.intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
}

.intro__year {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  opacity: 0;
}

.intro__firstname {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--clr-text-primary);
  opacity: 0;
}

.intro__lastname {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 300;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--clr-text-secondary);
  opacity: 0;
  margin-top: -0.2em;
}

.intro__tagline {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-accent);
  opacity: 0;
}

.intro__enter {
  margin-top: var(--space-xl);
  opacity: 0;
}

.intro__enter-btn {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  padding: var(--space-md) var(--space-xl);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  transition: all var(--dur-normal) var(--ease-out-quart);
  cursor: pointer;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.intro__enter-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr-accent-glow), var(--clr-accent-violet-glow));
  opacity: 0;
  transition: opacity var(--dur-normal);
  border-radius: inherit;
}

.intro__enter-btn:hover {
  border-color: var(--clr-accent);
  color: var(--clr-text-primary);
}

.intro__enter-btn:hover::before {
  opacity: 1;
}

.intro__skip {
  position: fixed;
  bottom: var(--space-2xl);
  right: var(--space-2xl);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  cursor: pointer;
  opacity: 0;
  transition: all var(--dur-normal);
  z-index: calc(var(--z-intro) + 1);
  background: transparent;
  border: none;
  padding: var(--space-sm) var(--space-md);
}

.intro__skip:hover {
  color: var(--clr-text-secondary);
}

/* Ambient light for intro */
.intro__ambient {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--clr-accent-glow) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  filter: blur(80px);
}

/* ─── Hero ─── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
  width: 100%;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-accent);
}

.hero__heading {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

.hero__subheading {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: var(--lh-snug);
  color: var(--clr-text-secondary);
}

.hero__description {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-secondary);
  max-width: 540px;
}

.hero__ctas {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-full);
  transition: all var(--dur-normal) var(--ease-out-quart);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: linear-gradient(135deg, var(--clr-accent), var(--clr-accent-violet));
  color: #fff;
  border: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn--secondary {
  background: transparent;
  color: var(--clr-text-secondary);
  border: 1px solid var(--clr-border);
}

.btn--secondary:hover {
  border-color: var(--clr-accent);
  color: var(--clr-text-primary);
  background: var(--clr-bg-glass);
}

/* Scroll indicator */
.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  opacity: 0.4;
  transition: opacity var(--dur-normal);
}

.hero__scroll:hover {
  opacity: 0.7;
}

.hero__scroll-text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--clr-text-muted), transparent);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--clr-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%   { top: -100%; }
  100% { top: 200%; }
}

/* ─── 3D Portrait ─── */
.hero__portrait {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1200px;
}

.portrait-3d {
  position: relative;
  width: 420px;
  height: 500px;
  transform-style: preserve-3d;
  transition: transform 0.08s linear;
}

.portrait-3d__container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

/* Shadow layer behind portrait */
.portrait-3d__shadow {
  position: absolute;
  bottom: -30px;
  left: 10%;
  width: 80%;
  height: 60px;
  background: radial-gradient(ellipse, rgba(79, 143, 255, 0.15) 0%, transparent 70%);
  filter: blur(25px);
  transform: translateZ(-30px);
  transition: all 0.3s var(--ease-out-quart);
}

/* Background glow layer */
.portrait-3d__glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, var(--clr-accent-glow) 0%, transparent 60%);
  opacity: 0.4;
  filter: blur(50px);
  transform: translateZ(-20px);
  transition: opacity 0.3s;
}

/* Main image layer */
.portrait-3d__image {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: translateZ(0px);
  box-shadow: var(--shadow-heavy);
}

.portrait-3d__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Light reflection overlay */
.portrait-3d__light {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.08) 0%,
    transparent 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  transform: translateZ(5px);
  pointer-events: none;
  transition: background 0.15s;
}

/* Thin border frame */
.portrait-3d__frame {
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-xl) + 2px);
  border: 1px solid var(--clr-border);
  transform: translateZ(2px);
  pointer-events: none;
  transition: border-color var(--dur-normal);
}

.portrait-3d:hover .portrait-3d__frame {
  border-color: var(--clr-border-hover);
}

/* ─── About Section ─── */
.about {
  width: 100%;
}

.about__header {
  margin-bottom: var(--space-3xl);
}

.about__heading {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  max-width: 600px;
}

.about__description {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-secondary);
  max-width: 680px;
  margin-top: var(--space-lg);
}

.about__areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-top: var(--space-3xl);
}

.about__area {
  padding: var(--space-2xl);
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: all var(--dur-normal) var(--ease-out-quart);
}

.about__area:hover {
  background: var(--clr-bg-glass-hover);
  border-color: var(--clr-border-hover);
  transform: translateY(-4px);
}

.about__area-icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-lg);
  color: var(--clr-accent);
}

.about__area-title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.about__area-description {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-secondary);
}

/* ─── Section Headings ─── */
.section-header {
  text-align: center;
  margin-bottom: var(--space-4xl);
}

.section-header__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-md);
  display: block;
}

.section-header__heading {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: var(--lh-snug);
}

.section-header__subheading {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-secondary);
  margin-top: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Education ─── */
.education {
  width: 100%;
}

.education__card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  position: relative;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
}

.education__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--clr-accent-glow), var(--clr-accent-violet-glow), transparent);
}

.education__card::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--clr-accent-violet-glow) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.education__degree {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 600;
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.education__institution {
  font-size: var(--fs-md);
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.education__meta {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.education__meta-item {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  color: var(--clr-text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.education__meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--clr-accent);
}

.education__topics {
  position: relative;
  z-index: 1;
}

.education__topics-heading {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-lg);
}

.education__topics-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.education__topic {
  font-size: var(--fs-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-text-secondary);
  transition: all var(--dur-normal) var(--ease-out-quart);
}

.education__topic:hover {
  border-color: var(--clr-accent);
  color: var(--clr-text-primary);
  background: var(--clr-accent-glow);
}

/* ─── Skills ─── */
.skills {
  width: 100%;
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  max-width: 1060px;
  margin: 0 auto;
}

.skills__category {
  padding: 1.25rem 1.5rem;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  transition: all var(--dur-normal) var(--ease-out-quart);
  display: flex;
  flex-direction: column;
}

.skills__category:hover {
  border-color: var(--clr-border-hover);
  background: var(--clr-bg-glass-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.skills__category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--clr-border);
}

.skills__category-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.skills__category-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-accent-cyan);
  font-weight: 600;
  opacity: 0.85;
}

.skills__category-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--clr-text-primary);
  letter-spacing: -0.01em;
  margin: 0;
  padding: 0;
  border-bottom: none;
}

.skills__category-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--clr-text-muted);
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.skills__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.skill-item {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease-out-quart);
  cursor: default;
  position: relative;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid transparent;
}

.skill-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.skill-item__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.skill-item__name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text-primary);
}

.skill-item__level {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  white-space: nowrap;
}

.skill-item__description {
  font-size: 11px;
  line-height: 1.4;
  color: var(--clr-text-secondary);
  margin-top: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all var(--dur-normal) var(--ease-out-quart);
}

.skill-item:hover .skill-item__description {
  margin-top: 4px;
  max-height: 50px;
  opacity: 1;
}

/* ─── Projects ─── */
.projects {
  width: 100%;
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

/* Project Card with 3D flip */
.project-card {
  perspective: 1200px;
  height: 480px;
  cursor: pointer;
}

.project-card__inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--ease-out-expo);
}

.project-card.flipped .project-card__inner {
  transform: rotateY(180deg);
}

.project-card__front,
.project-card__back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Front of card */
.project-card__front {
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  display: flex;
  flex-direction: column;
  padding: var(--space-2xl);
  transition: all var(--dur-normal) var(--ease-out-quart);
}

.project-card:hover .project-card__front {
  border-color: var(--clr-border-hover);
  background: var(--clr-bg-glass-hover);
  transform: translateZ(10px);
}

.project-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: var(--space-xl);
  color: var(--clr-accent);
  flex-shrink: 0;
}

.project-card__category {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--space-sm);
}

.project-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  margin-bottom: var(--space-md);
}

.project-card__short-desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-secondary);
  margin-bottom: var(--space-xl);
  flex-grow: 1;
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-xl);
}

.project-card__tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wide);
  padding: 4px 10px;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-text-muted);
}

.project-card__explore {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: gap var(--dur-normal) var(--ease-out-quart);
}

.project-card:hover .project-card__explore {
  gap: var(--space-md);
}

.project-card__explore-arrow {
  transition: transform var(--dur-normal) var(--ease-out-quart);
}

.project-card:hover .project-card__explore-arrow {
  transform: translateX(4px);
}

/* Back of card */
.project-card__back {
  background: var(--clr-bg-secondary);
  border: 1px solid var(--clr-border);
  transform: rotateY(180deg);
  overflow-y: auto;
  padding: var(--space-2xl);
}

.project-card__back::-webkit-scrollbar {
  width: 4px;
}

.project-card__back::-webkit-scrollbar-thumb {
  background: var(--clr-text-muted);
  border-radius: var(--radius-full);
}

.project-card__close {
  position: absolute;
  top: var(--space-lg);
  right: var(--space-lg);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-secondary);
  font-size: var(--fs-md);
  cursor: pointer;
  transition: all var(--dur-fast);
  z-index: 2;
}

.project-card__close:hover {
  background: var(--clr-bg-glass-hover);
  color: var(--clr-text-primary);
}

.project-back__title {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 600;
  margin-bottom: var(--space-lg);
  padding-right: var(--space-3xl);
}

.project-back__section {
  margin-bottom: var(--space-xl);
}

.project-back__section-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--space-sm);
}

.project-back__text {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-secondary);
}

.project-back__workflow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.project-back__workflow-step {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wide);
  padding: 4px 10px;
  background: var(--clr-bg-glass);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-text-secondary);
}

.project-back__workflow-arrow {
  color: var(--clr-text-muted);
  font-size: var(--fs-xs);
}

.project-back__features {
  list-style: none;
  margin-top: var(--space-sm);
}

.project-back__feature {
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-secondary);
  padding-left: var(--space-md);
  position: relative;
  margin-bottom: var(--space-xs);
}

.project-back__feature::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--clr-accent);
}

.project-back__links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.project-back__link {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  color: var(--clr-text-secondary);
  transition: all var(--dur-normal);
  text-decoration: none;
}

.project-back__link:hover {
  border-color: var(--clr-accent);
  color: var(--clr-text-primary);
}

.project-back__link--placeholder {
  opacity: 0.4;
  pointer-events: none;
}

/* ─── Closing ─── */
.closing {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xl);
  position: relative;
  width: 100%;
}

.closing__ambient {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--clr-accent-glow) 0%, transparent 70%);
  opacity: 0.3;
  pointer-events: none;
  filter: blur(80px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.closing__main {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 600;
  line-height: var(--lh-snug);
  position: relative;
  z-index: 1;
}

.closing__supporting {
  font-size: var(--fs-md);
  line-height: var(--lh-relaxed);
  color: var(--clr-text-secondary);
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.closing__signature {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 300;
  letter-spacing: var(--ls-tight);
  margin-top: var(--space-md);
  position: relative;
  z-index: 1;
}

.closing__tagline {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  position: relative;
  z-index: 1;
}

.closing__links {
  display: flex;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
  position: relative;
  z-index: 1;
}

.closing__link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  transition: color var(--dur-normal);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
}

.closing__link:hover {
  color: var(--clr-text-primary);
  border-color: var(--clr-accent);
}

.closing__link svg {
  width: 14px;
  height: 14px;
}

.closing__back-top {
  margin-top: var(--space-2xl);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  cursor: pointer;
  transition: color var(--dur-normal);
  background: none;
  border: none;
  position: relative;
  z-index: 1;
}

.closing__back-top:hover {
  color: var(--clr-text-primary);
}

/* ─── Footer ─── */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--clr-border);
  text-align: center;
}

.footer__text {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-text-muted);
}
