/* ═══════════════════════════════════════════
   PORTFOLIO — style.css
   Dark indigo theme · Syne + DM Sans
═══════════════════════════════════════════ */

/* ── TOKENS ── */
:root {
  --bg:        #080810;
  --bg2:       #0d0d1a;
  --surface:   #11111f;
  --surface2:  #161628;
  --border:    rgba(129,140,248,.12);
  --border2:   rgba(129,140,248,.2);
  --accent:    #818cf8;
  --accent2:   #6366f1;
  --accent3:   #4f46e5;
  --green:     #34d399;
  --text:      #e2e8f0;
  --muted:     #94a3b8;
  --dim:       #64748b;
  --radius:    14px;
  --r-sm:      8px;
  --shadow:    0 4px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 48px rgba(0,0,0,.6);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea { font-family: inherit; }

/* ── NOISE ── */
.noise {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  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.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ── TYPOGRAPHY ── */
.font-heading, h1, h2, h3, nav .logo { font-family: 'Syne', sans-serif; }

/* ── DIVIDER ── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border2), transparent);
  margin: 0 5%;
}

/* ═══════════════ NAV ═══════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8,8,16,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all .3s;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800; font-size: 1.3rem;
  color: var(--accent);
  letter-spacing: -0.5px;
}
.logo .dot { color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 2.5rem; list-style: none; }
.nav-a {
  font-family: 'Syne', sans-serif;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .08em;
  color: var(--dim);
  text-transform: uppercase;
  position: relative;
  transition: color .2s;
}
.nav-a::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0);
  transition: transform .2s;
}
.nav-a:hover, .nav-a.active { color: var(--text); }
.nav-a.active::after, .nav-a:hover::after { transform: scaleX(1); }

/* hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none; flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  gap: .25rem;
}
.mobile-menu.open { display: flex; }
.mob-a {
  padding: .75rem 0;
  font-family: 'Syne', sans-serif; font-weight: 600;
  font-size: .9rem; color: var(--muted);
  border-bottom: 1px solid var(--border);
  transition: color .2s;
}
.mob-a:hover { color: var(--text); }

/* ═══════════════ HERO ═══════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 0 60px;
  overflow: hidden;
}
/* ambient blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: .18; pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.b1 { width: 500px; height: 500px; background: #6366f1; top: -10%; left: -10%; animation-delay: 0s; }
.b2 { width: 300px; height: 300px; background: #818cf8; bottom: 5%; right: -5%; animation-delay: -8s; }
.b3 { width: 200px; height: 200px; background: #4f46e5; top: 55%; left: 45%; animation-delay: -14s; }

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-20px) scale(1.05); }
  66%      { transform: translate(-20px,30px) scale(.95); }
}

.hero-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  display: flex; align-items: center;
  gap: 4rem;
  position: relative; z-index: 1;
}
.hero-text { flex: 1; }

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .4rem 1rem; border-radius: 99px;
  background: rgba(129,140,248,.08);
  border: 1px solid rgba(129,140,248,.2);
  font-size: .7rem; font-weight: 700;
  letter-spacing: .12em; color: var(--accent);
  margin-bottom: 1.75rem;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .6; transform: scale(.8); }
}

.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.25rem;
}
.hero-h1 .muted { color: var(--muted); }
.name-glow {
  color: var(--text);
  text-shadow: 0 0 60px rgba(129,140,248,.3);
}

.tagline {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem; font-weight: 600;
  color: var(--accent);
  margin-bottom: 1.25rem;
  min-height: 1.8em;
}
.cursor-blink {
  animation: blink 1s step-end infinite;
  margin-left: 2px;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.hero-desc {
  font-size: 1rem; color: var(--muted);
  max-width: 500px; margin-bottom: 2rem;
  line-height: 1.7;
}

/* socials */
.socials { display: flex; gap: .75rem; margin-bottom: 2rem; flex-wrap: wrap; }
.soc-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(129,140,248,.08);
  border: 1px solid var(--border2);
  color: var(--accent);
  transition: all .2s;
}
.soc-btn svg { width: 17px; height: 17px; }
.soc-btn:hover { background: var(--accent2); color: #fff; transform: translateY(-2px); border-color: var(--accent2); }

/* CTA buttons */
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .75rem 1.75rem; border-radius: var(--r-sm);
  background: var(--accent2); color: #fff;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .875rem;
  letter-spacing: .03em;
  transition: all .2s;
  box-shadow: 0 0 20px rgba(99,102,241,.3);
}
.btn-primary:hover { background: var(--accent3); transform: translateY(-2px); box-shadow: 0 0 30px rgba(99,102,241,.5); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .75rem 1.75rem; border-radius: var(--r-sm);
  border: 1px solid var(--border2);
  color: var(--accent); background: transparent;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .875rem;
  letter-spacing: .03em;
  transition: all .2s;
}
.btn-outline:hover { background: rgba(129,140,248,.1); transform: translateY(-2px); }
.w-full { width: 100%; justify-content: center; }

/* code card */
.hero-card { flex-shrink: 0; }
.code-card {
  width: 340px;
  background: linear-gradient(135deg, #1a1830, #0f0d1e);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(129,140,248,.05);
}
.code-bar {
  display: flex; align-items: center; gap: 6px;
  padding: .75rem 1rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--border);
}
.cb { width: 12px; height: 12px; border-radius: 50%; }
.cb.r { background: #ff5f57; }
.cb.y { background: #ffbd2e; }
.cb.g { background: #28c840; }
.cb-title { margin-left: auto; font-size: .7rem; color: var(--dim); font-family: 'Syne', sans-serif; }
.code-body {
  padding: 1.25rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: .78rem; line-height: 1.8;
  white-space: pre; overflow-x: auto;
}
.c-comment { color: #4a5568; }
.c-kw      { color: #c084fc; }
.c-var     { color: var(--accent); }
.c-key     { color: #fbbf24; }
.c-str     { color: var(--green); }
.c-bool    { color: #f87171; }

/* scroll hint */
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--dim); font-size: .65rem; letter-spacing: .12em;
  animation: bounce 2.5s ease-in-out infinite;
}
.scroll-hint svg { width: 18px; height: 18px; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ═══════════════ SECTIONS ═══════════════ */
section {
  padding: 100px 0;
  position: relative; z-index: 1;
}
.section-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
}
.section-label {
  font-family: 'Syne', sans-serif;
  font-size: .68rem; font-weight: 700;
  letter-spacing: .18em; color: var(--accent);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; margin-bottom: 3rem;
  color: var(--text);
}

/* ═══════════════ ABOUT ═══════════════ */
.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Photo */
.about-photo-wrap { display: flex; flex-direction: column; align-items: center; gap: .75rem; }
.photo-frame {
  position: relative;
  width: 240px; height: 280px;
  border-radius: 18px;
  overflow: hidden;
  border: 2px solid var(--border2);
  background: var(--surface);
  box-shadow: var(--shadow-lg), 0 0 0 6px rgba(129,140,248,.05);
}
.profile-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center top;
  display: block;
}
.photo-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .75rem; color: var(--dim);
  background: linear-gradient(135deg, var(--surface), var(--surface2));
}
.photo-placeholder svg { width: 56px; height: 56px; opacity: .5; }
.photo-placeholder span { font-size: .8rem; }

/* upload overlay */
.photo-upload-label {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 1rem;
  cursor: pointer;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%);
  opacity: 0; transition: opacity .25s;
}
.photo-frame:hover .photo-upload-label { opacity: 1; }
.photo-upload-label svg { width: 28px; height: 28px; color: #fff; }
.photo-tip { font-size: .7rem; color: var(--dim); text-align: center; }

/* about text */
.about-text p { color: var(--muted); font-size: .95rem; line-height: 1.8; }

.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin: 2rem 0;
}
.stat-box {
  display: flex; flex-direction: column; align-items: center;
  padding: 1.25rem .75rem; border-radius: var(--radius);
  background: rgba(129,140,248,.05);
  border: 1px solid var(--border);
  gap: .25rem;
}
.stat-num { font-family: 'Syne', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.stat-lbl { font-size: .7rem; color: var(--dim); letter-spacing: .06em; }

.skills-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  padding: .35rem .9rem; border-radius: 99px;
  background: rgba(129,140,248,.08);
  border: 1px solid var(--border2);
  font-size: .75rem; font-weight: 600;
  color: var(--accent);
  font-family: 'Syne', sans-serif;
}

/* ═══════════════ PORTFOLIO TABS ═══════════════ */
.tabs {
  display: flex; gap: .25rem;
  background: var(--surface); border-radius: var(--r-sm);
  padding: .3rem; margin-bottom: 2.5rem;
  width: fit-content;
}
.tab {
  padding: .55rem 1.4rem; border-radius: 6px;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .8rem;
  letter-spacing: .06em; color: var(--dim);
  transition: all .2s;
}
.tab.active { background: var(--accent2); color: #fff; }
.tab:not(.active):hover { color: var(--text); }

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.add-card-row { display: flex; justify-content: flex-end; margin-bottom: 1.5rem; }
.add-btn {
  padding: .55rem 1.25rem; border-radius: var(--r-sm);
  border: 1px dashed var(--border2);
  color: var(--accent); font-size: .8rem;
  font-family: 'Syne', sans-serif; font-weight: 700;
  transition: all .2s;
}
.add-btn:hover { background: rgba(129,140,248,.1); border-style: solid; }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

/* Project card */
.p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .25s;
}
.p-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.p-card-thumb {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.p-card-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}
.p-card-thumb .thumb-icon {
  font-size: 3rem; opacity: .4;
}
.p-card-body { padding: 1.25rem; }
.p-card-body h3 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1rem; margin-bottom: .5rem; color: var(--text);
}
.p-card-body p { font-size: .8rem; color: var(--dim); margin-bottom: .75rem; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag {
  font-size: .68rem; padding: .2rem .6rem; border-radius: 4px;
  font-weight: 600; font-family: 'Syne', sans-serif;
}

/* Certificate card */
.cert-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all .25s;
}
.cert-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.cert-img-wrap {
  height: 180px;
  overflow: hidden;
  background: var(--surface2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.cert-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
}
.cert-placeholder-icon {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  color: var(--dim);
}
.cert-placeholder-icon svg { width: 40px; height: 40px; }
.cert-placeholder-icon span { font-size: .7rem; }
.cert-body { padding: 1.1rem; }
.cert-body h3 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: .9rem; margin-bottom: .25rem; color: var(--text);
}
.cert-body p { font-size: .75rem; color: var(--dim); }

/* Tech grid */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}
.tech-chip {
  display: flex; flex-direction: column;
  align-items: center; gap: .75rem;
  padding: 1.5rem 1rem;
  background: rgba(129,140,248,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s;
}
.tech-chip:hover {
  background: rgba(129,140,248,.1);
  border-color: var(--border2);
  transform: translateY(-2px);
}
.tech-chip svg { width: 36px; height: 36px; }
.tech-chip span { font-size: .75rem; font-weight: 600; font-family: 'Syne', sans-serif; color: var(--muted); }

/* ═══════════════ CONTACT ═══════════════ */
.contact-inner .section-label,
.contact-inner .section-title { text-align: center; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem; align-items: start;
}
.contact-sub { color: var(--muted); font-size: .95rem; line-height: 1.7; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.c-item { display: flex; align-items: center; gap: 1rem; }
.c-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(129,140,248,.1);
  border-radius: 10px; color: var(--accent);
}
.c-icon svg { width: 18px; height: 18px; }
.c-label { font-size: .7rem; color: var(--dim); margin-bottom: .15rem; }
.c-val { font-size: .88rem; font-weight: 500; color: var(--text); }
.available { color: var(--green); }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .75rem; font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.field input, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: .8rem 1rem;
  color: var(--text); font-size: .9rem;
  outline: none; transition: border .2s;
  resize: none;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }

/* ═══════════════ FOOTER ═══════════════ */
footer {
  text-align: center; padding: 2rem;
  border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--dim);
  background: #050508;
}
footer strong { color: var(--muted); }

/* ═══════════════ MODAL ═══════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 20px;
  padding: 2rem;
  width: 100%; max-width: 560px;
  max-height: 85vh; overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform .3s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--surface2);
  color: var(--muted); transition: all .2s;
}
.modal-close:hover { background: rgba(129,140,248,.2); color: var(--text); }
.modal-close svg { width: 16px; height: 16px; }

/* Modal content helpers */
.modal-img {
  width: 100%; border-radius: 10px; margin-bottom: 1.25rem;
  object-fit: cover; max-height: 300px;
}
.modal-icon {
  width: 100%; height: 140px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px; margin-bottom: 1.25rem;
  font-size: 4rem;
}
.modal-h2 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: 1.35rem; color: var(--text); margin-bottom: .5rem;
}
.modal-sub { font-size: .8rem; color: var(--dim); margin-bottom: 1rem; }
.modal-desc { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.modal-links { display: flex; gap: .75rem; flex-wrap: wrap; }
.modal-cert-img {
  width: 100%; border-radius: 10px; margin-bottom: 1rem;
  border: 1px solid var(--border); object-fit: contain;
  max-height: 340px; background: var(--surface2);
}

/* Form inside modal */
.modal-form { display: flex; flex-direction: column; gap: 1rem; }
.modal-form label { font-size: .75rem; color: var(--muted); font-weight: 600; display: block; margin-bottom: .3rem; }
.modal-form input, .modal-form textarea {
  width: 100%;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: .7rem 1rem;
  color: var(--text); font-size: .875rem; outline: none;
  transition: border .2s; resize: none;
}
.modal-form input:focus, .modal-form textarea:focus { border-color: var(--accent); }
.modal-form .upload-zone {
  border: 2px dashed var(--border2);
  border-radius: var(--r-sm);
  padding: 1.5rem; text-align: center;
  color: var(--dim); font-size: .8rem; cursor: pointer;
  transition: all .2s;
}
.modal-form .upload-zone:hover { border-color: var(--accent); color: var(--accent); background: rgba(129,140,248,.05); }
.modal-form .preview-img {
  width: 100%; border-radius: 8px; margin-top: .5rem;
  max-height: 200px; object-fit: cover;
}
.modal-actions { display: flex; gap: .75rem; margin-top: .5rem; }
.btn-danger {
  padding: .65rem 1.25rem; border-radius: var(--r-sm);
  border: 1px solid rgba(248,113,113,.3); color: #f87171;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .8rem;
  transition: all .2s; background: none;
}
.btn-danger:hover { background: rgba(248,113,113,.1); }

/* ═══════════════ TOAST ═══════════════ */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 300; padding: .75rem 1.75rem;
  background: #059669; color: #fff;
  border-radius: 99px; font-size: .85rem; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: all .3s;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { background: #dc2626; }

/* ═══════════════ REVEAL ANIMATIONS ═══════════════ */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.r1 { transition-delay: .1s; }
.r2 { transition-delay: .2s; }
.r3 { transition-delay: .3s; }
.r4 { transition-delay: .4s; }
.r5 { transition-delay: .5s; }

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; gap: 2.5rem; padding-bottom: 2rem; }
  .code-card { width: 100%; max-width: 400px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-wrap { flex-direction: row; align-items: flex-start; }
  .photo-frame { width: 140px; height: 160px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 70px 0; }
  .hero { padding: 90px 0 50px; }
  .hero-h1 { font-size: 2rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .about-photo-wrap { flex-direction: column; align-items: center; }
  .photo-frame { width: 200px; height: 230px; }
  .tabs { width: 100%; }
  .tab { flex: 1; text-align: center; }
}

@media (max-width: 380px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: 1fr; }
}
