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

/* Smooth theme transitions */
body, .nav, .nav.scrolled, .mobile-menu, .section, .section-alt,
.project-card, .skill-category, .contact-form-wrapper,
.contact-method, .timeline-content, .btn-secondary,
.form-input, .form-textarea, .theme-toggle, .lang-btn {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

:root {
  --bg: #fafafa;
  --bg-alt: #f3f4f6;
  --surface: #ffffff;
  --text: #0a0a0a;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-gis: #059669;
  --accent-ai: #7c3aed;
  --accent-traffic: #dc2626;
  --border: #e5e7eb;
  --border-light: #f3f4f6;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 0.5rem;
  --radius-lg: 0.75rem;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px;
}

[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-alt: #111111;
  --surface: #141414;
  --text: #f5f5f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-gis: #10b981;
  --accent-ai: #a78bfa;
  --accent-traffic: #f87171;
  --border: #27272a;
  --border-light: #1c1c1c;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a;
    --bg-alt: #111111;
    --surface: #141414;
    --text: #f5f5f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --accent: #3b82f6;
    --accent-hover: #60a5fa;
    --accent-gis: #10b981;
    --accent-ai: #a78bfa;
    --accent-traffic: #f87171;
    --border: #27272a;
    --border-light: #1c1c1c;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5), 0 4px 6px -4px rgb(0 0 0 / 0.5);
  }

  :root:not([data-theme="light"]) .nav.scrolled {
    background: rgba(10, 10, 10, 0.85);
  }
}

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

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

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

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

ul {
  list-style: none;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

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

.section-header {
  margin-bottom: 3rem;
  max-width: 640px;
}

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

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

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

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

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--text);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

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

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

.btn-full {
  width: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: var(--transition);
  padding: 1.25rem 0;
}

.nav.scrolled {
  background: rgba(250, 250, 250, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.875rem 0;
}

[data-theme="dark"] .nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
}

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

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

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

.nav-cta {
  display: none;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  transition: var(--transition);
}

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

.nav-right {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

/* Language Selector */
.lang-selector {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem 0.375rem;
  transition: var(--transition);
  border-radius: 0.25rem;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}

.lang-divider {
  font-size: 0.75rem;
  color: var(--border);
  font-weight: 400;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

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

.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  transition: var(--transition);
}

.theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-sun,
.theme-toggle[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
}

[data-theme="dark"] .theme-icon-moon,
.theme-toggle[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.mobile-theme-toggle {
  width: 44px;
  height: 44px;
  margin: 1rem 0;
}

/* Mobile Language Selector */
.mobile-lang-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0;
}

.mobile-lang-selector .lang-btn {
  font-size: 1.125rem;
  padding: 0.5rem 0.75rem;
}

.mobile-lang-selector .lang-divider {
  font-size: 1rem;
  color: var(--border);
}

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

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

.nav-toggle.active span:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.nav-toggle.active span:last-child {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

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

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

.mobile-menu-cta {
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
}

.hero-container {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  width: 100%;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  width: fit-content;
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 1rem;
}

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

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.01em;
}

.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.01em;
  opacity: 0.9;
}

.hero-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.hero-image-wrapper {
  position: relative;
  width: min(260px, 70vw);
  height: min(260px, 70vw);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 2;
  transform-origin: bottom;
  transform: scale(1.25);
  opacity: 1;
  transition: opacity 0.8s ease;
}

.hero-image.is-fading-out {
  opacity: 0;
}

.hero-image-accent {
  position: absolute;
  top: 0rem;
  left: 0.5rem;
  width: 100%;
  height: 100%;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: 1;
  opacity: 0.4;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-scroll {
  display: none;
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.5); opacity: 0.5; }
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
  justify-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-secondary);
  font-size: 1.0625rem;
  line-height: 1.75;
}

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

.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid;
}

.badge-gis {
  color: var(--accent-gis);
  border-color: rgba(5, 150, 105, 0.3);
  background: rgba(5, 150, 105, 0.08);
}

.badge-ai {
  color: var(--accent-ai);
  border-color: rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.08);
}

.badge-traffic {
  color: var(--accent-traffic);
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
}

.badge-fullstack {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.08);
}

/* Languages */
.about-languages {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.about-languages-title {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.about-languages-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.language-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.language-level {
  font-weight: 600;
  color: var(--text);
}

.language-level.native {
  color: var(--accent-gis);
}

/* ============================================
   EXPERIENCE (Timeline)
   ============================================ */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 800px;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
}

.timeline-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 2px var(--accent);
}

.timeline-line {
  width: 2px;
  flex: 1;
  min-height: 60px;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin-top: 0.5rem;
}

.timeline-content {
  padding-bottom: 1rem;
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.timeline-role {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.timeline-period {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.timeline-company {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.timeline-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

.project-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border);
}

.project-image-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-view {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
}

.project-info {
  padding: 1.25rem;
}

.project-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.project-description {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.875rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.project-card-featured .project-image-wrapper {
  aspect-ratio: 16/9;
}

/* ============================================
   TAGS
   ============================================ */
.tag {
  display: inline-flex;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-alt);
  border-radius: 999px;
}

/* ============================================
   SKILLS
   ============================================ */
.skills-grid {
  display: grid;
  gap: 1.5rem;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.skill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-alt);
  border-radius: var(--radius);
  color: var(--accent);
}

.skill-category-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.skill-list li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
}

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

/* ============================================
   CONTACT
   ============================================ */
.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 480px;
}

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

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.contact-method:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

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

.contact-method-details {
  display: flex;
  flex-direction: column;
}

.contact-method-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.contact-method-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

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

.form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.form-input,
.form-textarea {
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  outline: none;
}

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

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  background: var(--surface);
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.footer-tagline {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

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

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.footer-link svg {
  flex-shrink: 0;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.footer-built {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-year {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card-featured {
    grid-column: span 2;
  }
}

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

  .nav-cta {
    display: inline-flex;
  }

  .nav-right {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-container {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .hero-content {
    flex: 1;
  }

  .hero-visual {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .hero-scroll {
    display: flex;
  }

  .hero-image-wrapper {
    width: 320px;
    height: 320px;
  }

  .hero-stats {
    gap: 3rem;
  }

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

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 8rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 720px;
    margin: 0 auto;
  }

  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-card-featured {
    grid-column: span 1;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

  .timeline-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: baseline;
  }
}

@media (min-width: 1280px) {
  .hero-image-wrapper {
    width: 380px;
    height: 380px;
  }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
