/* ============================================
   SAAGAR SONI — PORTFOLIO STYLES
   saagarsoni.in
   ============================================ */

/* ── RESET ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── CSS VARIABLES ── */
:root {
  --cream: #faf9f6;
  --white: #ffffff;
  --ink: #1a1a18;
  --ink-muted: #6b6b67;
  --ink-light: #a8a8a4;
  --accent: #1e40af;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-muted: #93c5fd;
  --border: #e8e7e3;
  --border-strong: #d1d0cb;
  --green: #15803d;
  --green-bg: #f0fdf4;
  --tag-bg: #f1f0ec;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.10), 0 4px 8px rgba(0,0,0,0.04);
  --nav-bg: rgba(250,249,246,0.92);
  --body-bg: #faf9f6;
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --cream: #1a1a1a;
  --white: #242424;
  --ink: #f0ede8;
  --ink-muted: #a8a8a4;
  --ink-light: #666;
  --accent: #3b82f6;
  --accent-hover: #60a5fa;
  --accent-light: rgba(59,130,246,0.15);
  --accent-muted: #1e40af;
  --border: #2a2a2a;
  --border-strong: #3a3a3a;
  --green: #22c55e;
  --green-bg: rgba(34,197,94,0.1);
  --tag-bg: #2a2a2a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
  --nav-bg: rgba(15,15,15,0.92);
  --body-bg: #111111;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--body-bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  opacity: 0;
  transition: opacity .4s ease;
}
body.loaded { opacity: 1; }

/* ── SCROLL PROGRESS BAR ── */
#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e40af, #7c3aed, #db2777);
  z-index: 9999;
  width: 0%;
  transition: width .1s linear;
}

/* ── NAVIGATION ── */
nav {
  position: fixed;
  top: 3px; left: 0; right: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 500 !important;
  transition: background .2s, transform .15s !important;
}
.nav-cta:hover {
  background: var(--accent-hover) !important;
  transform: translateY(-1px);
}
.nav-right-btns {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── THEME TOGGLE ── */
.theme-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--ink-muted);
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all .2s;
}
.theme-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  background: var(--cream);
}

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── MOBILE MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 60px; left: 0; right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 1.5rem;
  z-index: 99;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-muted);
  padding: 10px 12px;
  border-radius: var(--radius);
  transition: background .2s, color .2s;
}
.mobile-menu a:hover { background: var(--cream); color: var(--ink); }
.mobile-menu .mob-cta {
  background: var(--accent);
  color: #fff !important;
  text-align: center;
  font-weight: 500;
}

/* ── VISITOR COUNTER ── */
.visitor-strip {
  background: var(--accent-light);
  border-bottom: 1px solid var(--accent-muted);
  padding: 6px 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 63px;
}
.visitor-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

/* ── OPEN TO WORK BANNER ── */
.otw-banner {
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  color: white;
  text-align: center;
  padding: 10px 2rem;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}
.otw-banner a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  margin-left: 12px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,.3);
  padding: 3px 10px;
  border-radius: 100px;
  transition: background .2s;
}
.otw-banner a:hover { background: rgba(255,255,255,.15); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2.5rem;
  padding-top: 20px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

/* Hero Photo */
.hero-photo-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.75rem;
}
.hero-photo-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.hero-name {
  font-family: 'Lora', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.02em;
}
.hero-designation {
  font-size: 13.5px;
  color: var(--ink-muted);
  font-weight: 300;
}
.hero-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--accent), var(--shadow-md);
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.hero-photo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 4px var(--accent), var(--shadow-lg);
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  border: 1px solid #bbf7d0;
  letter-spacing: .02em;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  display: block;
  animation: pulse 2s ease infinite;
}

/* Hero Text */
.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 600;
  line-height: 1.13;
  letter-spacing: -.03em;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-desc {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.75;
  max-width: 490px;
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: var(--radius);
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 2px 8px rgba(30,64,175,.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(30,64,175,.35);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  transition: background .2s, border-color .2s, transform .15s;
}
.btn-secondary:hover {
  background: var(--white);
  border-color: var(--ink);
  transform: translateY(-1px);
}

/* ── HERO CARD ── */
.hero-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #1e40af, #7c3aed, #db2777);
}
.avatar-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 1.5rem;
}
.avatar {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e40af, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: 18px;
  color: white;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
}
.avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.avatar-info h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 2px;
  color: var(--ink);
}
.avatar-info p { font-size: 12.5px; color: var(--ink-muted); }
.code-block {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  font-family: 'DM Mono', monospace;
  font-size: 11.5px;
  line-height: 1.95;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
}
.ck { color: #1e40af; }
.cs { color: #15803d; }
.cn { color: #b45309; }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.stat-item {
  text-align: center;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 6px;
}
.stat-item .num {
  display: block;
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.03em;
}
.stat-item .lbl {
  font-size: 10.5px;
  color: var(--ink-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── SECTIONS ── */
section {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 2.5rem;
}
.eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-weight: 500;
}
.sec-title {
  font-family: 'Lora', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
  margin-bottom: .5rem;
}
.sec-sub {
  font-size: 15.5px;
  color: var(--ink-muted);
  font-weight: 300;
  margin-bottom: 3rem;
}
hr.div {
  border: none;
  border-top: 1px solid var(--border);
  max-width: 1160px;
  margin: 0 2.5rem;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}
.about-text p {
  font-size: 15.5px;
  color: var(--ink-muted);
  line-height: 1.85;
  font-weight: 300;
  margin-bottom: 1rem;
}
.about-text p strong { color: var(--ink); font-weight: 500; }
.kv-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.kv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  transition: background .15s;
}
.kv-row:last-child { border-bottom: none; }
.kv-row:hover { background: var(--cream); }
.kv-icon {
  width: 30px; height: 30px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.kv-label { color: var(--ink-muted); font-size: 12px; min-width: 76px; }
.kv-val { font-weight: 500; color: var(--ink); font-size: 13.5px; }
.bg-blue { background: #eff6ff; }
.bg-purple { background: #f5f3ff; }
.bg-green { background: #f0fdf4; }
.bg-amber { background: #fffbeb; }
.bg-rose { background: #fff1f2; }

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 16px;
}
.skill-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.skill-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.skill-card-hdr { display: flex; align-items: center; gap: 10px; margin-bottom: 1rem; }
.skill-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.skill-title { font-size: 14px; font-weight: 500; color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  background: var(--tag-bg);
  color: var(--ink-muted);
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'DM Mono', monospace;
  border: 1px solid var(--border);
  transition: background .2s, color .2s, border-color .2s;
}
.tag:hover {
  background: var(--accent-light);
  color: var(--accent);
  border-color: var(--accent-muted);
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 2rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 6px; top: 6px; bottom: 6px;
  width: 1.5px;
  background: var(--border);
}
.tl-item { position: relative; margin-bottom: 1.75rem; }
.tl-dot {
  position: absolute;
  left: -2rem; top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--accent);
}
.tl-dot.active { background: var(--accent); }
.tl-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.tl-card:hover { box-shadow: var(--shadow-md); }
.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .4rem;
}
.tl-role { font-size: 15px; font-weight: 500; color: var(--ink); }
.tl-dur {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-muted);
  white-space: nowrap;
  padding-top: 2px;
}
.tl-company { font-size: 13px; color: var(--ink-muted); margin-bottom: .75rem; font-weight: 300; }
.tl-company strong { color: var(--accent); font-weight: 500; }
.tl-desc { font-size: 13.5px; color: var(--ink-muted); line-height: 1.7; font-weight: 300; margin-bottom: .85rem; }
.tl-tech { display: flex; flex-wrap: wrap; gap: 5px; }

/* ── PROJECTS ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px,1fr));
  gap: 18px;
}
.proj-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
  display: flex;
  flex-direction: column;
}
.proj-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.proj-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.proj-num {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--ink-light);
  letter-spacing: .05em;
}
.badge { font-size: 11px; padding: 3px 10px; border-radius: 100px; font-weight: 500; letter-spacing: .02em; }
.badge-gov { background: #f0f9ff; color: #0369a1; border: 1px solid #bae6fd; }
.badge-fin { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.badge-ent { background: #faf5ff; color: #7c3aed; border: 1px solid #e9d5ff; }
.badge-desk { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.proj-title {
  font-family: 'Lora', serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 7px;
}
.proj-desc { font-size: 13.5px; color: var(--ink-muted); line-height: 1.7; font-weight: 300; flex: 1; margin-bottom: 1.25rem; }
.proj-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); }

/* ── WHY HIRE ME ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 18px;
}
.why-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}
.why-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.why-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 1rem;
}
.why-card h3 {
  font-family: 'Lora', serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
  margin-bottom: .6rem;
}
.why-card p { font-size: 14px; color: var(--ink-muted); line-height: 1.75; font-weight: 300; }

/* ── CERTIFICATIONS ── */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px,1fr));
  gap: 14px;
}
.cert-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow .2s, transform .2s;
}
.cert-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.cert-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.cert-title { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 3px; }
.cert-sub { font-size: 12px; color: var(--ink-muted); }

/* ── CONTACT ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: start;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--cream);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(30,64,175,.1);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.btn-send {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 13px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, transform .15s;
  box-shadow: 0 2px 8px rgba(30,64,175,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-send:hover { background: var(--accent-hover); transform: translateY(-1px); }
.success-msg {
  display: none;
  background: var(--green-bg);
  border: 1px solid #bbf7d0;
  color: var(--green);
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 1rem;
  text-align: center;
}
.contact-info h3 {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}
.contact-info p { font-size: 15px; color: var(--ink-muted); line-height: 1.75; font-weight: 300; margin-bottom: 2rem; }
.slinks { display: flex; flex-direction: column; gap: 10px; }
.slink {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  font-size: 14px;
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.slink:hover { box-shadow: var(--shadow-md); transform: translateX(4px); border-color: var(--border-strong); }
.slink-icon {
  width: 32px; height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.slink-arrow { margin-left: auto; color: var(--ink-light); }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 2.5rem;
  text-align: center;
  font-size: 13px;
  color: var(--ink-muted);
}
footer a { color: var(--ink-muted); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ── BACK TO TOP ── */
#back-top {
  position: fixed;
  bottom: 90px; right: 28px;
  z-index: 998;
  width: 42px; height: 42px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  box-shadow: var(--shadow-md);
  transition: transform .2s, box-shadow .2s;
  color: var(--ink);
}
#back-top.show { display: flex; }
#back-top:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ── LIGHTBOX ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  backdrop-filter: blur(8px);
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

/* ── WHATSAPP BUTTON ── */
.wa-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: white;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 13px 20px 13px 16px;
  border-radius: 100px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 2px 8px rgba(0,0,0,0.15);
  transition: transform .2s, box-shadow .2s;
  animation: waPopIn .5s .5s ease both;
}
.wa-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(37,211,102,0.5), 0 4px 12px rgba(0,0,0,0.15);
}

/* ── ANIMATIONS ── */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.75); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes waPopIn {
  from { opacity: 0; transform: translateY(20px) scale(.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.hero-left > * { animation: fadeUp .6s ease both; }
.hero-left > *:nth-child(1) { animation-delay: .1s; }
.hero-left > *:nth-child(2) { animation-delay: .2s; }
.hero-left > *:nth-child(3) { animation-delay: .3s; }
.hero-left > *:nth-child(4) { animation-delay: .4s; }
.hero-card { animation: fadeUp .7s .35s ease both; }

/* ── DESKTOP FONT SIZES ── */
@media (min-width: 769px) {
  .tl-role { font-size: 17px; }
  .tl-desc { font-size: 16px; }
  .tl-company { font-size: 15px; }
  .tl-dur { font-size: 13px; }
  .proj-desc { font-size: 16px; }
  .proj-title { font-size: 19px; }
  .about-text p { font-size: 17px; }
  .sec-sub { font-size: 17px; }
  .kv-val { font-size: 15.5px; }
  .kv-label { font-size: 13.5px; }
  .contact-info p { font-size: 16.5px; }
  .slink { font-size: 15.5px; }
  .tag { font-size: 13px; }
  .cert-title { font-size: 15.5px; }
  .cert-sub { font-size: 13.5px; }
  .hero-desc { font-size: 18px; }
  .nav-links a { font-size: 15px; }
  .skill-title { font-size: 15.5px; }
  .avatar-info h3 { font-size: 16px; }
  .avatar-info p { font-size: 13.5px; }
  .code-block { font-size: 13px; }
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 1rem; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .visitor-strip { padding: 6px 1rem; }
  .hero { padding: 0 1rem; padding-top: 10px; min-height: auto; padding-bottom: 3rem; }
  .hero-inner,
  .about-grid,
  .contact-wrap { grid-template-columns: 1fr; }
  .hero-inner { gap: 2.5rem; }
  .form-row { grid-template-columns: 1fr; }
  section { padding: 3.5rem 1rem; }
  hr.div { margin: 0 1rem; }
  .timeline { padding-left: 1.5rem; }
  #back-top { bottom: 80px; right: 16px; }
  .wa-btn { bottom: 20px; right: 20px; border-radius: 50%; padding: 14px; }
  .wa-text { display: none; }
}