/* =============================================
   DIPESH KC — PORTFOLIO  |  style.css
   Light, warm, professional
   ============================================= */

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

:root {
  /* Colors */
  --bg:           #f5f2ec;
  --bg-alt:       #ede9e0;
  --bg-card:      #faf8f4;
  --text:         #1c1a17;
  --muted:        #6a6760;
  --faint:        #a09d97;
  --border:       #ddd9d0;
  --border-h:     rgba(13,124,102,0.3);
  --accent:       #0d7c66;
  --accent-h:     #0a6254;
  --accent-pale:  #e8f5f1;
  --accent-ring:  rgba(13,124,102,0.2);

  /* Type */
  --display: 'Fraunces', serif;
  --body:    'DM Sans', sans-serif;

  /* Spacing */
  --nav-h:   72px;
  --max:     1120px;
  --rad:     14px;

  /* Shadows */
  --sh:   0 2px 12px rgba(0,0,0,0.06);
  --sh-h: 0 8px 32px rgba(0,0,0,0.12);
}

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

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(245,242,236,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: box-shadow 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-color: var(--border);
}

.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  font-family: var(--display);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.nav-logo span { color: var(--accent); }

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nl {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 100px;
  letter-spacing: 0.01em;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nl:hover { color: var(--text); background: var(--bg-alt); }
.nl.active { color: var(--accent); background: var(--accent-pale); font-weight: 600; }
/* Contact button in nav */
.cta-link {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-weight: 600;
  margin-left: 8px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s !important;
}
.cta-link:hover {
  background: var(--accent-h) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(13,124,102,0.25) !important;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  display: block; width: 26px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

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

/* Soft decorative blobs */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.s1 {
  width: 600px; height: 600px;
  background: rgba(13,124,102,0.07);
  top: -160px; right: -120px;
}
.s2 {
  width: 400px; height: 400px;
  background: rgba(13,124,102,0.04);
  bottom: 0; left: -100px;
}

/* Main hero layout */
.hero-container {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px 40px 32px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 80px;
  align-items: center;
}

/* ------ PHOTO SIDE ------ */
.hero-photo-side {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative rings */
.photo-outer-ring,
.photo-dashed-ring {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.photo-outer-ring {
  width: 370px; height: 370px;
  border: 2px solid var(--accent-ring);
}
.photo-dashed-ring {
  width: 410px; height: 410px;
  border: 1.5px dashed rgba(13,124,102,0.15);
  animation: spinRing 30s linear infinite;
}
@keyframes spinRing {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Photo circle */
.photo-frame {
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #fff;
  box-shadow:
    0 0 0 3px var(--accent),
    0 24px 64px rgba(0,0,0,0.14),
    0 4px 16px rgba(13,124,102,0.12);
  background: var(--bg-alt);
  position: relative;
  z-index: 1;
  animation: photoEntrance 0.9s cubic-bezier(0.22,1,0.36,1) both;
}
@keyframes photoEntrance {
  from { opacity: 0; transform: scale(0.88) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.hero-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}
.photo-initials {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%; height: 100%;
  font-family: var(--display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-pale);
}

/* Floating badges */
.hero-badge {
  position: absolute;
  bottom: 18px;
  right: -4px;
  background: #fff;
  border: 1px solid var(--border-h);
  border-radius: 100px;
  padding: 8px 18px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #16a34a;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.1);
  z-index: 2;
  animation: photoEntrance 0.9s ease 0.3s both;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: badgePulse 1.8s infinite;
}
@keyframes badgePulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0); }
}
.hero-location {
  position: absolute;
  top: 12px;
  left: -4px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  z-index: 2;
  animation: photoEntrance 0.9s ease 0.5s both;
}

/* ------ TEXT SIDE ------ */
.hero-text-side {
  animation: textEntrance 0.8s ease 0.2s both;
}
@keyframes textEntrance {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.eyebrow-line {
  width: 36px; height: 2px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}

.hero-heading {
  font-family: var(--display);
  font-size: clamp(3.6rem, 6vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.heading-accent {
  color: var(--accent);
  font-style: italic;
}

.hero-roles {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.role-tag {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.role-sep {
  color: var(--border);
  font-size: 1.1rem;
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
  font-weight: 300;
  max-width: 480px;
  margin-bottom: 36px;
  padding-left: 16px;
  border-left: 3px solid var(--accent-ring);
}
.hero-bio strong { color: var(--text); font-weight: 500; }

/* Action buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

/* Social icons row */
.hero-socials {
  display: flex;
  align-items: center;
  gap: 10px;
}
.soc-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: all 0.22s;
}
.soc-icon svg { width: 18px; height: 18px; }
.soc-icon:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
  transform: translateY(-3px);
  box-shadow: 0 6px 16px var(--accent-ring);
}

/* Stats bar */
.hero-stats {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid var(--border);
  gap: 0;
}
.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 0 56px;
}
.hstat strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hstat span {
  font-size: 0.72rem;
  color: var(--faint);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.hstat-div {
  width: 1px; height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-fill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--accent);
  color: #fff;
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s;
}
.btn-fill:hover {
  background: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13,124,102,0.28);
}
.btn-ring {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 30px;
  background: transparent;
  color: var(--text);
  font-family: var(--body);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.22s;
}
.btn-ring:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-pale);
  transform: translateY(-2px);
}
.btn-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
  border-bottom: 1px solid var(--border);
}
.btn-text:hover { color: var(--accent); border-color: var(--accent); }

/* =============================================
   SECTIONS
   ============================================= */
.section { padding: 110px 40px; }
.bg-alt   { background: var(--bg-alt); }
.container { max-width: var(--max); margin: 0 auto; }

.sec-hd { text-align: center; margin-bottom: 64px; }
.sec-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.sec-hd h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.sec-hd h2 em {
  color: var(--accent);
  font-style: italic;
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.about-text h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 20px;
}
.about-text p {
  font-size: 0.97rem;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 16px;
}
.about-text p strong { color: var(--text); font-weight: 600; }
.about-text p em { color: var(--accent); font-style: italic; }

.about-table { margin-top: 28px; border: 1px solid var(--border); border-radius: var(--rad); overflow: hidden; }
.at-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}
.at-row:last-child { border-bottom: none; }
.at-row span:first-child { color: var(--faint); }
.at-row span:last-child  { color: var(--text); font-weight: 500; }
.status-open {
  display: inline-flex; align-items: center; gap: 6px;
  color: #16a34a !important; font-weight: 600 !important;
}
.status-open span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e; display: inline-block;
  animation: badgePulse 2s infinite;
}

.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.acard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
}
.acard:hover { border-color: var(--border-h); transform: translateY(-3px); box-shadow: var(--sh-h); }
.acard-n {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.acard-l { font-size: 0.78rem; color: var(--faint); font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; }
.quote-acard { grid-column: span 2; text-align: left; position: relative; border-left: 3px solid var(--accent); }
.q {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--accent-ring);
  line-height: 1;
  position: absolute;
  top: 8px; left: 12px;
}
.quote-acard p { font-size: 1rem; color: var(--muted); font-style: italic; padding-left: 24px; line-height: 1.6; }

/* =============================================
   TIMELINE
   ============================================= */
.timeline { max-width: 820px; margin: 0 auto; }
.tl {
  display: grid;
  grid-template-columns: 100px 32px 1fr;
  margin-bottom: 0;
}
.tl-badge-now {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-pale);
  border: 1px solid var(--accent-ring);
  padding: 3px 9px; border-radius: 100px;
  white-space: nowrap;
  align-self: start; margin-top: 20px;
  text-align: right;
}
.tl-period {
  font-size: 0.75rem; font-weight: 500;
  color: var(--faint); white-space: nowrap;
  align-self: start; margin-top: 23px;
  text-align: right;
}
.tl-dot-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
}
.tl-dot {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  background: var(--bg);
  margin-top: 22px;
  flex-shrink: 0;
  z-index: 1;
  transition: background 0.2s;
}
.tl:hover .tl-dot { background: var(--accent); }
.tl-dot-col::after {
  content: ''; flex: 1; width: 1.5px;
  background: linear-gradient(to bottom, var(--accent-ring), transparent);
  margin-top: 4px;
}
.last-tl .tl-dot-col::after { display: none; }
.tl-body { padding: 14px 0 32px 16px; }
.tl-body h4 {
  font-family: var(--display);
  font-size: 1.05rem; font-weight: 700;
  color: var(--text); margin-bottom: 4px;
}
.tl-org { font-size: 0.82rem; color: var(--accent); font-weight: 500; margin-bottom: 8px; }
.tl-body p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; font-weight: 300; }

/* =============================================
   SKILLS
   ============================================= */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.sk-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sk-block:hover { border-color: var(--border-h); box-shadow: var(--sh); }
.sk-block h3 {
  font-family: var(--display);
  font-size: 1rem; font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px;
}
.sk-bars { display: flex; flex-direction: column; gap: 16px; }
.sk-bar {}
.sk-bl {
  display: flex; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted); margin-bottom: 6px;
}
.sk-bl span:last-child { color: var(--accent); font-weight: 600; font-size: 0.78rem; }
.sk-track {
  height: 6px; background: var(--bg-alt);
  border-radius: 4px; overflow: hidden;
}
.sk-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), rgba(13,124,102,0.5));
  border-radius: 4px;
  transition: width 1.3s cubic-bezier(0.22,1,0.36,1);
}
.sk-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.sk-tags span {
  font-size: 0.78rem; font-weight: 500;
  padding: 5px 13px; border-radius: 100px;
  background: var(--bg-alt); border: 1px solid var(--border);
  color: var(--muted); transition: all 0.2s;
}
.sk-tags span:hover { border-color: var(--accent); color: var(--accent); }

/* =============================================
   PROJECTS
   ============================================= */
.proj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.proj-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rad);
  padding: 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all 0.25s;
}
.proj-card:hover { border-color: var(--border-h); box-shadow: var(--sh-h); transform: translateY(-4px); }
.feat-card { grid-column: span 2; border-left: 4px solid var(--accent); background: linear-gradient(135deg, var(--accent-pale), var(--bg-card)); }
.pc-top { display: flex; align-items: center; justify-content: space-between; }
.pc-num { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; color: var(--accent); }
.pc-active {
  font-size: 0.7rem; font-weight: 600;
  color: var(--accent); background: var(--accent-pale);
  border: 1px solid var(--accent-ring); border-radius: 100px; padding: 3px 10px;
  display: flex; align-items: center; gap: 5px;
}
.pc-active i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: block; animation: badgePulse 2s infinite; }
.pc-done { font-size: 0.7rem; font-weight: 600; color: var(--muted); }
.proj-card h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.proj-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.75; font-weight: 300; flex: 1; }
.pc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tags span {
  font-size: 0.7rem; font-weight: 500; padding: 3px 11px;
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 100px; color: var(--muted);
}
.pc-org { font-size: 0.78rem; color: var(--faint); }
.pc-link { font-size: 0.85rem; font-weight: 600; color: var(--accent); transition: opacity 0.2s; }
.pc-link:hover { opacity: 0.7; }

/* =============================================
   EDUCATION
   ============================================= */
.edu-list { display: flex; flex-direction: column; gap: 18px; }
.edu-card {
  display: flex; gap: 24px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--rad); padding: 28px 32px;
  transition: all 0.2s;
}
.edu-card:hover { border-color: var(--border-h); transform: translateX(5px); box-shadow: var(--sh); }
.edu-flag { font-size: 2.2rem; flex-shrink: 0; }
.edu-when { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.edu-info h3 { font-family: var(--display); font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.edu-deg { font-size: 0.88rem; color: var(--accent); font-weight: 500; margin-bottom: 2px; }
.edu-loc { font-size: 0.8rem; color: var(--faint); margin-bottom: 8px; }
.edu-note { font-size: 0.85rem; color: var(--muted); line-height: 1.6; font-weight: 300; }

/* =============================================
   CONTACT
   ============================================= */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: start; }
.contact-info > p { font-size: 0.97rem; color: var(--muted); font-weight: 300; line-height: 1.8; margin-bottom: 32px; }
.clink-list { display: flex; flex-direction: column; gap: 12px; }
.clink {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--rad); padding: 16px 20px;
  color: var(--text); transition: all 0.2s;
}
.clink:hover { border-color: var(--border-h); transform: translateX(4px); }
.clink > span { font-size: 1.3rem; flex-shrink: 0; }
.clink small { font-size: 0.68rem; color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; display: block; }
.clink strong { font-size: 0.88rem; color: var(--text); font-weight: 500; }

.cform {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px;
  display: flex; flex-direction: column; gap: 16px;
}
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cfield { display: flex; flex-direction: column; gap: 7px; }
.cfield label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--faint); }
.cfield input, .cfield textarea {
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 8px; padding: 11px 14px;
  font-family: var(--body); font-size: 0.9rem;
  color: var(--text); outline: none; resize: vertical;
  transition: border-color 0.2s;
}
.cfield input:focus, .cfield textarea:focus { border-color: var(--accent); }
.cfield input::placeholder, .cfield textarea::placeholder { color: var(--faint); }
.form-ok {
  display: none; font-size: 0.9rem; color: #16a34a; font-weight: 500;
  padding: 12px; background: #f0fdf4; border-radius: 8px;
  border: 1px solid #bbf7d0; text-align: center;
}

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--text); color: rgba(255,255,255,0.45); padding: 44px 40px; text-align: center; }
.footer-inner { max-width: var(--max); margin: 0 auto; }
.footer-logo {
  font-family: var(--display);
  font-size: 1.6rem; font-weight: 700;
  color: #fff; margin-bottom: 10px; letter-spacing: -0.02em;
}
.footer p { font-size: 0.85rem; font-weight: 300; }
.footer-tag { margin-top: 6px; font-size: 0.8rem; opacity: 0.7; }

/* =============================================
   REVEAL
   ============================================= */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1000px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; gap: 48px; padding: 40px 24px 24px; }
  .hero-photo-side { justify-content: center; }
  .photo-frame { width: 260px; height: 260px; }
  .photo-outer-ring { width: 290px; height: 290px; }
  .photo-dashed-ring { width: 320px; height: 320px; }
  .hero-badge { right: 50%; transform: translateX(140px); }
  .hero-location { left: 50%; transform: translateX(-140px); }
  .hero-eyebrow { justify-content: center; }
  .hero-bio { margin: 0 auto 32px; border-left: none; padding-left: 0; }
  .hero-actions, .hero-socials { justify-content: center; }
  .hero-roles { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .skills-grid, .proj-grid { grid-template-columns: 1fr; }
  .feat-card { grid-column: span 1; }
  .contact-wrap { grid-template-columns: 1fr; gap: 40px; }
  .cform-row { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 80px 28px 1fr; }
  .section { padding: 80px 24px; }
  .hstat { padding: 0 24px; }
  .hero-stats { padding: 24px; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    padding: 16px 24px; gap: 4px;
    transform: translateY(-110%); transition: transform 0.3s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }
  .nav-links.open { transform: translateY(0); }
  .nl { padding: 12px 16px; border-radius: 10px; }
  .cta-link { text-align: center; margin-left: 0; }
}

@media (max-width: 560px) {
  .hero-heading { font-size: 3rem; }
  .hstat-div { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .hstat { flex: 1 1 40%; }
  .tl { grid-template-columns: 0 24px 1fr; }
  .tl-badge-now, .tl-period { display: none; }
  .tl-body { padding-left: 10px; }
  .nav-container { padding: 0 20px; }
}
