/* ═══════════════════════════════════════════════════════════════
   DESIGN SYSTEM — VARIABLES (LIGHT THEME)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #fafaf8;
  --bg-2: #f0f0ed;
  --text: #1a1a19;
  --text-muted: #5c5c58;
  --text-dim: #a0a09b;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.18);
  --surface: rgba(0, 0, 0, 0.025);
  --surface-hover: rgba(0, 0, 0, 0.05);

  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1200px;
  --header-h: 80px;

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
}

/* ═══════════════════════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}

body::-webkit-scrollbar {
  width: 6px;
}
body::-webkit-scrollbar-track {
  background: var(--bg);
}
body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */
.container {
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  padding: 12px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  z-index: 10001;
  transform: translateY(-200%);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   GRAIN OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.028;
  pointer-events: none;
  z-index: 9999;
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM CURSOR
   ═══════════════════════════════════════════════════════════════ */
.cursor {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.4s, width 0.4s var(--ease), height 0.4s var(--ease), border-color 0.3s;
  will-change: left, top;
}

.cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s, width 0.3s var(--ease), height 0.3s var(--ease);
  will-change: left, top;
}

body.cursor-ready:hover .cursor,
body.cursor-ready:hover .cursor-dot {
  opacity: 1;
}

.cursor.is-hover {
  width: 64px;
  height: 64px;
  border-color: rgba(79, 70, 229, 0.3);
}

.cursor.is-hover + .cursor-dot {
  width: 4px;
  height: 4px;
}

@media (pointer: coarse) {
  .cursor,
  .cursor-dot {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LOADER
   ═══════════════════════════════════════════════════════════════ */
.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s var(--ease);
}

.loader.is-done {
  transform: translateY(-100%);
  pointer-events: none;
}

.loader-inner {
  text-align: center;
}

.loader-text {
  font-family: var(--font-display);
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.loader-bar {
  width: 120px;
  height: 2px;
  background: var(--border);
  margin: 28px auto 0;
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  width: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  animation: loader-fill 1.2s var(--ease) forwards;
}

@keyframes loader-fill {
  to {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   HEADER / NAV
   ═══════════════════════════════════════════════════════════════ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  transition: transform 0.5s var(--ease);
}

.header.is-hidden {
  transform: translateY(-100%);
}

.nav {
  height: var(--header-h);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: var(--max-w);
  margin-inline: auto;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  z-index: 102;
  justify-self: start;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(250, 250, 248, 0.72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  justify-self: center;
  margin-left: 90px;
}

.nav-center a {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.25s, background 0.25s;
}

.nav-center a:hover {
  color: var(--text);
  background: var(--surface-hover);
}

.nav-cta {
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  transition: transform 0.3s var(--ease), background 0.2s;
  z-index: 102;
  justify-self: end;
}

.nav-cta:hover {
  background: var(--accent-hover);
  transform: scale(1.03);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  z-index: 102;
}

.nav-toggle-line {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.3s;
  transform-origin: center;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child {
  transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child {
  transform: translateY(-3.75px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: scale(1.04);
}

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

.btn-outline:hover {
  border-color: var(--border-hover);
  background: var(--surface);
}

.btn-sm {
  padding: 10px 22px;
  font-size: 13px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  position: relative;
  overflow: hidden;
}

/* Subtle ambient glow */
.hero::before {
  content: "";
  position: absolute;
  top: 10%;
  left: 0;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.07), transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: hero-glow 10s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 5%;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.04), transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: hero-glow-2 12s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  to {
    transform: translate(50px, -30px) scale(1.2);
    opacity: 1;
  }
}

@keyframes hero-glow-2 {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  to {
    transform: translate(-30px, 20px) scale(1.15);
    opacity: 1;
  }
}

.hero-content {
  width: min(var(--max-w), calc(100% - 48px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.hero-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-up 0.8s var(--ease) 1.4s forwards;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(52px, 11vw, 150px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.05em;
  margin-bottom: 48px;
}

.hero-name .line {
  display: block;
  overflow: visible;
  padding-bottom: 0.08em;
  word-break: break-word;
}

.hero-name .line-inner {
  display: block;
  opacity: 0;
  transform: translateY(110%);
  animation: text-reveal 1.1s var(--ease) forwards;
  animation-delay: var(--delay, 1.5s);
}

/* Outline/stroke effect for last name */
.hero-name .line-stroke .line-inner {
  color: transparent;
  -webkit-text-stroke: 2px var(--text);
}

.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  opacity: 0;
  animation: fade-up 0.9s var(--ease) 2.1s forwards;
}

.hero-info {
  max-width: 520px;
}

.hero-role {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.hero-lead {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fade-in 0.6s var(--ease) 2.6s forwards;
}

.hero-scroll span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--accent);
  animation: scroll-line 2.2s var(--ease) infinite;
}

@keyframes scroll-line {
  0% {
    top: -40%;
  }
  100% {
    top: 140%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MARQUEE
   ═══════════════════════════════════════════════════════════════ */
.marquee {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-wrapper {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  will-change: transform;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 32px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
}

.marquee-item::after {
  content: "\2726";
  color: var(--accent);
  font-size: 8px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ═══════════════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.section {
  padding: 120px 0;
}

.section-header {
  margin-bottom: 72px;
}

.section-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 80px);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   PROJECTS
   ═══════════════════════════════════════════════════════════════ */
.project-item {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  position: relative;
  transition: background 0.5s;
  cursor: default;
}

.project-item:last-child {
  border-bottom: 1px solid var(--border);
}

/* Accent line on hover */
.project-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
  border-radius: 2px;
  z-index: 1;
}

.project-item:hover {
  background: var(--surface);
}

.project-item:hover .project-top,
.project-item:hover .project-title,
.project-item:hover .project-desc,
.project-item:hover .project-footer {
  padding-left: 12px;
}

.project-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.project-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  transition: padding-left 0.4s var(--ease);
}

.project-index {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.project-status {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 6px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: border-color 0.3s;
}

.project-item:hover .project-status {
  border-color: var(--border-hover);
}

.project-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
  transition: color 0.4s, padding-left 0.4s var(--ease);
}

.project-item:hover .project-title {
  color: var(--accent);
}

.project-desc {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 72ch;
  margin-bottom: 24px;
  transition: padding-left 0.4s var(--ease);
}

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  transition: padding-left 0.4s var(--ease);
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.project-tag {
  font-size: 12px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s;
}

.project-item:hover .project-tag {
  border-color: var(--border-hover);
  color: var(--text);
}

.project-links {
  display: flex;
  gap: 20px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s;
}

.project-link:hover {
  color: var(--accent);
}

.project-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.3s var(--ease);
}

.project-link:hover svg {
  transform: translate(2px, -2px);
}

.certifications-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.certification-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  overflow: hidden;
}

.certification-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease);
  border-radius: 2px;
  z-index: 1;
}

.certification-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.certification-item:hover::before {
  transform: scaleY(1);
  transform-origin: top;
}

.certification-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 20px;
  background: var(--bg-2);
}

.certification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.certification-issuer {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.certification-date {
  font-size: 12px;
  color: var(--text-dim);
}

.certification-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}

.certification-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.certification-item.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), box-shadow 0.4s var(--ease);
}

.certification-item.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 80px;
  align-items: start;
}

.about-title {
  margin-bottom: 32px;
}

.about-text p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-text strong {
  color: var(--text);
  font-weight: 600;
}

.about-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--surface);
}

.about-stat {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.about-stat:first-child {
  padding-top: 0;
}

.about-stat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.about-stat-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.about-stat-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.about-links {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.about-link:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface);
}

.about-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.about-link:hover svg {
  transform: translate(3px, -3px);
}

/* ═══════════════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════════════ */
.contact {
  padding: 140px 0;
  text-align: center;
}

.contact-content {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  width: 100%;
}

.contact-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 9vw, 110px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
  text-align: center;
}

.contact-lead {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 48px;
  line-height: 1.7;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: clamp(16px, 2.5vw, 24px);
  font-weight: 600;
  color: var(--accent);
  padding: 18px 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-bottom: 20px;
  transition: background 0.3s, border-color 0.4s, transform 0.35s var(--ease);
}

.contact-email:hover {
  background: var(--surface);
  border-color: rgba(79, 70, 229, 0.25);
  transform: scale(1.03);
}

.contact-email svg {
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.contact-email:hover svg {
  transform: translate(3px, -3px);
}

.copy-status {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  margin-top: 16px;
  min-height: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
}

.footer-cookies {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 4px;
  opacity: 0.7;
}

.footer-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.25s;
}

.footer-top:hover {
  color: var(--accent);
}

.footer-top svg {
  transition: transform 0.3s var(--ease);
}

.footer-top:hover svg {
  transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes text-reveal {
  from {
    opacity: 0;
    transform: translateY(110%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

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

.project-item.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.5s;
}

.project-item.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 32px;
  }

  .certifications-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 80px 0;
  }

  /* Nav centrage sur petits écrans */
  .nav {
    display: flex;
    justify-content: space-between;
    padding: 0 16px;
  }

  .nav-center {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px;
    background: var(--bg);
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    z-index: 101;
  }

  .nav-center.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-center a {
    font-size: clamp(28px, 8vw, 42px);
    font-family: var(--font-display);
    font-weight: 700;
    padding: 12px 16px;
    color: var(--text);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  :root {
    --header-h: 64px;
  }

  .container {
    width: min(var(--max-w), calc(100% - 32px));
  }

  /* Nav mobile */
  .nav {
    display: flex;
    justify-content: space-between;
  }

  .nav-center {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 24px;
    background: var(--bg);
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
    z-index: 101;
  }

  .nav-center.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-center a {
    font-size: clamp(28px, 8vw, 42px);
    font-family: var(--font-display);
    font-weight: 700;
    padding: 12px 16px;
    color: var(--text);
  }

  .nav-cta {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero */
  .hero {
    padding-bottom: 100px;
    padding-left: 16px;
    padding-right: 16px;
    overflow-x: hidden;
  }

  .hero-content {
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
  }

  .hero-name {
    overflow-x: hidden;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-info {
    max-width: 100%;
  }

  .hero-scroll {
    display: none;
  }

  /* Sections */
  .section {
    padding: 80px 0;
    overflow-x: hidden;
  }

  .section-header {

  .section-header {
    margin-bottom: 48px;
  }

  .project-item {
    padding: 36px 0;
  }

  .project-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Certifications */
  .certifications-list {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .certification-item {
    padding: 16px;
  }

  .certification-image {
    height: 140px;
  }

  .certification-title {
    font-size: 16px;
  }

  /* Contact */
  .contact {
    padding: 80px 16px;
  }

  .contact-content {
    padding-left: 0;
    padding-right: 0;
  }

  .contact-email {
    padding: 14px 24px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: clamp(22px, 10vw, 40px);
    overflow-wrap: normal;
    word-break: normal;
    overflow-x: hidden;
    white-space: nowrap;
  }

  .hero-name .line {
    overflow-x: hidden;
  }

  .project-title {
    font-size: clamp(22px, 7vw, 36px);
  }

  .contact-title {
    font-size: clamp(28px, 10vw, 48px);
    text-align: center;
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
    padding: 24px 0;
  }

  .footer-top {
    margin-top: 8px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal,
  .project-item.reveal {
    opacity: 1;
    transform: none;
  }

  .hero-kicker,
  .hero-name .line-inner,
  .hero-bottom,
  .hero-scroll {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }

  .loader {
    display: none;
  }
}
