/* ==========================================================================
   Nihar Thatikonda — Nordic Titanium & Forest Emerald Pro Portfolio Theme
   ========================================================================== */

:root {
  --bg: #070908;
  --surface: rgba(16, 20, 18, 0.88);
  --surface-solid: #101412;
  --surface-2: rgba(23, 29, 26, 0.84);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f6f4;
  --muted: #94a39b;
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-soft: rgba(16, 185, 129, 0.12);
  --radius: 20px;
  --ease: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.38);
  --shadow-md: 0 24px 56px rgba(0, 0, 0, 0.65);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 85% 48% at 50% -10%, rgba(16, 185, 129, 0.13), transparent),
    radial-gradient(ellipse 50% 40% at 88% 20%, rgba(226, 232, 240, 0.04), transparent);
  color: var(--text);
  line-height: 1.62;
  overflow-x: hidden;
  padding-bottom: 32px;
  -webkit-font-smoothing: antialiased;
}

/* Subtle Architectural Micro-Grid */
.ambient-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 35%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 25%, #000 35%, transparent 100%);
  pointer-events: none;
  z-index: -2;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--accent-soft);
  color: var(--accent-light);
  padding: 2px 7px;
  border-radius: 6px;
}

.container {
  width: min(1150px, 92%);
  margin-inline: auto;
}

/* Cursor Spotlight & Click Ripple */
.cursor-spotlight {
  position: fixed;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.11),
    rgba(52, 211, 153, 0.03) 42%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: -1;
}

.click-ripple {
  position: fixed;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent-light);
  transform: translate(-50%, -50%) scale(0.2);
  pointer-events: none;
  z-index: 9999;
  animation: ripplePulse 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes ripplePulse {
  to {
    transform: translate(-50%, -50%) scale(4.2);
    opacity: 0;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #a7f3d0);
  z-index: 1200;
}

/* Sticky Glass Header */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 9, 8, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.06rem;
  letter-spacing: -0.02em;
}

.brand-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f3f6f4;
  color: #070908;
  font-weight: 800;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.14);
}

.nav-links {
  display: flex;
  gap: 26px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.91rem;
  font-weight: 600;
  transition: color var(--ease);
}

.nav-link:hover {
  color: var(--accent-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
}

.cmd-trigger:hover {
  border-color: var(--accent-light);
  background: var(--surface-2);
}

.cmd-trigger kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.68rem;
  color: var(--muted);
}

/* Resume Button + Bouncing ? Easter Egg */
.resume-group {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.easter-q {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-light);
  color: var(--accent-light);
  font-weight: 800;
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: gentleBounce 2.1s infinite ease-in-out;
  transition: transform 0.2s ease, background 0.2s ease;
}

.easter-q:hover {
  background: rgba(16, 185, 129, 0.28);
  color: #fff;
  transform: scale(1.14);
}

@keyframes gentleBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.easter-popover {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 315px;
  background: #121714;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 15px 17px;
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.75);
  z-index: 1500;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: all 0.22s ease;
}

.easter-popover.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.easter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--accent-light);
}

.easter-head button {
  background: none;
  border: none;
  font-size: 1.15rem;
  color: var(--muted);
  cursor: pointer;
}

.easter-popover p {
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.52;
  margin-bottom: 9px;
}

.easter-popover strong {
  color: var(--text);
}

.easter-meta {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.71rem;
  color: var(--accent-light);
  background: var(--accent-soft);
  padding: 5px 8px;
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 9px 10px;
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* Tactile Buttons with Light-Sweep Shimmer */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: 11px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.16s ease, background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: skewX(-22deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.btn:hover::before {
  left: 150%;
}

.btn:active {
  transform: scale(0.94) !important;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.83rem;
}

.btn-primary {
  background: #f3f6f4;
  color: #070908;
  box-shadow: 0 6px 22px rgba(243, 246, 244, 0.15);
}

.btn-primary:hover {
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.25);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: var(--accent-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface);
}

/* Hero Section */
.hero {
  padding: 60px 0 34px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.38fr 0.92fr;
  gap: 42px;
  align-items: center;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.32);
  color: var(--accent-light);
  font-size: 0.81rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(2.05rem, 4.2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
  color: var(--text);
}

.title-highlight {
  background: linear-gradient(95deg, #ffffff, #6ee7b7, #10b981);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-bio {
  color: var(--muted);
  font-size: 1.02rem;
  margin-bottom: 24px;
  max-width: 640px;
}

.hero-bio strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.quick-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 12px;
  border-radius: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.79rem;
  cursor: pointer;
  transition: all var(--ease);
}

.copy-chip:hover {
  border-color: var(--accent-light);
  color: var(--text);
}

.copy-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--accent-light);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 5px;
}

/* Interactive Card Surface Illumination */
.interactive-card {
  position: relative;
  overflow: hidden;
}

.interactive-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--mx, 50%) var(--my, 50%),
    rgba(52, 211, 153, 0.13),
    rgba(255, 255, 255, 0.03) 45%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.interactive-card:hover::after {
  opacity: 1;
}

/* Circular Portrait Profile Card */
.profile-card {
  background: linear-gradient(165deg, rgba(22, 28, 25, 0.94), rgba(11, 14, 12, 0.98));
  border: 1px solid var(--border-strong);
  border-top-color: rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s ease, border-color var(--ease), box-shadow var(--ease);
}

.profile-card:hover {
  border-color: rgba(52, 211, 153, 0.55);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.72), 0 0 32px rgba(16, 185, 129, 0.15);
}

.avatar-wrap {
  width: 176px;
  height: 176px;
  margin: 0 auto 18px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #34d399, #e2e8f0);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.6), 0 0 28px rgba(16, 185, 129, 0.2);
  overflow: hidden;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.32);
  border-radius: 50%;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-card:hover .avatar-img {
  transform: scale(1.39);
}

.avatar-fallback {
  display: none;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--surface-solid);
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2rem;
  color: var(--accent-light);
}

.profile-card h2 {
  font-size: 1.32rem;
  font-weight: 800;
}

.role-tag {
  color: var(--accent-light);
  font-size: 0.86rem;
  font-weight: 700;
  margin-top: 2px;
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 18px 0;
  padding: 13px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.mini-stats strong {
  display: block;
  font-size: 1.12rem;
  color: var(--text);
}

.mini-stats span {
  font-size: 0.73rem;
  color: var(--muted);
}

.stack-ticker {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.stack-ticker span {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.71rem;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent-light);
  font-weight: 600;
}

/* Sections */
.section {
  padding: 46px 0 16px;
}

.section-header {
  margin-bottom: 24px;
}

.eyebrow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent-light);
  margin-bottom: 6px;
}

.section-title {
  font-size: clamp(1.45rem, 2.9vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.section-desc {
  color: var(--muted);
  max-width: 720px;
  font-size: 0.95rem;
}

/* Flagship InCircle Card */
.flagship-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-color: rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.flagship-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 22px 0;
}

.f-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px 15px;
  font-size: 0.84rem;
  color: var(--muted);
  transition: border-color var(--ease), transform var(--ease);
}

.f-pill:hover {
  border-color: rgba(52, 211, 153, 0.45);
  transform: translateY(-2px);
}

.f-pill strong {
  color: var(--text);
}

/* Playable Mini-Phone Sandbox */
.sandbox-wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr;
  gap: 28px;
  align-items: center;
  background: rgba(7, 9, 8, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 20px;
}

.sandbox-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sandbox-info h3 {
  font-size: 1.18rem;
  margin: 4px 0 8px;
}

.sandbox-info p {
  color: var(--muted);
  font-size: 0.89rem;
  margin-bottom: 12px;
}

.sandbox-steps {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.sandbox-steps strong {
  color: var(--text);
}

.sandbox-controls label {
  display: block;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.sandbox-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sandbox-input-row input {
  flex: 1;
  min-width: 180px;
  background: var(--surface-solid);
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 9px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.sandbox-input-row input:focus {
  border-color: var(--accent-light);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.sim-phone {
  width: 260px;
  margin: 0 auto;
  background: #050706;
  color: #f8fafc;
  border: 5px solid #202824;
  border-radius: 28px;
  padding: 12px 14px 18px;
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.75);
  user-select: none;
}

.sim-notch {
  width: 52px;
  height: 10px;
  background: #000;
  border-radius: 999px;
  margin: 0 auto 10px;
}

.sim-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.sim-live-dot {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.64rem;
  color: var(--accent-light);
  background: var(--accent-soft);
  padding: 2px 7px;
  border-radius: 999px;
}

.sim-poster-card {
  position: relative;
  border-radius: 16px;
  padding: 18px 14px 14px;
  background: linear-gradient(145deg, #064e3b, #111827 68%, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sim-poster-card:hover {
  border-color: rgba(52, 211, 153, 0.55);
}

.sim-poster-card:active {
  transform: scale(0.96);
}

.sim-poster-quote {
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.42;
  margin-bottom: 18px;
  color: #ffffff;
}

.sim-poster-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.55);
  padding: 8px 10px;
  border-radius: 11px;
}

.sim-badge-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34d399, #f3f6f4);
  color: #070908;
  font-weight: 800;
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sim-poster-footer strong {
  display: block;
  font-size: 0.79rem;
  color: #ffffff;
}

.sim-poster-footer span {
  font-size: 0.65rem;
  color: #cbd5e1;
}

.sim-peek-hint {
  margin-top: 10px;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  color: #a7f3d0;
}

.radial-menu {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 6, 0.78);
  backdrop-filter: blur(4px);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.radial-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.radial-item {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--rc);
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.55);
  transform: translate(0, 0) scale(0.4);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.radial-menu.open .radial-item {
  transform: translate(var(--rx), var(--ry)) scale(1);
}

/* Screenshot Dropdown Drawer */
.drawer-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(16, 185, 129, 0.32);
  border-radius: 14px;
  padding: 15px 18px;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: all var(--ease);
}

.drawer-trigger:hover {
  background: rgba(16, 185, 129, 0.18);
  border-color: var(--accent-light);
  transform: translateY(-2px);
}

.drawer-trigger-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.drawer-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #f3f6f4;
  color: #070908;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.drawer-trigger[aria-expanded="true"] .drawer-icon {
  transform: rotate(45deg);
}

.drawer-trigger-left strong {
  display: block;
  font-size: 0.98rem;
}

.drawer-trigger-left span {
  font-size: 0.82rem;
  color: var(--muted);
}

.drawer-badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-light);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.screens-drawer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.screens-drawer.open {
  grid-template-rows: 1fr;
}

.screens-drawer-inner {
  overflow: hidden;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  padding-top: 22px;
}

.phone-card {
  background: rgba(7, 9, 8, 0.86);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 13px;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}

.phone-card:hover {
  border-color: var(--accent-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.phone-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #202824;
  background: #050706;
  aspect-ratio: 9 / 19.6;
  padding-top: 22px;
  margin-bottom: 11px;
}

.phone-frame::before {
  content: "9:41";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  padding: 0 14px;
  background: #050706;
  color: #e2e8f0;
  font-size: 0.64rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  z-index: 3;
}

.phone-notch {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 11px;
  background: #000;
  border-radius: 999px;
  z-index: 4;
}

.phone-frame img {
  width: 100%;
  height: calc(100% + 26px);
  margin-top: -26px;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.phone-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 6, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--ease);
  z-index: 5;
}

.phone-overlay span {
  background: #f3f6f4;
  color: #070908;
  font-weight: 800;
  font-size: 0.76rem;
  padding: 6px 13px;
  border-radius: 999px;
}

.phone-card:hover .phone-overlay {
  opacity: 1;
}

.phone-card h3 {
  font-size: 0.94rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.phone-card p {
  font-size: 0.79rem;
  color: var(--muted);
}

/* 8-Card Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top-color: rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), transform 0.2s ease, box-shadow var(--ease);
}

.bento-card:hover {
  border-color: rgba(52, 211, 153, 0.5);
  box-shadow: var(--shadow-md);
}

.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bento-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-light);
}

.bento-cat {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.71rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 999px;
  font-weight: 600;
}

.bento-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.35;
}

.bento-card p {
  font-size: 0.89rem;
  color: var(--muted);
}

.bento-card strong {
  color: var(--text);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.71rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Interactive Skill Matrix */
.skill-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--ease);
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.filter-btn.active {
  background: #f3f6f4;
  color: #070908;
  border-color: #f3f6f4;
  font-weight: 700;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 15px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--ease);
}

.skill-pill:hover {
  border-color: var(--accent-light);
  background: var(--accent-soft);
  color: #ffffff;
  transform: translateY(-3px) scale(1.03);
}

.skill-pill:active {
  transform: scale(0.94);
}

.skill-pill.hidden {
  display: none;
}

/* Contact Card */
.contact-card {
  background: linear-gradient(145deg, rgba(22, 28, 25, 0.94), rgba(11, 14, 12, 0.98));
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.contact-card h2 {
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  font-weight: 800;
  margin-bottom: 10px;
}

.contact-card p {
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 24px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 11px;
}

.footer {
  padding: 32px 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.83rem;
  border-top: 1px solid var(--border);
  margin-top: 44px;
}

.footer p {
  width: 100%;
  text-align: center;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 5, 0.94);
  backdrop-filter: blur(14px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  color: #fff;
}

.lightbox-body img {
  max-height: 75vh;
  max-width: 85vw;
  border-radius: 18px;
}

.lightbox-caption {
  text-align: center;
  margin-top: 12px;
  max-width: 520px;
}

.lightbox-caption p {
  font-size: 0.85rem;
  color: var(--muted);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: #f3f6f4;
  color: #070908;
}

.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* Simulated Android FCM Push Banner */
.fcm-banner {
  position: fixed;
  top: 18px;
  right: 18px;
  width: min(360px, 90vw);
  background: #121714;
  color: #f3f6f4;
  border: 1px solid var(--accent-light);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.65);
  z-index: 3500;
  transform: translateY(-140%);
  opacity: 0;
  transition: all 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.fcm-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.fcm-app-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.73rem;
  color: var(--muted);
  margin-bottom: 5px;
}

.fcm-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  background: #f3f6f4;
  color: #070908;
  font-weight: 800;
  font-size: 0.64rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fcm-app-row button {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.1rem;
  cursor: pointer;
}

.fcm-banner strong { display: block; font-size: 0.9rem; margin-bottom: 2px; }
.fcm-banner p { font-size: 0.79rem; color: #cbd5e1; }

/* Ctrl+K Command Palette */
.cmd-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 6, 5, 0.78);
  backdrop-filter: blur(8px);
  z-index: 3200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cmd-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.cmd-box {
  width: min(520px, 92vw);
  background: #121714;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.75);
}

.cmd-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent-light);
  font-weight: 700;
}

.cmd-header button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.3rem;
  cursor: pointer;
}

.cmd-list {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cmd-item {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 11px 14px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.18s ease;
}

.cmd-item:hover {
  background: var(--accent-soft);
  border-color: rgba(52, 211, 153, 0.35);
}

.cmd-item strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem;
  color: var(--accent-light);
}

.cmd-item span {
  font-size: 0.79rem;
  color: var(--muted);
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(16px);
  background: #141a17;
  color: #ffffff;
  border: 1px solid var(--accent-light);
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  z-index: 3000;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  transition: all 0.25s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .sandbox-wrap {
    grid-template-columns: 1fr;
  }
  .feature-pills {
    grid-template-columns: 1fr;
  }
  .screens-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #101412;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.28s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .menu-toggle {
    display: flex;
  }
  .cmd-trigger kbd {
    display: none;
  }
  .bento-grid,
  .screens-grid {
    grid-template-columns: 1fr;
  }
}