/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  --n-0: #ffffff;
  --n-50: #fafafa;
  --n-100: #f5f5f5;
  --n-200: #e5e5e5;
  --n-300: #d4d4d4;
  --n-400: #a3a3a3;
  --n-500: #737373;
  --n-600: #525252;
  --n-700: #404040;
  --n-800: #262626;
  --n-900: #171717;
  --n-950: #0a0a0a;

  --green-100: #dcfce7;
  --green-200: #bbf7d0;
  --green-500: #22c55e;
  --green-700: #15803d;

  --accent: #3cb49c;
  --accent-dark: #268a75;
  --accent-soft: rgba(60, 180, 156, 0.12);

  --bg: var(--n-0);
  --bg-alt: var(--n-50);
  --text: var(--n-950);
  --text-muted: var(--n-500);
  --text-faint: var(--n-400);
  --card-bg: var(--n-0);
  --border: var(--n-200);
  --border-hover: var(--n-400);
  --header-bg: rgba(255, 255, 255, 0.75);
  --overlay: rgba(10, 10, 10, 0.4);
  --shadow-color: 10, 10, 10;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-full: 999px;
  --container: 1120px;
  --section-py: 6rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: var(--n-950);
    --bg-alt: #171717a8;
    --text: var(--n-100);
    --text-muted: var(--n-400);
    --text-faint: var(--n-600);
    --card-bg: var(--n-900);
    --border: var(--n-800);
    --border-hover: var(--n-600);
    --header-bg: rgba(10, 10, 10, 0.7);
    --overlay: rgba(0, 0, 0, 0.6);
    --shadow-color: 0, 0, 0;
  }
}

:root[data-theme="dark"] {
  --bg: var(--n-950);
  --bg-alt: #171717a8;
  --text: var(--n-100);
  --text-muted: var(--n-400);
  --text-faint: var(--n-600);
  --card-bg: var(--n-900);
  --border: var(--n-800);
  --border-hover: var(--n-600);
  --header-bg: rgba(10, 10, 10, 0.7);
  --overlay: rgba(0, 0, 0, 0.6);
  --shadow-color: 0, 0, 0;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

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

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

ul {
  list-style: none;
}

h1, h2, h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ============================================
   HEADER / NAV
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: 64px;
  background: transparent;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.7;
}

.logo span {
  font-weight: 400;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--n-100);
  color: var(--n-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

[data-theme="dark"] .icon-btn { background: var(--n-800); color: var(--n-300); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn { background: var(--n-800); color: var(--n-300); }
}

.icon-btn:hover {
  transform: scale(1.06);
  background: var(--n-200);
}

.mobile-only {
  display: none;
}

/* ============================================
   MOBILE DRAWER
   ============================================ */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 82vw);
  background: var(--bg);
  z-index: 70;
  display: flex;
  flex-direction: column;
  padding: 5.5rem 1.5rem 2rem;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: -10px 0 40px rgba(var(--shadow-color), 0.15);
}

.drawer.open {
  transform: translateX(0);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.drawer-links a {
  padding: 0.9rem 0.75rem;
  border-radius: var(--radius);
  font-size: 1rem;
  color: var(--text);
  transition: background 0.2s ease;
}

.drawer-links a:hover {
  background: var(--bg-alt);
}

.drawer-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.25s ease;
}

.btn-primary {
  background: var(--n-950);
  color: #fff;
}

[data-theme="dark"] .btn-primary { background: var(--n-100); color: var(--n-950); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn-primary { background: var(--n-100); color: var(--n-950); }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(var(--shadow-color), 0.2);
}

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

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-alt);
}

.btn-block {
  width: 100%;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem 2rem;
}

.hero-inner {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.hero-name {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 0.9rem;
}

.hero-role {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-family: monospace;
}

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

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

.hero-desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.hero-social {
  display: flex;
  gap: 0.75rem;
}

.hero-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--n-100);
  color: var(--n-700);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hero-social a { background: var(--n-800); color: var(--n-300); }
}
[data-theme="dark"] .hero-social a { background: var(--n-800); color: var(--n-300); }

.hero-social a:hover {
  background: var(--n-950);
  color: #fff;
  transform: translateY(-3px);
}

.hero-photo-wrap {
  position: relative;
  width: min(380px, 80vw);
  aspect-ratio: 1;
  margin: 0 auto;
}

.photo-ring {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1.5px dashed var(--border-hover);
  animation: spin-slow 24s linear infinite;
}

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

.photo-circle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
  border: 6px solid var(--bg);
  box-shadow: 0 20px 50px rgba(var(--shadow-color), 0.15);
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--border-hover);
}

.no-photo img { display: none; }
.no-photo .photo-fallback { display: flex; }

.tech-pills span {
  position: absolute;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(var(--shadow-color), 0.12);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.tech-pills span:nth-child(1) { top: 5%; left: -8%; }
.tech-pills span:nth-child(2) { top: 22%; right: -12%; }
.tech-pills span:nth-child(3) { bottom: 18%; right: -8%; }
.tech-pills span:nth-child(4) { bottom: -2%; left: -4%; }

.scroll-indicator {
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-faint);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--border-hover));
}

/* ============================================
   SECTIONS (SHARED)
   ============================================ */
.section {
  padding: var(--section-py) 1.5rem;
}

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

.section-inner {
  max-width: var(--container);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.section-subhead {
  color: var(--text-muted);
  margin-top: 0.75rem;
  line-height: 1.6;
}

@media (min-width: 1024px) {
  :root { --section-py: 8rem; }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-content {
  text-align: left;
}

.about-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.3;
  margin-bottom: 1.25rem;
}

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

.about-showcase {
  width: 100%;
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.showcase-item {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-alt);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.showcase-item:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.showcase-item img {
  width: 100%;
  height: auto;
  display: block;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
}

.stat-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.2rem;
  color: var(--accent);
}

.stat-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================
   SKILLS
   ============================================ */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.skill-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  align-items: start;
}

.skill-row-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  position: relative;
  padding-top: 0.4rem;
}

.skill-row-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  margin-bottom: 0.6rem;
}

.skill-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-card {
  width: 96px;
  padding: 1rem 0.6rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: all 0.2s ease;
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(var(--shadow-color), 0.1);
}

.skill-card i {
  font-size: 1.5rem;
  color: var(--text-muted);
}

.skill-card span {
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.project-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(var(--shadow-color), 0.12);
}

.project-media {
  height: 140px;
  background: linear-gradient(135deg, var(--bg-alt), var(--card-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--text-faint);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-type {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 0.5rem;
}

.project-body h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.project-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.project-tags span {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.project-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.view-details {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.view-details:hover {
  color: var(--text);
}

.project-links {
  display: flex;
  gap: 0.5rem;
}

.project-links a {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.project-links a:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

/* ============================================
   TIMELINE (EXPERIENCE / EDUCATION)
   ============================================ */
.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 3rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

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

.timeline-icon {
  position: absolute;
  left: -3rem;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  padding: 1.75rem 2rem;
}

.timeline-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.timeline-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.timeline-date {
  color: var(--text-faint);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  display: block;
}

.timeline-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.timeline-card li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.1rem;
}

.timeline-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-detail {
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
}

/* ============================================
   NOW
   ============================================ */
.now-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.now-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.now-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.now-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.now-card-top i {
  font-size: 1.3rem;
  color: var(--text-muted);
}

.status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.status-badge.in-progress {
  background: var(--green-100);
  color: var(--green-700);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .status-badge.in-progress { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
}
[data-theme="dark"] .status-badge.in-progress { background: rgba(34, 197, 94, 0.15); color: #4ade80; }

.status-badge.coming-soon {
  background: var(--n-100);
  color: var(--n-600);
}

[data-theme="dark"] .status-badge.coming-soon { background: var(--n-800); color: var(--n-400); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .status-badge.coming-soon { background: var(--n-800); color: var(--n-400); }
}

.now-category {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 0.3rem;
}

.now-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}

.now-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.now-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.now-tags span {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.now-explore {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-hint {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

.contact-method-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

.contact-method-card h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.contact-method-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 0.4rem;
  line-height: 1.5;
}

.contact-method-card a.method-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-method-card span.method-link {
  font-weight: 600;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  padding: 3.5rem 1.5rem 2.5rem;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

.footer-credit,
.footer-copyright {
  color: var(--text-faint);
  font-size: 0.82rem;
  margin-top: 0.4rem;
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--n-950);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(var(--shadow-color), 0.25);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: all 0.3s ease;
}

[data-theme="dark"] .scroll-top { background: var(--n-100); color: var(--n-950); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scroll-top { background: var(--n-100); color: var(--n-950); }
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.scroll-top:hover {
  transform: scale(1.1);
}

/* ============================================
   PROJECT MODAL
   ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--overlay);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.25s ease;
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  float: right;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-banner {
  display: block;
  clear: both;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}

.modal h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.modal .project-subtitle {
  margin-bottom: 1.25rem;
}

.modal p.modal-desc {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.modal ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}

.modal li {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding-left: 1.1rem;
}

.modal li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.modal-links {
  margin-top: 1.25rem;
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.stagger-child {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-child.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger-child, .photo-ring, .pulse-dot, .cursor {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-showcase {
    max-width: 460px;
    margin: 0 auto;
  }

  .about-content {
    text-align: center;
  }

  .stats-row {
    max-width: 500px;
    margin: 2rem auto 0;
  }

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

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

  .mobile-only {
    display: flex;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-inner .hero-text {
    order: 2;
  }

  .hero-photo-wrap {
    order: 1;
    width: min(260px, 60vw);
    margin-bottom: 1rem;
  }

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

  .hero-cta,
  .hero-social {
    justify-content: center;
  }

  .tech-pills span {
    font-size: 0.7rem;
    padding: 0.3rem 0.7rem;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 0 1rem;
  }

  .section {
    padding: 4rem 1.25rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
  }

  .stat-card {
    padding: 0.8rem 0.6rem;
    text-align: center;
  }

  .stat-card h3 {
    font-size: 1.25rem;
  }

  .timeline {
    padding-left: 2.25rem;
  }

  .timeline-icon {
    left: -2.25rem;
    width: 28px;
    height: 28px;
  }

  .timeline-card {
    padding: 1.25rem 1.4rem;
  }
}
