/* ============================================================
   DESIGN TOKENS — DARK (default)
   ============================================================ */
:root {
  --bg:          #0d0d0f;
  --bg-alt:      #111114;
  --surface:     #16161a;
  --surface-2:   #1c1c22;
  --border:      #2a2a35;
  --accent:      #00d4aa;
  --accent-dim:  rgba(0, 212, 170, 0.12);
  --accent-glow: rgba(0, 212, 170, 0.25);
  --text:        #e8e8f0;
  --text-muted:  #8888a0;
  --text-dim:    #55556a;
  --font-sans:   'Inter', system-ui, sans-serif;
  --font-mono:   'JetBrains Mono', 'Fira Code', monospace;
  --radius:      12px;
  --radius-lg:   20px;
  --shadow:      0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.6);
  --nav-h:       68px;
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   DESIGN TOKENS — LIGHT
   ============================================================ */
[data-theme="light"] {
  --bg:          #f5f5f7;
  --bg-alt:      #ebebee;
  --surface:     #ffffff;
  --surface-2:   #f0f0f3;
  --border:      #d8d8e0;
  --accent:      #009e80;
  --accent-dim:  rgba(0, 158, 128, 0.1);
  --accent-glow: rgba(0, 158, 128, 0.2);
  --text:        #14141c;
  --text-muted:  #55556a;
  --text-dim:    #9999aa;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 48px rgba(0,0,0,0.12);
}

[data-theme="light"] .hero-name {
  background: linear-gradient(135deg, #111 0%, rgba(0,0,0,0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0, 158, 128, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0, 158, 128, 0.04) 0%, transparent 50%);
}

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

[data-theme="light"] #navbar.scrolled {
  background: rgba(245, 245, 247, 0.9);
}

[data-theme="light"] .avatar-initials {
  background: var(--surface-2);
}

[data-theme="light"] .timeline::before {
  background: linear-gradient(var(--accent), var(--border), transparent);
}

[data-theme="light"] .btn-primary {
  background: var(--accent);
  color: #fff;
}

[data-theme="light"] .btn-primary:hover {
  background: #007d66;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  font-size: 16px;
}

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

.accent { color: var(--accent); }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(13, 13, 15, 0);
  backdrop-filter: blur(0);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), backdrop-filter var(--transition), border-color var(--transition);
}

#navbar.scrolled {
  background: rgba(13, 13, 15, 0.9);
  backdrop-filter: blur(16px);
  border-color: var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

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

.nav-links a {
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}

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

.nav-links a.nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 7px 18px;
}

.nav-links a.nav-cta:hover {
  background: var(--accent-dim);
  color: var(--accent);
}

.theme-toggle {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.theme-toggle svg { width: 17px; height: 17px; display: block; }

/* Show sun in dark mode, moon in light mode */
.icon-moon { display: none; }
.icon-sun  { display: block; }

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

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

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
  transform: translateY(-120%);
  transition: transform var(--transition);
  z-index: 999;
}

.mobile-menu.open { transform: translateY(0); }

.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 1rem;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
}
.mobile-menu a:hover { color: var(--text); background: var(--surface); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  max-width: 1100px;
  width: 100%;
  padding: calc(var(--nav-h) + 20px) 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,212,170,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(0,212,170,0.04) 0%, transparent 50%);
}

.grid-overlay {
  position: absolute;
  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;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-content {
  flex: 1;
  text-align: left;
  max-width: 580px;
}

.hero-greeting {
  font-size: 1rem;
  font-family: var(--font-mono);
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  opacity: 0;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 16px;
  opacity: 0;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 24px;
  min-height: 2rem;
  opacity: 0;
}

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

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

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 0 36px;
  opacity: 0;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-bottom: 40px;
  opacity: 0;
}

.hero-socials {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  opacity: 0;
}

/* ── Hero photo ── */
.hero-photo {
  flex-shrink: 0;
  opacity: 0;
}

.hero-photo-frame {
  position: relative;
  width: 420px;
  height: 520px;
}

.hero-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(100%) contrast(1.08) brightness(0.95);
  transition: filter 0.7s ease;
  /* fade all edges smoothly into background — stronger at bottom and sides */
  mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 10%,
      black 72%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      black 12%,
      black 88%,
      transparent 100%
    );
  mask-composite: intersect;
  -webkit-mask-image: linear-gradient(
      to bottom,
      transparent 0%,
      black 10%,
      black 72%,
      transparent 100%
    ),
    linear-gradient(
      to right,
      transparent 0%,
      black 12%,
      black 88%,
      transparent 100%
    );
  -webkit-mask-composite: destination-in;
}

.hero-photo-frame:hover img {
  filter: grayscale(0%) contrast(1) brightness(1);
}

.hero-socials a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.hero-socials a:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}

.hero-socials svg { width: 18px; height: 18px; }

.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.4;
  animation: fadeInUp 1s 2s both;
}

.scroll-indicator span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(var(--accent), transparent);
  animation: scrollLine 1.5s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { opacity: 1; transform: scaleY(1) translateY(0); }
  100% { opacity: 0; transform: scaleY(1.5) translateY(10px); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: #00bfa0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

.btn svg { width: 16px; height: 16px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in-up {
  animation: fadeInUp 0.7s ease both;
}

.delay-1 { animation-delay: 0.15s !important; }
.delay-2 { animation-delay: 0.3s !important; }
.delay-3 { animation-delay: 0.45s !important; }
.delay-4 { animation-delay: 0.6s !important; }
.delay-5 { animation-delay: 0.75s !important; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

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

.section-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
}

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

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

.about-text p strong { color: var(--text); }

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-family: var(--font-mono);
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.about-avatar {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 28px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--accent), transparent, var(--accent));
  animation: spin 6s linear infinite;
}

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

.avatar-initials {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--surface-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
  z-index: 1;
}

.about-details { display: flex; flex-direction: column; gap: 16px; }

.detail-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.detail-icon {
  flex-shrink: 0;
  color: var(--accent);
  opacity: 0.8;
}

.detail-icon svg { width: 16px; height: 16px; display: block; margin-top: 2px; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.skill-category:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,212,170,0.08);
}

.skill-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--accent);
}

.skill-icon svg { width: 22px; height: 22px; }

.skill-category h3 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text);
}

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

.skill-tags span {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 6px;
  transition: border-color var(--transition), color var(--transition);
}

.skill-category:hover .skill-tags span {
  border-color: rgba(0,212,170,0.2);
  color: var(--text);
}

/* ============================================================
   TIMELINE / EXPERIENCE
   ============================================================ */
.timeline {
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(var(--accent), var(--border), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -29px;
  top: 10px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  box-shadow: 0 0 10px var(--accent-glow);
}

.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.timeline-card:hover {
  border-color: rgba(0,212,170,0.3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.timeline-company {
  display: block;
  font-size: 0.875rem;
  color: var(--accent);
  margin-top: 4px;
  font-weight: 500;
}

.timeline-period {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--surface-2);
  border-radius: 6px;
  border: 1px solid var(--border);
  align-self: flex-start;
}

.timeline-domain {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 3px 9px;
  margin-bottom: 16px;
}

.timeline-points {
  list-style: none;
  margin-bottom: 20px;
}

.timeline-points li {
  position: relative;
  padding-left: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.6;
}

.timeline-points li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 2px;
}

.timeline-points li strong { color: var(--text); }

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

.timeline-tags span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  background: var(--accent-dim);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px solid rgba(0,212,170,0.15);
}

/* ============================================================
   PROJECTS
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  border-color: rgba(0,212,170,0.35);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.project-card.featured {
  border-color: rgba(0,212,170,0.2);
  background: linear-gradient(135deg, var(--surface) 0%, rgba(0,212,170,0.03) 100%);
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.project-domain {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(0,212,170,0.2);
  padding: 3px 10px;
  border-radius: 5px;
}

.project-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

.project-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.project-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  flex: 1;
}

.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.highlight {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 6px;
}

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

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

.project-tags span {
  font-size: 0.73rem;
  font-family: var(--font-mono);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 3px 9px;
  border-radius: 5px;
}

.project-period {
  font-size: 0.73rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-top: auto;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-intro {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 36px;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), transform var(--transition);
}

.contact-method:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.contact-method-icon {
  width: 40px; height: 40px;
  background: var(--accent-dim);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-method-icon svg { width: 18px; height: 18px; }

.contact-method-label {
  display: block;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  margin-bottom: 2px;
}

.contact-method-value {
  display: block;
  font-size: 0.875rem;
  color: var(--text);
}

/* Contact form */
.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.form-group input,
.form-group textarea {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text);
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

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

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

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

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-socials a {
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 7px;
  transition: color var(--transition), border-color var(--transition);
}

.footer-socials a:hover { color: var(--accent); border-color: var(--accent); }
.footer-socials svg { width: 14px; height: 14px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-card { position: static; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    gap: 40px;
    padding-top: calc(var(--nav-h) + 40px);
  }
  .hero-content { max-width: 100%; }
  .hero-bio { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-photo-frame { width: 260px; height: 320px; margin: 0 auto; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .theme-toggle { margin-left: auto; margin-right: 8px; }
  .section { padding: 72px 0; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .timeline { padding-left: 24px; }
  .timeline-card { padding: 20px; }
  .timeline-header { flex-direction: column; gap: 10px; }
  .timeline-period { align-self: flex-start; }
  .hero-actions { flex-direction: column; align-items: center; }
  .footer-inner { justify-content: center; text-align: center; }
}

@media (max-width: 400px) {
  .about-stats { grid-template-columns: 1fr 1fr; }
}
