/* ============================================================
   AMRIT PORTFOLIO — PROFESSIONAL MINIMAL DESIGN SYSTEM
   ============================================================ */

/* 1. TOKENS */
:root {
  --bg:        #FAFAFA;
  --bg-2:      #F4F4F5;
  --bg-card:   #FFFFFF;
  --text-1:    #111111;
  --text-2:    #4B5563;
  --text-3:    #9CA3AF;
  --accent:    #2563EB;
  --accent-lt: #EFF6FF;
  --border:    #E5E7EB;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1);
  --radius:    10px;
  --radius-lg: 16px;
  --radius-full:9999px;
  --t-fast:    .18s cubic-bezier(.4,0,.2,1);
  --t-norm:    .3s  cubic-bezier(.4,0,.2,1);
  --max-w:     1160px;
  --nav-h:     68px;
  --font-sans: 'Plus Jakarta Sans', system-ui, sans-serif;
}

[data-theme="dark"] {
  --bg:        #0F0F10;
  --bg-2:      #18181B;
  --bg-card:   #1C1C1F;
  --text-1:    #F4F4F5;
  --text-2:    #A1A1AA;
  --text-3:    #52525B;
  --accent:    #3B82F6;
  --accent-lt: #1E3A5F;
  --border:    #27272A;
  --shadow-sm: 0 1px 4px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

/* 2. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-norm), color var(--t-norm);
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* 3. LAYOUT HELPERS */
.container { width: 90%; max-width: var(--max-w); margin: 0 auto; }
.section { padding: 5rem 0; }
.section-header { text-align: center; max-width: 600px; margin: 0 auto 3rem; }
.section-label {
  display: inline-block;
  font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .6rem;
}
.section-title {
  font-size: 2rem; font-weight: 800;
  letter-spacing: -.025em; color: var(--text-1);
  margin-bottom: .6rem; line-height: 1.2;
}
.section-sub { color: var(--text-2); font-size: 1rem; }

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 1001; width: 0%;
  transition: width .08s linear;
}

/* Reveal animation */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* 4. NAVIGATION */
.header {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--nav-h); z-index: 1000;
  background: rgba(250,250,250,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--t-norm), border-color var(--t-norm);
}
[data-theme="dark"] .header { background: rgba(15,15,16,.88); }
.header .container {
  display: flex; align-items: center;
  justify-content: space-between; height: 100%;
}
.logo {
  font-size: 1.15rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--text-1);
  display: flex; align-items: center; gap: .35rem;
}
.logo-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); display: inline-block;
}
.nav-menu { display: flex; align-items: center; gap: 1.75rem; list-style: none; ;}
.nav-link {
  font-size: .9rem; font-weight: 500;
  color: var(--text-2); position: relative;
  padding: .25rem 0; transition: color var(--t-fast);
}
.nav-link:hover, .nav-link.active { color: var(--text-1); }
.nav-link.active::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 100%; height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: .75rem; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-2); transition: all var(--t-fast);
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.mobile-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 38px; height: 38px; padding: 9px;
  border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-card); z-index: 1002;
}
.mobile-toggle span { width: 100%; height: 2px; background: var(--text-1); border-radius: 2px; transition: all var(--t-fast); }

/* 5. BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem; padding: .7rem 1.5rem;
  font-size: .9rem; font-weight: 600;
  border-radius: 8px; transition: all var(--t-fast);
  text-decoration: none; cursor: pointer;
}
.btn-primary {
  background: var(--accent); color: #fff;
  border: 1px solid var(--accent);
}
.btn-primary:hover { background: #1D4ED8; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn-outline {
  background: transparent; color: var(--text-1);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.btn-sm { padding: .5rem 1rem; font-size: .82rem; }

/* 6. HERO */
.hero {
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 3rem);
  padding-bottom: 5rem;
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem; align-items: center;
}
.hero-eyebrow {
  font-size: .9rem; font-weight: 600; color: var(--accent);
  margin-bottom: .85rem; letter-spacing: .01em;
}
.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800; line-height: 1.15;
  letter-spacing: -.03em; color: var(--text-1);
  margin-bottom: 1.1rem;
}
.hero-desc {
  font-size: 1.05rem; color: var(--text-2);
  line-height: 1.75; max-width: 500px; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Hero Photo */
.hero-photo-wrap {
  display: flex; justify-content: flex-end; align-items: center;
}
.hero-photo-frame {
  position: relative; width: 100%; max-width: 360px;
}
.hero-photo-frame img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: top;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  display: block;
}
.hero-photo-accent {
  position: absolute; inset: -6px; border-radius: 20px;
  border: 1px solid var(--accent); opacity: .18; pointer-events: none;
  z-index: -1;
}

/* 7. ABOUT */
.about-grid {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 4rem; align-items: center;
}
.about-photo-wrap {
  position: relative;
}
.about-photo-frame img {
  width: 100%; aspect-ratio: 1; object-fit: cover; object-position: top;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.about-text { font-size: 1rem; color: var(--text-2); line-height: 1.8; }
.about-text p + p { margin-top: 1rem; }
.about-tags { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.tag-chip {
  padding: .35rem .9rem; border-radius: 6px;
  background: var(--bg-2); border: 1px solid var(--border);
  font-size: .85rem; font-weight: 500; color: var(--text-2);
}
.about-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 1.75rem; }
.stat-card {
  padding: 1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  text-align: center;
}
.stat-card-label { font-size: .72rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.stat-card-val { font-size: .92rem; font-weight: 700; color: var(--text-1); margin-top: .2rem; }

/* 8. SKILLS */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px,1fr)); gap: 1.5rem; }
.skill-card {
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  box-shadow: var(--shadow-sm); transition: all var(--t-norm);
}
.skill-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D1D5DB; }
[data-theme="dark"] .skill-card:hover { border-color: #3F3F46; }
.skill-card-head { display: flex; align-items: center; gap: .85rem; margin-bottom: .75rem; }
.skill-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--accent-lt); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); flex-shrink: 0;
}
.skill-cat-title { font-size: 1rem; font-weight: 700; color: var(--text-1); }
.skill-cat-desc { font-size: .85rem; color: var(--text-3); margin-bottom: 1rem; line-height: 1.5; }
.skill-list { display: flex; flex-direction: column; gap: .4rem; }
.skill-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .35rem .6rem; border-radius: 6px; background: var(--bg-2);
  font-size: .85rem;
}
.skill-name { color: var(--text-1); font-weight: 500; }
.skill-level { font-size: .75rem; color: var(--text-3); }

/* 9. PROJECTS */
.projects-filter { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: .4rem 1.1rem; border-radius: var(--radius-full);
  border: 1px solid var(--border); font-size: .85rem; font-weight: 600;
  color: var(--text-2); background: var(--bg-card); transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px,1fr)); gap: 2rem; }
.project-card {
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  background: var(--bg-card); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: all var(--t-norm);
  display: flex; flex-direction: column;
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #D1D5DB; }
[data-theme="dark"] .project-card:hover { border-color: #3F3F46; }
.project-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.project-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-norm); }
.project-card:hover .project-thumb img { transform: scale(1.04); }
.project-cat-badge {
  position: absolute; top: .85rem; left: .85rem;
  padding: .25rem .7rem; border-radius: 5px;
  background: rgba(10,10,10,.7); color: #fff;
  font-size: .74rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.project-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.project-title { font-size: 1.15rem; font-weight: 700; color: var(--text-1); margin-bottom: .4rem; }
.project-desc { font-size: .9rem; color: var(--text-2); line-height: 1.6; margin-bottom: 1.1rem; flex: 1; }
.project-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.tech-tag {
  font-size: .74rem; padding: .2rem .55rem;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 5px; color: var(--text-2); font-weight: 500;
}
.project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.project-live-unavailable {
  display: inline-flex; align-items: center; gap: .38rem; min-height: 35px;
  padding: .5rem .78rem; border: 1px dashed var(--border); border-radius: 8px;
  color: var(--text-3); font-size: .78rem; font-weight: 700;
}
.project-live-unavailable svg { width: 14px; height: 14px; }

/* 10. TIMELINE */
.timeline { position: relative; max-width: 740px; margin: 0 auto; padding-left: 2rem; }
.timeline::before {
  content: ''; position: absolute; top: 0; bottom: 0; left: 7px;
  width: 1px; background: var(--border);
}
.timeline-item { position: relative; margin-bottom: 2.25rem; }
.timeline-dot {
  position: absolute; left: -2rem; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
  z-index: 1;
}
.timeline-card {
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  box-shadow: var(--shadow-sm); transition: all var(--t-norm);
}
.timeline-card:hover { border-color: #D1D5DB; box-shadow: var(--shadow-md); }
[data-theme="dark"] .timeline-card:hover { border-color: #3F3F46; }
.timeline-meta { display: flex; gap: .75rem; align-items: center; margin-bottom: .4rem; flex-wrap: wrap; }
.timeline-year {
  font-size: .78rem; font-weight: 700; color: var(--accent);
  padding: .15rem .6rem; border-radius: 4px; background: var(--accent-lt);
}
.timeline-org { font-size: .82rem; color: var(--text-3); font-weight: 500; }
.timeline-title { font-size: 1.05rem; font-weight: 700; color: var(--text-1); margin-bottom: .35rem; }
.timeline-desc { font-size: .88rem; color: var(--text-2); line-height: 1.6; }

/* 11. ACHIEVEMENTS */
.achievements-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px,1fr)); gap: 1.5rem; }
.achievement-card {
  padding: 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  box-shadow: var(--shadow-sm); transition: all var(--t-norm);
}
.achievement-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.achievement-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .74rem; font-weight: 700; color: var(--accent);
  background: var(--accent-lt); padding: .2rem .65rem;
  border-radius: 5px; margin-bottom: .85rem;
}
.achievement-title { font-size: 1rem; font-weight: 700; color: var(--text-1); margin-bottom: .3rem; }
.achievement-meta { font-size: .8rem; color: var(--text-3); margin-bottom: .65rem; }
.achievement-desc { font-size: .88rem; color: var(--text-2); line-height: 1.55; }

/* 12. EXPLORING */
.exploring-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 1.25rem; }
.exploring-card {
  padding: 1.25rem 1.5rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  transition: all var(--t-fast);
}
.exploring-card:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.exploring-badge {
  font-size: .72rem; font-weight: 700; color: var(--accent);
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .45rem;
}
.exploring-title { font-size: .95rem; font-weight: 700; color: var(--text-1); margin-bottom: .35rem; }
.exploring-desc { font-size: .83rem; color: var(--text-2); line-height: 1.5; }

/* 13. CONTACT */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 4rem; align-items: start; }
.contact-intro-title { font-size: 1.75rem; font-weight: 800; letter-spacing: -.025em; margin-bottom: 1rem; }
.contact-intro-desc { font-size: .95rem; color: var(--text-2); line-height: 1.75; margin-bottom: 1.75rem; }
.contact-links { display: flex; flex-direction: column; gap: .75rem; }
.contact-link-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .9rem 1.1rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card);
  transition: all var(--t-fast);
}
.contact-link-item:hover { border-color: var(--accent); transform: translateX(3px); }
.contact-link-icon {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--accent-lt); color: var(--accent);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-link-label { font-size: .74rem; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; }
.contact-link-val { font-size: .9rem; font-weight: 600; color: var(--text-1); }
.contact-form-wrap {
  padding: 2rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); background: var(--bg-card); box-shadow: var(--shadow-sm);
}
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: .85rem; font-weight: 600; color: var(--text-1); margin-bottom: .4rem; }
.form-input, .form-textarea {
  width: 100%; padding: .7rem .9rem; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg-2);
  font-family: inherit; font-size: .9rem; color: var(--text-1);
  transition: all var(--t-fast);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12); outline: none;
  background: var(--bg-card);
}
.form-textarea { resize: vertical; min-height: 120px; }

/* 14. MODAL */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem; opacity: 0; pointer-events: none;
  transition: opacity var(--t-norm);
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-box {
  width: 100%; max-width: 640px; max-height: 85vh; overflow-y: auto;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: var(--shadow-lg); position: relative;
  transform: scale(.96); transition: transform var(--t-norm);
}
.modal-overlay.active .modal-box { transform: scale(1); }
.modal-close {
  position: absolute; top: 1rem; right: 1rem; width: 32px; height: 32px;
  border-radius: 6px; background: var(--bg-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.modal-close:hover { background: var(--text-1); color: var(--bg); }

/* 15. TOAST */
.toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 3000; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  display: flex; align-items: center; gap: .75rem;
  padding: .85rem 1.25rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500;
  animation: toastIn .3s ease forwards;
}
@keyframes toastIn { from { opacity:0; transform:translateY(12px); } to { opacity:1; transform:translateY(0); } }

/* 16. FOOTER */
.footer {
  padding: 2.5rem 0; border-top: 1px solid var(--border);
  text-align: center; background: var(--bg-2);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 1.25rem; }
.footer-nav { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; justify-content: center; }
.footer-nav a { font-size: .85rem; color: var(--text-2); transition: color var(--t-fast); }
.footer-nav a:hover { color: var(--accent); }
.footer-copy { font-size: .82rem; color: var(--text-3); }

/* 17. BADGE PILL (modal reuse) */
.badge-pill {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem; border-radius: 6px;
  background: var(--accent-lt); color: var(--accent);
  font-size: .8rem; font-weight: 600;
}

/* 18. RESPONSIVE */
@media (max-width: 900px) {
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-photo-wrap { justify-content: center; }
  .hero-photo-frame { max-width: 280px; }
  .hero-photo-frame img { aspect-ratio: 1; border-radius: 50%; }
  .hero-photo-accent { border-radius: 50%; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed; top: 0; right: -100%; width: 75%; max-width: 300px;
    height: 100vh; background: var(--bg-card);
    border-left: 1px solid var(--border); flex-direction: column;
    justify-content: center; gap: 1.75rem; padding: 2rem;
    transition: right var(--t-norm); box-shadow: var(--shadow-lg);
    list-style: none;
  }
  .nav-menu.active { right: 0; }
  .mobile-toggle { display: flex; }
  .section { padding: 4rem 0; }
  .hero { padding-top: calc(var(--nav-h) + 1.5rem); padding-bottom: 3rem; }
  .hero-title { font-size: 2rem; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo-frame img { aspect-ratio: 1; max-width: 220px; margin: 0 auto; border-radius: 50%; }
  .timeline::before { left: 6px; }
  .timeline { padding-left: 1.75rem; }
  .timeline-dot { left: -1.75rem; }
}

@media (max-width: 500px) {
  .hero-title { font-size: 1.75rem; }
  .section-title { font-size: 1.6rem; }
  .projects-grid, .skills-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* 19. POLISHED PORTFOLIO LAYER */
:root {
  --bg: #f8fafc;
  --bg-2: #f1f5f9;
  --bg-card: #ffffff;
  --text-1: #172033;
  --text-2: #526076;
  --text-3: #8490a3;
  --accent: #5848e5;
  --accent-lt: #f0efff;
  --border: #e3e8f0;
  --shadow-sm: 0 2px 6px rgba(23, 32, 51, .04);
  --shadow-md: 0 14px 35px rgba(23, 32, 51, .08);
  --shadow-lg: 0 24px 60px rgba(23, 32, 51, .13);
  --radius: 14px;
  --radius-lg: 22px;
  --max-w: 1200px;
}

[data-theme="dark"] {
  --bg: #111522;
  --bg-2: #171d2c;
  --bg-card: #1b2233;
  --text-1: #f3f5fa;
  --text-2: #b2bdd0;
  --text-3: #778298;
  --accent: #998cff;
  --accent-lt: #26234b;
  --border: #2a3448;
}

html { scroll-padding-top: calc(var(--nav-h) + 1rem); }
body { letter-spacing: -.01em; }
.skip-link {
  position: fixed; top: .75rem; left: .75rem; z-index: 5000;
  padding: .55rem .8rem; border-radius: 8px; background: var(--text-1); color: var(--bg);
  font-size: .85rem; font-weight: 700; transform: translateY(-200%); transition: transform var(--t-fast);
}
.skip-link:focus { transform: translateY(0); }
.section { padding: 6.5rem 0; }
.section-header { max-width: 660px; margin-bottom: 3.5rem; }
.section-label { color: var(--accent); font-size: .72rem; letter-spacing: .14em; }
.section-title { font-size: clamp(2rem, 3.2vw, 2.65rem); letter-spacing: -.045em; }
.section-sub { max-width: 580px; margin-inline: auto; }

.header { background: rgba(248, 250, 252, .78); border-bottom-color: transparent; }
[data-theme="dark"] .header { background: rgba(17, 21, 34, .78); }
.header .container { max-width: 1240px; }
.logo { font-size: 1.25rem; }
.logo-dot { width: 8px; height: 8px; box-shadow: 0 0 0 4px var(--accent-lt); }
.nav-menu { gap: 1.55rem; }
.nav-link { font-size: .82rem; font-weight: 700; letter-spacing: .015em; }
.nav-link.active::after { bottom: -7px; height: 3px; }
.theme-toggle { border-radius: 10px; }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .hero::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(2px);
}
.hero::before { width: 42rem; height: 42rem; right: -18rem; top: -16rem; background: radial-gradient(circle, rgba(88,72,229,.16), transparent 68%); }
.hero::after { width: 30rem; height: 30rem; left: -18rem; bottom: -20rem; background: radial-gradient(circle, rgba(32,185,160,.11), transparent 70%); }
.hero-grid { gap: 5rem; }
.hero-eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--text-2); font-size: .78rem; font-weight: 700; letter-spacing: .045em; text-transform: uppercase; }
.hero-eyebrow span, .note-dot { width: .5rem; height: .5rem; flex: 0 0 auto; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.13); }
.hero-title { max-width: 700px; font-size: clamp(2.7rem, 5vw, 4.55rem); line-height: 1.05; letter-spacing: -.065em; margin-bottom: 1.35rem; }
.hero-title em { color: var(--accent); font-style: normal; }
.hero-desc { max-width: 550px; font-size: 1.08rem; line-height: 1.8; }
.btn { min-height: 46px; padding: .72rem 1.2rem; border-radius: 10px; font-size: .84rem; font-weight: 700; }
.btn-primary { box-shadow: 0 10px 22px rgba(88,72,229,.2); }
.btn-primary:hover { background: #4637cf; box-shadow: 0 14px 28px rgba(88,72,229,.3); }
.btn-outline { background: rgba(255,255,255,.55); }
[data-theme="dark"] .btn-outline { background: rgba(255,255,255,.03); }
.hero-proof { display: flex; gap: 1.15rem; flex-wrap: wrap; margin-top: 1.6rem; color: var(--text-2); font-size: .78rem; font-weight: 650; }
.hero-proof span { display: inline-flex; align-items: center; gap: .38rem; }
.hero-proof svg { color: var(--accent); width: 15px; height: 15px; }
.hero-photo-frame { max-width: 390px; padding: .75rem; background: rgba(255,255,255,.65); border: 1px solid rgba(255,255,255,.9); border-radius: 28px; box-shadow: 0 28px 60px rgba(33,40,66,.16); }
[data-theme="dark"] .hero-photo-frame { background: rgba(255,255,255,.04); border-color: var(--border); }
.hero-photo-frame img { border: 0; border-radius: 20px; box-shadow: none; }
.hero-photo-accent { inset: .25rem -.5rem -.5rem .5rem; border: 0; border-radius: 28px; background: var(--accent); opacity: .13; }
.hero-photo-note { position: absolute; bottom: 1.55rem; left: -2rem; display: flex; align-items: center; gap: .55rem; padding: .65rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.92); box-shadow: var(--shadow-md); color: var(--text-1); font-size: .72rem; font-weight: 700; white-space: nowrap; }
[data-theme="dark"] .hero-photo-note { background: rgba(27,34,51,.96); }
.note-dot { width: .4rem; height: .4rem; }

.tag-chip { border-radius: var(--radius-full); background: var(--bg-card); padding: .42rem .8rem; }
.stat-card { padding: 1.1rem .85rem; border-radius: 12px; box-shadow: var(--shadow-sm); }
.stat-card-label { font-weight: 700; }
.stat-card-val { font-size: .82rem; line-height: 1.4; }
.skill-card, .achievement-card { border-radius: var(--radius-lg); }
.skill-card { padding: 1.65rem; }
.skill-card:hover, .project-card:hover { border-color: rgba(88,72,229,.3); }
.skill-icon { border-radius: 11px; border-color: transparent; }
.skill-row { padding: .43rem .65rem; border-radius: 8px; }
.skill-level { color: var(--accent); font-weight: 700; }
.projects-filter { margin-bottom: 3rem; }
.filter-btn { border-radius: 9px; padding: .5rem .95rem; }
.projects-grid { gap: 1.65rem; }
.project-card { border-radius: var(--radius-lg); }
.project-thumb { aspect-ratio: 16 / 10; }
.project-cat-badge { border-radius: var(--radius-full); background: rgba(23,32,51,.82); top: 1rem; left: 1rem; }
.project-body { padding: 1.6rem; }
.project-title { font-size: 1.25rem; letter-spacing: -.03em; }
.tech-tag { border-radius: var(--radius-full); padding: .28rem .6rem; }
.timeline { max-width: 800px; }
.timeline-card { border-radius: var(--radius-lg); padding: 1.45rem 1.55rem; }
.timeline-year { border-radius: var(--radius-full); }
.achievement-badge, .exploring-badge { color: var(--accent); }
.exploring-card { border-radius: var(--radius-lg); padding: 1.45rem; }
.contact-grid { gap: 5rem; }
.contact-intro-title { font-size: clamp(2rem, 3.3vw, 2.8rem); line-height: 1.12; letter-spacing: -.05em; }
.contact-form-wrap { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.form-input, .form-textarea { background: var(--bg); border-radius: 10px; }
.footer { padding: 3rem 0; }

@media (max-width: 900px) {
  .section { padding: 5rem 0; }
  .hero-grid, .contact-grid { gap: 3rem; }
  .hero-photo-note { left: 0; }
}
@media (max-width: 768px) {
  .nav-menu { background: var(--bg-card); }
  .hero { min-height: auto; }
  .hero-title { font-size: clamp(2.6rem, 11vw, 3.5rem); }
  .hero-photo-frame { max-width: 300px; }
  .hero-photo-frame img { border-radius: 18px; }
  .hero-photo-note { bottom: 1.25rem; left: -1.25rem; }
}
@media (max-width: 500px) {
  .section { padding: 4.3rem 0; }
  .hero-proof { gap: .7rem; }
  .hero-photo-note { left: 0; font-size: .65rem; }
  .about-stats { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* 20. STUDENT DEVELOPER CONTENT */
:root { --font-sans: 'Manrope', system-ui, sans-serif; }

.hero-status-card {
  align-self: center; padding: 1.75rem; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--bg-card); box-shadow: var(--shadow-md);
}
.status-card-label {
  margin-bottom: .65rem; color: var(--accent); font-size: .72rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero-status-card h2 {
  max-width: 300px; font-size: 1.35rem; line-height: 1.35; letter-spacing: -.035em;
}
.status-list { display: grid; gap: .75rem; margin: 1.4rem 0; list-style: none; }
.status-list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--text-2); font-size: .84rem; line-height: 1.5; }
.status-list svg { width: 16px; height: 16px; margin-top: .1rem; flex: 0 0 auto; color: var(--accent); }
.status-card-footer { padding-top: 1rem; border-top: 1px solid var(--border); color: var(--text-3); font-size: .78rem; font-weight: 700; }

.skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.skill-card { height: 100%; }
.skill-card-head { margin-bottom: 1rem; }
.skill-cat-desc { min-height: 3.9em; color: var(--text-2); }
.skill-list { gap: .7rem; }
.skill-item { display: grid; gap: .35rem; }
.skill-row { min-height: 34px; padding: .35rem .55rem 0; background: transparent; }
.skill-name { font-size: .84rem; }
.skill-level { color: var(--accent); text-align: right; }
.skill-progress { height: 6px; overflow: hidden; border-radius: var(--radius-full); background: var(--bg-2); }
.skill-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #968bff); transition: width .55s ease; }
.skill-item-featured { padding: .58rem .65rem .65rem; border: 1px solid rgba(79,70,229,.18); border-radius: 11px; background: linear-gradient(120deg, var(--accent-lt), transparent); }
.skill-item-featured .skill-row { padding: 0; }
.skill-item-featured .skill-progress { height: 7px; background: rgba(79,70,229,.12); }

.projects-more { display: flex; justify-content: center; margin-top: 2.5rem; }
.projects-more[hidden] { display: none; }
.projects-more .btn { min-width: 170px; }

.project-visual {
  width: 100%; height: 100%; padding: 1.3rem; background: #edf1ff; color: #23224c;
}
[data-theme="dark"] .project-visual { background: #212441; color: #eff0ff; }
.project-visual .visual-window {
  height: 100%; padding: .85rem; border: 1px solid rgba(68, 69, 130, .16); border-radius: 10px;
  background: rgba(255,255,255,.82); box-shadow: 0 10px 22px rgba(61,62,111,.09);
}
[data-theme="dark"] .project-visual .visual-window { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.visual-window-bar { display: flex; gap: .28rem; padding-bottom: .7rem; border-bottom: 1px solid rgba(68, 69, 130, .12); }
.visual-window-bar span { width: .42rem; height: .42rem; border-radius: 50%; background: #c6c9df; }
.visual-window-bar span:first-child { background: #8b7ef5; }
.visual-gpa-row, .visual-gpa-total {
  display: flex; justify-content: space-between; align-items: center; padding: .55rem 0;
  border-bottom: 1px solid rgba(68,69,130,.1); font-size: .72rem;
}
.visual-gpa-row strong { min-width: 1.6rem; padding: .12rem .25rem; border-radius: 4px; background: #e4e2ff; color: #4a3ed2; text-align: center; font-size: .65rem; }
.visual-gpa-total { margin-top: .4rem; padding: .65rem .7rem; border: 0; border-radius: 7px; background: #5c4fe8; color: #fff; font-weight: 700; }
.visual-gpa-total strong { font-size: 1rem; }
.project-visual-games { display: grid; grid-template-rows: auto 1fr auto; gap: .8rem; background: #eef7f5; color: #1c443e; }
[data-theme="dark"] .project-visual-games { background: #17332f; color: #e1fff8; }
.visual-game-top, .visual-game-actions { display: flex; align-items: center; justify-content: space-between; font-size: .66rem; font-weight: 800; letter-spacing: .06em; }
.visual-game-top strong { color: #168573; }
.visual-game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .38rem; align-content: center; max-width: 155px; width: 100%; margin: auto; }
.visual-game-grid span { aspect-ratio: 1; border-radius: 7px; background: #c7e7dd; }
.visual-game-grid span:nth-child(1), .visual-game-grid span:nth-child(5), .visual-game-grid span:nth-child(9) { background: #36ad98; }
.visual-game-grid span:nth-child(3), .visual-game-grid span:nth-child(7) { background: #f1c76c; }
.visual-game-actions span { padding: .35rem .65rem; border-radius: 6px; background: rgba(255,255,255,.7); }
[data-theme="dark"] .visual-game-actions span { background: rgba(255,255,255,.1); }
.visual-planner-title { margin: .9rem 0 .65rem; font-size: .78rem; font-weight: 800; }
.visual-task { display: flex; align-items: center; gap: .5rem; padding: .45rem 0; border-top: 1px solid rgba(68,69,130,.1); color: var(--text-2); font-size: .68rem; }
.visual-task i { width: .78rem; height: .78rem; border: 1px solid #a4a9c9; border-radius: 3px; }
.visual-task.done { color: #75809a; text-decoration: line-through; }
.visual-task.done i { border-color: #5c4fe8; background: #5c4fe8; box-shadow: inset 0 0 0 2px rgba(255,255,255,.8); }

@media (max-width: 1000px) {
  .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero-status-card { max-width: 430px; width: 100%; margin: 0 auto; }
}
@media (max-width: 600px) {
  .skills-grid { grid-template-columns: 1fr; }
  .skill-cat-desc { min-height: auto; }
}

/* 21. HERO AND SOCIAL FINISHING */
.hero-grid-single { grid-template-columns: minmax(0, 780px); }
.hero-grid-single .hero-content { position: relative; max-width: 780px; }
.hero::before { animation: ambient-drift 11s ease-in-out infinite alternate; }
.hero::after { animation: ambient-drift 14s ease-in-out infinite alternate-reverse; }
.hero-content.visible { animation: hero-enter .7s cubic-bezier(.2,.7,.2,1) both; }
.hero-title { max-width: 780px; }
.hero-title em {
  position: relative; display: inline; color: var(--accent);
  text-decoration: underline; text-decoration-color: rgba(88,72,229,.2);
  text-decoration-thickness: .14em; text-underline-offset: .09em;
}
.hero-proof { margin-top: 1.8rem; }
.hero-proof span {
  padding: .48rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-full);
  background: rgba(255,255,255,.48);
}
[data-theme="dark"] .hero-proof span { background: rgba(255,255,255,.035); }
.hero-actions .btn-primary svg { transition: transform var(--t-fast); }
.hero-actions .btn-primary:hover svg { transform: translate(2px, -2px); }

.contact-social-wrap { margin-top: 1.6rem; }
.contact-social-label {
  margin-bottom: .65rem; color: var(--text-3); font-size: .73rem; font-weight: 800;
  letter-spacing: .09em; text-transform: uppercase;
}
.contact-socials { display: flex; flex-wrap: wrap; gap: .65rem; }
.contact-social-link {
  display: inline-flex; align-items: center; gap: .52rem; min-height: 42px; padding: 0 .82rem;
  border: 1px solid var(--border); border-radius: var(--radius-full); background: var(--bg-card); color: var(--text-2);
  box-shadow: var(--shadow-sm); font-size: .8rem; font-weight: 700;
  transition: transform var(--t-fast), color var(--t-fast), border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.contact-social-link i { font-size: 1.05rem; }
.contact-social-link[data-platform="github"] i { color: #181717; }
.contact-social-link[data-platform="facebook"] i { color: #1877f2; }
.contact-social-link[data-platform="instagram"] i { color: #d62976; }
.contact-social-link[data-platform="linkedin"] i { color: #0a66c2; }
.contact-social-link:hover { transform: translateY(-3px); border-color: currentColor; box-shadow: var(--shadow-md); }
.contact-social-link:hover i { color: inherit; }
.contact-social-link[data-platform="github"]:hover { background: #24292f; color: #fff; }
.contact-social-link[data-platform="facebook"]:hover { background: #1877f2; color: #fff; }
.contact-social-link[data-platform="instagram"]:hover { background: #d94678; color: #fff; }
.contact-social-link[data-platform="linkedin"]:hover { background: #0a66c2; color: #fff; }
.contact-social-link.contact-social-pending { cursor: default; opacity: .72; }
.contact-social-link.contact-social-pending:hover {
  transform: none; border-color: var(--border); background: var(--bg-card); color: var(--text-2); box-shadow: var(--shadow-sm);
}
.contact-social-link.contact-social-pending[data-platform="github"]:hover i { color: #181717; }
.contact-social-link.contact-social-pending[data-platform="facebook"]:hover i { color: #1877f2; }
.contact-social-link.contact-social-pending[data-platform="instagram"]:hover i { color: #d62976; }
.contact-social-link.contact-social-pending[data-platform="linkedin"]:hover i { color: #0a66c2; }
[data-theme="dark"] .contact-social-link[data-platform="github"] i { color: #f0f6fc; }

@keyframes ambient-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2.5rem, 1.5rem, 0) scale(1.08); }
}
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .hero-grid-single { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .hero-proof span { width: 100%; }
}

/* 22. SUBTLE SECTION MOTION */
#about, #projects, #contact { position: relative; overflow: hidden; }
#about::before, #projects::before, #contact::before {
  content: ''; position: absolute; width: 22rem; height: 22rem; border-radius: 50%;
  pointer-events: none; z-index: 0; filter: blur(1px); opacity: .55;
  background: radial-gradient(circle, rgba(88,72,229,.08), transparent 68%);
  animation: section-glow 15s ease-in-out infinite alternate;
}
#about::before { top: -12rem; left: -10rem; }
#projects::before { right: -12rem; bottom: -14rem; }
#contact::before { top: -13rem; right: -9rem; }
#about .container, #projects .container, #contact .container { position: relative; z-index: 1; }

.section-header.visible .section-label { position: relative; }
.section-header.visible .section-label::after {
  content: ''; position: absolute; left: 50%; bottom: -.3rem; width: 24px; height: 2px;
  border-radius: var(--radius-full); background: var(--accent); transform: translateX(-50%) scaleX(0);
  animation: label-line .45s .2s ease-out forwards;
}
.section-header.visible .section-title { animation: title-settle .5s .08s ease-out both; }

.skills-grid .skill-card:nth-child(2), .projects-grid .project-card:nth-child(2), .timeline-item:nth-child(2) { transition-delay: .08s; }
.skills-grid .skill-card:nth-child(3), .projects-grid .project-card:nth-child(3), .timeline-item:nth-child(3) { transition-delay: .16s; }
.projects-grid .project-card:nth-child(4) { transition-delay: .08s; }
.projects-grid .project-card:nth-child(5) { transition-delay: .16s; }
.projects-grid .project-card:nth-child(6) { transition-delay: .24s; }

.skill-card, .project-card, .timeline-card, .contact-form-wrap, .contact-link-item {
  position: relative; isolation: isolate; overflow: hidden;
}
.skill-card::after, .project-card::after, .timeline-card::after, .contact-form-wrap::after {
  content: ''; position: absolute; inset: 0; z-index: 2; opacity: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.55) 47%, transparent 74%);
  transform: translateX(-115%); transition: opacity .25s ease, transform .65s ease;
}
[data-theme="dark"] .skill-card::after, [data-theme="dark"] .project-card::after,
[data-theme="dark"] .timeline-card::after, [data-theme="dark"] .contact-form-wrap::after {
  background: linear-gradient(120deg, transparent 20%, rgba(255,255,255,.08) 47%, transparent 74%);
}
.skill-card:hover::after, .project-card:hover::after, .timeline-card:hover::after, .contact-form-wrap:hover::after {
  opacity: 1; transform: translateX(115%);
}
.about-photo-frame { overflow: hidden; border-radius: var(--radius-lg); }
.about-photo-frame img { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.about-photo-frame:hover img { transform: scale(1.035); }
.tech-tag { transition: color var(--t-fast), border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.tech-tag:hover { color: var(--accent); border-color: rgba(88,72,229,.3); background: var(--accent-lt); transform: translateY(-1px); }
.timeline-dot { animation: timeline-pulse 2.8s ease-in-out infinite; }
.timeline-card:hover { transform: translateX(5px); }
.contact-link-item:hover .contact-link-icon { animation: icon-pop .35s ease; }

@keyframes section-glow {
  from { transform: translate3d(0, 0, 0) scale(.92); }
  to { transform: translate3d(2.5rem, 1.4rem, 0) scale(1.08); }
}
@keyframes label-line { to { transform: translateX(-50%) scaleX(1); } }
@keyframes title-settle {
  from { opacity: .55; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes timeline-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88,72,229,0); }
  50% { box-shadow: 0 0 0 6px rgba(88,72,229,.1); }
}
@keyframes icon-pop {
  50% { transform: scale(1.12) rotate(-5deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, #about::before, #projects::before, #contact::before,
  .timeline-dot, .section-header.visible .section-title, .section-header.visible .section-label::after {
    animation: none !important;
  }
}

/* 23. PORTFOLIO REFINEMENT */
:root {
  --bg: #f8fafc;
  --bg-2: #f3f6fb;
  --bg-card: #ffffff;
  --text-1: #162033;
  --text-2: #536178;
  --text-3: #8692a6;
  --accent: #4f46e5;
  --accent-lt: #eeedff;
  --border: #e4e9f2;
  --shadow-sm: 0 2px 5px rgba(20, 32, 56, .035), 0 10px 24px rgba(20, 32, 56, .035);
  --shadow-md: 0 16px 35px rgba(20, 32, 56, .085);
  --shadow-lg: 0 28px 70px rgba(20, 32, 56, .13);
  --radius: 12px;
  --radius-lg: 20px;
  --max-w: 1180px;
}

[data-theme="dark"] {
  --bg: #101626;
  --bg-2: #151d2f;
  --bg-card: #192338;
  --text-1: #f3f6fc;
  --text-2: #b4bfd1;
  --text-3: #7f8ba1;
  --accent: #8b85ff;
  --accent-lt: #282750;
  --border: #2a3650;
}

body { background: var(--bg); letter-spacing: -.012em; }
.container { width: min(91.5%, var(--max-w)); }
.section { padding: 6.75rem 0; }
.section-header { margin-bottom: 3.25rem; }
.section-label { font-size: .7rem; letter-spacing: .15em; }
.section-title { font-size: clamp(2rem, 3.3vw, 2.7rem); letter-spacing: -.055em; }
.section-sub { font-size: 1rem; line-height: 1.7; }

.header { height: 74px; background: rgba(248,250,252,.72); border-color: transparent; }
[data-theme="dark"] .header { background: rgba(16,22,38,.74); }
.header.scrolled { border-bottom-color: var(--border); }
.logo { font-size: 1.22rem; letter-spacing: -.055em; }
.logo-dot { width: 7px; height: 7px; box-shadow: 0 0 0 4px var(--accent-lt); }
.nav-menu { gap: 1.45rem; }
.nav-link { font-size: .8rem; font-weight: 700; letter-spacing: .01em; }
.nav-link.active::after { bottom: -8px; height: 2px; }
.nav-actions { gap: .55rem; }
.nav-contact {
  display: inline-flex; align-items: center; gap: .35rem; padding: .58rem .8rem;
  border-radius: 8px; color: var(--text-1); font-size: .79rem; font-weight: 800;
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.nav-contact svg { width: 14px; height: 14px; color: var(--accent); }
.nav-contact:hover { color: var(--accent); background: var(--accent-lt); transform: translateY(-1px); }
.theme-toggle { width: 36px; height: 36px; border-radius: 9px; background: transparent; }

.hero { min-height: 780px; padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 5.75rem; }
.hero::before { width: 42rem; height: 42rem; top: -19rem; right: -11rem; background: radial-gradient(circle, rgba(79,70,229,.16), rgba(79,70,229,0) 68%); }
.hero::after { width: 34rem; height: 34rem; bottom: -23rem; left: -17rem; background: radial-gradient(circle, rgba(14,165,233,.10), rgba(14,165,233,0) 68%); }
.hero-grid.hero-grid-single { grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr); gap: clamp(3rem, 7vw, 7rem); max-width: none; align-items: center; }
.hero-grid-single .hero-content { max-width: 700px; }
.hero-eyebrow { margin-bottom: 1rem; color: var(--text-2); }
.hero-title { max-width: 710px; font-size: clamp(3rem, 5.3vw, 4.7rem); line-height: 1.04; letter-spacing: -.07em; margin-bottom: 1.5rem; }
.hero-title em { color: var(--accent); text-decoration: none; }
.hero-desc { max-width: 560px; font-size: 1.08rem; line-height: 1.8; margin-bottom: 2.2rem; }
.hero-actions { gap: .75rem; }
.btn { min-height: 47px; padding: .73rem 1.15rem; border-radius: 9px; font-size: .84rem; font-weight: 800; }
.btn-primary { background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 20px rgba(79,70,229,.20); }
.btn-primary:hover { background: #4338ca; box-shadow: 0 15px 28px rgba(79,70,229,.28); transform: translateY(-2px); }
.btn-outline { background: rgba(255,255,255,.55); }
[data-theme="dark"] .btn-outline { background: rgba(255,255,255,.025); }
.hero-proof { gap: .65rem; margin-top: 1.65rem; }
.hero-proof span { padding: .43rem .68rem; background: rgba(255,255,255,.52); border-radius: var(--radius-full); }

.hero-panel {
  position: relative; overflow: hidden; padding: 1.55rem; border: 1px solid rgba(255,255,255,.82);
  border-radius: var(--radius-lg); background: rgba(255,255,255,.77); box-shadow: 0 24px 60px rgba(32,43,72,.12);
  backdrop-filter: blur(18px);
}
.hero-panel::after { content: ''; position: absolute; width: 11rem; height: 11rem; right: -5rem; bottom: -6rem; border-radius: 50%; background: var(--accent-lt); opacity: .75; }
[data-theme="dark"] .hero-panel { background: rgba(25,35,56,.76); border-color: rgba(255,255,255,.08); }
.hero-panel-heading { display: flex; align-items: center; gap: .55rem; color: var(--text-2); font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.availability-dot { width: .46rem; height: .46rem; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34,197,94,.14); }
.hero-panel-title { position: relative; z-index: 1; max-width: 17rem; margin: .95rem 0 1.35rem; color: var(--text-1); font-size: 1.28rem; font-weight: 800; line-height: 1.35; letter-spacing: -.035em; }
.hero-panel-list { position: relative; z-index: 1; display: grid; gap: .15rem; padding: .78rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.hero-panel-item { display: flex; align-items: center; gap: .65rem; padding: .52rem 0; color: var(--text-2); font-size: .82rem; font-weight: 650; }
.hero-panel-item svg { width: 16px; height: 16px; color: var(--accent); }
.hero-panel-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: .45rem; margin-top: 1rem; color: var(--text-3); font-size: .72rem; font-weight: 700; }
.hero-panel-footer span { width: 3px; height: 3px; border-radius: 50%; background: var(--text-3); }

.tag-chip { padding: .42rem .78rem; border-radius: var(--radius-full); background: var(--bg-card); }
.stat-card { border-radius: 13px; box-shadow: var(--shadow-sm); }
.skill-card, .project-card, .timeline-card, .contact-form-wrap { border-radius: var(--radius-lg); }
.skill-card { padding: 1.65rem; }
.skill-card:hover, .project-card:hover { border-color: rgba(79,70,229,.28); transform: translateY(-5px); }
.skill-icon { border: 0; border-radius: 11px; }
.skill-level, .timeline-year { color: var(--accent); }
.skill-progress span { background: linear-gradient(90deg, var(--accent), #7c74ff); }
.projects-filter { gap: .5rem; margin-bottom: 2.75rem; }
.filter-btn { padding: .48rem .88rem; border-radius: 8px; }
.projects-grid { gap: 1.5rem; }
.project-thumb { aspect-ratio: 16 / 10; }
.project-body { padding: 1.5rem; }
.project-cat-badge { top: 1rem; left: 1rem; border-radius: var(--radius-full); }
.project-title { letter-spacing: -.04em; }
.tech-tag { border-radius: var(--radius-full); }
.timeline-card { padding: 1.45rem 1.55rem; }
.contact-grid { gap: clamp(2.5rem, 7vw, 6rem); }
.contact-form-wrap { padding: 2rem; box-shadow: var(--shadow-md); }
.form-input, .form-textarea { background: var(--bg); border-radius: 9px; }

@media (max-width: 900px) {
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 3.5rem); }
  .hero-grid.hero-grid-single { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-panel { width: min(100%, 540px); }
}
@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .header { height: 68px; }
  .nav-contact { display: none; }
  .nav-menu { top: 0; }
  .hero { padding-top: calc(var(--nav-h) + 2.7rem); padding-bottom: 4.4rem; }
  .hero-title { font-size: clamp(2.65rem, 11vw, 3.7rem); }
  .hero-desc { font-size: 1rem; }
}
@media (max-width: 500px) {
  .container { width: min(92%, var(--max-w)); }
  .section { padding: 4.25rem 0; }
  .section-header { margin-bottom: 2.4rem; }
  .hero { padding-bottom: 3.8rem; }
  .hero-title { font-size: clamp(2.45rem, 12vw, 3.1rem); }
  .hero-actions .btn { width: 100%; }
  .hero-proof span { width: 100%; }
  .hero-panel { padding: 1.3rem; }
  .about-stats { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.3rem; }
}

/* 24. NAVIGATION FINISHING */
:root { --nav-h: 74px; }
.header { transition: background var(--t-norm), border-color var(--t-norm), box-shadow var(--t-norm); }
.header.scrolled { box-shadow: 0 10px 32px rgba(20, 32, 56, .07); }
.header .container { animation: nav-enter .55s cubic-bezier(.2,.7,.2,1) both; }
.nav-menu {
  gap: .15rem; padding: .28rem; border: 1px solid rgba(228,233,242,.72);
  border-radius: var(--radius-full); background: rgba(255,255,255,.4);
  box-shadow: 0 4px 14px rgba(20,32,56,.025);
}
[data-theme="dark"] .nav-menu { border-color: rgba(255,255,255,.07); background: rgba(255,255,255,.025); }
.nav-link {
  display: inline-flex; align-items: center; min-height: 34px; padding: .42rem .72rem;
  border-radius: var(--radius-full); color: var(--text-2);
  transition: color var(--t-fast), background var(--t-fast), transform var(--t-fast);
}
.nav-link:hover { color: var(--text-1); background: var(--bg-card); transform: translateY(-1px); }
.nav-link.active { color: var(--accent); background: var(--accent-lt); }
.nav-link.active::after { display: none; }
.nav-contact { border: 1px solid transparent; }
.nav-contact:hover { border-color: rgba(79,70,229,.14); }
.theme-toggle { transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.theme-toggle:hover { background: var(--accent-lt); transform: rotate(8deg); }
.nav-scrim { display: none; }

@keyframes nav-enter {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .nav-menu {
    top: 10px; right: -100%; width: min(82vw, 340px); height: calc(100dvh - 20px);
    align-items: stretch; justify-content: flex-start; gap: .35rem; padding: 5.5rem 1rem 1rem;
    border: 1px solid var(--border); border-radius: 18px 0 0 18px;
    background: rgba(255,255,255,.94); box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px); transition: right var(--t-norm);
  }
  [data-theme="dark"] .nav-menu { background: rgba(25,35,56,.94); }
  .nav-menu.active { right: 0; }
  .nav-link { width: 100%; min-height: 46px; padding: .7rem .85rem; border-radius: 10px; font-size: .9rem; }
  .nav-link:hover { transform: none; }
  .nav-scrim { position: fixed; inset: 0; z-index: 999; display: block; pointer-events: none; opacity: 0; background: rgba(16, 22, 38, .42); backdrop-filter: blur(2px); transition: opacity var(--t-norm); }
  .nav-scrim.active { pointer-events: auto; opacity: 1; }
  body.menu-open { overflow: hidden; }
  .mobile-toggle { position: relative; transition: background var(--t-fast), border-color var(--t-fast); }
  .mobile-toggle.active { border-color: rgba(79,70,229,.2); background: var(--accent-lt); }
  .mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(.4); }
  .mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-menu.active .nav-link { animation: mobile-nav-item .35s ease both; }
  .nav-menu.active li:nth-child(2) .nav-link { animation-delay: .05s; }
  .nav-menu.active li:nth-child(3) .nav-link { animation-delay: .1s; }
  .nav-menu.active li:nth-child(4) .nav-link { animation-delay: .15s; }
}

@keyframes mobile-nav-item {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .header .container, .nav-menu.active .nav-link { animation: none !important; }
}
