/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--accent-primary);
  background: var(--bg-card);
}

.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
}

.nav-list a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  border: 1px solid transparent;
  transition: var(--transition);
}

.nav-list a:hover {
  color: var(--text-primary);
  background: var(--row-bg);
}

.nav-list a.active-link {
  color: var(--text-primary);
  background: rgba(99, 102, 241, 0.14);
  border-color: rgba(99, 102, 241, 0.38);
}

[data-theme="light"] .nav-list a.active-link {
  color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.28);
}

.nav-figma-special {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(56, 189, 248, 0.16)) !important;
  border: 1px solid rgba(56, 189, 248, 0.42) !important;
  color: var(--text-primary) !important;
  font-weight: 700 !important;
}

.nav-figma-special:hover,
.nav-figma-special.active-link {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.28), rgba(56, 189, 248, 0.28)) !important;
  border-color: var(--accent-secondary) !important;
  box-shadow: 0 0 18px var(--accent-glow);
}

.figma-nav-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-secondary);
  box-shadow: 0 0 8px var(--accent-secondary);
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-btn,
.mobile-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-btn:hover,
.mobile-toggle:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.theme-btn:hover {
  transform: rotate(15deg);
}

.hire-me-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0.5rem 1.2rem;
  background: #25d366;
  color: #051b0e !important;
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 50px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.32);
  transition: var(--transition);
  white-space: nowrap;
}

.hire-me-btn:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.48);
}

.mobile-toggle {
  display: none;
  border-radius: 12px;
}

/* Mobile Slide-In Side Drawer */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: blur(6px);
  z-index: 900;
}

.nav-overlay.active {
  display: block;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(82vw, 290px);
  height: 100dvh;
  background: var(--bg-card);
  border-left: 1px solid var(--border-subtle);
  box-shadow: -16px 0 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
  z-index: 950;
  transition: right 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-drawer.active {
  right: 0;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.drawer-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.drawer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin: 1.25rem 0 auto;
}

.drawer-list a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
}

.drawer-list a:hover,
.drawer-list a.active-link {
  background: rgba(99, 102, 241, 0.14);
  color: var(--text-primary);
}

.drawer-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.drawer-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 46px;
  background: #25d366;
  color: #051b0e !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 12px;
}

/* Hero Section */
.hero {
  padding: 4.5rem 0 4rem;
}

.page-hero {
  padding: 3.5rem 0 2rem;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.breadcrumb a:hover {
  color: var(--accent-secondary);
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3.5rem;
  align-items: center;
}

.availability-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #10b981;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.4rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  flex-shrink: 0;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 4.3rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 35rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 0.625rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  min-height: 20rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  height: 26rem;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 6px);
}

.metrics-strip {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-top: 3.5rem;
  padding: 1.85rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.section {
  padding: 4.5rem 0;
  border-top: 1px solid var(--border-subtle);
}

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.85rem;
}

.figma-two-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.85rem;
}

.spotlight-grid,
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 1.5rem;
}

@media (max-width: 76rem) {
  .desktop-nav {
    display: none;
  }
  .mobile-toggle {
    display: inline-flex;
  }
}

@media (max-width: 64rem) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metrics-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 60rem) {
  .hero-layout,
  .about-split {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual img {
    height: 21rem;
  }
}

@media (max-width: 48rem) {
  .container {
    width: 92%;
  }
  .hero {
    padding: 3rem 0 3.25rem;
  }
  .page-hero {
    padding: 2.5rem 0 1.5rem;
  }
  .hero-visual {
    min-height: 15rem;
  }
  .hero-visual img {
    height: 16.5rem;
  }
  .section {
    padding: 3.5rem 0;
  }
  .portfolio-grid,
  .figma-two-grid,
  .process-grid,
  .stack-grid {
    grid-template-columns: 1fr;
  }
  .metrics-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 1.35rem;
    gap: 1.25rem;
    margin-top: 2.5rem;
  }
  .hire-me-btn {
    padding: 0.5rem 0.9rem;
  }
  .hire-me-btn span {
    display: none;
  }
}

@media (max-width: 30rem) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
  .metrics-strip {
    grid-template-columns: 1fr;
  }
}
