/* ============================
   CSS VARIABLES & THEME SYSTEM
   ============================ */
:root {
  --cream-50: #fdf8f3;
  --cream-100: #f5ead9;
  --cream-200: #ecdfc4;
  --cream-300: #ddc9a3;
  --caramel-400: #c8a97e;
  --caramel-500: #b8926a;
  --coffee-600: #8b6340;
  --coffee-700: #6b4b2d;
  --espresso-800: #4a3020;
  --espresso-900: #2e1d0f;

  --bg-primary: #fdf8f3;
  --bg-secondary: #f5ead9;
  --bg-card: #fffdf8;
  --bg-card-hover: #fdf2e4;
  --bg-nav: rgba(253, 248, 243, 0.92);

  --accent-primary: #8b6340;
  --accent-secondary: #c8a97e;
  --accent-light: #ddc9a3;
  --accent-glow: rgba(139, 99, 64, 0.2);

  --text-primary: #2e1d0f;
  --text-secondary: #6b4b2d;
  --text-muted: #9a7a5c;
  --text-light: #b8926a;
  --text-inverse: #fdf8f3;

  --border-color: #ddc9a3;
  --border-light: #ecdfc4;
  --shadow-sm: 0 1px 3px rgba(46, 29, 15, 0.08);
  --shadow-md: 0 4px 16px rgba(46, 29, 15, 0.12);
  --shadow-lg: 0 8px 32px rgba(46, 29, 15, 0.16);
  --shadow-xl: 0 16px 48px rgba(46, 29, 15, 0.20);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #1a0f07;
  --bg-secondary: #251608;
  --bg-card: #2e1d0f;
  --bg-card-hover: #3d2614;
  --bg-nav: rgba(26, 15, 7, 0.95);
  --accent-primary: #c8a97e;
  --accent-secondary: #ddc9a3;
  --accent-light: rgba(200, 169, 126, 0.2);
  --accent-glow: rgba(200, 169, 126, 0.25);
  --text-primary: #fdf8f3;
  --text-secondary: #ddc9a3;
  --text-muted: #9a7a5c;
  --text-light: #8b6340;
  --text-inverse: #2e1d0f;
  --border-color: rgba(200, 169, 126, 0.25);
  --border-light: rgba(200, 169, 126, 0.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.45);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.55);
}

/* ====================
   BASE RESET
   ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
input, textarea, button { font-family: inherit; outline: none; border: none; background: none; }
button { cursor: pointer; }

.hidden { display: none !important; }
.hidden-input { position: absolute; opacity: 0; pointer-events: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ====================
   NAVBAR
   ==================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-container {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px;
  height: 70px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.logo-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--coffee-700), var(--caramel-400));
  color: var(--cream-50); font-weight: 800; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.5px;
}
.logo-text {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
}
.logo-text .accent { color: var(--accent-primary); }

.nav-links {
  display: flex; align-items: center; gap: 4px; flex: 1;
}
.nav-link {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  background: var(--accent-light); color: var(--accent-primary);
}

.nav-actions {
  display: flex; align-items: center; gap: 12px; flex-shrink: 0;
}
.theme-toggle {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  font-size: 18px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); cursor: pointer;
}
.theme-toggle:hover { background: var(--accent-light); transform: rotate(20deg); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.hamburger span {
  display: block; width: 18px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: var(--transition);
}

/* ====================
   BUTTONS
   ==================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--coffee-700), var(--caramel-400));
  color: var(--cream-50);
  box-shadow: 0 3px 12px rgba(139, 99, 64, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 99, 64, 0.45);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
  background: transparent; color: var(--accent-primary);
  border: 1.5px solid var(--accent-primary);
}
.btn-outline:hover {
  background: var(--accent-primary); color: var(--cream-50);
  transform: translateY(-2px);
}
.btn-full { width: 100%; }
.nav-cta { padding: 8px 18px; }

/* ====================
   HERO
   ==================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 24px 64px;
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--cream-100) 50%, var(--bg-primary) 100%);
}
.hero-bg-decoration {
  position: absolute; top: -200px; right: -200px;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-container {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  padding: 6px 16px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: 20px;
}
.badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.6);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.8); }
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700; line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.hero-name {
  background: linear-gradient(135deg, var(--coffee-700), var(--caramel-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 17px; font-weight: 500;
  margin-bottom: 16px; color: var(--text-secondary);
  min-height: 28px;
}
.subtitle-dynamic {
  font-weight: 700; color: var(--accent-primary);
  border-right: 2px solid var(--accent-primary);
  animation: blink-caret 1.2s step-end infinite;
}
@keyframes blink-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--accent-primary); }
}
.hero-desc {
  font-size: 16px; line-height: 1.7;
  color: var(--text-muted); margin-bottom: 28px;
  max-width: 460px;
}
.hero-stats {
  display: flex; gap: 20px; margin-bottom: 28px;
}
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 14px 20px;
  text-align: center; flex: 1;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: var(--bg-card-hover); }
.stat-number {
  display: block; font-size: 24px; font-weight: 800;
  color: var(--accent-primary); font-family: 'Playfair Display', serif;
}
.stat-label { font-size: 12px; color: var(--text-muted); font-weight: 500; }

.hero-actions {
  display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap;
}
.hero-socials {
  display: flex; gap: 10px;
}
.social-link {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-color); background: var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover {
  background: var(--accent-primary); color: var(--cream-50);
  border-color: var(--accent-primary); transform: translateY(-2px);
}

/* PHOTO FRAME */
.hero-image-area {
  display: flex; justify-content: center;
  position: relative; padding: 40px;
}
.photo-frame-wrapper {
  position: relative; width: 280px; height: 280px;
}
.photo-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid var(--accent-light); pointer-events: none;
  animation: spin-ring 15s linear infinite;
}
.ring-1 { inset: -20px; }
.ring-2 { inset: -36px; animation-direction: reverse; animation-duration: 22s; opacity: 0.6; }
@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.photo-frame {
  width: 280px; height: 280px; border-radius: 40px;
  background: linear-gradient(135deg, var(--cream-100), var(--cream-200));
  border: 2px solid var(--border-color);
  overflow: hidden; cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
}
.photo-frame:hover .photo-overlay { opacity: 1; }
.photo-frame:hover { transform: scale(1.02); }
.profile-photo { width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
}
.placeholder-initials {
  font-size: 72px; font-weight: 800;
  font-family: 'Playfair Display', serif;
  background: linear-gradient(135deg, var(--coffee-700), var(--caramel-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.placeholder-hint {
  font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.photo-overlay {
  position: absolute; inset: 0;
  background: rgba(46, 29, 15, 0.6);
  display: flex; align-items: center; justify-content: center;
  color: var(--cream-50); font-size: 14px; font-weight: 600;
  opacity: 0; transition: var(--transition);
  backdrop-filter: blur(4px);
}

.float-badge {
  position: absolute; background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full); padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--text-secondary);
  box-shadow: var(--shadow-md); white-space: nowrap;
}
.float-badge span { display: flex; align-items: center; gap: 6px; }
.badge-pos-1 { top: 10px; left: -20px; animation: float 3.5s ease-in-out infinite; }
.badge-pos-2 { bottom: 60px; left: -30px; animation: float 4s ease-in-out infinite 0.6s; }
.badge-pos-3 { top: 20px; right: -10px; animation: float 3.8s ease-in-out infinite 1.2s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.scroll-down {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
}
.scroll-arrow {
  width: 24px; height: 24px; border-right: 2px solid var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
  transform: rotate(45deg); animation: bounce-down 2s ease-in-out infinite;
}
@keyframes bounce-down {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 1; }
  50% { transform: rotate(45deg) translateY(6px); opacity: 0.6; }
}

/* ====================
   SECTIONS
   ==================== */
.section { padding: 100px 24px; }
.section:nth-child(even) { background: var(--bg-secondary); }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--accent-primary); background: var(--accent-light);
  padding: 6px 16px; border-radius: var(--radius-full);
  margin-bottom: 12px;
}
[data-theme="dark"] .section-tag { background: rgba(200, 169, 126, 0.15); }
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; color: var(--text-primary); margin-bottom: 12px;
}
.section-subtitle { color: var(--text-muted); font-size: 16px; max-width: 500px; margin: 0 auto; }

/* ====================
   ABOUT
   ==================== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-bio { font-size: 16px; line-height: 1.8; color: var(--text-secondary); }
.about-bio strong { color: var(--accent-primary); font-weight: 700; }
.about-info-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.info-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-light);
  padding: 8px 14px; border-radius: var(--radius-full);
  font-size: 13px; color: var(--text-muted); font-weight: 500;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.info-chip:hover { background: var(--bg-card-hover); transform: translateY(-1px); }
.chip-icon { font-size: 16px; }

.focus-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.focus-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  cursor: default;
}
.focus-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-lg);
  border-color: var(--accent-secondary); background: var(--bg-card-hover);
}
.focus-icon { font-size: 32px; margin-bottom: 12px; }
.focus-card h3 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.focus-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ====================
   SKILLS
   ==================== */
.skills-filter {
  display: flex; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin-bottom: 40px;
}
.filter-btn {
  padding: 10px 20px; border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary); background: var(--bg-card);
  cursor: pointer; transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--accent-primary); color: var(--cream-50);
  border-color: var(--accent-primary);
  box-shadow: 0 4px 12px rgba(139, 99, 64, 0.3);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.skill-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 18px;
  display: flex; align-items: center; gap: 16px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.skill-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: var(--accent-secondary);
}
.skill-card[data-category] { transition: var(--transition), opacity 0.3s; }
.skill-card.filtered-out { opacity: 0; transform: scale(0.95); pointer-events: none; display: none; }
.skill-icon-wrap { font-size: 28px; flex-shrink: 0; }
.skill-info { flex: 1; }
.skill-name { display: block; font-size: 13px; font-weight: 600; color: var(--text-primary); margin-bottom: 8px; }
.skill-bar-track {
  height: 6px; background: var(--border-light); border-radius: var(--radius-full);
  overflow: hidden; margin-bottom: 4px;
}
.skill-bar {
  height: 100%; width: 0; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--coffee-700), var(--caramel-400));
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-bar.animated { width: var(--pct); }
.skill-pct { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* ====================
   EXPERIENCE (TIMELINE)
   ==================== */
.timeline {
  position: relative; max-width: 800px; margin: 0 auto;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute; left: 14px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), transparent);
}
.timeline-item {
  position: relative; margin-bottom: 40px;
}
.timeline-dot {
  position: absolute; left: -25px; top: 20px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 2px var(--accent-primary);
  z-index: 1;
}
.dot-edu { background: var(--caramel-400); box-shadow: 0 0 0 2px var(--caramel-400); }
.timeline-date {
  font-size: 12px; font-weight: 600; color: var(--accent-primary);
  text-transform: uppercase; letter-spacing: 0.5px;
  margin-bottom: 8px;
}
.timeline-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.timeline-card:hover { box-shadow: var(--shadow-md); transform: translateX(4px); }
.edu-card { border-left: 3px solid var(--caramel-400); }
.tc-header { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.tc-company-badge {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--bg-secondary); display: flex; align-items: center;
  justify-content: center; font-size: 22px; flex-shrink: 0;
  border: 1px solid var(--border-light);
}
.tc-role { font-size: 16px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.tc-company { display: block; font-size: 14px; font-weight: 600; color: var(--accent-primary); margin-bottom: 2px; }
.tc-location { font-size: 12px; color: var(--text-muted); }
.tc-bullets { padding-left: 20px; margin-bottom: 16px; }
.tc-bullets li {
  font-size: 14px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 6px; list-style: disc;
}
.tc-edu-note { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.tc-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tc-tag {
  font-size: 11px; font-weight: 600;
  background: var(--accent-light); color: var(--accent-primary);
  padding: 4px 10px; border-radius: var(--radius-full);
}
[data-theme="dark"] .tc-tag { background: rgba(200, 169, 126, 0.15); }
.edu-tag { background: rgba(200, 169, 126, 0.2); color: var(--caramel-500); }

/* ====================
   PROJECTS
   ==================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}
.project-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
  position: relative; overflow: hidden;
}
.project-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: var(--accent-secondary); }
.featured-project { background: linear-gradient(145deg, var(--bg-card), var(--cream-100)); }
[data-theme="dark"] .featured-project { background: linear-gradient(145deg, var(--bg-card), #3d2614); }
.project-glow {
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}
.project-badge {
  display: inline-flex; font-size: 11px; font-weight: 700;
  background: linear-gradient(135deg, var(--coffee-700), var(--caramel-400));
  color: var(--cream-50);
  padding: 4px 12px; border-radius: var(--radius-full);
  margin-bottom: 16px;
}
.project-icon-big { font-size: 40px; margin-bottom: 12px; }
.project-title {
  font-family: 'Playfair Display', serif;
  font-size: 20px; font-weight: 700; color: var(--text-primary); margin-bottom: 4px;
}
.project-subtitle { font-size: 13px; color: var(--accent-primary); font-weight: 600; margin-bottom: 12px; }
.project-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ptag {
  font-size: 11px; font-weight: 600;
  background: var(--bg-secondary); color: var(--text-secondary);
  border: 1px solid var(--border-light);
  padding: 4px 10px; border-radius: var(--radius-full);
}

/* DEMO */
.project-demo {
  background: var(--bg-secondary); border-radius: var(--radius-md);
  padding: 16px; border: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 10px;
}
.demo-label { font-size: 12px; font-weight: 700; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.demo-input {
  width: 100%; background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 10px 12px;
  font-size: 13px; color: var(--text-primary); resize: vertical;
  transition: var(--transition);
}
.demo-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px var(--accent-glow); }
.demo-result { padding: 12px 0 0; }
.match-score-label { font-size: 12px; color: var(--text-muted); font-weight: 600; margin-bottom: 6px; }
.match-score-bar-wrap { display: flex; align-items: center; gap: 10px; }
.match-score-bar {
  flex: 1; height: 10px; background: var(--border-light); border-radius: var(--radius-full); overflow: hidden;
}
.match-score-bar::after {
  content: ''; display: block; height: 100%;
  background: linear-gradient(90deg, var(--coffee-700), var(--caramel-400));
  border-radius: var(--radius-full);
  width: 0; transition: width 1s ease;
}
.match-score-bar.scored::after { width: var(--score); }
.match-score-num { font-size: 18px; font-weight: 800; color: var(--accent-primary); font-family: 'Playfair Display', serif; }
.match-feedback { font-size: 13px; color: var(--text-secondary); margin-top: 8px; line-height: 1.5; }

/* ====================
   CERTIFICATIONS
   ==================== */
.certs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.cert-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 24px;
  display: flex; gap: 16px;
  box-shadow: var(--shadow-sm); transition: var(--transition);
}
.cert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--accent-secondary); }
.featured-cert {
  border-left: 3px solid var(--accent-primary);
  background: linear-gradient(135deg, var(--bg-card), var(--cream-100));
}
[data-theme="dark"] .featured-cert { background: linear-gradient(135deg, var(--bg-card), #3d2614); }
.cert-icon { font-size: 32px; flex-shrink: 0; }
.cert-body { display: flex; flex-direction: column; gap: 6px; }
.cert-date { font-size: 11px; font-weight: 600; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 0.5px; }
.cert-title { font-size: 15px; font-weight: 700; color: var(--text-primary); line-height: 1.4; }
.cert-issuer { font-size: 13px; color: var(--text-secondary); font-weight: 600; }
.cert-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ====================
   CONTACT
   ==================== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px;
  max-width: 900px; margin: 0 auto;
}
.contact-info-title {
  font-size: 20px; font-weight: 700; color: var(--text-primary);
  margin-bottom: 24px;
  font-family: 'Playfair Display', serif;
}
.contact-items { display: flex; flex-direction: column; gap: 12px; }
.contact-item {
  display: flex; gap: 14px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 14px 16px;
  transition: var(--transition); color: var(--text-secondary);
  cursor: text;
}
.contact-item:hover { background: var(--bg-card-hover); border-color: var(--accent-secondary); }
.contact-item-icon { font-size: 22px; flex-shrink: 0; }
.contact-item-label { display: block; font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 2px; }
.contact-item-value { font-size: 14px; color: var(--text-primary); font-weight: 500; }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; gap: 18px;
}
.form-row { display: flex; gap: 18px; }
.form-row .form-group { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group textarea {
  background: var(--bg-secondary); border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm); padding: 12px 14px;
  font-size: 14px; color: var(--text-primary);
  transition: var(--transition); resize: none;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}
.checkbox-group { gap: 0; }
.checkbox-text-wrapper {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
}
.checkbox-text-wrapper input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 3px;
  padding: 0; border-radius: 4px;
  cursor: pointer;
  accent-color: var(--accent-primary);
  flex-shrink: 0;
}
.text-link {
  color: var(--accent-primary);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* ====================
   FOOTER
   ==================== */
.footer {
  background: var(--espresso-900); color: var(--cream-200); padding: 48px 24px;
}
[data-theme="dark"] .footer { background: #0d0703; }
.footer-content { text-align: center; display: flex; flex-direction: column; gap: 16px; align-items: center; }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 20px; font-weight: 700; color: var(--cream-100);
}
.footer-brand .logo-icon { color: var(--cream-50); }
.footer-tagline { font-size: 14px; color: var(--caramel-400); }
.footer-socials { display: flex; gap: 20px; }
.footer-socials .social-link {
  width: auto; height: auto;
  background: none; border: none; color: var(--caramel-400);
  font-size: 13px; font-weight: 500; padding: 0;
}
.footer-socials .social-link:hover { color: var(--cream-100); transform: none; background: none; }
.footer-copy { font-size: 12px; color: var(--caramel-500); }

/* ====================
   TOAST
   ==================== */
.toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  background: var(--espresso-800); color: var(--cream-100);
  padding: 14px 22px; border-radius: var(--radius-md);
  font-size: 14px; font-weight: 600;
  box-shadow: var(--shadow-xl);
  transform: translateY(120%); opacity: 0;
  transition: var(--transition);
  max-width: 320px;
}
.toast.show { transform: translateY(0); opacity: 1; }

/* ====================
   SCROLL ANIMATIONS
   ==================== */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 48px; }
  .hero { padding-top: 90px; }
  .hero-desc { margin: 0 auto 28px; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-image-area { order: -1; padding: 20px; }
  .photo-frame-wrapper { width: 220px; height: 220px; }
  .photo-frame { width: 220px; height: 220px; }
  .badge-pos-3 { display: none; }
  .badge-pos-1 { top: -10px; left: -10px; }
  .badge-pos-2 { bottom: 10px; left: -10px; }

  .nav-container { justify-content: space-between; gap: 16px; }
  .nav-links { display: none; position: absolute; top: 70px; right: 24px; left: auto;
    width: 200px; background: var(--bg-card); flex-direction: column; padding: 16px;
    border: 1px solid var(--border-light); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); text-align: center; }
  .hamburger { display: flex; }
  .nav-cta { display: none; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .focus-cards { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .featured-project { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 24px; }

  .section { padding: 72px 16px; }
}

@media (max-width: 480px) {
  .focus-cards { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; max-width: 200px; margin: 0 auto 28px; }
  .float-badge { display: none; }
  .photo-ring { display: none; }
  .form-row { flex-direction: column; gap: 14px; }
}

/* ====================
   MODAL
   ==================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
  padding: 24px;
}
.modal-overlay.active {
  opacity: 1; pointer-events: auto;
}
.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  width: 100%; max-width: 600px;
  max-height: 85vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-header {
  padding: 20px 24px;
  border-bottom: 2px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title {
  font-size: 18px; font-weight: 700; color: var(--text-primary);
}
.modal-close {
  font-size: 24px; color: var(--text-muted); cursor: pointer;
  background: none; border: none; padding: 4px;
  line-height: 1;
}
.modal-close:hover { color: var(--accent-primary); }
.modal-body {
  padding: 24px; overflow-y: auto;
  font-size: 14px;
}
.modal-subtitle {
  font-size: 15px; font-weight: 700; color: var(--accent-primary);
  margin-top: 16px; margin-bottom: 8px;
}
.modal-text {
  color: var(--text-secondary); line-height: 1.6;
}
.modal-body strong { color: var(--text-primary); }
.modal-list {
  padding-left: 20px; color: var(--text-secondary); margin-bottom: 12px;
}
.modal-list li {
  margin-bottom: 6px; list-style-type: disc; line-height: 1.5;
}
.modal-footer {
  padding: 20px 24px;
  border-top: 2px solid var(--border-light);
  display: flex; justify-content: flex-end;
}
.modal-footer .btn { width: 100%; }
