/* ============================================================
   DESIGN TOKENS — Clean Black & White
   ============================================================ */
:root {
  --bg-base:        #ffffff;
  --bg-surface:     #f7f7f7;
  --bg-card:        #ffffff;
  --bg-card-hover:  #f4f4f4;

  --accent-main:    #0a0a0a;
  --accent-mid:     #444444;
  --accent-soft:    #888888;

  --text-primary:   #0a0a0a;
  --text-secondary: #555555;
  --text-muted:     #999999;

  --border:         rgba(0, 0, 0, 0.10);
  --border-light:   rgba(0, 0, 0, 0.05);
  --border-strong:  rgba(0, 0, 0, 0.20);

  --radius-sm:  6px;
  --radius-md:  14px;
  --radius-lg:  22px;
  --radius-xl:  40px;

  --shadow-sm:  0 2px 12px rgba(0, 0, 0, 0.07);
  --shadow-md:  0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-lg:  0 24px 64px rgba(0, 0, 0, 0.13);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.18s ease;

  --font-sans: 'Outfit', system-ui, sans-serif;
  --font-serif: 'Lora', Georgia, serif;

  --nav-h: 72px;
}

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

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

body {
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--accent-main);
  color: #fff;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   UTILITY
   ============================================================ */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 120px 0; }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title em {
  font-style: italic;
  color: var(--accent-mid);
}

.section-title.centered,
.section-subtitle.centered { text-align: center; }

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 64px;
  line-height: 1.8;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent-main);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #2a2a2a;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--accent-main);
  background: var(--accent-main);
  color: #fff;
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

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

.nav-logo {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  background: var(--accent-main);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
}

.navbar.scrolled .nav-logo {
  color: #fff;
}

.nav-logo:hover { background: #333; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 100px;
  transition: var(--transition-fast);
}

/* Hero state — white links */
.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.75); }
.navbar:not(.scrolled) .nav-links a:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* Scrolled state — dark links */
.navbar.scrolled .nav-links a:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
}

.nav-links .nav-cta {
  color: #fff !important;
  background: var(--accent-main);
  padding: 9px 20px;
  font-weight: 600;
  border-radius: 100px;
}

.nav-links .nav-cta:hover {
  background: #2a2a2a !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

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

.navbar:not(.scrolled) .nav-burger span { background: #fff; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
  background: #0a0a0a;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  transform: scale(1.04);
  transition: transform 0.1s linear;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.30) 45%,
    rgba(0, 0, 0, 0.65) 100%
  );
}

/* Particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  opacity: 0;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0%   { transform: translateY(0) scale(0); opacity: 0; }
  10%  { opacity: 0.25; }
  90%  { opacity: 0.08; }
  100% { transform: translateY(-100vh) scale(0.5); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 48px 24px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
  animation: fadeUp 0.7s 0.2s both;
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 8vw, 6.8rem);
  font-weight: 600;
  line-height: 1.04;
  color: #ffffff;
  margin-bottom: 22px;
  animation: fadeUp 0.7s 0.35s both;
  letter-spacing: -0.01em;
}

.hero-title-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: clamp(1rem, 2.4vw, 1.4rem);
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-bottom: 28px;
  animation: fadeUp 0.7s 0.5s both;
}

.hero-title-static { color: rgba(255,255,255,0.55); }

.hero-title-dynamic {
  color: #fff;
  font-weight: 600;
}

.hero-cursor {
  color: rgba(255,255,255,0.5);
  animation: blink 0.8s step-end infinite;
  font-weight: 300;
}

@keyframes blink { 50% { opacity: 0; } }

.hero-subtitle {
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  color: rgba(255,255,255,0.5);
  max-width: 520px;
  margin: 0 auto 44px;
  line-height: 1.85;
  animation: fadeUp 0.7s 0.65s both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.8s both;
  margin-bottom: 64px;
}

/* Hero buttons override */
.hero-actions .btn-primary {
  background: #fff;
  color: #0a0a0a;
  box-shadow: none;
}
.hero-actions .btn-primary:hover {
  background: #e8e8e8;
  box-shadow: 0 8px 24px rgba(255,255,255,0.18);
}
.hero-actions .btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: #fff;
  background: transparent;
}
.hero-actions .btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.7s 1s both;
}

.hero-scroll span {
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.scroll-line {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.7); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--bg-base); border-top: 1px solid var(--border-light); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap { position: relative; }

.about-image-frame {
  position: relative;
  width: 320px;
  height: 360px;
}

.about-avatar {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.5s ease;
  filter: grayscale(20%);
}

.about-avatar:hover .avatar-photo {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.about-badge {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}

.about-badge-1 { bottom: 30px; left: -40px; }
.about-badge-2 { top: 30px; right: -40px; }

.badge-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-main);
  line-height: 1;
}

.badge-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.about-bio {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.about-stats {
  display: flex;
  gap: 32px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.stat-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-main);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-section { background: var(--bg-surface); border-top: 1px solid var(--border-light); }

.skills-categories {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.skill-category:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.skill-category:hover::before { transform: scaleX(1); }

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.skill-cat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-main);
  flex-shrink: 0;
}

.skill-cat-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skill-cat-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 28px;
}

.skill-tag {
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
  transition: var(--transition-fast);
  cursor: default;
}

.skill-tag:hover {
  background: var(--accent-main);
  border-color: var(--accent-main);
  color: #fff;
}


/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.experience-section { background: var(--bg-base); border-top: 1px solid var(--border-light); }

.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--border-strong) 10%,
    var(--border-strong) 90%,
    transparent
  );
}

.timeline-item {
  display: flex;
  gap: 48px;
  margin-bottom: 40px;
  position: relative;
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  flex-shrink: 0;
  width: 41px;
  height: 41px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 2px solid var(--border-strong);
  position: relative;
  z-index: 1;
  margin-top: 8px;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  background: var(--accent-main);
  border-color: var(--accent-main);
  box-shadow: 0 0 0 5px rgba(0,0,0,0.07);
}

.timeline-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.timeline-year {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}

.timeline-type {
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 100px;
}

.timeline-role {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 500;
}

.timeline-desc {
  font-size: 0.91rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.timeline-tags span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 3px 11px;
  border-radius: 100px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-section { background: var(--bg-surface); border-top: 1px solid var(--border-light); }

.contact-links-centered {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: var(--transition);
  cursor: pointer;
}

.contact-link-card:hover {
  border-color: var(--accent-main);
  background: var(--bg-card);
  transform: translateX(5px);
  box-shadow: var(--shadow-sm);
}

.contact-link-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-main);
  flex-shrink: 0;
  transition: var(--transition-fast);
}

.contact-link-card:hover .contact-link-icon {
  background: var(--accent-main);
  color: #fff;
  border-color: var(--accent-main);
}

.contact-link-icon svg { width: 18px; height: 18px; }

.contact-link-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-link-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-link-value {
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

.contact-link-arrow {
  font-size: 1.1rem;
  color: var(--text-muted);
  opacity: 0;
  transition: var(--transition);
  transform: translateX(-6px);
}

.contact-link-card:hover .contact-link-arrow {
  opacity: 1;
  color: var(--accent-main);
  transform: translateX(0);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--accent-main);
  border-top: 1px solid var(--border-light);
  padding: 32px 0;
}

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

.footer-copy {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
}

.footer-links a {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition-fast);
}

.footer-links a:hover { color: #fff; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .skills-categories { grid-template-columns: 1fr; gap: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-image-frame { margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 80px 0; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open a { width: 100%; text-align: center; color: var(--text-primary) !important; }
  .nav-links.open .nav-cta { color: #fff !important; }

  .about-image-frame { width: 260px; height: 300px; }
  .about-badge-1 { left: -10px; }
  .about-badge-2 { right: -10px; }
  .about-stats { flex-direction: column; gap: 20px; }

  .timeline::before { display: none; }
  .timeline-item { gap: 0; }
  .timeline-dot { display: none; }

  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }
}
