/* Pratheesh PC — Layout v4: sidebar navigation + bento hero */

:root {
  --font-sans: "Figtree", system-ui, -apple-system, sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --dock-w: 288px;
  --nav-h: 64px;
  --bg: #f4f2ed;
  --bg-elevated: #ffffff;
  --text: #14161a;
  --text-muted: #525860;
  --text-soft: #6b7280;
  --accent: #b45309;
  --accent-hover: #c2410c;
  --accent-muted: rgba(180, 83, 9, 0.14);
  --ink: #111418;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --border: rgba(20, 22, 26, 0.1);
  --border-strong: rgba(20, 22, 26, 0.16);
  --shadow-sm: 0 1px 3px rgba(17, 20, 24, 0.06);
  --shadow-md: 0 14px 40px rgba(17, 20, 24, 0.08);
  --shadow-lg: 0 28px 64px rgba(17, 20, 24, 0.12);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  --success: #166534;
  --warning: #b45309;
  --error: #b91c1c;
  --primary: #b45309;
  --primary-dark: #9a3412;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, #b45309 0%, #7c2d12 100%);
  --gradient-nav: linear-gradient(180deg, #15181d 0%, #0f1114 100%);
  --gray-50: #fafaf9;
  --gray-100: #f4f4f5;
  --gray-200: #e4e4e7;
  --gray-600: #52525b;
  --gray-800: #27272a;
  --gray-900: #18181b;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg: #141618;
  --bg-elevated: #1b1e22;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --text-soft: #71717a;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.5);
  --accent-muted: rgba(251, 146, 60, 0.18);
  --gradient-nav: linear-gradient(180deg, #0c0d10 0%, #08090b 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--font-sans);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }

.skip-link {
  position: absolute; top: -120px; left: 1rem; z-index: 100000;
  padding: 0.6rem 1rem; background: var(--accent); color: var(--white);
  font-weight: 600; font-size: 0.85rem; border-radius: var(--radius-sm);
  text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0.75rem; outline: 2px solid var(--white); outline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:focus:not(:focus-visible), a:focus:not(:focus-visible) { outline: none; }

main#main { display: block; min-height: 100vh; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 clamp(1rem, 3vw, 1.75rem); }

.animate-section { opacity: 0; transform: translateY(32px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate-section.animate-in { opacity: 1; transform: none; }

/* —— Sidebar navigation (desktop) ———— */
.modern-nav.layout-nav {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: var(--dock-w);
  height: 100vh;
  background: var(--gradient-nav);
  color: var(--ink-soft);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow var(--transition);
}
.modern-nav.scrolled { box-shadow: 4px 0 24px rgba(0, 0, 0, 0.2); }

.nav-container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  height: 100%;
  padding: 1.5rem 1.15rem 1.25rem;
  gap: 1.35rem;
  max-width: none;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.brand-logo {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-gradient { font-weight: 800; font-size: 1rem; color: var(--white); font-family: var(--font-mono); }
.brand-meta { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.brand-text { font-weight: 700; font-size: 0.98rem; color: #fafafa; letter-spacing: -0.02em; }
.brand-tagline { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.45); font-weight: 600; }

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.nav-item {
  display: block;
  padding: 0.58rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.62);
  border-left: 3px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.nav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.nav-item.active { color: #fff; background: rgba(180, 83, 9, 0.22); border-left-color: #fbbf24; }
.nav-icon { display: none; }
.nav-item-legacy { font-size: 0.78rem !important; color: rgba(255, 255, 255, 0.42) !important; }

.nav-footer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 0.75rem;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-footer .nav-item { font-size: 0.8rem; padding: 0.45rem 0.75rem; }

.nav-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: auto;
}
.theme-switcher {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), color var(--transition);
}
.theme-switcher:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.menu-toggle { display: none; }

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--white);
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: transform var(--transition), filter var(--transition);
}
.nav-cta:hover { color: var(--white); filter: brightness(1.08); transform: translateY(-1px); }

main#main { margin-left: var(--dock-w); width: calc(100% - var(--dock-w)); }

@media (max-width: 1023px) {
  html { scroll-padding-top: calc(var(--nav-h) + 8px); }
  .modern-nav.layout-nav {
    width: 100%;
    height: var(--nav-h);
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-container {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.65rem 1rem;
    height: auto;
    gap: 0.5rem;
    max-width: 1080px;
    margin: 0 auto;
  }
  .nav-brand { border: none; padding-bottom: 0; flex: 1; min-width: 0; }
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    background: #12151a;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.active { display: flex; flex-direction: column; }
  .nav-actions { flex-direction: row; margin-top: 0; width: auto; align-items: center; }
  .nav-cta span:first-of-type { display: none; }
  .nav-cta { padding: 0.5rem 0.75rem; }
  .theme-switcher { width: 42px; height: 42px; }
  .menu-toggle {
    display: inline-flex;
    flex-direction: column; justify-content: center;
    gap: 5px;
    width: 42px; height: 42px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
  }
  .menu-toggle span { display: block; height: 2px; background: #fff; border-radius: 1px; transition: var(--transition); }
  main#main { margin-left: 0; width: 100%; padding-top: var(--nav-h); }
}

@media (max-width: 768px) {
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* —— Hero ———— */
.hero {
  position: relative;
  min-height: calc(100vh - 0px);
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 8vw, 5rem);
}
@media (max-width: 1023px) { .hero { min-height: auto; } }

.hero-bleed {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-bg { position: absolute; inset: 0; opacity: 0.55; }
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 70% at 70% 35%, black, transparent);
}
.hero-mesh {
  position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 90% 0%, rgba(180, 83, 9, 0.12), transparent 60%),
    radial-gradient(700px 400px at 10% 90%, rgba(30, 41, 59, 0.08), transparent 55%);
}
.gradient-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.35; }
.orb-1 { width: 400px; height: 400px; background: rgba(180, 83, 9, 0.3); top: -10%; right: -5%; }
.orb-2 { width: 260px; height: 260px; background: rgba(30, 58, 138, 0.15); bottom: 0; left: -8%; }
.orb-3 { width: 180px; height: 180px; background: rgba(180, 83, 9, 0.15); bottom: 30%; right: 15%; }

.hero-wrap { position: relative; z-index: 2; }
.hero-bento {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 380px);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: stretch;
}
@media (max-width: 900px) {
  .hero-bento { grid-template-columns: 1fr; }
}

.hero-copy { display: flex; flex-direction: column; gap: 1.25rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.9rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem; font-weight: 600; color: var(--text-muted);
  width: fit-content;
  box-shadow: var(--shadow-sm);
}
.badge-dot { width: 7px; height: 7px; background: var(--success); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
.hero-content { display: flex; flex-direction: column; gap: 1.75rem; }
.greeting-line { font-size: 1rem; font-weight: 500; color: var(--text-soft); margin-bottom: 0.25rem; display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.wave-emoji { font-size: 1.2rem; }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
}
.gradient-text { color: var(--accent); font-weight: 400; }
.title-line { display: block; }
.hero-subtitle { margin-top: 0.35rem; }
.subtitle-container { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; font-size: 1.15rem; color: var(--text-muted); }
.subtitle-prefix { font-weight: 500; }
.typing-text { font-weight: 700; color: var(--text); }
.cursor { color: var(--accent); animation: blink 1s step-end infinite; }
.hero-description { font-size: 1.05rem; max-width: 36rem; color: var(--text-muted); line-height: 1.75; margin-top: 0.35rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-primary {
  background: var(--text);
  color: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-shine { display: none; }

.hero-panel { display: flex; flex-direction: column; gap: 1rem; }
.hero-photo-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.85rem;
  box-shadow: var(--shadow-md);
}
.profile-container { position: relative; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1; max-height: 420px; margin: 0 auto; }
.profile-frame { display: none; }
.profile-image { border-radius: var(--radius-md); overflow: hidden; height: 100%; }
.profile-img { width: 100%; height: 100%; object-fit: cover; }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}
.metric-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.metric-tile-value { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--text); line-height: 1.1; }
.metric-tile-label { font-size: 0.68rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); margin-top: 0.25rem; }

.hero-tech-row {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.85rem;
  display: flex; flex-direction: column; gap: 0.55rem;
}
.hero-tech-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-soft); }

.tech-icons { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tech-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
  transition: color var(--transition), border-color var(--transition), transform var(--transition);
}
.tech-icon:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.scroll-prompt {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  margin-top: 2.5rem;
  color: var(--text-soft);
  font-size: 0.78rem; font-weight: 600;
}
.scroll-mouse { width: 22px; height: 34px; border: 2px solid var(--border-strong); border-radius: 11px; position: relative; }
.mouse-wheel {
  width: 3px; height: 6px; background: var(--text-soft); border-radius: 2px;
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  animation: scroll-wheel 2s ease-in-out infinite;
}

/* Sections */
.section-band { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-band--dark {
  background: linear-gradient(180deg, #12151a 0%, #0e1014 100%);
  color: #e4e4e7;
  border-color: rgba(255, 255, 255, 0.06);
}
.section-band--dark .section-subtitle { color: rgba(228, 228, 231, 0.72); }
.section-band--dark .section-kicker { color: #fb923c; }
.section-header { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 2.75rem); }
.section-header--light .section_title_fix { }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}
.section-kicker {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.section-subtitle { font-size: 1.02rem; color: var(--text-muted); line-height: 1.65; }

/* Skills */
.skills { padding: clamp(4rem, 8vw, 5.5rem) 0; }
.skills-head {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 280px);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.5rem;
}
@media (max-width: 720px) { .skills-head { grid-template-columns: 1fr; } }

.skills-head-search .search-box { position: relative; }
.skills-head-search .search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  font-family: var(--font-sans);
  font-size: 0.9rem;
}
.skills-head-search .search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }
.skills-head-search .search-box i { position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); color: var(--text-soft); }

.skills-interface { display: flex; flex-direction: column; gap: 1.25rem; }
.skills-toolbar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.category-nav { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.category-nav .nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  border-left: none;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.category-nav .nav-item:hover { color: var(--text); border-color: var(--border-strong); }
.category-nav .nav-item.active {
  background: var(--accent-muted);
  border-color: rgba(180, 83, 9, 0.35);
  color: var(--accent);
  font-weight: 600;
}
.category-nav .nav-item .count { margin-left: 0.25rem; font-size: 0.65rem; opacity: 0.75; }

.skills-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.content-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; gap: 1rem; }
.content-header h4 { font-size: 1.1rem; font-weight: 700; }
.content-header span { font-size: 0.8rem; color: var(--text-soft); }
.skills-instruction {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--accent-muted);
  border: 1px solid rgba(180, 83, 9, 0.2);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 1rem;
}
.skills-grid-new {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: 0.65rem;
}
.skill-card {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  min-height: 64px;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.skill-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.skill-info h5 { font-size: 0.88rem; font-weight: 600; }

/* Experience */
.experience { padding: clamp(4rem, 8vw, 5.5rem) 0; }
.experience-controls { display: flex; justify-content: flex-start; margin-bottom: 2rem; }
.view-toggle { display: inline-flex; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius-md); padding: 4px; background: rgba(255, 255, 255, 0.04); }
.toggle-btn {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.toggle-btn.active { background: var(--accent); color: var(--white); }

.experience-timeline { display: none; position: relative; max-width: 880px; margin: 0 auto; }
.experience-timeline.active { display: block; }
.timeline-line { position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: rgba(255, 255, 255, 0.12); }
.timeline-item { position: relative; padding-left: 3.5rem; margin-bottom: 2.5rem; }
.timeline-marker {
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #1b1e22;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  color: #fb923c;
}
.timeline-marker.current { background: var(--accent); color: var(--white); }
.timeline-content {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.experience-header { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; flex-wrap: wrap; }
.role-title { font-size: 1.2rem; font-weight: 700; color: #fafafa; }
.company-name { font-size: 0.95rem; font-weight: 600; color: #fb923c; margin-top: 0.15rem; }
.duration-badge { padding: 0.3rem 0.75rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; background: rgba(255, 255, 255, 0.08); color: #e4e4e7; }
.current-badge { background: rgba(22, 101, 52, 0.3); color: #bbf7d0; }
.role-summary { font-size: 0.92rem; color: rgba(228, 228, 231, 0.78); line-height: 1.65; margin-bottom: 1rem; }
.impact-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.5rem; margin-bottom: 1rem; }
.metric { text-align: center; padding: 0.65rem; background: rgba(0, 0, 0, 0.2); border-radius: var(--radius-sm); border: 1px solid rgba(255, 255, 255, 0.06); }
.experience-timeline .metric-value { font-size: 1.2rem; font-weight: 800; color: #fb923c; display: block; }
.experience-timeline .metric-label { font-size: 0.65rem; color: rgba(228, 228, 231, 0.55); margin-top: 0.2rem; text-transform: uppercase; letter-spacing: 0.05em; }
.tech-stack h6 { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(228, 228, 231, 0.45); margin-bottom: 0.5rem; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tech-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(228, 228, 231, 0.85);
}
.project-toggle { margin-top: 0.5rem; background: none; border: none; color: #fb923c; font-weight: 600; font-size: 0.85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.project-toggle.expanded i { transform: rotate(180deg); }
.projects-list { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.projects-list.expanded { max-height: 520px; overflow-y: auto; }
.project-item { margin-top: 0.6rem; padding: 0.75rem; border-radius: var(--radius-sm); background: rgba(0, 0, 0, 0.2); border-left: 3px solid var(--accent); }
.project-name { font-weight: 600; font-size: 0.88rem; color: #fafafa; margin-bottom: 0.2rem; }
.project-desc { font-size: 0.82rem; color: rgba(228, 228, 231, 0.65); line-height: 1.5; }

.experience-grid { display: none; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.25rem; }
.experience-grid.active { display: grid; }
.experience-grid .experience-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: transform var(--transition), box-shadow var(--transition);
}
.experience-grid .experience-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35); }
.experience-grid .experience-card.current { border-color: rgba(251, 146, 60, 0.45); }
.experience-grid .role-title { color: #fafafa; }
.experience-grid .company-name { color: #fb923c; }
.experience-grid .role-summary { color: rgba(228, 228, 231, 0.72); }
.experience-grid .metric-value { font-size: 1.15rem; font-weight: 800; color: #fb923c; }
.experience-grid .metric-label { font-size: 0.62rem; color: rgba(228, 228, 231, 0.5); }

/* Projects */
.projects { padding: clamp(4rem, 8vw, 5.5rem) 0; }
.projects-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.projects-search { position: relative; flex: 1; min-width: 200px; max-width: 300px; }
.projects-search input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  font-size: 0.88rem;
}
.projects-search input:focus { outline: none; border-color: var(--accent); }
.projects-search i { position: absolute; left: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--text-soft); }
.projects-filters { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.filter-btn {
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-muted);
}
.filter-btn.active { background: var(--text); color: var(--bg-elevated); border-color: var(--text); }
.projects-view-toggle { display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-left: auto; }
.view-btn { width: 38px; height: 38px; border: none; background: var(--bg-elevated); color: var(--text-soft); cursor: pointer; }
.view-btn.active { background: var(--accent); color: var(--white); }

.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 1.35rem; }
.projects-grid.list-view { grid-template-columns: 1fr; }
.project-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.project-card.featured { border-color: rgba(180, 83, 9, 0.45); box-shadow: 0 0 0 1px var(--accent-muted); }
.project-header { padding: 1.1rem 1.25rem; display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); }
.project-icon-wrapper { display: flex; align-items: flex-start; gap: 0.75rem; }
.project-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem;
}
.project-category { font-size: 0.65rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-top: 0.25rem; }
.project-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 0.3rem; }
.project-year { font-size: 0.75rem; color: var(--text-soft); }
.project-status { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: var(--radius-full); }
.status-live { background: rgba(22, 101, 52, 0.15); color: var(--success); }
.status-development { background: rgba(180, 83, 9, 0.15); color: var(--warning); }
.status-archived { background: var(--gray-100); color: var(--text-soft); }
.featured-badge { font-size: 0.6rem; font-weight: 800; text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: var(--radius-full); background: var(--accent); color: var(--white); }
.project-content { padding: 1.15rem 1.25rem 1.35rem; }
.project-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; margin-bottom: 0.45rem; }
.project-description { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 0.9rem; }
.services-preview { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0.85rem; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--border); margin-bottom: 0.85rem; }
.services-count { font-weight: 700; font-size: 0.82rem; color: var(--accent); }
.services-icons { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.service-icon { width: 28px; height: 28px; border-radius: var(--radius-sm); background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; }
.more-services { font-size: 0.75rem; color: var(--text-soft); }
.service-item { padding: 0.75rem; border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 0.5rem; background: var(--bg); }
.service-item h4 { font-size: 0.9rem; margin-bottom: 0.25rem; }
.service-item p { font-size: 0.8rem; color: var(--text-muted); }
.metric-chip { display: inline-block; font-size: 0.68rem; padding: 0.15rem 0.4rem; border-radius: var(--radius-full); background: var(--accent-muted); color: var(--accent); margin: 0.15rem 0.25rem 0 0; }
.project-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(68px, 1fr)); gap: 0.4rem; margin-bottom: 0.85rem; }
.project-metrics .metric-item { text-align: center; }
.project-metrics .metric-value { font-size: 0.95rem; font-weight: 800; color: var(--accent); }
.project-metrics .metric-label { font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-soft); }
.tech-tag { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.5rem; border-radius: var(--radius-full); font-size: 0.72rem; border: 1px solid var(--border); margin: 0.15rem 0.3rem 0 0; background: var(--bg-elevated); }
.project-actions { display: flex; gap: 0.5rem; }
.expand-btn { flex: 1; padding: 0.6rem; border-radius: var(--radius-md); border: 1px solid var(--accent); background: transparent; color: var(--accent); font-weight: 700; cursor: pointer; font-family: var(--font-sans); }
.expand-btn:hover { background: var(--accent); color: var(--white); }
.project-tech { margin-top: 0.5rem; }
.tech-list { display: flex; flex-wrap: wrap; }

/* Social */
.social-profiles { padding: clamp(4rem, 8vw, 5.5rem) 0; }
.connect-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) 1.6fr; gap: clamp(2rem, 5vw, 3rem); align-items: start; }
@media (max-width: 900px) { .connect-layout { grid-template-columns: 1fr; } }
.connect-hero { position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.connect-visual { position: relative; width: 160px; height: 160px; margin: 0 auto 1.25rem; }
.connect-avatar { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 112px; height: 112px; border-radius: 50%; overflow: hidden; border: 3px solid var(--bg-elevated); box-shadow: var(--shadow-md); }
.ring, .avatar-glow { display: none; }
.connect-info h3 { font-family: var(--font-display); font-size: 1.45rem; text-align: center; margin-bottom: 0.45rem; }
.connect-info p { text-align: center; font-size: 0.92rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6; }
.quick-stats { display: flex; gap: 0.5rem; justify-content: center; }
.quick-stats .stat { flex: 1; padding: 0.75rem; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); text-align: center; }
.quick-stats .stat-number { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; color: var(--accent); display: block; }
.quick-stats .stat-label { font-size: 0.65rem; color: var(--text-soft); }

.social-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.social-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.social-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow-md); }
.social-icon {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.05rem; margin-bottom: 0.75rem;
}
.social-card.github .social-icon { background: linear-gradient(135deg, #333, #24292e); }
.social-card.linkedin .social-icon { background: linear-gradient(135deg, #0077b5, #00a0dc); }
.social-card.stackoverflow .social-icon { background: linear-gradient(135deg, #f48024, #f2740d); }
.social-card.medium .social-icon { background: linear-gradient(135deg, #00ab6c, #00d4aa); }
.social-card.credly .social-icon { background: linear-gradient(135deg, #ff6b35, #f7931e); }
.social-card.techgig .social-icon { background: var(--gradient-primary); }
.social-content h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 0.2rem; }
.social-content p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.social-handle { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-soft); }
.card-arrow { position: absolute; top: 1rem; right: 1rem; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; color: var(--text-soft); }
.social-card:hover .card-arrow { background: var(--accent); color: white; border-color: var(--accent); }
.card-bg { display: none; }

/* Contact */
.contact { padding: clamp(4rem, 8vw, 5.5rem) 0; }
.contact-intro { margin-bottom: 2rem; }
.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 280px) 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) { .contact-content { grid-template-columns: 1fr; } }

.contact-info { display: flex; flex-direction: column; gap: 0.65rem; }
.contact-card {
  padding: 1rem;
  text-align: center;
  border-radius: var(--radius-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.contact-icon {
  width: 40px; height: 40px; margin: 0 auto 0.55rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: white;
  display: flex; align-items: center; justify-content: center;
}
.contact-card h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 0.15rem; }
.contact-card p { font-size: 0.8rem; color: var(--text-muted); word-break: break-word; }

.contact-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0.25rem; }
.form-group { position: relative; margin-bottom: 1rem; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  font-family: var(--font-sans);
  font-size: 0.92rem;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-muted); }
.form-group label {
  position: absolute; top: -0.5rem; left: 0.65rem;
  padding: 0 0.35rem;
  background: var(--bg-elevated);
  font-size: 0.72rem; font-weight: 700; color: var(--accent);
}
.submit-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.45rem;
  width: 100%;
  padding: 0.88rem;
  border: none;
  border-radius: var(--radius-md);
  background: var(--text);
  color: var(--bg-elevated);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition);
}
.submit-btn:hover:not(:disabled) { transform: translateY(-2px); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.form-group .error-message { display: block; font-size: 0.75rem; color: var(--error); margin-top: 0.3rem; min-height: 1em; opacity: 0; transition: opacity var(--transition); }
.form-group.error .error-message { opacity: 1; }
.form-group.error input, .form-group.error textarea { border-color: var(--error); }
.success-message, .error-message-global { display: none; align-items: center; gap: 0.5rem; margin-top: 1rem; padding: 0.75rem; border-radius: var(--radius-md); font-size: 0.85rem; }
.success-message.show, .error-message-global.show { display: flex; }
.success-message { background: rgba(22, 101, 52, 0.1); color: var(--success); border: 1px solid rgba(22, 101, 52, 0.25); }
.error-message-global { background: rgba(185, 28, 28, 0.08); color: var(--error); border: 1px solid rgba(185, 28, 28, 0.2); }
.char-counter { text-align: right; font-size: 0.78rem; color: var(--text-soft); margin-top: 0.25rem; }

/* Site footer */
.site-footer { padding: 2rem 0 2.5rem; border-top: 1px solid var(--border); background: var(--bg); }
.site-footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.site-footer-copy { font-size: 0.85rem; color: var(--text-muted); }
.footer-mark { opacity: 0.5; margin-right: 0.2rem; }
.site-footer-links { display: flex; flex-wrap: wrap; gap: 1.15rem; }
.site-footer-links a { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); text-decoration: none; }
.site-footer-links a:hover { color: var(--accent); }

/* Skill panel */
.skill-panel {
  position: fixed;
  top: 0;
  right: -440px;
  width: min(440px, 100vw);
  height: 100vh;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  z-index: 1001;
  transition: right 0.3s ease;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.skill-panel.active { right: 0; }
.panel-header {
  display: flex; align-items: center; gap: 0.85rem;
  padding: 1.25rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--text);
  color: var(--bg-elevated);
}
.panel-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; background: rgba(255, 255, 255, 0.12); }
.panel-header h3 { flex: 1; font-size: 1.05rem; font-weight: 700; }
.panel-close {
  width: 36px; height: 36px;
  border: none; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
}
.panel-body { padding: 1.25rem 1.1rem; }
.skill-experience h4, .skill-implementations h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 0.55rem; }
.skill-experience ul, .skill-implementations ul { list-style: none; }
.skill-experience li, .skill-implementations li {
  position: relative; padding-left: 1rem; margin-bottom: 0.4rem;
  font-size: 0.86rem; color: var(--text-muted); line-height: 1.5;
}
.skill-experience li::before, .skill-implementations li::before {
  content: "";
  position: absolute; left: 0; top: 0.55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.panel-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.panel-overlay.active { opacity: 1; visibility: visible; }

/* Loading */
.loading-screen {
  position: fixed; inset: 0; z-index: 10000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.45s ease;
}
.loading-screen.fade-out { opacity: 0; pointer-events: none; }
.loading-content { text-align: center; color: var(--text-muted); }
.logo-animation {
  width: 68px; height: 68px; margin: 0 auto 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 800; font-size: 1.35rem;
  color: var(--accent); background: var(--bg-elevated);
}
.loading-progress { width: 160px; height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; margin-top: 1rem; }
.progress-bar { height: 100%; width: 0; background: var(--accent); transition: width 0.2s ease; }

/* Toasts */
.toast-container { position: fixed; top: calc(var(--nav-h) + 12px); right: 1rem; z-index: 10002; display: flex; flex-direction: column; gap: 0.5rem; max-width: min(400px, calc(100vw - 2rem)); }
.toast {
  display: flex; align-items: center; gap: 0.55rem;
  padding: 0.75rem 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  transform: translateX(110%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.toast.show { transform: translateX(0); opacity: 1; }
.toast-success { border-left: 3px solid var(--success); }
.toast-error { border-left: 3px solid var(--error); }

/* Tooltip */
.tooltip {
  position: fixed; background: var(--text); color: var(--bg-elevated);
  padding: 0.35rem 0.6rem; border-radius: var(--radius-sm);
  font-size: 0.72rem; z-index: 11000;
  pointer-events: none; opacity: 0; transition: opacity 0.15s ease;
}
.tooltip.show { opacity: 1; }

/* Keyframes */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

@media (max-width: 1023px) {
  .connect-hero { position: static; }
  .projects-view-toggle { margin-left: 0; }
}

@media (max-width: 768px) {
  .projects-controls { flex-direction: column; align-items: stretch; }
  .projects-search { max-width: none; }
  .form-row { grid-template-columns: 1fr; }
  .impact-metrics { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .animate-section { opacity: 1; transform: none; transition: none; }
  .badge-dot, .mouse-wheel, .gradient-orb, .cursor { animation: none; }
}
