/* ════════════════════════════════════════════
   MANU NAIK · PORTFOLIO
   Black / Gold — Sharp Edges — Inter
════════════════════════════════════════════ */

/* ── IMPORT ── */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500&display=swap');

/* ── DESIGN TOKENS ── */
:root {
  --bg:        #000000;
  --bg-2:      #080808;
  --bg-3:      #0a0a0a;
  --gold:      #c9a84c;
  --gold-dim:  #b8933a;
  --gold-glow: rgba(201,168,76,0.18);
  --gold-line: rgba(201,168,76,0.28);
  --white:     #f0f4f8;
  --muted:     #94a3b8;
  --dim:       #475569;
  --border:    rgba(255,255,255,0.07);
  --glass:     rgba(0,0,0,0.75);
  --glass-2:   rgba(8,8,8,0.85);
  --font:      'Times New Roman', Times, serif;
  --mono:      'JetBrains Mono', monospace;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; font-size: 16px; } /* JS rAF easing handles scroll */

/* ── BASE ── */
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
strong { font-weight: 700; color: #fff; }
em { font-style: italic; color: var(--gold); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: var(--gold-dim); }

/* ── CUSTOM CURSOR ── */
.cursor-dot {
  position: fixed; width: 6px; height: 6px;
  background: var(--gold); 
  pointer-events: none; transform: translate(-50%, -50%);
  z-index: 9999;
  transition: width .15s, height .15s, background .15s, opacity .15s;
  box-shadow: 0 0 8px var(--gold);
}
.cursor-ring {
  position: fixed; width: 32px; height: 32px;
  border: 1px solid rgba(201,168,76,0.5);
  pointer-events: none; transform: translate(-50%, -50%);
  z-index: 9998;
  transition: width .22s ease, height .22s ease, border-color .22s, opacity .2s;
}
body.cursor-hover .cursor-dot { width: 4px; height: 4px; background: #fff; }
body.cursor-hover .cursor-ring { width: 52px; height: 52px; border-color: rgba(201,168,76,0.9); }
body.cursor-hidden .cursor-dot,
body.cursor-hidden .cursor-ring { opacity: 0; }

/* ── GRID BACKDROP ── */
.grid-backdrop {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.grid-backdrop::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 65% at 50% 42%, transparent 0%, rgba(0,0,0,0.65) 55%, rgba(0,0,0,0.97) 100%);
}

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

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 3rem;
  transition: background .3s, border-color .3s;
}
.navbar.scrolled {
  background: rgba(0,0,0,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: var(--mono);
  font-size: 1rem; font-weight: 500;
  letter-spacing: 0.12em; color: #fff;
}
.logo-bracket { color: var(--gold); }
.nav-links { display: flex; list-style: none; gap: 2rem; }
.nav-link {
  font-size: 0.82rem; font-weight: 500;
  letter-spacing: 0.06em; color: var(--dim);
  position: relative; transition: color .2s; cursor: pointer;
  text-transform: uppercase;
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -6px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); transition: all .3s;
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; z-index: 3; background: transparent;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb {
  position: absolute;
  filter: blur(90px); opacity: 0.22;
}
.orb-1 {
  width: 520px; height: 520px; top: -120px; right: -60px;
  background: radial-gradient(circle, rgba(201,168,76,0.28) 0%, transparent 70%);
  animation: orbFloat 10s ease-in-out infinite;
}
.orb-2 {
  width: 380px; height: 380px; bottom: 0; left: -80px;
  background: radial-gradient(circle, rgba(201,168,76,0.15) 0%, transparent 70%);
  animation: orbFloat 13s ease-in-out infinite reverse;
}
.orb-3 {
  width: 280px; height: 280px; top: 50%; left: 38%;
  background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
  animation: orbFloat 17s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-content {
  position: relative; text-align: center;
  padding: 9rem 2rem 5rem; max-width: 900px; width: 100%;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .3rem 1rem;
  border: 1px solid var(--gold-line);
  background: rgba(201,168,76,0.05);
  font-size: .72rem; letter-spacing: .16em;
  color: var(--gold); font-family: var(--mono);
  margin-bottom: 2rem;
}

/* Name */
.hero-title { margin-bottom: 1.5rem; }
.hero-greeting-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 1.25rem; margin-bottom: 1.5rem;
}
.hero-greeting-line {
  flex: 1; max-width: 80px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold-line));
}
.hero-greeting-line:last-child {
  background: linear-gradient(to left, transparent, var(--gold-line));
}
.hero-greeting {
  font-size: clamp(.75rem, 1.5vw, .9rem); font-weight: 500;
  letter-spacing: .35em; color: var(--dim); text-transform: uppercase;
}
.hero-name { display: block; line-height: 1; }
.hero-name-first {
  display: block;
  font-size: clamp(1.6rem, 4vw, 3rem); font-weight: 300;
  letter-spacing: .32em; color: var(--muted); text-transform: uppercase;
  margin-bottom: .08em;
}
.hero-name-last {
  display: block;
  font-size: clamp(3.5rem, 9.5vw, 7.2rem); font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; line-height: .9;
  background: linear-gradient(135deg, #ffffff 0%, #e8d8a0 35%, var(--gold) 55%, #f0e4c0 80%, #ffffff 100%);
  background-size: 300% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: nameShimmer 5s linear infinite;
}
@keyframes nameShimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 300% center; }
}
.hero-name-rule {
  display: block; width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, #e8d8a0 50%, var(--gold) 70%, transparent);
  margin: 1rem auto 0; max-width: 460px; opacity: .55;
}

/* Tagline & Roles */
.hero-roles {
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(.85rem, 2vw, 1.15rem);
  font-weight: 400; color: var(--dim);
  margin-bottom: 1.5rem; letter-spacing: .03em;
}
.role-prefix { color: var(--muted); margin-right: .5rem; }
.role-rotator { color: var(--gold); min-width: 230px; text-align: left; font-weight: 600; }
.role-cursor { color: var(--gold); animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-tagline {
  font-size: clamp(.88rem, 1.7vw, 1.05rem);
  font-style: italic; color: var(--dim); max-width: 580px; margin: 0 auto 2.5rem; line-height: 1.9;
}

/* CTA Buttons */
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; font-family: var(--font);
  font-size: .85rem; font-weight: 600; letter-spacing: .08em;
  cursor: pointer; transition: all .22s; border: none;
  position: relative; overflow: hidden;
}
.btn svg { width: 15px; height: 15px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  background: var(--gold); color: #000000;
  box-shadow: 0 0 24px rgba(201,168,76,0.35), 0 0 60px rgba(201,168,76,0.1);
}
.btn-primary:hover {
  background: #e8d8a0; color: #000000;
  box-shadow: 0 0 36px rgba(201,168,76,0.55), 0 0 80px rgba(201,168,76,0.2);
  transform: translateY(-2px);
}
.btn-primary span { position: relative; z-index: 1; }
.btn-primary svg  { position: relative; z-index: 1; }
.btn-ghost {
  background: transparent; color: var(--muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold); transform: translateY(-2px); }

/* Stats */
.hero-stats { display: flex; align-items: center; justify-content: center; gap: 2.5rem; }
.stat { text-align: center; }
.stat-num {
  display: block; font-size: 2.4rem; font-weight: 800; color: #fff; line-height: 1;
  text-shadow: 0 0 20px var(--gold-glow);
}
.stat-suffix { font-size: 1.5rem; font-weight: 800; color: var(--gold); }
.stat-label {
  display: block; font-size: .65rem; color: var(--dim);
  letter-spacing: .16em; margin-top: .3rem; text-transform: uppercase; font-weight: 500;
}
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Scroll hint */
.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--dim); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--gold));
  animation: scrollLine 1.6s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ══════════════════════════════════════
   IMMERSIVE SCROLL ANIMATIONS
   Apple-style: easeOutExpo curve,
   continuous hero exit, stagger reveals.
══════════════════════════════════════ */

/* ── Scroll progress bar (top of page) ── */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), #e8d8a0);
  z-index: 9999; pointer-events: none;
  box-shadow: 0 0 10px rgba(201,168,76,0.55), 0 0 24px rgba(201,168,76,0.2);
}

/* ── Hero exit: content gently recedes as you scroll away ── */
.hero-content {
  will-change: transform, opacity;
  transition: transform 0.1s linear, opacity 0.1s linear;
}

/* ── Base hidden state for scroll-revealed elements ── */
.reveal,
.skill-category,
.project-card,
.cert-card,
.contact-card,
.contact-form {
  opacity: 0;
  transform: translateY(52px);
  /* easeOutExpo — starts fast, decelerates hard at the end (Apple.com curve) */
  transition:
    opacity   0.9s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible,
.skill-category.visible,
.project-card.visible,
.cert-card.visible,
.contact-card.visible,
.contact-form.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for cards in a grid — wave effect */
.skills-grid    .skill-category:nth-child(2)  { transition-delay: 0.08s; }
.skills-grid    .skill-category:nth-child(3)  { transition-delay: 0.16s; }
.skills-grid    .skill-category:nth-child(4)  { transition-delay: 0.24s; }
.skills-grid    .skill-category:nth-child(5)  { transition-delay: 0.32s; }
.projects-grid  .project-card:nth-child(2)    { transition-delay: 0.10s; }
.projects-grid  .project-card:nth-child(3)    { transition-delay: 0.20s; }
.projects-grid  .project-card:nth-child(4)    { transition-delay: 0.30s; }
.certs-grid     .cert-card:nth-child(2)        { transition-delay: 0.12s; }
.contact-cards  .contact-card:nth-child(2)     { transition-delay: 0.10s; }
.contact-cards  .contact-card:nth-child(3)     { transition-delay: 0.20s; }

/* ── Timeline: slides in from left with stagger ── */
.timeline-item {
  opacity: 0;
  transform: translateX(-40px);
  transition:
    opacity   0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.timeline-item:nth-child(2) { transition-delay: 0.18s; }
.timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ══════════════════════════════════════
   LAYOUT
══════════════════════════════════════ */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 7rem 0; position: relative; z-index: 3; }
.section-header { text-align: center; margin-bottom: 4.5rem; }
.section-label {
  display: inline-block; font-size: .72rem; font-weight: 400;
  color: var(--gold); letter-spacing: .22em; margin-bottom: .75rem;
  text-transform: uppercase; font-style: italic;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800;
  color: #fff; letter-spacing: -.02em;
}
.section-divider {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.25rem auto 0;
}
.section-subtitle {
  margin-top: 1.25rem; color: var(--dim);
  font-size: .95rem; max-width: 480px; margin-inline: auto;
}

/* ══════════════════════════════════════
   ABOUT
══════════════════════════════════════ */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.7fr;
  gap: 5rem; align-items: center;
}
.about-visual { display: flex; justify-content: center; }

/* Avatar */
.avatar-card {
  position: relative; width: 240px; height: 240px;
  display: flex; align-items: center; justify-content: center;
}
.avatar-ring {
  position: absolute; border: 1px solid;
  animation: rotateRing linear infinite;
}
.ring-1 { inset: 0; border-color: rgba(201,168,76,0.3); animation-duration: 14s; }
.ring-2 { inset: 18px; border-color: rgba(201,168,76,0.12); animation-duration: 9s; animation-direction: reverse; border-style: dashed; }
.ring-3 { inset: 36px; border-color: rgba(255,255,255,0.06); animation-duration: 22s; }
@keyframes rotateRing { to { transform: rotate(360deg); } }

.avatar-core {
  width: 130px; height: 130px;
  border: 2px solid var(--gold-dim);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; font-weight: 800; color: #fff;
  background: var(--bg-2);
  box-shadow: 0 0 40px rgba(201,168,76,0.18), inset 0 0 20px rgba(201,168,76,0.04);
  position: relative; z-index: 1;
}
.avatar-badge {
  position: absolute; padding: .22rem .6rem;
  font-size: .62rem; font-weight: 600; letter-spacing: .1em;
  z-index: 2; border: 1px solid var(--gold-line);
  background: rgba(0,0,0,0.92); color: var(--gold);
  font-family: var(--mono);
}
.badge-ai    { top: 8px; right: -14px; animation: badgeFloat 4s ease-in-out infinite; }
.badge-cloud { bottom: 22px; right: -20px; animation: badgeFloat 5s ease-in-out infinite 1s; }
.badge-ml    { bottom: 12px; left: -10px; animation: badgeFloat 6s ease-in-out infinite .5s; }
.badge-ds    { top: 14px; left: -18px; animation: badgeFloat 7s ease-in-out infinite 1.5s; }
@keyframes badgeFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }

/* About text */
.about-text { color: var(--muted); line-height: 1.9; margin-bottom: 1.25rem; font-size: .98rem; }
.about-text strong { color: #fff; }
.about-highlights { display: flex; flex-direction: column; gap: .7rem; margin: 2rem 0; }
.highlight-item {
  display: flex; align-items: flex-start; gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--glass); border: 1px solid var(--border);
  border-left: 2px solid var(--gold);
  backdrop-filter: blur(4px);
  transition: border-color .2s, background .2s, transform .2s;
}
.highlight-item:hover { background: rgba(201,168,76,0.04); border-left-color: #e8d8a0; transform: translateX(4px); }
.highlight-icon { font-size: 1.1rem; flex-shrink: 0; opacity: .7; }
.highlight-item strong { display: block; color: #fff; font-weight: 600; margin-bottom: .1rem; font-size: .9rem; }
.highlight-item p { color: var(--dim); font-size: .85rem; margin: 0; }
.about-links { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.social-link {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .45rem .95rem;
  border: 1px solid var(--border);
  font-size: .8rem; color: var(--dim);
  transition: all .2s; letter-spacing: .04em; font-weight: 500;
}
.social-link svg { width: 15px; height: 15px; }
.social-link:hover { color: var(--gold); border-color: var(--gold-line); background: rgba(201,168,76,0.06); }

/* ══════════════════════════════════════
   SKILLS
══════════════════════════════════════ */
.skills-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.skill-category {
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.skill-category:hover {
  border-color: var(--gold-line);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(201,168,76,0.08);
}
.skill-cat-header { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.75rem; }
.skill-cat-header h3 {
  font-size: .9rem; font-weight: 700; color: #fff;
  letter-spacing: .06em; text-transform: uppercase;
}
.skill-cat-line { flex: 1; height: 1px; background: var(--border); }
.skill-items { display: flex; flex-direction: column; gap: 1.1rem; }
.skill-pill { position: relative; font-size: .88rem; color: var(--muted); }
.skill-pill-icon { display: flex; align-items: center; gap: .6rem; margin-bottom: .35rem; }
.skill-icon {
  width: 20px; height: 20px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .6rem; font-weight: 700; color: var(--gold);
  border: 1px solid var(--gold-line);
  font-family: var(--mono);
}
.skill-pill-name { display: flex; justify-content: space-between; align-items: center; }
.skill-pill-name span:first-child { font-weight: 500; }
.skill-pill-name span:last-child { font-size: .7rem; color: var(--gold); font-family: var(--mono); font-weight: 600; }
.pill-bar { height: 2px; background: rgba(255,255,255,0.07); overflow: hidden; margin-top: .4rem; position: relative; }
.pill-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), #e8d8a0);
  transition: width 1.5s cubic-bezier(.25,.46,.45,.94);
  box-shadow: 0 0 6px rgba(201,168,76,0.5);
  display: block;
}
.pill-fill.animated { width: var(--target-width, 0%); }

/* ══════════════════════════════════════
   PROJECTS
══════════════════════════════════════ */
.projects-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
}
.project-card {
  position: relative;
  background: var(--glass);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 0; display: flex; flex-direction: column;
  overflow: hidden; transition: all .3s; cursor: pointer;
}
.project-card:hover {
  border-color: var(--gold-line);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(201,168,76,0.1);
}
.project-card.featured { border-color: rgba(201,168,76,0.2); }
.project-thumbnail {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-3) 100%);
  position: relative; overflow: hidden;
}
.project-thumbnail-inner {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.project-thumb-icon {
  font-size: 3rem; opacity: .12;
}
.project-thumb-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.project-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--glass) 100%);
}
.project-tags-overlay {
  position: absolute; bottom: .75rem; left: .75rem;
  display: flex; gap: .35rem; flex-wrap: wrap;
}
.project-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.project-glow {
  position: absolute; top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at center, rgba(201,168,76,0.06) 0%, transparent 55%);
  opacity: 0; transition: opacity .4s; pointer-events: none;
}
.project-card:hover .project-glow { opacity: 1; }
.project-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.project-number {
  font-family: var(--mono); font-size: 2.5rem; font-weight: 700;
  color: rgba(255,255,255,0.04); line-height: 1; user-select: none;
}
.project-tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.tag {
  padding: .18rem .55rem;
  border: 1px solid var(--gold-line);
  background: rgba(201,168,76,0.07);
  font-size: .65rem; color: var(--gold);
  letter-spacing: .06em; font-weight: 600;
  font-family: var(--mono);
}
.project-accent-line { width: 32px; height: 2px; background: var(--gold); margin-bottom: 1rem; }
.project-title {
  font-size: 1.25rem; font-weight: 700; color: #fff;
  margin-bottom: .25rem; letter-spacing: -.01em;
}
.project-subtitle { font-size: .72rem; color: var(--gold-dim); margin-bottom: .9rem; letter-spacing: .06em; font-weight: 500; font-family: var(--mono); }
.project-desc { color: var(--dim); font-size: .9rem; line-height: 1.75; margin-bottom: 1.25rem; flex: 1; }
.project-desc strong { font-weight: 700; color: var(--gold); }
.project-metric {
  display: flex; align-items: center; gap: 1rem;
  padding: .75rem 1rem;
  border: 1px solid rgba(201,168,76,0.18);
  border-left: 2px solid var(--gold);
  margin-bottom: 1.25rem;
  background: rgba(201,168,76,0.04);
}
.metric-ring { position: relative; width: 44px; height: 44px; flex-shrink: 0; }
.metric-ring svg { width: 44px; height: 44px; }
.metric-value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: .55rem; font-weight: 700; color: var(--gold); font-family: var(--mono);
}
.metric-label { font-size: .8rem; color: var(--muted); }
.project-footer { margin-top: auto; display: flex; gap: .75rem; align-items: center; padding-top: .5rem; }
.project-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .8rem; color: var(--dim); letter-spacing: .04em;
  transition: color .2s, gap .2s; font-weight: 500;
}
.project-link svg { width: 13px; height: 13px; }
.project-link:hover { color: var(--gold); gap: .65rem; }

/* ══════════════════════════════════════
   CERTIFICATES
══════════════════════════════════════ */
.certs-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.cert-card {
  background: var(--glass); backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  transition: all .25s; position: relative; overflow: hidden;
}
.cert-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity .3s;
}
.cert-card:hover { border-color: var(--gold-line); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(201,168,76,0.08); }
.cert-card:hover::before { opacity: 1; }
.cert-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: .75rem; }
.cert-issuer {
  font-size: .65rem; letter-spacing: .2em; color: var(--gold);
  text-transform: uppercase; font-family: var(--mono); font-weight: 600;
}
.cert-verified {
  width: 22px; height: 22px;
  background: rgba(201,168,76,0.12); border: 1px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.cert-card:hover .cert-verified { opacity: 1; }
.cert-verified svg { width: 11px; height: 11px; color: var(--gold); }
.cert-name {
  font-size: 1.05rem; font-weight: 700; color: #fff;
  margin-bottom: .4rem; line-height: 1.35;
}
.cert-date { font-size: .72rem; color: var(--dim); margin-bottom: .9rem; letter-spacing: .06em; font-family: var(--mono); }
.cert-desc { font-size: .85rem; color: var(--dim); line-height: 1.7; flex: 1; margin-bottom: 1.25rem; }
.cert-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; color: var(--dim); letter-spacing: .04em; font-weight: 500;
  transition: color .2s, gap .2s;
}
.cert-link svg { width: 12px; height: 12px; }
.cert-link:hover { color: var(--gold); gap: .65rem; }

/* ══════════════════════════════════════
   JOURNEY / TIMELINE
══════════════════════════════════════ */
.journey-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: start;
}
.journey-statement {
  padding-top: .5rem;
  border-left: 2px solid var(--gold-line);
  padding-left: 2rem;
  position: sticky; top: 8rem;
}
.journey-line {
  font-size: 1.02rem; line-height: 1.9;
  color: var(--dim); margin-bottom: 1.5rem; font-style: italic;
}
.journey-line:first-child { color: var(--muted); }
.journey-statement-rule { width: 38px; height: 2px; background: var(--gold); margin: 2rem 0 1rem; }
.journey-statement-tag {
  font-size: .72rem; letter-spacing: .2em; color: var(--gold);
  text-transform: uppercase; font-style: italic; font-weight: 400;
}
.journey-timeline {
  position: relative; display: flex; flex-direction: column; gap: 0;
}
.journey-timeline::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--gold) 0%, rgba(201,168,76,0.12) 100%);
  box-shadow: 0 0 10px var(--gold-glow);
}
.timeline-item {
  padding-left: 2.5rem; position: relative;
  opacity: 0; transform: translateX(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-dot {
  position: absolute; left: 0; top: 1.75rem;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--gold); z-index: 1;
  box-shadow: 0 0 12px var(--gold), 0 0 24px rgba(201,168,76,0.35);
}
.timeline-card {
  background: var(--glass); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-left: 2px solid rgba(201,168,76,0.3);
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  margin-bottom: 1.75rem; transition: border-left-color .2s, box-shadow .2s;
}
.timeline-card:hover { border-left-color: var(--gold); box-shadow: 0 4px 24px rgba(201,168,76,0.06); }
.tl-badge {
  display: inline-block; padding: .15rem .55rem;
  border: 1px solid var(--gold-line);
  font-size: .62rem; letter-spacing: .14em; color: var(--gold);
  margin-bottom: .65rem; font-family: var(--mono); font-weight: 600;
  background: rgba(201,168,76,0.06);
}
.tl-meta { font-size: .7rem; color: var(--dim); letter-spacing: .08em; margin-bottom: .5rem; font-family: var(--mono); }
.tl-title { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .15rem; }
.tl-org { font-size: .8rem; color: var(--gold-dim); margin-bottom: .65rem; font-weight: 400; font-style: italic; }
.tl-desc { font-size: .85rem; color: var(--dim); line-height: 1.65; margin-bottom: .875rem; }
.tl-tags { display: flex; gap: .35rem; flex-wrap: wrap; }
.tl-tags span {
  padding: .1rem .45rem; border: 1px solid var(--border);
  font-size: .62rem; color: var(--dim); letter-spacing: .06em; font-family: var(--mono);
}

/* ══════════════════════════════════════
   CONTACT
══════════════════════════════════════ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem; align-items: start;
}
.contact-cards { display: flex; flex-direction: column; gap: .75rem; }
.contact-card {
  display: flex; align-items: center; gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: var(--glass); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-left: 2px solid transparent;
  transition: all .22s;
}
.contact-card:hover {
  background: rgba(201,168,76,0.04);
  border-color: var(--gold-line); border-left-color: var(--gold);
  transform: translateX(4px);
}
.contact-card-icon {
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: border-color .2s, background .2s;
}
.contact-card-icon svg { width: 18px; height: 18px; color: var(--dim); transition: color .2s; }
.contact-card:hover .contact-card-icon { border-color: var(--gold-line); background: rgba(201,168,76,0.08); }
.contact-card:hover .contact-card-icon svg { color: var(--gold); }
.contact-card-info { flex: 1; }
.contact-card-label { display: block; font-size: .65rem; color: var(--dim); letter-spacing: .16em; text-transform: uppercase; margin-bottom: .2rem; font-family: var(--mono); }
.contact-card-value { font-size: .85rem; color: var(--muted); font-weight: 500; }
.contact-card-arrow { color: var(--dim); font-size: 1rem; transition: color .2s, transform .2s; }
.contact-card:hover .contact-card-arrow { color: var(--gold); transform: translateX(3px); }

.contact-form {
  background: var(--glass); backdrop-filter: blur(8px);
  border: 1px solid var(--border); padding: 2.25rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: .68rem; color: var(--dim);
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; font-weight: 600;
}
.form-group input, .form-group textarea {
  width: 100%; background: rgba(0,0,0,0.7);
  border: 1px solid var(--border); padding: .75rem 1rem;
  font-family: var(--font); font-size: .9rem; color: var(--white); outline: none;
  transition: border-color .2s; resize: vertical;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--gold-line); box-shadow: 0 0 0 2px rgba(201,168,76,0.08); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--dim); }
.form-note { margin-top: .75rem; font-size: .8rem; color: var(--gold); min-height: 1em; }

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
.footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0; position: relative; z-index: 3;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.footer-logo { font-family: var(--mono); font-size: .95rem; font-weight: 500; color: #fff; }
.footer-copy { font-size: .75rem; color: var(--dim); }
.footer-links { display: flex; gap: 1.75rem; }
.footer-links a { font-size: .78rem; color: var(--dim); letter-spacing: .06em; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }

/* ══════════════════════════════════════
   MOBILE
══════════════════════════════════════ */
@media (max-width: 900px) {
  .navbar { padding: 1.1rem 1.5rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: fixed; inset: 0;
    background: rgba(0,0,0,0.98); backdrop-filter: blur(20px);
    align-items: center; justify-content: center; gap: 2.5rem; z-index: 99;
  }
  .nav-links.open .nav-link { font-size: 1.3rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .journey-statement { position: static; }
  .journey-timeline::before { left: 0.5rem; }
  .timeline-item { padding-left: 2rem; }
  .projects-grid, .skills-grid, .certs-grid { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero-stats { gap: 1.25rem; }
  .container { padding: 0 1.25rem; }
}
