/* ============================================
   Félix Lenci — Portfolio
   felixlenci.com
   ============================================ */

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

:root {
  --bg-primary: #06060b;
  --bg-secondary: #0e0e18;
  --bg-tertiary: #151524;
  --bg-card: #12121f;
  --text-primary: #eaeaf2;
  --text-secondary: #9898b0;
  --text-muted: #5e5e78;
  --accent: #7c5cff;
  --accent-light: #a18dff;
  --accent-dim: rgba(124, 92, 255, 0.12);
  --accent-glow: rgba(124, 92, 255, 0.25);
  --green: #00d4aa;
  --green-dim: rgba(0, 212, 170, 0.12);
  --orange: #ff9f43;
  --orange-dim: rgba(255, 159, 67, 0.12);
  --blue: #3b82f6;
  --blue-dim: rgba(59, 130, 246, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(124, 92, 255, 0.15);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Scroll reveal --- */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease),
              backdrop-filter 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(6, 6, 11, 0.82);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  transition: color 0.2s;
}
.nav-brand:hover {
  color: var(--accent);
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}
.nav-links a {
  display: block;
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

/* Animated gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.4;
  pointer-events: none;
  will-change: transform;
}
.hero-orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -15%;
  left: -10%;
  animation: orbFloat1 18s ease-in-out infinite;
}
.hero-orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #00d4aa 0%, transparent 70%);
  bottom: -10%;
  right: -8%;
  animation: orbFloat2 22s ease-in-out infinite;
}
.hero-orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #ff6b9d 0%, transparent 70%);
  top: 40%;
  left: 55%;
  animation: orbFloat3 15s ease-in-out infinite;
  opacity: 0.2;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.05); }
  66% { transform: translate(-30px, -20px) scale(0.95); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, -30px) scale(1.08); }
  66% { transform: translate(40px, 20px) scale(0.92); }
}
@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 30px); }
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 32px;
  padding: 8px 20px;
  background: var(--green-dim);
  border: 1px solid rgba(0, 212, 170, 0.15);
  border-radius: 100px;
  animation: fadeInDown 0.8s var(--ease-out) both;
}
.hero-dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(0, 212, 170, 0); }
}

.hero-name {
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s 0.15s var(--ease-out) both;
}
.hero-name-line {
  display: block;
}
.hero-accent {
  color: var(--accent);
}

.hero-tagline {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 40px;
  animation: fadeInUp 0.8s 0.3s var(--ease-out) both;
}
.hero-tagline em {
  font-style: normal;
  color: var(--text-primary);
  font-weight: 600;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.45s var(--ease-out) both;
}

/* Scroll indicator */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInUp 0.8s 0.7s var(--ease-out) both;
}
.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50.1% { transform-origin: bottom; }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(124, 92, 255, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 8px 32px rgba(124, 92, 255, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}
.btn-sm {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-sm:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
  padding: 120px 24px;
  position: relative;
}
.section-dark {
  background: var(--bg-secondary);
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  padding: 6px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: 6px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 64px;
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 64px;
  align-items: start;
  margin-bottom: 80px;
}

.about-photo-frame {
  aspect-ratio: 1;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--accent-dim), var(--bg-tertiary));
  border: 1px solid var(--border-accent);
  overflow: hidden;
  position: relative;
}
.about-photo-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.about-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
  opacity: 0.3;
  background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
}

.about-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-text p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 16px;
}

/* Traits */
.traits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.trait {
  padding: 28px 24px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
              box-shadow 0.3s var(--ease);
}
.trait:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}
.trait-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-bottom: 16px;
}
.trait-label {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.trait-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ============================================
   PROJECTS
   ============================================ */
.project {
  margin-bottom: 80px;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project:last-child {
  margin-bottom: 0;
}
.project:hover {
  border-color: var(--border-accent);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
}

.project-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  margin: 32px 0 0 32px;
  border-radius: 6px;
}
.project-fractality .project-badge {
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
}
.project-koral .project-badge {
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(0, 212, 170, 0.15);
}
.project-focus .project-badge {
  color: var(--orange);
  background: var(--orange-dim);
  border: 1px solid rgba(255, 159, 67, 0.15);
}

.project-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 32px;
  align-items: center;
}

.project-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.project-fractality .project-name { color: var(--accent-light); }
.project-koral .project-name { color: var(--green); }
.project-focus .project-name { color: var(--orange); }

.project-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 24px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.project-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

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

/* --- Project visuals --- */
.project-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.project-mockup {
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}

/* Fractality mockup — widget grid */
.fractality-mockup {
  background: linear-gradient(145deg, #0c0c1a, #14142a);
  border: 1px solid rgba(124, 92, 255, 0.1);
  padding: 24px;
}
.mockup-screen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 52px;
  gap: 10px;
}
.mockup-widget {
  border-radius: 12px;
  animation: widgetPulse 4s ease-in-out infinite;
}
.mockup-w1 {
  grid-column: span 4;
  grid-row: span 2;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.25), rgba(124, 92, 255, 0.08));
  border: 1px solid rgba(124, 92, 255, 0.15);
  animation-delay: 0s;
}
.mockup-w2 {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.25), rgba(0, 212, 170, 0.08));
  border: 1px solid rgba(0, 212, 170, 0.15);
  animation-delay: 0.4s;
}
.mockup-w3 {
  background: linear-gradient(135deg, rgba(255, 107, 157, 0.25), rgba(255, 107, 157, 0.08));
  border: 1px solid rgba(255, 107, 157, 0.15);
  animation-delay: 0.8s;
}
.mockup-w4 {
  background: linear-gradient(135deg, rgba(255, 159, 67, 0.25), rgba(255, 159, 67, 0.08));
  border: 1px solid rgba(255, 159, 67, 0.15);
  animation-delay: 1.2s;
}
.mockup-w5 {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.25), rgba(59, 130, 246, 0.08));
  border: 1px solid rgba(59, 130, 246, 0.15);
  animation-delay: 1.6s;
}
.mockup-w6 {
  grid-column: span 4;
  grid-row: span 2;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.15), rgba(0, 212, 170, 0.1));
  border: 1px solid rgba(124, 92, 255, 0.1);
  animation-delay: 2s;
}
@keyframes widgetPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* KORAL mockup — terminal */
.koral-mockup {
  background: #080812;
  border: 1px solid rgba(0, 212, 170, 0.12);
  padding: 4px;
}
.mockup-terminal {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.7;
  padding: 20px 24px;
  color: var(--text-secondary);
  white-space: pre;
  overflow-x: auto;
}
.t-prompt { color: var(--green); font-weight: 600; }
.t-muted { color: var(--text-muted); }
.t-accent { color: var(--accent-light); }
.t-green { color: var(--green); font-weight: 600; }
.t-cursor {
  display: inline-block;
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Focus Frame mockup — multi-screen */
.focus-mockup {
  background: linear-gradient(145deg, #0c0c18, #121220);
  border: 1px solid rgba(255, 159, 67, 0.1);
  padding: 32px 24px;
}
.focus-screens {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
}
.focus-screen {
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.4s, box-shadow 0.4s;
}
.focus-screen-1 {
  width: 30%;
  height: 100px;
}
.focus-screen-2 {
  width: 40%;
  height: 120px;
}
.focus-screen-3 {
  width: 30%;
  height: 100px;
}
.focus-active {
  border-color: var(--orange) !important;
  box-shadow: 0 0 20px rgba(255, 159, 67, 0.2), inset 0 0 20px rgba(255, 159, 67, 0.03);
  animation: focusPulse 3s ease-in-out infinite;
}
@keyframes focusPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 159, 67, 0.2); }
  50% { box-shadow: 0 0 35px rgba(255, 159, 67, 0.35); }
}
.focus-titlebar {
  display: flex;
  gap: 5px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.focus-titlebar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}
.focus-active .focus-titlebar span:nth-child(1) { background: #ff5f57; }
.focus-active .focus-titlebar span:nth-child(2) { background: #ffbd2e; }
.focus-active .focus-titlebar span:nth-child(3) { background: #28c840; }
.focus-body {
  background: rgba(255, 255, 255, 0.015);
  flex: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 120px 24px 48px;
  text-align: center;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
}
.footer-inner {
  max-width: 600px;
  margin: 0 auto;
}
.footer-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.footer-text {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 36px;
}
.footer-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 80px;
}
.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.25s var(--ease);
}
.footer-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.footer-link svg {
  opacity: 0.7;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-bottom a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-bottom a:hover {
  color: var(--accent);
}

/* ============================================
   RESPONSIVE
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 220px 1fr;
    gap: 40px;
  }
  .traits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .project-visual {
    order: -1;
  }
}

/* Mobile landscape / small tablet */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 260px;
    height: 100vh;
    background: rgba(6, 6, 11, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 80px 24px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    border-left: 1px solid var(--border);
  }
  .nav-links.open {
    transform: translateX(0);
  }
  .nav-links a {
    font-size: 1rem;
    padding: 14px 16px;
  }
  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 140px 20px 80px;
  }
  .hero-name {
    font-size: clamp(2.8rem, 12vw, 5rem);
  }

  .section {
    padding: 80px 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }
  .about-photo {
    display: flex;
    justify-content: center;
  }
  .about-photo-frame {
    width: 200px;
  }

  .traits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .trait {
    padding: 20px 16px;
  }

  .project {
    border-radius: 18px;
  }
  .project-badge {
    margin: 24px 0 0 24px;
  }
  .project-content {
    padding: 24px;
  }
  .project-name {
    font-size: 1.6rem;
  }

  .footer {
    padding: 80px 20px 40px;
  }
  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .footer-link {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
}

/* Mobile small */
@media (max-width: 480px) {
  .hero {
    padding: 120px 16px 60px;
  }
  .hero-eyebrow {
    font-size: 0.7rem;
    padding: 6px 16px;
  }
  .hero-tagline {
    font-size: 0.95rem;
  }
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .section {
    padding: 64px 16px;
  }
  .section-title {
    margin-bottom: 40px;
  }

  .about-photo-frame {
    width: 160px;
  }
  .about-text h2 {
    font-size: 1.4rem;
  }

  .traits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .trait {
    padding: 18px 14px;
  }
  .trait-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .trait-icon svg {
    width: 18px;
    height: 18px;
  }
  .trait-label {
    font-size: 0.85rem;
  }
  .trait-detail {
    font-size: 0.75rem;
  }

  .project-content {
    padding: 20px;
    gap: 24px;
  }
  .project-badge {
    margin: 20px 0 0 20px;
  }
  .project-name {
    font-size: 1.4rem;
  }
  .project-desc {
    font-size: 0.88rem;
  }
  .project-tags span {
    font-size: 0.68rem;
    padding: 4px 10px;
  }

  .mockup-terminal {
    font-size: 0.68rem;
    padding: 16px 16px;
  }
  .mockup-screen {
    grid-auto-rows: 36px;
    gap: 8px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }
}
