/* ============================================
   lafa.codes_ — 2026 Portfolio
   Modern dark theme with smooth animations
   ============================================ */

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

:root {
  --bg: #0a0a0b;
  --bg-surface: #111113;
  --bg-card: #161618;
  --bg-card-hover: #1c1c1f;
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --text: #e4e4e7;
  --text-muted: #71717a;
  --text-dim: #52525b;
  --accent: #818cf8;
  --accent-2: #34d399;
  --accent-glow: rgba(129, 140, 248, 0.15);
  --gradient: linear-gradient(135deg, #818cf8 0%, #34d399 100%);
  --gradient-text: linear-gradient(135deg, #818cf8 0%, #6ee7b7 50%, #818cf8 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 6px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* Light Mode */
[data-theme="light"] {
  --bg: #f8f9fb;
  --bg-surface: #f0f1f4;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f5f7;
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.14);
  --text: #1a1a2e;
  --text-muted: #5a5a72;
  --text-dim: #8888a0;
  --accent: #6366f1;
  --accent-2: #10b981;
  --accent-glow: rgba(99, 102, 241, 0.1);
  --gradient: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  --gradient-text: linear-gradient(135deg, #6366f1 0%, #10b981 50%, #6366f1 100%);
}

[data-theme="light"] .grid-bg {
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .nav {
  background: rgba(248, 249, 251, 0.7);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(248, 249, 251, 0.9);
}

[data-theme="light"] .nav-toggle span {
  background: var(--text);
}

[data-theme="light"] .mobile-menu {
  background: rgba(248, 249, 251, 0.97);
}

[data-theme="light"] .cursor-glow {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06), transparent 70%);
}

[data-theme="light"] .terminal {
  background: #1e1e2e;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .terminal-header {
  background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .term-line {
  color: #a9b1d6;
}

[data-theme="light"] .term-line.json {
  color: #c4b5fd;
}

[data-theme="light"] .nav-btn {
  color: #fff;
}

[data-theme="light"] .btn-primary {
  color: #fff;
}

[data-theme="light"] .mobile-link.cta {
  color: #fff;
}

[data-theme="light"] .focus-tags span,
[data-theme="light"] .work-tags span {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: var(--text-muted);
}

[data-theme="light"] .btn-ghost {
  border-color: rgba(0, 0, 0, 0.15);
  color: var(--text);
}

[data-theme="light"] .btn-ghost:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.2);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

::selection {
  background: var(--accent);
  color: var(--bg);
}

img {
  max-width: 100%;
  height: auto;
}

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

/* --- Cursor Glow --- */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* --- Grid Background --- */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
  pointer-events: none;
}

/* --- Container --- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 11, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav.scrolled {
  padding: 12px 32px;
  background: rgba(10, 10, 11, 0.85);
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: -0.5px;
}

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

.accent.blink {
  animation: accentBlink 1.2s ease-in-out infinite;
}

@keyframes accentBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-btn {
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 999px;
  background: var(--gradient);
  color: #0a0a0b;
  transition: var(--transition);
}

.nav-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* --- Theme Toggle --- */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(10, 10, 11, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.mobile-menu.active {
  display: flex;
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.mobile-link:hover {
  color: var(--text);
}

.mobile-link.cta {
  margin-top: 12px;
  padding: 12px 32px;
  border-radius: 999px;
  background: var(--gradient);
  color: #0a0a0b;
  font-size: 1.1rem;
}

/* --- Sections --- */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}

.section-alt {
  background: var(--bg-surface);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 48px;
}

.gradient-text {
  background: var(--gradient-text);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* --- Hero --- */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 48px 80px;
  gap: 60px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-2);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.15);
  border-radius: 999px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -2px;
  margin-bottom: 24px;
}

.hero-title .line {
  display: block;
}

.typed-wrapper {
  color: var(--accent);
  position: relative;
}

.typed-wrapper::after {
  content: '|';
  animation: blink 1s step-end infinite;
  color: var(--accent);
  margin-left: 2px;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
  max-width: 520px;
}

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

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 999px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--gradient);
  color: #0a0a0b;
}

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

.btn-primary svg {
  transition: var(--transition);
}

.btn-primary:hover svg {
  transform: translateX(4px);
}

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

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* --- Hero Visual --- */
.hero-visual {
  flex-shrink: 0;
}

.avatar-ring {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  position: relative;
  z-index: 2;
  box-shadow: 0 0 40px var(--accent-glow);
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

[data-theme="light"] .hero-avatar {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.ring-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--border);
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.orbit-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  animation: orbitPulse 3s ease-in-out infinite;
  box-shadow: 0 0 15px var(--accent-glow);
}

.orbit-dot.dot-1 { animation-delay: 0s; }
.orbit-dot.dot-2 { animation-delay: 1.5s; top: 0; left: 50%; }
.orbit-dot.dot-3 { animation-delay: 3s; top: 50%; left: 100%; }

@keyframes orbitPulse {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.4); }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
}

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

.scroll-line::after {
  content: '';
  position: absolute;
  top: -60px;
  width: 100%;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--accent));
  animation: scrollDown 2s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -60px; }
  100% { top: 60px; }
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

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

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

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tech-tag {
  padding: 6px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(129, 140, 248, 0.12);
  border-radius: 999px;
  transition: var(--transition);
}

.tech-tag:hover {
  background: rgba(129, 140, 248, 0.2);
  border-color: rgba(129, 140, 248, 0.3);
  transform: translateY(-2px);
}

/* --- Terminal --- */
.terminal {
  background: #0d0d0f;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.terminal-dots {
  display: flex;
  gap: 7px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #28c840; }

.terminal-title {
  color: var(--text-dim);
  font-size: 0.75rem;
}

.terminal-body {
  padding: 20px;
  line-height: 1.9;
}

.term-line {
  color: var(--text-muted);
}

.term-prompt {
  color: var(--accent-2);
  margin-right: 10px;
}

.term-line.json {
  color: #c4b5fd;
}

.term-green {
  color: var(--accent-2);
}

.term-cursor {
  animation: blink 1s step-end infinite;
  color: var(--accent-2);
}

/* --- Focus Areas --- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.focus-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  opacity: 0;
  transition: var(--transition);
}

.focus-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.focus-card:hover::before {
  opacity: 1;
}

.focus-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  color: var(--accent);
}

.focus-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.focus-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.focus-tags span {
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  border: 1px solid var(--border);
}

/* --- Work / Projects --- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  display: block;
  position: relative;
}

.work-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.work-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.work-arrow {
  transition: var(--transition);
  opacity: 0.4;
}

.work-card:hover .work-arrow {
  opacity: 1;
  transform: translate(3px, -3px);
  color: var(--accent);
}

.work-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.3px;
}

.work-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.work-tags span {
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.work-card-cta {
  border-style: dashed;
  display: flex;
  flex-direction: column;
}

/* --- Social Grid --- */
.social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  color: var(--text-muted);
}

.social-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text);
  transform: translateY(-3px);
}

.social-card svg {
  flex-shrink: 0;
  transition: var(--transition);
}

.social-card:hover svg {
  color: var(--accent);
  fill: var(--accent);
}

.social-card span {
  font-size: 0.95rem;
  font-weight: 600;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--bg);
  text-align: center;
  overflow: hidden;
}

.cta-container {
  position: relative;
  max-width: 700px;
}

.cta-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.cta-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

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

.footer-logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1rem;
}

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

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

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

/* --- Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero {
    padding: 120px 32px 80px;
    gap: 40px;
  }

  .about-grid {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding: 100px 24px 60px;
    min-height: 0;
  }

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

  .hero-badge {
    margin-left: auto;
    margin-right: auto;
  }

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

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .avatar-ring {
    width: 200px;
    height: 200px;
  }

  .hero-avatar {
    width: 150px;
    height: 150px;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    margin-bottom: 36px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .scroll-indicator {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
    letter-spacing: -1px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }

  .stat-divider {
    width: 40px;
    height: 1px;
  }

  .nav {
    padding: 14px 20px;
  }

  .focus-card {
    padding: 28px;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}
