:root {
  --bg: #101010;
  --surface: #171717;
  --surface-hover: #1d1d1d;
  --border: #262626;
  --border-light: #333333;
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --lime: #a9ff5b;
  --lime-soft: rgba(169, 255, 91, 0.12);
  --lime-border: rgba(169, 255, 91, 0.35);
  --emerald: #34d399;
  --amber: #fbbf24;
  --radius: 14px;
}

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

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 100%;
  overflow-x: hidden;
}

/* Subtle Interactive Cursor Spotlight */
.cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 255, 91, 0.06) 0%, rgba(16, 16, 16, 0) 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.3s ease;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* Minimal Floating Pill Nav */
.header {
  position: sticky;
  top: 16px;
  z-index: 60;
  padding: 0 20px;
  display: flex;
  justify-content: center;
}

.nav-pill {
  background: rgba(20, 20, 20, 0.86);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 7px 10px 7px 18px;
  display: flex;
  align-items: center;
  gap: 28px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 1px;
}

.nav-logo .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 10px var(--lime);
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-item {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
}

.nav-cv-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--lime);
  color: #0b0b0b;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  padding: 7px 14px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cv-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(169, 255, 91, 0.35);
}

/* Entrance Animation */
.animate-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-left,
.hero-right,
.contact-left,
.contact-form,
.p-card,
.service-card {
  min-width: 0;
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
  padding: 74px 24px 64px 24px;
}

.availability-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lime);
  background: var(--lime-soft);
  border: 1px solid var(--lime-border);
  padding: 5px 13px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  animation: limePulse 2s infinite;
}

@keyframes limePulse {
  0% { box-shadow: 0 0 0 0 rgba(169, 255, 91, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(169, 255, 91, 0); }
  100% { box-shadow: 0 0 0 0 rgba(169, 255, 91, 0); }
}

.hero-greeting {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-greeting span {
  color: #fff;
  font-weight: 700;
}

.hero-title {
  font-size: clamp(28px, 4.1vw, 46px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.lime-accent {
  color: var(--lime);
}

.hero-desc {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 28px;
}

.hero-desc strong {
  color: #e4e4e7;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 36px;
}

.btn-lime {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lime);
  color: #090909;
  border: none;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-lime:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(169, 255, 91, 0.28);
}

.btn-dark-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: #fff;
  border: 1px solid var(--border-light);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.btn-dark-outline:hover {
  border-color: var(--lime);
  background: var(--surface-hover);
}

.btn-text-link {
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 10px;
  transition: color 0.2s ease;
}

.btn-text-link:hover {
  color: var(--lime);
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.stat-item strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.stat-item span {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-light);
}

/* Portrait Alignment (Blazer Image) */
.hero-right {
  display: flex;
  justify-content: flex-end;
}

.portrait-container {
  width: 100%;
  max-width: 350px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.65);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.portrait-container:hover {
  border-color: var(--lime-border);
  transform: translateY(-3px);
}

.portrait-frame {
  width: 100%;
  aspect-ratio: 4 / 4.8;
  border-radius: 14px;
  overflow: hidden;
  background: #1c1c1c;
  position: relative;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 26px rgba(16, 16, 16, 0.28);
  pointer-events: none;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.5s ease;
}

.portrait-container:hover .portrait-frame img {
  transform: scale(1.02);
}

.portrait-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 6px 4px 6px;
}

.portrait-caption strong {
  display: block;
  font-size: 14.5px;
  color: #fff;
}

.portrait-caption span {
  font-size: 11.5px;
  color: var(--text-muted);
}

.linkedin-pill {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #222;
  border: 1px solid var(--border-light);
  color: var(--lime);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.linkedin-pill:hover {
  background: var(--lime);
  color: #090909;
  border-color: var(--lime);
}

/* Marquee Strip */
.marquee-wrap {
  width: 100%;
  max-width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #131313;
  padding: 16px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: scrollMarquee 28s linear infinite;
}

.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.4px;
}

.marquee-group .sep {
  color: var(--lime);
  font-size: 14px;
}

@keyframes scrollMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Sections & Fixed Scroll Margin for Floating Pill Nav */
section[id] {
  scroll-margin-top: 96px;
}

.section {
  padding: 68px 24px;
}

.projects-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--text-muted);
  min-width: 260px;
  transition: border-color 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--lime);
  color: var(--lime);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  width: 100%;
}

.search-box input::placeholder {
  color: #71717a;
}

.sec-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--lime);
  margin-bottom: 8px;
}

.sec-head h2,
.sec-head-row h2 {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.sec-sub {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 6px;
}

.sec-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}

/* What I Do Cards (Interactive Accordion) */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.service-card:hover,
.service-card.open {
  border-color: var(--lime-border);
  background: var(--surface-hover);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.service-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--lime);
  background: var(--lime-soft);
  padding: 3px 8px;
  border-radius: 6px;
}

.service-top h3 {
  flex: 1;
  font-size: 16px;
  font-weight: 700;
}

.service-toggle {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.25s ease, color 0.25s ease;
}

.service-card.open .service-toggle {
  transform: rotate(45deg);
  color: var(--lime);
}

.service-body {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13.5px;
  color: var(--text-muted);
  transition: max-height 0.35s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

.service-card.open .service-body {
  max-height: 180px;
  opacity: 1;
  margin-top: 12px;
}

/* Filter Pills */
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pill-btn:hover {
  color: #fff;
  border-color: var(--border-light);
}

.pill-btn.active {
  background: var(--lime);
  border-color: var(--lime);
  color: #090909;
}

/* Minimal Project Cards */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.p-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.p-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(169, 255, 91, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.p-card:hover::before {
  opacity: 1;
}

.p-card:hover {
  transform: translateY(-4px);
  border-color: var(--lime-border);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.p-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.p-domain {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.p-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.p-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.st-live {
  background: rgba(52, 211, 153, 0.1);
  color: var(--emerald);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.st-live::before { background: var(--emerald); }

.st-active {
  background: rgba(251, 191, 36, 0.1);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.3);
}
.st-active::before { background: var(--amber); }

.st-hold {
  background: rgba(161, 161, 170, 0.1);
  color: #d4d4d8;
  border: 1px solid rgba(161, 161, 170, 0.3);
}
.st-hold::before { background: #a1a1aa; }

.p-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.p-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.p-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.p-chip {
  background: #111111;
  border: 1px solid var(--border);
  color: #d4d4d8;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 6px;
}

.p-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.p-stack {
  font-size: 11.5px;
  color: var(--lime);
  font-weight: 600;
}

.p-detail-btn {
  background: var(--lime-soft);
  border: 1px solid var(--lime-border);
  color: var(--lime);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.p-card:hover .p-detail-btn,
.p-detail-btn:hover {
  background: var(--lime);
  color: #090909;
  border-color: var(--lime);
  box-shadow: 0 4px 16px rgba(169, 255, 91, 0.28);
}

/* Contact Section */
.contact-box {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
}

.contact-left h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-left p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.c-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.c-row span {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.c-row a,
.c-row strong {
  color: #fff;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
}

.c-row a:hover {
  color: var(--lime);
}

.email-copy-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.email-copy-wrap a {
  word-break: break-all;
}

.copy-btn {
  background: #222;
  border: 1px solid var(--border-light);
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.like-widget {
  margin-top: 8px;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111;
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.like-btn svg {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.like-btn.liked,
.like-btn:hover {
  border-color: var(--lime);
}

.like-btn.liked svg {
  color: var(--lime);
  transform: scale(1.15);
}

.contact-form {
  background: #121212;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.input-group input,
.input-group textarea {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 10px 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--lime);
}

.form-actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 26px 24px 36px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12.5px;
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: 18px;
}

.footer-right a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
}

.footer-right a:hover {
  color: var(--lime);
}

/* Clean Details Modal (Architecture & Modules Breakdown) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-card {
  background: #141414;
  border: 1px solid var(--lime-border);
  border-radius: 18px;
  width: 100%;
  max-width: 980px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 72px rgba(0, 0, 0, 0.82);
  animation: modalPop 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.97) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
  padding: 18px 26px;
  background: #181818;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.m-domain {
  font-size: 11px;
  font-weight: 700;
  color: var(--lime);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  display: block;
  margin-bottom: 3px;
}

.modal-head h3 {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}

.modal-head-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.m-counter {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  background: #111;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: 8px;
  margin-right: 2px;
}

.m-nav-btn,
.m-close {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #222;
  border: 1px solid var(--border-light);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.m-nav-btn:hover,
.m-close:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: #292929;
}

.m-close {
  font-size: 20px;
}

.m-step {
  flex: 1;
  min-width: 115px;
  background: #181818;
  border: 1px solid var(--border-light);
  border-radius: 9px;
  padding: 9px 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}

.m-step.active,
.m-step:hover {
  border-color: var(--lime);
  background: rgba(169, 255, 91, 0.1);
  transform: translateY(-2px);
}

.m-step-detail {
  margin-top: 10px;
  padding: 10px 14px;
  background: #161616;
  border-left: 3px solid var(--lime);
  border-radius: 6px;
  font-size: 12.5px;
  color: #e4e4e7;
}

.modal-body {
  padding: 20px 26px 22px 26px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #333 #121212;
}

.modal-body::-webkit-scrollbar {
  width: 7px;
}

.modal-body::-webkit-scrollbar-track {
  background: #121212;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 999px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

.m-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 12px 0;
}

.m-box {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 15px;
}

.m-box h4 {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--lime);
  margin-bottom: 8px;
}

.m-box ul {
  padding-left: 16px;
  font-size: 12.8px;
  color: #d4d4d8;
}

.m-box li {
  margin-bottom: 5px;
}

.m-flow {
  background: #101010;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  margin-top: 10px;
}

.m-flow-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.m-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

/* Removed duplicate .m-step rule merged above */

.m-step span {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 2px;
}

.m-arrow {
  color: var(--lime);
  font-weight: 800;
}

.m-walkthrough-bar {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    padding: 52px 24px 48px 24px;
  }
  .portrait-container {
    max-width: 285px;
  }
  .hero-stats {
    gap: 16px;
  }
  .stat-item strong {
    font-size: 20px;
  }
  .contact-box {
    padding: 28px;
    gap: 24px;
  }
}

@media (max-width: 720px) {
  .cursor-glow {
    display: none;
  }
  .header {
    top: 10px;
    padding: 0 10px;
  }
  .nav-pill {
    width: 100%;
    max-width: 100%;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 7px 6px 12px;
  }
  .nav-logo {
    font-size: 12px;
    gap: 6px;
  }
  .nav-links {
    gap: 10px;
  }
  .hide-xs {
    display: none;
  }
  .nav-item {
    font-size: 11.5px;
  }
  .nav-cv-btn {
    padding: 6px 10px;
    font-size: 11px;
    white-space: nowrap;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 16px 36px 16px;
  }
  .availability-tag {
    font-size: 11px;
    padding: 5px 11px;
    max-width: 100%;
  }
  .hero-right {
    justify-content: center;
    order: -1;
  }
  .portrait-container {
    max-width: 225px;
    padding: 9px;
  }
  .portrait-frame {
    aspect-ratio: 1 / 1.08;
  }
  .portrait-caption {
    padding: 8px 4px 2px 4px;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
  }
  .stat-divider {
    display: none;
  }
  .stat-item strong {
    font-size: 18px;
  }
  .stat-item span {
    font-size: 10.5px;
  }
  .section {
    padding: 44px 16px;
  }
  .services-grid,
  .projects-grid,
  .contact-box,
  .m-grid {
    grid-template-columns: 1fr;
  }
  .p-card {
    padding: 18px;
  }
  .search-box {
    width: 100%;
    min-width: 0;
  }
  .contact-box {
    padding: 20px 16px;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal-head h3 {
    font-size: 16px;
    word-break: break-word;
  }
  .modal-head {
    padding: 14px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .modal-head-controls {
    width: 100%;
    justify-content: space-between;
  }
  .modal-body {
    padding: 16px;
  }
  .m-steps {
    flex-direction: column;
    align-items: stretch;
  }
  .m-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
  .m-walkthrough-bar .btn-lime {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .nav-logo span:last-child {
    display: none;
  }
  .nav-links {
    gap: 9px;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta .btn-lime,
  .hero-cta .btn-dark-outline {
    justify-content: center;
  }
  .hero-cta .btn-text-link {
    text-align: center;
  }
  .p-footer {
    flex-direction: column;
    align-items: flex-start;
  }
  .p-detail-btn {
    width: 100%;
    justify-content: center;
  }
}
