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

/* ─── PRELOADER ─── */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: #070a0f;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.preloader-logo {
  font-family: 'Fraunces', serif;
  font-size: 52px; font-weight: 900; font-style: italic;
  color: #eef2f7; letter-spacing: -2px;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}
.preloader-logo span { color: #14f0a0; }
@keyframes preloaderPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.97); }
}
.preloader-bar {
  width: 160px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 100px; overflow: hidden;
}
.preloader-fill {
  height: 100%;
  background: linear-gradient(90deg, #14f0a0, #00c880);
  border-radius: 100px;
  width: 0%;
  animation: preloaderLoad 1.8s ease-in-out forwards;
}
@keyframes preloaderLoad {
  0%   { width: 0%; }
  40%  { width: 55%; }
  70%  { width: 80%; }
  100% { width: 100%; }
}
.preloader-text {
  font-family: 'Cabinet Grotesk', sans-serif;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); font-weight: 500;
}

/* ─── TOKENS ─── */
[data-theme="dark"] {
  --bg:       #070a0f;
  --bg2:      #0c1018;
  --bg3:      #111620;
  --surface:  #151c27;
  --surface2: #1a2333;
  --border:   rgba(255,255,255,0.07);
  --border2:  rgba(255,255,255,0.13);
  --accent:   #14f0a0;
  --accent2:  #00c880;
  --accentRGB:20,240,160;
  --text:     #eef2f7;
  --muted:    #6b7e96;
  --muted2:   #9db0c8;
  --navbg:    rgba(7,10,15,0.88);
  --shadow:   0 24px 80px rgba(0,0,0,0.5);
  --cursor:   #14f0a0;
}
[data-theme="light"] {
  --bg:       #f5f7fa;
  --bg2:      #edf0f5;
  --bg3:      #e4e8ef;
  --surface:  #ffffff;
  --surface2: #f0f3f8;
  --border:   rgba(0,0,0,0.08);
  --border2:  rgba(0,0,0,0.14);
  --accent:   #059669;
  --accent2:  #047857;
  --accentRGB:5,150,105;
  --text:     #0f1923;
  --muted:    #7a8fa6;
  --muted2:   #4a6175;
  --navbg:    rgba(245,247,250,0.9);
  --shadow:   0 24px 80px rgba(0,0,0,0.12);
  --cursor:   #059669;
}

:root {
  --ff-head: 'Fraunces', serif;
  --ff-body: 'Cabinet Grotesk', sans-serif;
  --ease-out: cubic-bezier(0.22,1,0.36,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
  cursor: none;
}
a, button { cursor: none; }

/* ─── CUSTOM CURSOR ─── */
#cursor, #cursor-dot {
  position: fixed; border-radius: 50%;
  pointer-events: none; z-index: 9999;
  transition: transform 0.15s var(--ease-out), opacity 0.3s;
}
#cursor {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  transform: translate(-50%,-50%);
  transition: width 0.3s var(--ease-spring), height 0.3s var(--ease-spring), border-color 0.3s, background 0.3s;
}
#cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  transform: translate(-50%,-50%);
}
body.cursor-hover #cursor { width: 60px; height: 60px; background: rgba(var(--accentRGB),0.12); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6%; height: 70px;
  background: var(--navbg);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s;
}
.nav-logo {
  font-family: var(--ff-head);
  font-size: 22px; font-weight: 900;
  color: var(--text); text-decoration: none;
  font-style: italic; letter-spacing: -0.5px;
}
.nav-logo em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--muted);
  text-decoration: none; letter-spacing: 0.2px;
  position: relative; padding-bottom: 2px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 100%;
  height: 1.5px; background: var(--accent);
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { right: 0; }
.nav-right { display: flex; align-items: center; gap: 14px; }

/* theme toggle */
.theme-toggle {
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  cursor: none; transition: background 0.2s, border-color 0.2s, transform 0.2s;
  position: relative; overflow: hidden;
}
.theme-toggle:hover { border-color: var(--accent); transform: scale(1.08); }
.theme-toggle svg { width: 18px; height: 18px; color: var(--muted2); transition: color 0.2s; }
.theme-toggle:hover svg { color: var(--accent); }
.icon-sun, .icon-moon { position: absolute; transition: transform 0.4s var(--ease-spring), opacity 0.3s; }
[data-theme="dark"] .icon-sun  { transform: translateY(0); opacity: 1; }
[data-theme="dark"] .icon-moon { transform: translateY(30px); opacity: 0; }
[data-theme="light"] .icon-sun  { transform: translateY(-30px); opacity: 0; }
[data-theme="light"] .icon-moon { transform: translateY(0); opacity: 1; }

.nav-cta {
  background: var(--accent); color: #000;
  font-family: var(--ff-body); font-size: 13.5px; font-weight: 700;
  padding: 10px 22px; border-radius: 100px;
  text-decoration: none; letter-spacing: 0.3px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: var(--accent2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(var(--accentRGB),0.35); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--text); display: block; transition: 0.3s; }

/* ─── HERO ─── */
#home {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr auto;
  align-items: center;
  padding: 100px 6% 60px;
  position: relative; overflow: hidden; gap: 60px;
}

/* animated bg dots */
.bg-dots {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(var(--accentRGB),0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 100%);
  animation: dotsDrift 20s linear infinite;
}
@keyframes dotsDrift { from { background-position: 0 0; } to { background-position: 44px 44px; } }

.blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(80px); opacity: 0.18;
  animation: blobFloat 12s ease-in-out infinite;
}
.blob-1 { width: 500px; height: 500px; background: var(--accent); top: -100px; right: -120px; }
.blob-2 { width: 300px; height: 300px; background: #0080ff; bottom: 50px; left: -80px; animation-delay: -6s; }
@keyframes blobFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(20px,-30px) scale(1.05); }
  66% { transform: translate(-15px,20px) scale(0.96); }
}

/* hero content */
.hero-left { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(var(--accentRGB),0.1);
  border: 1px solid rgba(var(--accentRGB),0.28);
  color: var(--accent);
  font-size: 11.5px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  padding: 7px 18px; border-radius: 100px; margin-bottom: 28px;
  animation: badgeIn 0.8s var(--ease-out) both;
}
@keyframes badgeIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }
.badge-dot { width: 7px; height: 7px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(0.7);opacity:0.5} }

.hero-title {
  font-family: var(--ff-head);
  font-size: clamp(52px,7.5vw,100px);
  font-weight: 900; line-height: 0.95;
  letter-spacing: -4px;
  margin-bottom: 28px;
  animation: titleIn 0.9s var(--ease-out) 0.1s both;
}
@keyframes titleIn { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }
.hero-title .italic { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 17px; color: var(--muted2); max-width: 480px;
  font-weight: 300; line-height: 1.75; margin-bottom: 44px;
  animation: titleIn 0.9s var(--ease-out) 0.2s both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap; align-items: center;
  animation: titleIn 0.9s var(--ease-out) 0.3s both;
}
.btn-primary {
  background: var(--accent); color: #000;
  font-family: var(--ff-body); font-weight: 700; font-size: 15px;
  padding: 14px 32px; border-radius: 100px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(var(--accentRGB),0.4); }
.btn-outline {
  border: 1px solid var(--border2); color: var(--muted2);
  font-family: var(--ff-body); font-weight: 500; font-size: 15px;
  padding: 14px 32px; border-radius: 100px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

.hero-stats {
  display: flex; gap: 44px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 44px;
  border-top: 1px solid var(--border);
  animation: titleIn 0.9s var(--ease-out) 0.4s both;
}
.stat-num {
  font-family: var(--ff-head); font-size: 40px; font-weight: 900;
  color: var(--text); letter-spacing: -2px; line-height: 1;
}
.stat-num b { color: var(--accent); font-weight: 900; }
.stat-label { font-size: 12.5px; color: var(--muted); margin-top: 3px; letter-spacing: 0.3px; }

/* hero photo */
.hero-photo {
  position: relative; z-index: 1;
  flex-shrink: 0;
  animation: photoIn 1s var(--ease-out) 0.35s both;
}
@keyframes photoIn { from { opacity:0; transform: translateX(40px) scale(0.95); } to { opacity:1; transform: translateX(0) scale(1); } }
.photo-frame {
  width: 460px; height: 580px;
  border-radius: 220px 220px 40px 40px;
  background: var(--surface2);
  border: 2px solid var(--border2);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s, border-color 0.3s;
}
.photo-frame:hover { border-color: var(--accent); box-shadow: 0 32px 80px rgba(var(--accentRGB),0.2); }
.photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--muted); font-size: 13px; font-weight: 500; text-align: center;
  padding: 20px;
}
.photo-placeholder svg { opacity: 0.3; }
.photo-ring {
  position: absolute; inset: -12px;
  border-radius: 232px 232px 52px 52px;
  border: 1px dashed rgba(var(--accentRGB),0.3);
  animation: spin 20s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.photo-tag {
  position: absolute; bottom: -16px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #000;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 20px; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(var(--accentRGB),0.4);
}

/* ─── SECTIONS ─── */
section { padding: 110px 6%; }

.section-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.section-eyebrow::before { content:''; width: 28px; height: 1.5px; background: var(--accent); }

.section-title {
  font-family: var(--ff-head);
  font-size: clamp(34px,4vw,56px);
  font-weight: 900; letter-spacing: -2.5px; line-height: 1.05;
  margin-bottom: 16px;
}
.section-desc { font-size: 17px; color: var(--muted2); max-width: 500px; font-weight: 300; margin-bottom: 60px; }

/* ─── ABOUT ─── */
#about { background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about-text { font-size: 16px; color: var(--muted2); line-height: 1.85; margin-bottom: 22px; font-weight: 300; }

.about-info {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: 20px; overflow: hidden;
  margin-top: 40px;
  transition: border-color 0.3s;
}
.about-info:hover { border-color: var(--border2); }
.info-item { padding: 18px 22px; border-bottom: 1px solid var(--border); border-right: 1px solid var(--border); transition: background 0.2s; }
.info-item:hover { background: var(--surface); }
.info-item:nth-child(even) { border-right: none; }
.info-item:nth-last-child(-n+2) { border-bottom: none; }
.info-label { font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.info-val { font-size: 14px; color: var(--text); font-weight: 600; }

.expertise-cards { display: flex; flex-direction: column; gap: 14px; }
.exp-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 22px 26px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative; overflow: hidden;
}
.exp-card::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.3s var(--ease-out);
}
.exp-card:hover { border-color: rgba(var(--accentRGB),0.3); transform: translateX(8px); box-shadow: -8px 0 24px rgba(var(--accentRGB),0.08); }
.exp-card:hover::before { transform: scaleY(1); }
.exp-card-icon { font-size: 22px; margin-bottom: 10px; }
.exp-card-title { font-family: var(--ff-head); font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.exp-card-desc { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ─── SKILLS ─── */
#skills { background: var(--bg); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.skill-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 22px;
  transition: border-color 0.2s, transform 0.2s;
}
.skill-card:hover { border-color: rgba(var(--accentRGB),0.3); transform: translateY(-3px); }
.skill-header { display: flex; justify-content: space-between; margin-bottom: 12px; }
.skill-name { font-size: 14px; font-weight: 700; }
.skill-pct { font-size: 13px; color: var(--accent); font-weight: 700; }
.skill-track { height: 3.5px; background: var(--surface2); border-radius: 100px; overflow: hidden; }
.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border-radius: 100px; width: 0;
  transition: width 1.4s var(--ease-out);
}

/* ─── SERVICES ─── */
#services { background: var(--bg2); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 20px; }
.service-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; padding: 34px 28px;
  position: relative; overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  group: true;
}
.service-card:hover { border-color: rgba(var(--accentRGB),0.35); transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,0.2); }
.service-bg-num {
  position: absolute; right: 16px; bottom: -10px;
  font-family: var(--ff-head); font-size: 100px; font-weight: 900;
  color: var(--border); line-height: 1; pointer-events: none;
  transition: color 0.3s;
}
.service-card:hover .service-bg-num { color: rgba(var(--accentRGB),0.07); }
.service-icon {
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(var(--accentRGB),0.1); border: 1px solid rgba(var(--accentRGB),0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 20px;
  transition: background 0.3s, transform 0.3s;
}
.service-card:hover .service-icon { background: rgba(var(--accentRGB),0.2); transform: rotate(-6deg) scale(1.1); }
.service-title { font-family: var(--ff-head); font-size: 20px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.5px; }
.service-desc { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ─── RESUME ─── */
#resume { background: var(--bg); }
.resume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.resume-col-head {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 32px;
}
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content:''; position: absolute; left:0; top:0; bottom:0; width:1px; background: var(--border2); }
.tl-item { position: relative; margin-bottom: 36px; }
.tl-item::before {
  content:''; position: absolute; left:-32px; top:7px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
  box-shadow: 0 0 0 3px rgba(var(--accentRGB),0.25);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}
.tl-item:hover::before { transform: scale(1.5); box-shadow: 0 0 0 6px rgba(var(--accentRGB),0.15); }
.tl-period { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 5px; }
.tl-title { font-family: var(--ff-head); font-size: 17px; font-weight: 800; margin-bottom: 3px; }
.tl-sub { font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.tl-desc { font-size: 14px; color: var(--muted2); line-height: 1.65; }

/* ─── PORTFOLIO ─── */
#portfolio { background: var(--bg2); }
.pf-filters { display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.pf-btn {
  background: transparent; border: 1px solid var(--border);
  color: var(--muted); font-family: var(--ff-body);
  font-size: 13px; font-weight: 600;
  padding: 9px 22px; border-radius: 100px; cursor: none;
  transition: all 0.2s;
}
.pf-btn.active, .pf-btn:hover { background: var(--accent); border-color: var(--accent); color: #000; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 20px; }
.port-card {
  border-radius: 22px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.35s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
}
.port-card:hover { transform: translateY(-8px); border-color: rgba(var(--accentRGB),0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.25); }
.port-img { width:100%; height:200px; background: var(--surface2); position:relative; overflow:hidden; }
.port-img img { width:100%; height:100%; object-fit:cover; transition: transform 0.5s var(--ease-out); }
.port-card:hover .port-img img { transform: scale(1.08); }
.port-overlay {
  position:absolute; inset:0;
  background: rgba(var(--accentRGB),0.9);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition: opacity 0.3s;
}
.port-card:hover .port-overlay { opacity:1; }
.port-overlay a { color:#000; font-weight:800; font-size:14px; text-decoration:none; letter-spacing:0.5px; padding:11px 26px; background:rgba(0,0,0,0.12); border-radius:100px; transition: transform 0.2s; }
.port-overlay a:hover { transform: scale(1.05); }
.port-info { padding: 20px 22px; }
.port-tag { font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 5px; }
.port-title { font-family: var(--ff-head); font-size: 17px; font-weight: 800; color: var(--text); }

/* ─── CONTACT ─── */
#contact { background: var(--bg); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.contact-item { display:flex; align-items:flex-start; gap:16px; margin-bottom:26px; }
.contact-icon {
  width:46px; height:46px;
  background: rgba(var(--accentRGB),0.1); border: 1px solid rgba(var(--accentRGB),0.2);
  border-radius: 14px; display:flex; align-items:center; justify-content:center;
  font-size:18px; flex-shrink:0;
  transition: background 0.2s, transform 0.2s;
}
.contact-item:hover .contact-icon { background: rgba(var(--accentRGB),0.2); transform: rotate(-8deg); }
.contact-label { font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:1px; margin-bottom:3px; }
.contact-val { font-size:15px; color:var(--text); font-weight:600; }

.social-links { display:flex; gap:11px; margin-top:38px; }
.social-link {
  width:44px; height:44px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; display:flex; align-items:center; justify-content:center;
  text-decoration:none; color:var(--muted); font-size:18px;
  transition: all 0.25s var(--ease-spring);
}
.social-link:hover { background:var(--accent); border-color:var(--accent); color:#000; transform: translateY(-4px) rotate(-5deg); box-shadow: 0 8px 20px rgba(var(--accentRGB),0.35); }

.contact-form { display:flex; flex-direction:column; gap:16px; }
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.form-group { display:flex; flex-direction:column; gap:7px; }
.form-label { font-size:11.5px; color:var(--muted); letter-spacing:0.5px; font-weight:600; text-transform:uppercase; }
.form-input, .form-textarea {
  background: var(--surface); border: 1px solid var(--border); color:var(--text);
  font-family: var(--ff-body); font-size:14.5px; padding:13px 16px;
  border-radius:14px; transition: border-color 0.2s, box-shadow 0.2s; outline:none; resize:none;
}
.form-input:focus, .form-textarea:focus { border-color:var(--accent); box-shadow: 0 0 0 3px rgba(var(--accentRGB),0.12); }
.form-input::placeholder, .form-textarea::placeholder { color:var(--muted); }
.form-textarea { height:120px; }
.form-btn {
  background:var(--accent); color:#000; font-family:var(--ff-body); font-weight:800;
  font-size:15px; padding:15px 34px; border-radius:100px; border:none; cursor:none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s; align-self:flex-start;
}
.form-btn:hover { background:var(--accent2); transform:translateY(-3px); box-shadow:0 12px 30px rgba(var(--accentRGB),0.4); }

/* ─── FOOTER ─── */
footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 30px 6%; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;
  transition: background 0.4s;
}
.footer-text { font-size:14px; color:var(--muted); }
.footer-text a { color:var(--accent); text-decoration:none; }
.back-top { font-size:13px; color:var(--muted); text-decoration:none; display:flex; align-items:center; gap:6px; transition:color 0.2s; }
.back-top:hover { color:var(--accent); }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity:0; transform:translateY(36px); transition: opacity 0.75s var(--ease-out), transform 0.75s var(--ease-out); }
.reveal.visible { opacity:1; transform:translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── COUNTER ANIMATION ─── */
@keyframes countUp { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } }

/* ─── TILT CARD ─── */
.tilt { transform-style: preserve-3d; transition: transform 0.1s; }

/* hide mobile CV item on desktop */
.nav-cv-mobile { display: none; }

/* ─── RESPONSIVE ─── */

/* Smooth mobile nav */
.nav-links {
  transition: transform 0.35s var(--ease-out), opacity 0.3s;
}

@media(max-width:960px) {
  #home { grid-template-columns: 1fr; text-align:center; justify-items:center; padding-top:110px; gap:40px; }
  .hero-photo { order: -1; }
  .photo-frame { width:280px; height:360px; }
  .photo-ring { border-radius: 152px 152px 52px 52px; }
  .hero-sub { margin-left:auto; margin-right:auto; }
  .hero-actions { justify-content:center; }
  .hero-stats { justify-content:center; }
  .about-grid, .resume-grid, .contact-grid { grid-template-columns:1fr; gap:48px; }
  .form-row { grid-template-columns:1fr; }
  .services-grid { grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); }
  .portfolio-grid { grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); }

  /* Hide desktop links, show hamburger */
  .nav-links {
    display: flex; flex-direction: column;
    position: fixed; top: 70px; left: 0; right: 0;
    background: var(--navbg); backdrop-filter: blur(24px);
    padding: 0 6%;
    border-bottom: 1px solid var(--border);
    gap: 0;
    transform: translateY(-20px);
    opacity: 0;
    pointer-events: none;
    max-height: 0;
    overflow: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.3s, max-height 0.4s var(--ease-out), padding 0.3s;
  }
  nav.open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
    max-height: 400px;
    padding: 8px 6% 16px;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    display: block;
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.3s, transform 0.3s, color 0.2s;
  }
  nav.open .nav-links a { opacity: 1; transform: translateX(0); }
  nav.open .nav-links li:nth-child(1) a { transition-delay: 0.05s; }
  nav.open .nav-links li:nth-child(2) a { transition-delay: 0.10s; }
  nav.open .nav-links li:nth-child(3) a { transition-delay: 0.15s; }
  nav.open .nav-links li:nth-child(4) a { transition-delay: 0.20s; }
  nav.open .nav-links li:nth-child(5) a { transition-delay: 0.25s; }
  nav.open .nav-links li:nth-child(6) a { transition-delay: 0.30s; }
  .nav-cv-mobile { display: block; }
  .nav-cv-mobile a {
    color: var(--accent) !important;
    font-weight: 700 !important;
    border-bottom: none !important;
  }
  .hamburger { display:flex; }

  /* Hamburger → X animation */
  .hamburger span { transition: transform 0.3s, opacity 0.3s; }
  nav.open .hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  nav.open .hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  nav.open .hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
}

@media(max-width:640px) {
  section { padding: 80px 5%; }
  .hero-title { letter-spacing:-1.5px; }
  .skills-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .about-info { grid-template-columns: 1fr; }
  .about-info .info-item { border-right: none; }
  .resume-grid { gap: 40px; }
  .social-links { flex-wrap: wrap; }
  .faq-q { font-size: 14px; padding: 16px 18px; }
  .faq-item.open .faq-a { padding: 0 18px 16px; }
  .nav-cta { display: none; }
}

@media(max-width:375px) {
  nav { padding: 0 4%; }
  section { padding: 70px 4%; }
  .hero-title { font-size: 42px; letter-spacing: -1px; }
  .photo-frame { width: 240px; height: 310px; }
  .photo-ring { border-radius: 132px 132px 40px 40px; }
  .section-title { font-size: 30px; letter-spacing: -1.5px; }
  .btn-primary, .btn-outline { font-size: 14px; padding: 12px 24px; }
  .stat-num { font-size: 32px; }
  .hero-stats { gap: 20px; }
  .exp-card { padding: 18px 20px; }
  .service-card { padding: 24px 20px; }
  .tl-title { font-size: 15px; }
  .contact-val { font-size: 13.5px; }
  .footer-text { font-size: 12px; }
}

@media(max-width:320px) {
  .hero-title { font-size: 36px; }
  .photo-frame { width: 210px; height: 275px; }
  .section-title { font-size: 26px; }
  .hero-badge { font-size: 10px; padding: 6px 12px; }
  .btn-primary, .btn-outline { font-size: 13px; padding: 11px 20px; }
  .stat-num { font-size: 28px; }
  .skill-card, .faq-item { border-radius: 12px; }
  .port-card { border-radius: 16px; }
  .service-bg-num { font-size: 70px; }
  .timeline { padding-left: 20px; }
  .tl-item::before { left: -25px; }
}

/* ─── FAQ ─── */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.open { border-color: rgba(var(--accentRGB),0.35); }
.faq-q {
  width: 100%; background: none; border: none; cursor: none;
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; gap: 16px;
  font-family: var(--ff-body); font-size: 15px; font-weight: 600;
  color: var(--text); text-align: left;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px; flex-shrink: 0;
  background: rgba(var(--accentRGB),0.1); border: 1px solid rgba(var(--accentRGB),0.2);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--accent); font-weight: 300;
  transition: transform 0.3s var(--ease-spring), background 0.2s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: rgba(var(--accentRGB),0.2); }
.faq-a {
  max-height: 0; overflow: hidden;
  font-size: 14.5px; color: var(--muted2); line-height: 1.75; font-weight: 300;
  transition: max-height 0.4s var(--ease-out), padding 0.3s;
  padding: 0 24px;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 24px 20px; }

/* ─── LIGHTBOX ─── */
#lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(10px);
}
#lightbox.open { opacity: 1; pointer-events: all; }
#lightbox img {
  max-width: 90vw; max-height: 88vh;
  border-radius: 16px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8);
  transform: scale(0.9);
  transition: transform 0.35s var(--ease-spring);
  object-fit: contain;
}
#lightbox.open img { transform: scale(1); }
#lightbox-close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%; cursor: none;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px; font-weight: 300;
  transition: background 0.2s, transform 0.2s;
}
#lightbox-close:hover { background: var(--accent); color: #000; transform: rotate(90deg); }
#lightbox-caption {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 13px; font-weight: 500;
  letter-spacing: 0.5px; white-space: nowrap;
}
