:root {
  /* Dark Theme (Default) */
  --bg-base: #070b1a;
  --bg-surface: rgba(17, 24, 48, 0.55);
  --bg-elevated: rgba(30, 41, 78, 0.5);
  --text-primary: #eef2ff;
  --text-secondary: #a5b0d0;
  --text-muted: #7d8b9c;

  /* Accents */
  --accent: #8b5cf6;        /* Violet */
  --accent-2: #22d3ee;      /* Cyan */
  --accent-soft: rgba(139, 92, 246, 0.14);
  --accent-hover: #a78bfa;
  --link: #22d3ee;

  --border: rgba(139, 92, 246, 0.22);
  --border-strong: rgba(139, 92, 246, 0.5);

  --max-width: 1080px;
  --header-height: 72px;

  --font-main: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 10px;
  --shadow-soft: 0 20px 60px -30px rgba(0,0,0,0.35);
}

body.light-theme {
  --bg-base: #eef2ff;
  --bg-surface: rgba(255, 255, 255, 0.7);
  --bg-elevated: rgba(238, 242, 255, 0.9);
  --text-primary: #1e1b4b;
  --text-secondary: #4b5280;
  --text-muted: #7c84b0;

  --accent: #6d28d9;
  --accent-2: #0891b2;
  --accent-soft: rgba(109, 40, 217, 0.08);
  --accent-hover: #7c3aed;
  --link: #0891b2;

  --border: rgba(109, 40, 217, 0.16);
  --border-strong: rgba(109, 40, 217, 0.4);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-height); }
section[id], .hero { scroll-margin-top: var(--header-height); }

body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

/* Subtle grid backdrop */
.bg-mesh {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse 55% 45% at 15% 10%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(34, 211, 238, 0.2), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(139, 92, 246, 0.15), transparent 60%);
  animation: aurora 14s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.08) rotate(2deg); }
}

.noise-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; font-family: var(--font-main); letter-spacing: -0.01em; color: var(--text-primary); }

a { color: var(--link); }
a h1, a h2, a h3, a h4 { color: var(--text-primary); transition: color 0.3s ease; }
a:hover h3 { color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.75rem;
  font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  border-radius: 8px;
}
.btn:hover { transform: translateY(-1px); }

.primary-btn { background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.5); }
body.light-theme .primary-btn { color: #fff; }
.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.6); background: linear-gradient(120deg, var(--accent-hover), var(--accent-2)); }

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

/* Header */
.glass-header {
  position: fixed; top: 0; width: 100%; height: var(--header-height); z-index: 100;
  background: color-mix(in srgb, var(--bg-base) 80%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo-text { font-family: var(--font-mono); font-size: 1.35rem; font-weight: 700; color: var(--text-primary); text-decoration: none; }
.logo-dot { color: var(--accent); }

.nav-links { list-style: none; display: flex; gap: 2rem; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); padding: 0.4rem; cursor: pointer; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }
.nav-toggle #icon-close { display: none; }
.nav-toggle.open #icon-close { display: block; animation: spinIn 0.3s ease; }
.nav-toggle.open #icon-menu { display: none; }
@keyframes spinIn {
  from { transform: rotate(-90deg); opacity: 0; }
  to { transform: rotate(0); opacity: 1; }
}

.nav-links a { text-decoration: none; color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 1px; background: var(--accent); transition: width 0.3s ease; }
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after { width: 100%; }

.theme-toggle {
  background: transparent; border: 1px solid var(--border); cursor: pointer;
  color: var(--text-primary); margin-right: 0; padding: 0.45rem 0.8rem; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
@media (max-width: 768px) {
  .nav-container > div .theme-dd { display: none; }
  .theme-li { flex-wrap: wrap; }
  .theme-li .theme-dd { position: static; margin-left: auto; }
  .theme-li .theme-dd.open .theme-dd-menu {
    position: static; width: 100%; flex-basis: 100%;
    margin-top: 0.5rem; box-shadow: none;
  }
}
@media (min-width: 769px) {
  .nav-links .theme-li { display: none; }
}

.theme-dd { position: relative; display: inline-block; }
.theme-dd-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--border); border-radius: 10px;
  color: var(--text-primary); cursor: pointer;
  transition: border-color 0.2s, transform 0.15s;
}
.theme-dd-btn:hover { border-color: var(--accent); color: var(--accent); }
.theme-dd-btn:active { transform: scale(0.94); }
.theme-dd-menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 200;
  min-width: 150px; list-style: none;
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.4rem;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.5);
  display: none;
}
.theme-dd.open .theme-dd-menu { display: block; animation: ddIn 0.2s ease; }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.theme-dd-menu li button {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  background: transparent; border: none; border-radius: 8px; cursor: pointer;
  color: var(--text-secondary); font-family: var(--font-body); font-size: 0.85rem;
  padding: 0.5rem 0.7rem; text-align: left;
  transition: background 0.15s, color 0.15s;
}
.theme-dd-menu li button:hover { background: var(--accent-soft); color: var(--text-primary); }
.theme-dd-menu li button.selected { color: var(--accent); }
.theme-dd-menu li button.selected .dd-icon { color: var(--accent); }
.dd-icon { display: inline-flex; width: 16px; height: 16px; }
.theme-icon { display: inline-flex; align-items: center; }
.theme-li { display: flex; align-items: center; gap: 0.5rem; }
.theme-li .theme-label { margin-right: auto; }
.theme-toggle:hover { border-color: var(--accent); transform: rotate(12deg); }

/* Cards */
.glass-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px -30px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.glass-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: 0 30px 70px -25px rgba(139, 92, 246, 0.35); }

/* Hero */
.hero { min-height: 100vh; min-height: 88svh; display: flex; align-items: flex-start; padding-top: var(--header-height); }
.hero-content { max-width: 820px; margin: auto 0; padding: 2.5rem 0 1.5rem; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-secondary);
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
  width: auto; align-self: flex-start;
  margin-bottom: 1.5rem;
  animation: slideDown 0.6s ease-out backwards;
}
.hero-badge::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 10px #34d399;
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(2.75rem, 7.5vw, 5rem); margin-bottom: 1.25rem;
  background: linear-gradient(120deg, var(--text-primary) 30%, var(--accent) 70%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
  animation: slideUp 0.8s ease-out 0.15s backwards;
}
.hero-subtitle { font-size: clamp(1.05rem, 2.5vw, 1.3rem); color: var(--text-secondary); margin-bottom: 1.25rem; max-width: 640px; animation: slideUp 0.8s ease-out 0.3s backwards; }
.hero-contact { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; animation: slideUp 0.8s ease-out 0.4s backwards; }
.contact-pill {
  font-family: var(--font-mono); font-size: 0.75rem;
  color: var(--text-secondary); text-decoration: none;
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.35rem 0.85rem;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
a.contact-pill:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.contact-pill.static { border-style: dashed; }
.hero-actions { display: flex; gap: 1rem; animation: slideUp 0.8s ease-out 0.5s backwards; }

/* Sections */
.section { padding-top: 6rem; padding-bottom: 6rem; border-top: 1px solid var(--border); }
.section-head { margin-bottom: 3rem; }
.section-title { font-size: 2rem; margin-bottom: 0.5rem; }
.eyebrow { color: var(--accent-2); }
.section-subtitle { color: var(--text-secondary); }

/* About */
.about-text { font-size: 1.05rem; color: var(--text-secondary); }
.about-text p { margin-bottom: 1.25rem; }

.skills-container { margin-top: 2.5rem; }
.skills-title { font-size: 1rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); margin-bottom: 1.25rem; }

.skills-groups { display: grid; gap: 1.25rem; }
.skills-group h4 {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.skills-grid { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.skill-tag {
  background: var(--bg-elevated); border: 1px solid var(--border);
  padding: 0.5rem 1rem; border-radius: 8px; font-size: 0.85rem; font-weight: 500;
  color: var(--text-primary); display: inline-flex; align-items: center; gap: 0.45rem;
  transition: all 0.2s ease;
}
.skill-tag:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: 0 6px 18px -6px var(--accent); transition: all 0.25s ease; }

/* Timeline */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before {
  content: ''; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-2), transparent);
}
.timeline-item { position: relative; padding-left: 40px; margin-bottom: 2rem; }
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: 0; top: 26px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg-base); border: 2px solid var(--dot, var(--accent)); z-index: 2;
  box-shadow: 0 0 12px var(--dot, var(--accent));
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.timeline-item:hover .timeline-dot { transform: scale(1.25); background: var(--accent); }
.timeline-card { padding: 1.75rem; }
.timeline-card h3 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.timeline-card h4 { font-size: 1rem; font-weight: 500; color: var(--accent); margin-bottom: 0.9rem; }
.timeline-card h4 span { color: var(--text-muted); }
.timeline-meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.timeline-desc { color: var(--text-secondary); line-height: 1.7; font-size: 0.98rem; overflow: hidden; max-height: 0; opacity: 0; transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease; margin-top: 0; }
.timeline-note {
  display: block; margin-top: 0.75rem; padding-left: 0.75rem;
  border-left: 2px solid var(--border-strong);
  font-size: 0.82rem; font-style: italic; color: var(--text-muted); line-height: 1.6;
}
.timeline-card.open .timeline-desc { max-height: 400px; opacity: 1; margin-top: 1rem; }

.duration { color: var(--accent-2); }

.company-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px; margin-right: 0.5rem;
  background: var(--accent-soft); color: var(--accent);
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  vertical-align: middle;
}

.year-pin {
  position: absolute; top: 1rem; right: 1.5rem;
  font-family: var(--font-main); font-size: 2.75rem; font-weight: 600;
  color: var(--border-strong); opacity: 0.35; line-height: 1;
  pointer-events: none;
}

.timeline-card { position: relative; }

.expand-btn {
  background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 6px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.expand-btn:hover, .expand-btn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); }

/* Gantt tenure bar */
.gantt {
  display: flex; gap: 4px; height: 34px; max-width: 860px; margin: 0 auto 3rem;
  border-radius: 8px; overflow: hidden;
}
.gantt-seg {
  display: flex; align-items: center; justify-content: center;
  min-width: 4px; transition: filter 0.25s ease, flex-grow 0.3s ease;
}
.gantt-seg:hover { filter: brightness(1.25); }
.gantt-seg span {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  color: #070b1a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 4px;
}

/* Projects */
abbr[title] { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
abbr[title]::after { content: ' ?'; font-size: 0.65em; vertical-align: super; color: var(--accent); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.75rem; }
.project-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: var(--radius); text-decoration: none; color: inherit; }
.project-img-wrapper {
  height: 180px; display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--border); position: relative; overflow: hidden;
  background: var(--bg-elevated);
}
.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.project-card:hover .project-img { transform: scale(1.04); }
.project-content { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.project-content h3 { font-size: 1.25rem; margin-bottom: 0.75rem; transition: color 0.2s; }
.project-card:hover h3 { color: var(--accent); }
.project-content p { color: var(--text-secondary); margin-bottom: 0; flex: 1; font-size: 0.95rem; }
.status-badge {
  font-family: var(--font-mono); background: rgba(245, 158, 11, 0.12); color: #f59e0b;
  font-size: 0.68rem; padding: 0.15rem 0.5rem; border-radius: 999px; margin-left: 0.5rem;
  vertical-align: middle; border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Footer */
footer { border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 2rem; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; text-align: center; }
.footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { text-align: center; margin-top: 1.5rem; }
.footer-bottom p { color: var(--text-muted); font-size: 0.78rem; font-family: var(--font-mono); }
.footer-logo { font-family: var(--font-mono); font-weight: 700; font-size: 1.2rem; }
.footer-socials { display: flex; gap: 1.25rem; }
.footer-socials a { color: var(--text-secondary); transition: color 0.2s; }
.footer-socials a:hover { color: var(--accent); }

/* Hero portrait + visual */
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; width: 100%; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ''; position: absolute; inset: 8% -6% -6% 8%; z-index: 0;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.35), transparent 65%);
  filter: blur(30px);
}
.portrait-frame {
  position: relative; z-index: 1; width: min(320px, 100%);
  border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px -25px rgba(139, 92, 246, 0.45);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}
.portrait-frame:hover { transform: rotate(0deg) scale(1.02); }
.portrait-frame img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero-float-chip {
  position: absolute; z-index: 2;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  background: var(--bg-surface); border: 1px solid var(--border-strong);
  color: var(--text-primary); border-radius: 999px; padding: 0.4rem 0.9rem;
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.6);
  animation: floaty 5s ease-in-out infinite;
}
.chip-a { top: 12%; left: -4%; }
.chip-b { bottom: 10%; right: -2%; animation-delay: 2.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* Stats strip */
.stats-strip { padding-bottom: 1rem; }

/* Stats strip sits divider-free between hero and About; hero sizes to content */
#home.hero { border-bottom: none; min-height: auto; }
#about.section { border-top: none; }
.stats-strip { padding-top: 2.5rem; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { padding: 1.25rem 1rem; text-align: center; display: flex; flex-direction: column; gap: 0.25rem; }
.stat-value {
  font-family: var(--font-main); font-size: 1.9rem; font-weight: 600;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.stat-label { font-size: 0.8rem; color: var(--text-secondary); }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.service-card { display: flex; flex-direction: column; gap: 0.6rem; text-decoration: none; }
.service-card h3 { font-size: 1.2rem; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; flex: 1; }
.service-cta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent); }
.service-card:hover .service-cta { text-decoration: underline; text-underline-offset: 3px; }

/* Pricing strip */
.pricing-strip { margin-top: 1.25rem; padding: 1.5rem 1.75rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.price-item { display: flex; flex-direction: column; gap: 0.55rem; }
.price-value { font-family: var(--font-main); font-size: 1.3rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; line-height: 1.3; }
.price-per { font-family: var(--font-mono); font-size: 0.8rem; font-weight: 400; color: var(--text-muted); margin-left: 0.3rem; }
.price-label { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }
.pricing-note { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-muted); }

/* Skip link */
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--accent); color: #070b1a; font-weight: 600; font-size: 0.85rem;
  padding: 0.6rem 1rem; border-radius: 8px; text-decoration: none;
  transition: top 0.2s ease;
}
.skip-link:focus-visible { top: 12px; }
/* Technical growth chart */
.growth-block { margin-top: 2.5rem; }
.growth-legend { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 1rem; }
.growth-legend span { display: inline-flex; align-items: center; gap: 0.45rem; font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.growth-chart { width: 100%; height: auto; display: block; }
.growth-caption { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.75rem; line-height: 1.6; }

/* Now block */
.now-block { margin-top: 2.5rem; border-top: 1px solid var(--border); padding-top: 1.75rem; }
.now-block .skills-title { display: flex; align-items: center; gap: 0.6rem; }
.now-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #34d399; box-shadow: 0 0 10px #34d399; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.85); } }
.now-list { list-style: none; display: grid; gap: 0.6rem; }
.now-list li { position: relative; padding-left: 1.25rem; color: var(--text-secondary); font-size: 0.95rem; }
.now-list li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }

/* Recommendations */
.reco-grid { display: grid; gap: 1.25rem; }
.reco-card { position: relative; padding: 2rem 2rem 1.75rem; margin: 0; }
.reco-quote {
  font-family: var(--font-main); font-size: 4rem; line-height: 1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
}
.reco-card blockquote { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.75; margin: 0.5rem 0 1.5rem; }
.reco-card blockquote p { margin: 0 0 0.9rem; }
.reco-card blockquote p:last-child { margin-bottom: 0; }
.reco-author { display: flex; align-items: center; gap: 1rem; }
.reco-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-strong); }
.reco-who { display: flex; flex-direction: column; gap: 0.15rem; }
.reco-who a { font-weight: 600; color: var(--text-primary); text-decoration: none; }
.reco-who a:hover { color: var(--accent); }
.reco-role { font-size: 0.82rem; color: var(--text-muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.contact-card { display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none; padding: 1.75rem; height: 100%; }
.contact-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; margin-bottom: 0.5rem;
  background: var(--accent-soft); color: var(--accent);
}
.contact-title { font-weight: 600; color: var(--text-primary); }
.contact-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.contact-card { position: relative; }
.corner-link { position: absolute; top: 1rem; right: 1.25rem; }
.mini-link { display: inline-flex; align-items: center; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.mini-link:hover { color: var(--accent); }
.contact-value-row { display: flex; align-items: center; gap: 0.4rem; min-width: 0; }
.contact-value { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-inline {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  background: transparent; border: 1px solid transparent;
  color: var(--text-muted); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.copy-inline:hover { border-color: var(--border-strong); color: var(--accent); background: var(--accent-soft); }
.copy-inline.copied { color: #34d399; border-color: #34d399; }
a.contact-value { text-decoration: none; }
a.contact-value:hover { color: var(--accent); }
.contact-value { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-secondary); overflow-wrap: break-word; }
.contact-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: auto; padding-top: 0.75rem; }
.contact-actions .primary-action {
  display: block; text-align: center; text-decoration: none;
  font-weight: 600; font-size: 0.9rem; color: #fff;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 8px; padding: 0.6rem 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-actions .primary-action:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -10px rgba(139, 92, 246, 0.6); }
.contact-actions .secondary-row { display: flex; gap: 0.5rem; }
.contact-actions .secondary-row a, .contact-actions .secondary-row button {
  flex: 1; text-align: center;
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--text-secondary); background: transparent;
  border: 1px solid transparent; border-radius: 8px;
  padding: 0.35rem 0.5rem; cursor: pointer; text-decoration: none;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.contact-actions .secondary-row a:hover, .contact-actions .secondary-row button:hover { border-color: var(--border-strong); color: var(--accent); background: var(--accent-soft); }
.contact-actions button.copied { color: #34d399; border-color: #34d399 !important; }

/* Footer links */
.footer-brand { display: flex; align-items: center; gap: 1rem; }

/* Back to top */
.back-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bg-surface); border: 1px solid var(--border-strong);
  color: var(--text-primary); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, border-color 0.2s, color 0.2s;
}
.back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-top:hover { border-color: var(--accent); color: var(--accent); }

/* Skills ticker */
.ticker { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 0.8rem 0; margin: 1rem 0 0; }
.ticker-track { display: flex; gap: 2.5rem; width: max-content; animation: ticker-scroll 30s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-muted); white-space: nowrap; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Quick-jump palette */
.palette-overlay {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0, 0, 0, 0.6);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 15vh;
}
.palette-overlay.open { display: flex; }
.palette {
  width: min(480px, 90vw);
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  overflow: hidden;
}
.palette input {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--border);
  color: var(--text-primary); font-family: var(--font-body); font-size: 1rem;
  padding: 1rem 1.25rem; outline: none;
}
.palette ul { list-style: none; max-height: 300px; overflow-y: auto; padding: 0.5rem; }
.palette ul a {
  display: block; padding: 0.6rem 0.9rem; border-radius: 8px;
  color: var(--text-secondary); text-decoration: none; font-size: 0.95rem;
}
.palette ul a:hover { background: var(--accent-soft); color: var(--text-primary); }

/* Selection + scrollbar */
::selection { background: var(--accent); color: #070b1a; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Active nav link */
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }

/* Animations */
@keyframes slideDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(32px); transition: all 0.7s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Keyboard focus */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: fixed; top: var(--header-height); left: 0; right: 0; z-index: 99;
    flex-direction: column; gap: 0;
    background: var(--bg-base);
    border-bottom: 1px solid var(--border-strong);
    box-shadow: 0 20px 40px -20px rgba(0,0,0,0.6);
    padding: 0.5rem 24px 1rem;
  }
  .nav-links.open { display: flex; }
  .nav-links.open li { animation: navItemIn 0.35s ease backwards; }
  .nav-links.open li:nth-child(1) { animation-delay: 0.02s; }
  .nav-links.open li:nth-child(2) { animation-delay: 0.06s; }
  .nav-links.open li:nth-child(3) { animation-delay: 0.1s; }
  .nav-links.open li:nth-child(4) { animation-delay: 0.14s; }
  .nav-links.open li:nth-child(5) { animation-delay: 0.18s; }
  .nav-links.open li:nth-child(6) { animation-delay: 0.22s; }
  .nav-links.open li:nth-child(7) { animation-delay: 0.26s; }
  @keyframes navItemIn {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
  }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 0.75rem 0; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .hero { min-height: auto; padding-top: calc(var(--header-height) + 3rem); padding-bottom: 3rem; }
  .hero-title { font-size: 2.6rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; width: 100%; }
  .hero-contact { line-height: 2; }
  .footer-content { flex-direction: column; gap: 1.25rem; text-align: center; }
  .section { padding-top: 4rem; padding-bottom: 4rem; border-top: 1px solid var(--border-strong); }
  .section-head { margin-bottom: 2.5rem; }
  .about-text p { margin-bottom: 1rem; }

  .timeline-item { padding-left: 28px; }
  .timeline::before { left: 7px; }
  .timeline-card { padding: 1.25rem; }
  .year-pin { font-size: 1.75rem; top: 0.9rem; right: 1rem; }
  .gantt { height: 26px; gap: 2px; }
  .gantt-seg span { display: none; }
  .company-chip { width: 22px; height: 22px; font-size: 0.55rem; }

  .projects-grid { grid-template-columns: 1fr; }
  .project-img-wrapper { height: 160px; }

  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: 2; }
  .portrait-frame { width: min(240px, 80%); }
  .chip-a { left: 2%; }
  .chip-b { right: 2%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-content { flex-wrap: wrap; }

  .nav-cta { padding: 0.55rem 1.25rem; font-size: 0.85rem; }

  .resume-header h1 { font-size: 2.25rem; }
  .experience-header { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .resume-actions { top: 10px; right: 10px; }

  .glass-card { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .nav-cta { display: none; }
  .container { padding-left: 16px; padding-right: 16px; }
  .hero-title { font-size: 2.1rem; }
  .section-title { font-size: 1.6rem; }
  .glass-card { padding: 1.25rem; }
  .year-pin { display: none; }
  .skill-tag { font-size: 0.78rem; padding: 0.4rem 0.8rem; }
  .project-content { padding: 1.25rem; }
  .resume-actions { left: 10px; right: 10px; justify-content: space-between; }
  .resume-header h1 { font-size: 1.8rem; }
  .experience-item ul { padding-left: 1rem; }
}

@page {
  size: A4;
  margin: 14mm 12mm;
}

@media print {
  .bg-mesh, .glass-header, .theme-toggle, .theme-dd, .resume-actions, .hero-actions, .footer-socials, .back-top, .ticker, .palette-overlay, .skip-link, .expand-btn { display: none !important; }
  .timeline-card .timeline-desc { max-height: none !important; opacity: 1 !important; margin-top: 1rem !important; }

  html { scroll-behavior: auto; }

  body, html {
    background: #fff !important;
    color: #111 !important;
    font-size: 11pt;
    line-height: 1.45;
  }

  .container { max-width: 100% !important; padding: 0 !important; }

  .glass-card, .project-card {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin-bottom: 1.25rem !important;
  }

  .section { padding: 1rem 0 !important; }

  h1, h2, h3, h4 { color: #000 !important; letter-spacing: 0; }
  h2 { border-bottom: 1px solid #ddd; padding-bottom: 0.25rem; margin-bottom: 0.75rem !important; }

  p, li, ul { color: #333 !important; }
  a { color: #111 !important; text-decoration: none !important; }

  .eyebrow { color: #555 !important; margin-bottom: 0.25rem; }

  .skill-tag {
    background: #f3f4f6 !important;
    border: 1px solid #d1d5db !important;
    color: #374151 !important;
  }

  .timeline::before { background: #ccc !important; }
  .timeline-dot { border-color: #555 !important; box-shadow: none !important; }

  .experience-item, .project-card { break-inside: avoid; page-break-inside: avoid; }

  .hero { min-height: auto !important; padding-top: 0 !important; }

  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}
