/* ═══════════════════════════════════════════════
   VARIABLES
   ═══════════════════════════════════════════════ */
:root {
  /* Palette — derived from CV dark olive/gold theme */
  --bg:          #17170f;
  --bg-alt:      #1c1c13;
  --surface:     #242419;
  --surface-2:   #2c2c20;
  --border:      #32321f;
  --border-soft: #2a2a1a;

  --gold:        #c9a050;
  --gold-light:  #ddb96a;
  --gold-dim:    rgba(201, 160, 80, 0.12);
  --gold-glow:   rgba(201, 160, 80, 0.18);

  --text:        #ede8da;
  --text-sub:    #a09880;
  --text-muted:  #6a6450;

  /* Typography */
  --font-h:   'Montserrat', system-ui, sans-serif;
  --font-b:   'Inter', system-ui, sans-serif;

  /* Shape */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;

  /* Motion */
  --t: 0.28s ease;

  --max-w: 1080px;
}

/* ═══════════════════════════════════════════════
   RESET
   ═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

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

.gold { color: var(--gold); }

/* ═══════════════════════════════════════════════
   SCROLL REVEAL
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════ */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.2rem 0;
  transition: background var(--t), box-shadow var(--t);
}
.navbar.scrolled {
  background: rgba(23, 23, 15, 0.93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.navbar-logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 26px;
  width: auto;
  display: block;
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.02em;
  transition: color var(--t);
}
.navbar-links a:hover { color: var(--text); }
.navbar-links a.active { color: var(--gold); }

.nav-cta {
  padding: 0.45rem 1.15rem !important;
  border: 1px solid var(--gold) !important;
  border-radius: var(--r-sm);
  color: var(--gold) !important;
  transition: background var(--t), color var(--t) !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--bg) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1.85rem;
  border-radius: var(--r-sm);
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--t), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201, 160, 80, 0.28);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════ */
.section { padding: 6.5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  font-family: var(--font-h);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 3.5rem;
  position: relative;
  padding-bottom: 1rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 7rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* subtle background glow */
.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -5%;
  width: 560px;
  height: 560px;
  background: radial-gradient(ellipse, rgba(201,160,80,0.07) 0%, transparent 65%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4rem;
}

.hero-greeting {
  display: block;
  font-family: var(--font-h);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.05s forwards;
}
.hero-name {
  font-family: var(--font-h);
  font-size: clamp(2.6rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 0.8rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.15s forwards;
}
.hero-role {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-sub);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.25s forwards;
}
.hero-bio {
  font-size: 1rem;
  color: var(--text-sub);
  max-width: 500px;
  margin-bottom: 2.25rem;
  line-height: 1.85;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.35s forwards;
}
.hero-actions {
  display: flex;
  gap: 0.875rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: fadeUp 0.7s ease 0.45s forwards;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.825rem;
  color: var(--text-muted);
  opacity: 0;
  animation: fadeUp 0.7s ease 0.55s forwards;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.7);
  animation: pulse-dot 2.2s ease infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.85); }
}

/* Photo */
.hero-photo-wrap {
  position: relative;
  width: 300px;
  height: 300px;
  flex-shrink: 0;
  opacity: 0;
  animation: fadeIn 0.9s ease 0.35s forwards;
}
.hero-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,160,80,0.45);
}
.hero-ring::after {
  content: '';
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid rgba(201,160,80,0.15);
}
.hero-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--surface);
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeIn 0.8s ease 1.1s forwards;
}
.scroll-hint i {
  animation: bounceY 1.6s ease infinite;
}
@keyframes bounceY {
  0%, 100% { transform: translateY(0); }
  55% { transform: translateY(5px); }
}

/* Keyframes */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ═══════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════ */
.about-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: start;
}
.about-text p {
  font-size: 1.02rem;
  color: var(--text-sub);
  line-height: 1.9;
  margin-bottom: 1.25rem;
}
.about-text p:last-child { margin-bottom: 0; }

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding-left: 3rem;
  border-left: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.3rem; }
.stat-num {
  font-family: var(--font-h);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
}
.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  line-height: 1.4;
}

/* ═══════════════════════════════════════════════
   EXPERIENCE
   ═══════════════════════════════════════════════ */
.exp-group { margin-bottom: 3.5rem; }
.exp-group:last-child { margin-bottom: 0; }

.group-label {
  font-family: var(--font-h);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.group-label svg { opacity: 0.85; }

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.25rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: linear-gradient(to bottom, var(--border) 80%, transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}
.timeline-item:last-child { padding-bottom: 0; }

.tl-dot {
  position: absolute;
  left: -2.25rem;
  top: 10px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 2.5px solid var(--bg-alt);
  transform: translateX(0);
  /* center on line at left:6px relative to .timeline */
  /* item offset: 2.25rem from .timeline left; dot left: -2.25rem → at .timeline left edge (0) */
  /* line is at 6px; dot width 12px → center at 6px ✓ */
}

.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.4rem 1.5rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.tl-card:hover {
  border-color: rgba(201,160,80,0.45);
  box-shadow: 0 0 32px var(--gold-glow);
}

.tl-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}
.tl-role {
  font-family: var(--font-h);
  font-size: 0.975rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.tl-company {
  display: block;
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 600;
}
.tl-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}
.tl-date {
  font-size: 0.775rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.tl-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.75;
  margin-bottom: 0.875rem;
}
.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  font-size: 0.73rem;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}
.tag.highlight {
  color: var(--gold);
  background: var(--gold-dim);
  border-color: rgba(201,160,80,0.25);
}

.part-time {
  font-size: 0.7rem;
  color: var(--text-muted);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.1rem 0.45rem;
  border-radius: 100px;
  font-weight: 400;
  vertical-align: middle;
  margin-left: 0.4rem;
}

/* Sector chips */
.chip {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.18rem 0.55rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.chip-health  { background: rgba(52,211,153,0.1);  color: #4ade80; }
.chip-fintech { background: rgba(96,165,250,0.1);  color: #60a5fa; }
.chip-edtech  { background: rgba(251,191,36,0.1);  color: #fbbf24; }
.chip-retail  { background: rgba(167,139,250,0.1); color: #a78bfa; }
.chip-misc    { background: rgba(156,163,175,0.1); color: #9ca3af; }

/* Compact variant (Android) */
.timeline-compact .tl-card { padding: 1.1rem 1.35rem; }
.timeline-compact .timeline-item { padding-bottom: 1.25rem; }
.timeline-compact .tl-desc { margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   SKILLS
   ═══════════════════════════════════════════════ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.1rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.4rem;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.skill-card:hover {
  border-color: rgba(201,160,80,0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px var(--gold-glow);
}
.skill-icon {
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 0.7rem;
}
.skill-name {
  font-family: var(--font-h);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.stag {
  font-size: 0.775rem;
  padding: 0.25rem 0.6rem;
  border-radius: 100px;
  background: var(--bg);
  border: 1px solid var(--border-soft);
  color: var(--text-sub);
  transition: all var(--t);
}

/* ═══════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════ */
.contact-sub {
  font-size: 1.05rem;
  color: var(--text-sub);
  margin-top: -2.5rem;
  margin-bottom: 2.75rem;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}
.contact-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 1.15rem 1.35rem;
  transition: border-color var(--t), transform var(--t), box-shadow var(--t);
}
.contact-card:hover {
  border-color: rgba(201,160,80,0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--gold-glow);
}
.contact-card i {
  font-size: 1.25rem;
  color: var(--gold);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}
.contact-card div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: hidden;
}
.cc-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.cc-value {
  font-size: 0.875rem;
  color: var(--text-sub);
  transition: color var(--t);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.contact-card:hover .cc-value { color: var(--text); }

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */
@media (max-width: 860px) {
  .about-body {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-stats {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    padding-left: 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    gap: 1.5rem 3rem;
  }
}

@media (max-width: 720px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 2rem;
    background: rgba(23,23,15,0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    gap: 1.1rem;
  }
  .navbar-links.open { display: flex; }
  .nav-toggle { display: flex; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2.5rem;
  }
  .hero-photo-wrap {
    width: 210px;
    height: 210px;
    margin: 0 auto;
    order: -1;
  }
  .hero-bio { max-width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-badge { justify-content: center; }

  .hero::before { display: none; }

  .tl-head { flex-direction: column; gap: 0.6rem; }
  .tl-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }

  .footer-inner { flex-direction: column; gap: 0.4rem; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 4.5rem 0; }

  .hero-name { font-size: 2.4rem; }

  .timeline { padding-left: 1.75rem; }
  .tl-dot { left: -1.75rem; }
}
