/* ─── VARIABLES ─── */
:root {
  --bg:        #0d0f14;
  --bg2:       #13161d;
  --bg3:       #1a1e28;
  --surface:   #1e222e;
  --border:    rgba(255,255,255,0.07);
  --gold:      #c8a96e;
  --gold-lt:   #e2c98a;
  --gold-dk:   #9e7a44;
  --text:      #e8e6df;
  --muted:     #7a7e8a;
  --white:     #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:    12px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ─── PROGRESS BAR ─── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dk), var(--gold), var(--gold-lt));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s;
}

/* ─── CONTAINER ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ─── SECTION COMMON ─── */
.section { padding: 7rem 0; }
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.section-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
}
.section-header { margin-bottom: 4rem; }

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(13,15,20,0.96);
  backdrop-filter: blur(20px);
  padding: 0.75rem 0;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex; align-items: center; gap: 2rem;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }
.nav-links a.active { color: var(--gold); }
.nav-cta {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--gold);
  border-radius: 40px;
  color: var(--gold) !important;
  font-weight: 600 !important;
  transition: background var(--transition), color var(--transition) !important;
}
.nav-cta:hover { background: var(--gold) !important; color: var(--bg) !important; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--transition); }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--gold);
  color: #0a0b0e;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  border-radius: 40px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn-primary:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(200,169,110,0.3);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
  font-size: 0.88rem;
  border-radius: 40px;
  transition: border-color var(--transition), color var(--transition);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 2rem 4rem;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  opacity: 0.4;
}
.hero-content {
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 4rem;
}
.hero-text { flex: 1; }
.hero-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 1.5rem;
}
.hero-name span { color: var(--gold); }
.hero-tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 420px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero photo */
.hero-photo-wrap {
  position: relative;
  flex-shrink: 0;
  width: 340px; height: 420px;
}
.hero-photo-ring {
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  border: 1px solid var(--gold);
  opacity: 0.3;
  transform: rotate(3deg);
}
.hero-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 20px;
  filter: grayscale(15%);
}
.hero-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--gold);
  color: #0a0b0e;
  padding: 1rem 1.25rem;
  border-radius: 14px;
  display: flex; gap: 0.6rem; align-items: center;
  box-shadow: 0 8px 30px rgba(200,169,110,0.4);
}
.badge-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}
.badge-num sup { font-size: 1rem; }
.badge-lbl { font-size: 0.75rem; font-weight: 700; line-height: 1.3; }

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: var(--muted); font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--muted), transparent);
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ─── ABOUT ─── */
.about { background: var(--bg2); }
.about-grid {
  display: grid; grid-template-columns: 380px 1fr; gap: 5rem; align-items: start;
}
.about-img-col { position: relative; }
.about-img {
  width: 100%; border-radius: 16px;
  filter: grayscale(10%);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.about-tag {
  position: absolute;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.6rem 1rem;
  border-radius: 40px;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 0.5rem;
}
.about-tag i { color: var(--gold); }
.tag-1 { bottom: -1.5rem; left: -1.5rem; }
.tag-2 { bottom: 3.5rem; right: -1.5rem; }
.about-text-col { padding-top: 1rem; }
.about-text-col p { color: var(--muted); margin-bottom: 1rem; }
.about-text-col strong { color: var(--text); }
.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-n {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.stat-l { font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }

/* ─── SKILLS ─── */
.skills { background: var(--bg); }
.skills-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.skill-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
  position: relative; overflow: hidden;
}
.skill-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(200,169,110,0.04), transparent);
  opacity: 0; transition: opacity var(--transition);
}
.skill-card:hover { border-color: var(--gold-dk); transform: translateY(-4px); }
.skill-card:hover::before { opacity: 1; }
.skill-icon {
  width: 48px; height: 48px;
  background: rgba(200,169,110,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: var(--gold);
  margin-bottom: 1.25rem;
}
.skill-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}
.skill-card ul li {
  font-size: 0.83rem; color: var(--muted);
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 0.5rem;
}
.skill-card ul li::before {
  content: ''; display: inline-block;
  width: 5px; height: 5px;
  background: var(--gold); border-radius: 50%; flex-shrink: 0;
}
.skill-card ul li:last-child { border-bottom: none; }

/* ─── EXPERIENCE ─── */
.experience { background: var(--bg2); }
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 1px; background: var(--border);
}
.timeline-item {
  position: relative; padding: 0 0 3rem 2.5rem;
}
.tl-dot {
  position: absolute; left: -6px; top: 0.4rem;
  width: 13px; height: 13px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--bg2);
  box-shadow: 0 0 0 1px var(--gold);
}
.tl-date {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--transition);
}
.tl-card:hover { border-color: var(--gold-dk); }
.tl-company {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.4rem;
}
.tl-sub { color: var(--gold-dk); margin-left: 0.5rem; }
.tl-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.tl-card p { font-size: 0.88rem; color: var(--muted); margin-bottom: 1rem; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tl-chips span {
  padding: 0.25rem 0.75rem;
  background: rgba(200,169,110,0.08);
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 40px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}

/* ─── EDUCATION ─── */
.education { background: var(--bg); }
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.edu-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  display: flex; gap: 1.5rem;
  transition: border-color var(--transition);
}
.edu-card:hover { border-color: var(--gold-dk); }
.edu-icon {
  font-size: 2rem; color: var(--gold);
  flex-shrink: 0; margin-top: 0.25rem;
}
.edu-year {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.5rem;
}
.edu-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}
.edu-inst { font-size: 0.85rem; color: var(--muted); }
.edu-note { font-size: 0.78rem; color: var(--gold-dk); margin-top: 0.4rem; font-style: italic; }

/* ─── PROJECTS ─── */
.projects { background: var(--bg2); }
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.proj-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative; overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.proj-card:hover { border-color: var(--gold-dk); transform: translateY(-5px); }
.proj-num {
  position: absolute; top: 1.5rem; right: 1.5rem;
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 900;
  color: rgba(200,169,110,0.06);
  line-height: 1; user-select: none;
}
.proj-icon {
  font-size: 1.5rem; color: var(--gold);
  margin-bottom: 1rem;
}
.proj-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.75rem;
}
.proj-card p { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.proj-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.proj-tags span {
  padding: 0.2rem 0.6rem;
  background: rgba(200,169,110,0.06);
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 40px;
  font-size: 0.68rem; font-weight: 600;
  color: var(--gold);
}

/* ─── CERTIFICATIONS ─── */
.certifications { background: var(--bg); }
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
  transition: border-color var(--transition);
}
.cert-card:hover { border-color: var(--gold-dk); }
.cert-icon {
  width: 44px; height: 44px;
  background: rgba(200,169,110,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: var(--gold);
  flex-shrink: 0;
}
.cert-card h3 {
  font-size: 0.95rem; font-weight: 700;
  color: var(--white); margin-bottom: 0.3rem;
}
.cert-card p { font-size: 0.78rem; color: var(--muted); }

/* ─── CONTACT ─── */
.contact { background: var(--bg2); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start;
}
.contact-intro {
  font-size: 1.1rem; color: var(--muted);
  margin-bottom: 2.5rem; max-width: 480px;
}
.contact-items { display: flex; flex-direction: column; gap: 1rem; }
.contact-item {
  display: flex; gap: 1rem; align-items: center;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}
.contact-item:hover { border-color: var(--gold-dk); }
.ci-icon {
  width: 40px; height: 40px;
  background: rgba(200,169,110,0.08);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1rem; flex-shrink: 0;
}
.ci-text { display: flex; flex-direction: column; }
.ci-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.ci-val { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.contact-languages h3 {
  font-family: var(--font-display);
  font-size: 1.2rem; color: var(--white); margin-bottom: 1rem;
}
.lang-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.lang-chips span {
  padding: 0.4rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 40px;
  font-size: 0.82rem; font-weight: 500; color: var(--text);
}
.consult-list { display: flex; flex-direction: column; gap: 0.75rem; }
.consult-list li {
  font-size: 0.85rem; color: var(--muted);
  display: flex; align-items: flex-start; gap: 0.6rem;
}
.consult-list li i { color: var(--gold); flex-shrink: 0; margin-top: 0.2rem; }

/* ─── FOOTER ─── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-inner p { font-size: 0.8rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.25rem; }
.footer-links a {
  color: var(--muted); font-size: 1.1rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--gold); }

/* ─── ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 280px 1fr; gap: 3rem; }
  .hero-photo-wrap { width: 280px; height: 360px; }
  .skills-grid, .projects-grid, .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 70%; max-width: 320px;
    height: 100vh; flex-direction: column; justify-content: center;
    background: rgba(13,15,20,0.98); backdrop-filter: blur(20px);
    padding: 2rem;
    transition: right var(--transition);
    gap: 1.5rem;
    border-left: 1px solid var(--border);
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1rem; color: var(--text); }

  .hero-content { flex-direction: column-reverse; gap: 3rem; text-align: center; }
  .hero-text { order: 2; }
  .hero-photo-wrap { width: 240px; height: 300px; margin: 0 auto; order: 1; }
  .hero-actions { justify-content: center; }
  .hero-tagline { margin: 0 auto 2rem; }

  .about-grid { grid-template-columns: 1fr; }
  .about-img-col { max-width: 320px; margin: 0 auto; }
  .tag-1 { bottom: -1rem; left: 0; }
  .tag-2 { bottom: 2rem; right: 0; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }

  .skills-grid, .projects-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .edu-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .section { padding: 5rem 0; }
}

@media (max-width: 480px) {
  .hero-photo-wrap { width: 200px; height: 250px; }
  .hero-badge { bottom: -15px; right: -10px; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
}
