/* =============================================
   PORTFOLIO STYLESHEET
   Theme: Editorial Light — Clean, Premium, Modern
   Fonts: Playfair Display (display) + DM Sans (body) + DM Mono (code)
============================================= */

/* ─── CSS VARIABLES ─── */
:root {
  --cream:       #faf9f6;
  --white:       #ffffff;
  --ink:         #111111;
  --ink-muted:   #555555;
  --ink-light:   #888888;
  --accent:      #c9a96e;       /* warm gold */
  --accent-dark: #a07840;
  --accent-soft: #f5eed8;
  --blue:        #2563eb;
  --border:      #e8e4dc;
  --card-bg:     rgba(255,255,255,0.75);
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.13);
  --radius:      16px;
  --radius-sm:   10px;
  --radius-pill: 999px;
  --transition:  0.35s cubic-bezier(0.25,0.46,0.45,0.94);
  --font-display:'Playfair Display', Georgia, serif;
  --font-body:   'DM Sans', sans-serif;
  --font-mono:   'DM Mono', monospace;
  --nav-h:       72px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  line-height: 1.7;
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: var(--radius-pill); }

img { display: block; width: 100%; object-fit: cover; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea { font-family: inherit; outline: none; border: none; }

/* ─── LOADER ─── */
#loader {
  position: fixed; inset: 0;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-inner { text-align: center; }
.loader-text {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
  display: block;
  margin-bottom: 20px;
  animation: pulse 1.2s ease infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }

.loader-bar {
  width: 160px; height: 3px;
  background: var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin: 0 auto;
}
.loader-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  animation: loadFill 1.8s ease forwards;
}
@keyframes loadFill { from{width:0} to{width:100%} }

/* ─── NAVBAR ─── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition), backdrop-filter var(--transition);
}
#navbar.scrolled {
  background: rgba(250,249,246,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -1px;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex; gap: 8px; align-items: center;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--ink);
}
.nav-link:hover::after, .nav-link.active::after { width: 60%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  width: 30px; padding: 4px;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--ink);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── SHARED SECTION STYLES ─── */
section { padding: 100px 0; }

.section-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-header { text-align: center; margin-bottom: 56px; }

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.section-title em {
  font-style: italic;
  color: var(--accent);
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(17,17,17,0.25);
}
.btn-primary:hover {
  background: var(--accent);
  box-shadow: 0 8px 28px rgba(201,169,110,0.4);
  transform: translateY(-2px);
}
.btn-outline {
  border: 2px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-sm {
  padding: 8px 18px;
  font-size: 0.8rem;
}
.btn-full { width: 100%; justify-content: center; }
.btn-ghost {
  color: var(--ink-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

/* ─── REVEAL ANIMATIONS ─── */
.reveal, .reveal-right {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right { transform: translateX(40px); }
.reveal.visible, .reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* ─── HERO SECTION ─── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-bg-shapes {
  position: absolute; inset: 0; pointer-events: none;
}
.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
}
.shape-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #f5eed8 0%, transparent 70%);
  top: -100px; right: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #dce8f5 0%, transparent 70%);
  bottom: -50px; left: -80px;
}
.shape-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #f0f5e8 0%, transparent 70%);
  top: 50%; left: 40%;
}

.hero-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--ink);
  margin-bottom: 16px;
}
.hero-typing-wrapper {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-style: italic;
  color: var(--accent);
  margin-bottom: 24px;
  min-height: 2.4em;
}
.cursor {
  animation: blink 0.8s step-end infinite;
  font-style: normal;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-bio {
  color: var(--ink-muted);
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}
.hero-buttons {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-socials {
  display: flex; gap: 14px; align-items: center;
}
.social-icon-link {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted);
  font-size: 1rem;
  transition: all var(--transition);
}
.social-icon-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(201,169,110,0.25);
}

/* Hero Image */
.hero-img-wrapper {
  position: relative;
  aspect-ratio: 1;
  max-width: 420px;
  margin: 0 auto;
}
.hero-img-wrapper img {
  border-radius: var(--radius);
  height: 100%;
  object-fit: cover;
  position: relative; z-index: 2;
}
.hero-img-decor {
  position: absolute;
  inset: -14px;
  border: 2px dashed var(--accent);
  border-radius: calc(var(--radius) + 6px);
  z-index: 1;
  animation: spinDecor 20s linear infinite;
  opacity: 0.4;
}
@keyframes spinDecor { to { transform: rotate(360deg); } }

.hero-stats {
  display: flex; gap: 16px; margin-top: 24px;
}
.stat-card {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--ink);
}
.stat-card span:last-child {
  font-size: 0.75rem;
  color: var(--ink-light);
  font-weight: 500;
}

.scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
}
.scroll-down span {
  display: block;
  width: 24px; height: 40px;
  border: 2px solid var(--ink-light);
  border-radius: var(--radius-pill);
  position: relative;
}
.scroll-down span::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  animation: scrollBounce 1.4s ease infinite;
}
@keyframes scrollBounce { 0%,100%{top:6px;opacity:1} 50%{top:16px;opacity:0.3} }

/* ─── ABOUT SECTION ─── */
#about { background: var(--white); }

#about .section-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}
.about-image img {
  border-radius: var(--radius);
  aspect-ratio: 3/4;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-img-tag {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}
.about-img-tag span { font-size: 1.4rem; }

.about-para {
  color: var(--ink-muted);
  margin-bottom: 16px;
  font-size: 1rem;
}
.about-details {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 28px 0 32px;
}
.detail-item {
  display: flex; flex-direction: column; gap: 2px;
}
.detail-item .label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ink-light);
}
.detail-item .value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

/* ─── SKILLS SECTION ─── */
#skills { background: var(--cream); }

.skills-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 40px;
  justify-content: center;
}
.skill-tab {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-muted);
  border: 1.5px solid var(--border);
  background: var(--white);
  transition: all var(--transition);
}
.skill-tab:hover { border-color: var(--ink); color: var(--ink); }
.skill-tab.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.skills-panel { display: none; }
.skills-panel.active { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }

.skill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.skill-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.skill-card-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.skill-icon {
  width: 40px; height: 40px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
}
.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.skill-bar-track {
  background: var(--border);
  height: 6px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  border-radius: var(--radius-pill);
  width: 0;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s;
}
.skill-pct {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--ink-light);
  text-align: right;
  display: block;
}

/* ─── PROJECTS SECTION ─── */
#projects { background: var(--white); }

.projects-controls {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-bottom: 28px;
}

.search-wrapper {
  flex: 1; min-width: 260px;
  display: flex; align-items: center; gap: 10px;
  background: var(--cream);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  transition: border-color var(--transition);
}
.search-wrapper:focus-within { border-color: var(--accent); }
.search-wrapper svg { flex-shrink: 0; color: var(--ink-light); }
.search-wrapper input {
  background: none;
  font-size: 0.9rem;
  color: var(--ink);
  width: 100%;
}
.search-wrapper input::placeholder { color: var(--ink-light); }

.filter-buttons {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.filter-btn {
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--ink-muted);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.project-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-light);
  letter-spacing: 1px;
  margin-bottom: 28px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}

.project-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex; flex-direction: column;
  animation: fadeIn 0.4s ease forwards;
}
@keyframes fadeIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }

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

.project-img {
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.project-img img {
  transition: transform 0.5s ease;
  height: 100%;
}
.project-card:hover .project-img img { transform: scale(1.06); }

.project-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.project-body {
  padding: 24px;
  flex: 1;
  display: flex; flex-direction: column;
}
.project-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 8px;
}
.project-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}
.project-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 20px;
}
.project-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-radius: var(--radius-pill);
}
.project-links {
  display: flex; gap: 10px;
}

/* No results */
.no-results { text-align: center; padding: 80px 0; }
.no-results.hidden { display: none; }
.no-results-inner { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; }
.no-results-inner span { font-size: 3rem; }
.no-results-inner p { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.no-results-inner small { color: var(--ink-light); font-size: 0.875rem; }

/* ─── SERVICES SECTION ─── */
#services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transform: scaleX(0);
  transition: transform var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 56px; height: 56px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}
.service-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 10px;
}
.service-desc {
  font-size: 0.875rem;
  color: var(--ink-muted);
  line-height: 1.75;
}

/* ─── EXPERIENCE / EDUCATION ─── */
#experience { background: var(--white); }

.timeline-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.timeline-col-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 10px;
}
.timeline { position: relative; }
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 14px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: var(--radius-pill);
}
.timeline-item {
  padding-left: 52px;
  padding-bottom: 32px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: 7px; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--accent);
  z-index: 1;
}
.timeline-period {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.timeline-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.timeline-org {
  font-size: 0.875rem;
  color: var(--ink-muted);
  margin-bottom: 8px;
}
.timeline-desc {
  font-size: 0.85rem;
  color: var(--ink-light);
  line-height: 1.7;
}

/* ─── TESTIMONIALS ─── */
#testimonials { background: var(--cream); }

.testimonials-slider {
  position: relative;
  overflow: hidden;
  min-height: 260px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  max-width: 800px;
  margin: 0 auto;
  display: none;
  animation: fadeIn 0.5s ease;
}
.testimonial-card.active { display: block; }

.testimonial-quote {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 16px;
}
.testimonial-text {
  font-size: 1rem;
  color: var(--ink-muted);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 28px;
}
.testimonial-author {
  display: flex; align-items: center; gap: 14px;
}
.testimonial-author img {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
  flex-shrink: 0;
}
.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.author-title {
  font-size: 0.8rem;
  color: var(--ink-light);
  font-family: var(--font-mono);
}
.testimonial-stars {
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 0.9rem;
}

.slider-dots {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 28px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all var(--transition);
}
.slider-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: var(--radius-pill);
}

/* ─── CONTACT SECTION ─── */
#contact { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
}
.contact-cards {
  display: flex; flex-direction: column; gap: 16px;
  margin-bottom: 28px;
}
.contact-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 20px;
  display: flex; gap: 16px; align-items: flex-start;
  transition: all var(--transition);
}
.contact-card:hover { border-color: var(--accent); transform: translateX(4px); }
.contact-card-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-card-label {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 4px;
}
.contact-card-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
}

.contact-socials {
  display: flex; gap: 10px; flex-wrap: wrap;
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.form-group {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.form-group input,
.form-group textarea {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color var(--transition);
  width: 100%;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--ink-light); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.form-success {
  text-align: center;
  margin-top: 14px;
  font-size: 0.9rem;
  color: #2d8a4e;
  font-weight: 600;
}
.form-success.hidden { display: none; }

/* ─── FOOTER ─── */
#footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
}
.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .nav-logo { color: var(--white); margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 0.875rem; }
.footer-links h4,
.footer-social h4 {
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-links ul { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { font-size: 0.875rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-social div { display: flex; gap: 10px; flex-wrap: wrap; }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0;
  font-size: 0.8rem;
}

/* ─── BACK TO TOP ─── */
#backToTop {
  position: fixed; bottom: 32px; right: 32px;
  width: 48px; height: 48px;
  background: var(--ink);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0; pointer-events: none;
  transform: translateY(16px);
  transition: all var(--transition);
  z-index: 500;
}
#backToTop.visible { opacity: 1; pointer-events: auto; transform: none; }
#backToTop:hover { background: var(--accent); transform: translateY(-3px); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  #about .section-container {
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1/-1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  section { padding: 80px 0; }

  /* Navbar mobile */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(250,249,246,0.97);
    backdrop-filter: blur(16px);
    flex-direction: column;
    padding: 24px 32px;
    gap: 4px;
    transform: translateY(-100%);
    opacity: 0;
    transition: all var(--transition);
    z-index: 999;
    pointer-events: none;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-link { display: block; padding: 12px 0; border-bottom: 1px solid var(--border); }

  /* Hero */
  .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-image { order: -1; }
  .hero-bio { margin: 0 auto 28px; }
  .hero-buttons { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-img-wrapper { max-width: 300px; }
  .hero-stats { justify-content: center; }

  /* About */
  #about .section-container { grid-template-columns: 1fr; }
  .about-image { max-width: 400px; margin: 0 auto; }
  .about-img-tag { right: 0; }

  /* Timeline */
  .timeline-wrapper { grid-template-columns: 1fr; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrapper { padding: 28px 20px; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

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

@media (max-width: 480px) {
  .section-container { padding: 0 20px; }
  .nav-container { padding: 0 20px; }
  .projects-controls { flex-direction: column; }
  .filter-buttons { overflow-x: auto; padding-bottom: 4px; }
  .hero-stats { gap: 10px; }
  .stat-num { font-size: 1.4rem; }
}
