:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --border: rgba(15, 23, 42, 0.10);
  --text: #0f172a;
  --muted: #64748b;
  --soft: #334155;
  --cyan: #0891b2;
  --cyan-strong: #0e7490;
  --blue: #2563eb;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.10);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --max: 1180px;
  --header-bg: rgba(255, 255, 255, 0.84);
  --grid-opacity: 0.15;
  --grid-line: rgba(15, 23, 42, 0.055);
  --tag-bg: rgba(8, 145, 178, 0.10);
  --tag-text: #155e75;
  --button-text: #ffffff;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020617;
  --surface: #020617;
  --surface-soft: rgba(255,255,255,0.035);
  --panel: rgba(15, 23, 42, 0.72);
  --panel-strong: rgba(2, 6, 23, 0.88);
  --border: rgba(255, 255, 255, 0.10);
  --text: #f8fafc;
  --muted: #94a3b8;
  --soft: #cbd5e1;
  --cyan: #67e8f9;
  --cyan-strong: #22d3ee;
  --blue: #2563eb;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(2, 6, 23, 0.78);
  --grid-opacity: 0.22;
  --grid-line: rgba(255,255,255,0.055);
  --tag-bg: rgba(34, 211, 238, 0.10);
  --tag-text: #cffafe;
  --button-text: #020617;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 260ms ease, color 260ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

.background {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -2;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.45;
  animation: floatGlow 14s ease-in-out infinite;
}

.glow-one {
  width: 520px;
  height: 520px;
  top: -120px;
  left: 42%;
  background: rgba(8, 145, 178, 0.18);
}

.glow-two {
  width: 420px;
  height: 420px;
  right: -90px;
  bottom: -80px;
  background: rgba(37, 99, 235, 0.14);
  animation-duration: 16s;
  animation-direction: reverse;
}

html[data-theme="dark"] .glow {
  opacity: 0.55;
}

html[data-theme="dark"] .glow-one {
  background: rgba(34, 211, 238, 0.25);
}

html[data-theme="dark"] .glow-two {
  background: rgba(37, 99, 235, 0.25);
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: var(--grid-opacity);
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 72px 72px;
  animation: gridPulse 5s ease-in-out infinite;
}

@keyframes floatGlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  35% { transform: translate(36px, 24px) scale(1.08); }
  70% { transform: translate(-18px, -12px) scale(0.98); }
}

@keyframes gridPulse {
  0%, 100% { opacity: calc(var(--grid-opacity) * 0.7); }
  50% { opacity: var(--grid-opacity); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes sparkle {
  0%, 100% { transform: rotate(0deg) scale(1); }
  35% { transform: rotate(14deg) scale(1.18); }
  70% { transform: rotate(-10deg) scale(1.05); }
}

.container {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: var(--header-bg);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--button-text);
  background: var(--cyan);
  box-shadow: 0 16px 36px rgba(8, 145, 178, 0.18);
  font-weight: 900;
}

html[data-theme="dark"] .brand-icon {
  color: #020617;
  box-shadow: 0 16px 36px rgba(34, 211, 238, 0.18);
}

.brand-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-subtitle {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  color: var(--soft);
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease;
}

.nav-links a:hover { color: var(--text); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.theme-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(8, 145, 178, 0.30);
}

.toggle-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 999px;
  background: var(--surface-soft);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.nav-cta {
  background: var(--text);
  color: var(--bg);
  padding: 10px 20px;
  font-size: 14px;
}

.btn {
  padding: 14px 24px;
  font-size: 15px;
}

.btn:hover,
.nav-cta:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--cyan);
  color: var(--button-text);
  box-shadow: 0 18px 45px rgba(8, 145, 178, 0.18);
}

html[data-theme="dark"] .btn-primary {
  color: #020617;
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.18);
}

.btn-primary:hover { background: var(--cyan-strong); }

html[data-theme="dark"] .btn-primary:hover { background: #a5f3fc; }

.btn-secondary {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
}

.btn-secondary:hover { background: var(--surface-soft); }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 16px 0 20px;
}

.mobile-menu a {
  display: block;
  padding: 12px 0;
  color: var(--soft);
  font-weight: 700;
}

.hero {
  padding: 90px 0 120px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 64px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 9px 15px;
  border: 1px solid rgba(8, 145, 178, 0.18);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.08);
  color: var(--cyan-strong);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 16px 35px rgba(8, 145, 178, 0.08);
}

html[data-theme="dark"] .pill {
  border-color: rgba(103, 232, 249, 0.22);
  background: rgba(103, 232, 249, 0.10);
  color: #cffafe;
}

.pill span {
  display: inline-block;
  animation: sparkle 2.8s ease-in-out infinite;
}

h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(46px, 7vw, 78px);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}

.meta-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.hero-panel-wrap {
  animation: heroFloat 5s ease-in-out infinite;
}

.hero-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-panel-inner {
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--panel-strong);
  padding: 26px;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.panel-kicker {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.panel-title {
  margin: 4px 0 0;
  font-size: 25px;
  font-weight: 900;
}

.panel-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(8, 145, 178, 0.10);
  color: var(--cyan);
  font-size: 24px;
}

html[data-theme="dark"] .panel-icon {
  background: rgba(103, 232, 249, 0.10);
}

.focus-list {
  display: grid;
  gap: 14px;
}

.focus-item {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-soft);
  padding: 16px;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.focus-item:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 145, 178, 0.35);
  background: var(--panel);
}

.focus-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.focus-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.stats-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-soft);
  padding: 32px 0;
}

.stat,
.card,
.skill-card {
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
  transition: transform 260ms ease, border-color 260ms ease, background 260ms ease;
}

html[data-theme="dark"] .stat,
html[data-theme="dark"] .card,
html[data-theme="dark"] .skill-card {
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat {
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}

.stat:hover,
.card:hover,
.skill-card:hover {
  transform: translateY(-9px) scale(1.01);
  border-color: rgba(8, 145, 178, 0.34);
  background: var(--panel-strong);
}

html[data-theme="dark"] .stat:hover,
html[data-theme="dark"] .card:hover,
html[data-theme="dark"] .skill-card:hover {
  border-color: rgba(103, 232, 249, 0.34);
  background: rgba(15, 23, 42, 0.88);
}

.stat-value {
  margin: 0;
  font-size: 34px;
  font-weight: 950;
}

.stat-label {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

section { position: relative; }

.section-pad {
  padding: 110px 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-desc {
  margin: 20px auto 0;
  max-width: 730px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.resume-desc,
.contact-desc {
  margin-left: 0;
}

.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--soft);
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  transition: all 220ms ease;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: transparent;
  background: var(--cyan);
  color: var(--button-text);
  transform: translateY(-2px);
}

html[data-theme="dark"] .filter-btn:hover,
html[data-theme="dark"] .filter-btn.active {
  color: #020617;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 26px;
}

.card::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.10);
  filter: blur(32px);
  transition: background 260ms ease;
}

html[data-theme="dark"] .card::before {
  background: rgba(103, 232, 249, 0.10);
}

.card:hover::before { background: rgba(8, 145, 178, 0.18); }

html[data-theme="dark"] .card:hover::before { background: rgba(103, 232, 249, 0.22); }

.card-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tag {
  display: inline-flex;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 800;
}

.card h3 {
  position: relative;
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.card p {
  position: relative;
  min-height: 118px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.stack {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.badge {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--soft);
  padding: 7px 10px;
  font-size: 12px;
}

.card-actions {
  position: relative;
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 900;
  transition: background 180ms ease, transform 180ms ease;
}

.mini-btn:hover {
  background: var(--cyan);
  color: var(--button-text);
  transform: translateY(-2px);
}

html[data-theme="dark"] .mini-btn:hover {
  color: #020617;
}

.skills-section { background: var(--surface-soft); }

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.skill-card {
  border-radius: var(--radius-xl);
  padding: 26px;
}

.skill-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(8, 145, 178, 0.10);
  color: var(--cyan);
  font-size: 24px;
  margin-bottom: 20px;
}

html[data-theme="dark"] .skill-icon {
  background: rgba(103, 232, 249, 0.10);
}

.skill-card h3 {
  margin: 0;
  font-size: 20px;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  display: grid;
  gap: 13px;
  color: var(--muted);
  font-size: 14px;
}

.skill-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 999px;
  margin-top: 8px;
  background: var(--cyan);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.about-copy {
  color: var(--soft);
  font-size: 18px;
  line-height: 1.85;
}

.about-copy p { margin: 0 0 24px; }

.about-tags {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}

.about-tags span {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
  padding: 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

.resume-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(8,145,178,0.10), var(--panel), rgba(37,99,235,0.07));
  padding: 48px;
  box-shadow: var(--shadow);
}

html[data-theme="dark"] .resume-box {
  background: linear-gradient(135deg, rgba(103,232,249,0.14), rgba(255,255,255,0.045), rgba(37,99,235,0.12));
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}

.resume-actions {
  display: grid;
  gap: 12px;
}

.contact-section { padding-top: 0; }

.contact-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--panel);
  padding: 48px;
  box-shadow: var(--shadow);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.contact-links {
  display: grid;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-soft);
  padding: 18px 20px;
  color: var(--soft);
  font-weight: 750;
  transition: all 220ms ease;
}

.contact-link:hover {
  transform: translateX(4px);
  background: var(--panel-strong);
  border-color: rgba(8,145,178,0.28);
  color: var(--text);
}

footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(6px);
  transition: opacity 700ms cubic-bezier(.22,1,.36,1), transform 700ms cubic-bezier(.22,1,.36,1), filter 700ms cubic-bezier(.22,1,.36,1);
}

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

.hidden-project { display: none; }

@media (max-width: 1000px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .resume-grid {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .resume-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .nav-links {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 32px, var(--max));
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .menu-btn {
    display: inline-grid;
    place-items: center;
  }

  .mobile-menu.open {
    display: block;
  }

  .theme-toggle {
    padding: 8px 10px;
  }

  .toggle-text {
    display: none;
  }

  .hero {
    padding: 66px 0 86px;
  }

  h1 { font-size: 46px; }

  .hero-copy,
  .section-desc,
  .about-copy {
    font-size: 16px;
  }

  .project-grid,
  .skills-grid,
  .stats-grid,
  .about-tags {
    grid-template-columns: 1fr;
  }

  .section-pad {
    padding: 82px 0;
  }

  .resume-box,
  .contact-box {
    padding: 28px;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .resume-actions {
    width: 100%;
  }
}

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






/* Page fade transitions */
.page-fade {
  opacity: 0;
  animation: pageFadeIn 420ms ease forwards;
}

.page-fade.page-exit {
  animation: pageFadeOut 260ms ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pageFadeOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(8px); }
}

.active-nav {
  color: var(--text) !important;
}

.resume-desc code,
.resume-replace-note code {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
  padding: 2px 6px;
  color: var(--text);
}

.resume-page-hero {
  padding: 88px 0 36px;
}

.resume-page-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
}

.resume-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.resume-dedicated-section {
  min-height: 100vh;
  padding: 32px 0 96px;
}

.resume-document {
  height: min(1200px, calc(100vh - 120px));
  min-height: 780px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.resume-document-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

.resume-replace-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 1000px) {
  .resume-page-header {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .resume-page-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .resume-page-hero {
    padding: 68px 0 28px;
  }

  .resume-dedicated-section {
    padding-bottom: 72px;
  }

  .resume-page-actions {
    width: 100%;
  }

  .resume-document {
    min-height: 650px;
    height: 78vh;
    border-radius: 20px;
  }
}


/* FULLSCREEN RESUME (no scrolling container) */
.resume-dedicated-section {
  padding: 0;
  height: calc(100vh - 80px); /* subtract nav */
}

.resume-document {
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  border-left: none;
  border-right: none;
  border-bottom: none;
}

.resume-document-frame {
  height: 100%;
}


/* TRUE FULLSCREEN RESUME PAGE OVERRIDES */
.resume-fullscreen-body {
  height: 100vh;
  overflow: hidden;
  background: #ffffff;
}

.resume-fullscreen-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.resume-fullscreen-nav {
  width: 100%;
  max-width: none;
  min-height: 74px;
  padding: 0 24px;
  margin: 0;
}

.resume-mobile-menu {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 24px;
  padding-right: 24px;
}

.resume-fullscreen-main {
  position: fixed;
  top: 75px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: calc(100vh - 75px);
  margin: 0;
  padding: 0;
  background: #ffffff;
  overflow: hidden;
}

.resume-fullscreen-frame {
  display: block;
  width: 100vw;
  height: calc(100vh - 75px);
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: #ffffff;
}

@media (max-width: 760px) {
  .resume-fullscreen-nav {
    padding: 0 16px;
  }

  .resume-mobile-menu {
    padding-left: 16px;
    padding-right: 16px;
  }

  .resume-fullscreen-main {
    top: 75px;
    height: calc(100vh - 75px);
  }

  .resume-fullscreen-frame {
    height: calc(100vh - 75px);
  }
}


/* Apple-style premium project section */
.premium-work-section {
  overflow: hidden;
}

.premium-work-section::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 80px;
  width: min(900px, 90vw);
  height: 420px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(8,145,178,0.13), transparent 68%);
  pointer-events: none;
}

html[data-theme="dark"] .premium-work-section::before {
  background: radial-gradient(circle, rgba(103,232,249,0.14), transparent 68%);
}

.premium-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.premium-project-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(241,245,249,0.76)),
    var(--panel);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(24px);
  transition: transform 340ms cubic-bezier(.22,1,.36,1), border-color 340ms ease, box-shadow 340ms ease;
}

html[data-theme="dark"] .premium-project-card {
  background:
    linear-gradient(145deg, rgba(15,23,42,0.88), rgba(2,6,23,0.72)),
    var(--panel);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
}

.premium-project-card:hover {
  transform: translateY(-12px) scale(1.012);
  border-color: rgba(8,145,178,0.30);
  box-shadow: 0 36px 110px rgba(15, 23, 42, 0.16);
}

html[data-theme="dark"] .premium-project-card:hover {
  border-color: rgba(103,232,249,0.34);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.38);
}

.feature-project {
  grid-column: span 2;
  min-height: 480px;
  background:
    radial-gradient(circle at 78% 18%, rgba(8,145,178,0.24), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.95), rgba(241,245,249,0.74));
}

html[data-theme="dark"] .feature-project {
  background:
    radial-gradient(circle at 78% 18%, rgba(103,232,249,0.22), transparent 34%),
    linear-gradient(145deg, rgba(15,23,42,0.92), rgba(2,6,23,0.76));
}

.project-orb {
  position: absolute;
  right: -120px;
  top: -120px;
  width: 430px;
  height: 430px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.80), rgba(8,145,178,0.28) 35%, transparent 66%);
  filter: blur(2px);
  opacity: 0.85;
  animation: heroFloat 7s ease-in-out infinite;
}

html[data-theme="dark"] .project-orb {
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.28), rgba(103,232,249,0.26) 35%, transparent 66%);
}

.project-content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: inherit;
  flex-direction: column;
  padding: clamp(26px, 4vw, 42px);
}

.project-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

.project-category,
.project-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.project-category {
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 7px 12px;
}

.project-status {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.42);
  color: var(--muted);
  padding: 6px 11px;
}

html[data-theme="dark"] .project-status {
  background: rgba(255,255,255,0.045);
}

.premium-project-card h3 {
  max-width: 760px;
  margin: 0;
  color: var(--text);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.premium-project-card:not(.feature-project) h3 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.02;
}

.premium-project-card p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--soft);
  font-size: 17px;
  line-height: 1.75;
}

.premium-project-card:not(.feature-project) p {
  font-size: 15px;
}

.project-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.project-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 750;
}

.project-highlights span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--cyan);
  box-shadow: 0 0 18px rgba(8,145,178,0.38);
}

html[data-theme="dark"] .project-highlights span::before {
  box-shadow: 0 0 18px rgba(103,232,249,0.38);
}

.premium-project-card .stack {
  margin-top: auto;
  padding-top: 30px;
}

.premium-project-card .card-actions {
  margin-top: 24px;
}

.primary-project-link {
  background: var(--cyan);
  color: var(--button-text);
}

html[data-theme="dark"] .primary-project-link {
  color: #020617;
}

.primary-project-link:hover {
  background: var(--cyan-strong);
}

html[data-theme="dark"] .primary-project-link:hover {
  background: #a5f3fc;
}

@media (max-width: 900px) {
  .premium-project-grid {
    grid-template-columns: 1fr;
  }

  .feature-project {
    grid-column: span 1;
  }

  .project-orb {
    width: 300px;
    height: 300px;
    right: -110px;
    top: -110px;
  }
}

@media (max-width: 760px) {
  .premium-project-card {
    min-height: 420px;
    border-radius: 28px;
  }

  .feature-project {
    min-height: 470px;
  }

  .project-topline {
    margin-bottom: 24px;
  }

  .premium-project-card h3 {
    letter-spacing: -0.04em;
  }
}


/* App Store-level iOS project visuals + fixed filtering */
.premium-project-card.filtered-out,
.hidden-project {
  display: none !important;
}

.appstore-project-grid {
  align-items: stretch;
}

.app-store-card {
  min-height: 500px;
}

.app-store-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 360px);
  gap: 28px;
  min-height: inherit;
}

.compact-app-layout {
  grid-template-columns: 1fr;
}

.app-store-layout .project-content {
  min-height: 100%;
}

.iphone-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 430px;
  padding: 24px;
}

.iphone-frame {
  position: relative;
  width: 230px;
  height: 460px;
  border: 10px solid #111827;
  border-radius: 44px;
  background: #020617;
  box-shadow:
    0 34px 80px rgba(15, 23, 42, 0.26),
    inset 0 0 0 1px rgba(255,255,255,0.12);
  transform: rotate(3deg);
  transition: transform 340ms cubic-bezier(.22,1,.36,1);
}

html[data-theme="dark"] .iphone-frame {
  border-color: #0f172a;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255,255,255,0.12);
}

.app-store-card:hover .iphone-frame {
  transform: rotate(0deg) translateY(-8px) scale(1.02);
}

.iphone-speaker {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 72px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #020617;
  z-index: 2;
}

.iphone-screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 34px;
  padding: 44px 18px 18px;
}

.twidddle-screen {
  color: white;
  background:
    radial-gradient(circle at top, rgba(103,232,249,0.36), transparent 36%),
    linear-gradient(180deg, #111827, #020617);
}

.app-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #67e8f9, #2563eb);
  color: white;
  font-weight: 950;
  font-size: 25px;
  box-shadow: 0 16px 34px rgba(34,211,238,0.24);
}

.screen-label {
  margin: 14px 0 22px !important;
  min-height: 0 !important;
  color: rgba(255,255,255,0.66) !important;
  font-size: 13px !important;
}

.iphone-screen h4 {
  margin: 0 0 18px;
  font-size: 28px;
  letter-spacing: -0.04em;
}

.countdown-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.countdown-row span {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 16px;
  background: rgba(255,255,255,0.10);
  color: white;
  font-size: 22px;
  font-weight: 950;
}

.iphone-screen small {
  display: block;
  margin-top: 8px;
  color: rgba(255,255,255,0.50);
  text-align: center;
}

.widget-card {
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.10);
  padding: 14px;
  color: white;
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.muted-widget {
  margin-top: 10px;
  opacity: 0.66;
}

.mini-app-preview {
  position: relative;
  min-height: 210px;
  margin: 24px clamp(26px, 4vw, 42px) clamp(26px, 4vw, 42px);
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    radial-gradient(circle at top, rgba(8,145,178,0.16), transparent 46%),
    var(--surface-soft);
  overflow: hidden;
}

html[data-theme="dark"] .mini-app-preview {
  background:
    radial-gradient(circle at top, rgba(103,232,249,0.14), transparent 46%),
    rgba(255,255,255,0.035);
}

.mini-app-preview::before {
  content: "";
  position: absolute;
  inset: auto -40px -80px;
  height: 130px;
  border-radius: 999px;
  background: rgba(8,145,178,0.15);
  filter: blur(34px);
}

html[data-theme="dark"] .mini-app-preview::before {
  background: rgba(103,232,249,0.16);
}

.mini-app-preview > * {
  position: relative;
  z-index: 1;
}

.weather-icon {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: linear-gradient(135deg, #bae6fd, #67e8f9);
  color: #075985;
  font-size: 34px;
  box-shadow: 0 20px 45px rgba(8,145,178,0.18);
}

.mini-app-preview strong {
  margin-top: 14px;
  display: block;
  color: var(--text);
  font-size: 34px;
  letter-spacing: -0.04em;
}

.mini-app-preview span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.forecast-bars {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
}

.forecast-bars i {
  display: block;
  width: 24px;
  border-radius: 999px;
  background: var(--cyan);
  opacity: 0.75;
}

.forecast-bars i:nth-child(1) { height: 28px; }
.forecast-bars i:nth-child(2) { height: 44px; }
.forecast-bars i:nth-child(3) { height: 34px; }

.timer-ring {
  width: 116px;
  height: 116px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--panel) 52%, transparent 53%),
    conic-gradient(var(--cyan) 0 72%, rgba(148,163,184,0.22) 72% 100%);
  box-shadow: 0 20px 45px rgba(8,145,178,0.14);
}

.timer-ring span {
  margin: 0;
  color: var(--text);
  font-size: 36px;
  font-weight: 950;
}

@media (max-width: 1000px) {
  .app-store-layout {
    grid-template-columns: 1fr;
  }

  .iphone-showcase {
    min-height: 360px;
    padding-top: 0;
  }

  .iphone-frame {
    width: 205px;
    height: 410px;
  }
}

@media (max-width: 760px) {
  .app-store-card {
    min-height: auto;
  }

  .iphone-showcase {
    min-height: 330px;
  }

  .iphone-frame {
    width: 185px;
    height: 370px;
    border-radius: 38px;
  }

  .iphone-screen {
    border-radius: 28px;
  }

  .mini-app-preview {
    margin: 20px 24px 24px;
  }
}


/* Real Twidddle assets + App Store-style showcase */
.twidddle-card-gallery {
  position: relative;
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.twidddle-card-shot {
  display: block;
  width: 190px;
  max-width: 100%;
  border-radius: 34px;
  box-shadow: 0 34px 90px rgba(15, 23, 42, 0.26);
  object-fit: cover;
  transition: transform 360ms cubic-bezier(.22,1,.36,1);
}

html[data-theme="dark"] .twidddle-card-shot {
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.45);
}

.main-shot {
  position: relative;
  z-index: 2;
  transform: rotate(-3deg);
}

.floating-shot {
  position: absolute;
  right: 20px;
  bottom: 22px;
  width: 150px;
  z-index: 1;
  opacity: 0.94;
  transform: rotate(7deg);
}

.feature-project:hover .main-shot {
  transform: rotate(0deg) translateY(-10px) scale(1.025);
}

.feature-project:hover .floating-shot {
  transform: rotate(3deg) translateY(-6px) scale(1.03);
}

.app-icon-preview img {
  width: 92px;
  height: 92px;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.16);
}

html[data-theme="dark"] .app-icon-preview img {
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.36);
}

.twidddle-showcase {
  overflow: hidden;
  background: linear-gradient(180deg, transparent, var(--surface-soft), transparent);
}

.twidddle-hero-showcase,
.showcase-block,
.brand-strip {
  border: 1px solid var(--border);
  border-radius: 42px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.86), rgba(241,245,249,0.68)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

html[data-theme="dark"] .twidddle-hero-showcase,
html[data-theme="dark"] .showcase-block,
html[data-theme="dark"] .brand-strip {
  background:
    linear-gradient(145deg, rgba(15,23,42,0.88), rgba(2,6,23,0.72)),
    var(--panel);
}

.twidddle-hero-showcase {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  align-items: center;
  min-height: 700px;
  padding: clamp(28px, 5vw, 60px);
}

.twidddle-copy h3,
.showcase-block-header h3,
.notes-copy h3,
.brand-strip h3 {
  margin: 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.twidddle-copy p,
.showcase-block-header p,
.notes-copy p {
  max-width: 620px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.75;
}

.showcase-pill {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-text);
  padding: 8px 13px;
  font-size: 12px;
  font-weight: 900;
}

.showcase-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.device-pair {
  position: relative;
  min-height: 620px;
}

.real-phone {
  position: absolute;
  overflow: hidden;
  border: 10px solid #111827;
  border-radius: 44px;
  background: #020617;
  box-shadow: 0 44px 110px rgba(15, 23, 42, 0.30);
}

.real-phone::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 72px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #020617;
  z-index: 2;
}

.real-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.light-phone {
  width: 270px;
  height: 570px;
  left: 6%;
  top: 24px;
  transform: rotate(-5deg);
  z-index: 2;
}

.dark-phone {
  width: 245px;
  height: 520px;
  right: 4%;
  top: 78px;
  transform: rotate(5deg);
  z-index: 1;
}

.showcase-block {
  margin-top: 28px;
  padding: clamp(28px, 5vw, 56px);
}

.showcase-block-header {
  max-width: 780px;
  margin-bottom: 34px;
}

.view-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.view-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--panel);
  box-shadow: 0 20px 55px rgba(15,23,42,0.10);
  transition: transform 320ms cubic-bezier(.22,1,.36,1), box-shadow 320ms ease;
}

.view-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 34px 80px rgba(15,23,42,0.16);
}

.view-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19;
  object-fit: cover;
  object-position: top;
}

.view-card figcaption {
  padding: 16px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.widget-stage {
  position: relative;
  min-height: 860px;
  border-radius: 34px;
  background: #000;
  overflow: hidden;
}

.widget-shot {
  position: absolute;
  display: block;
  border-radius: 26px;
  box-shadow: 0 34px 90px rgba(0,0,0,0.32);
  object-fit: cover;
  transition: transform 420ms cubic-bezier(.22,1,.36,1);
}

.widget-one {
  width: 38%;
  left: 7%;
  top: 7%;
}

.widget-two {
  width: 38%;
  right: 7%;
  top: 10%;
}

.widget-three {
  width: 30%;
  left: 35%;
  bottom: 7%;
}

.widget-stage:hover .widget-one {
  transform: translateY(-10px) rotate(-2deg);
}

.widget-stage:hover .widget-two {
  transform: translateY(-8px) rotate(2deg);
}

.widget-stage:hover .widget-three {
  transform: translateY(-12px) scale(1.02);
}

.notes-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 36px;
  align-items: center;
}

.notes-phone {
  position: relative;
  width: min(360px, 100%);
  height: 720px;
  margin: 0 auto;
  transform: rotate(1.5deg);
}

.brand-strip {
  margin-top: 28px;
  padding: clamp(28px, 5vw, 46px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.brand-strip h3 {
  font-size: clamp(32px, 4vw, 52px);
}

.brand-assets img {
  width: min(260px, 42vw);
  border-radius: 34px;
  box-shadow: 0 28px 75px rgba(0,0,0,0.22);
}

@media (max-width: 1050px) {
  .twidddle-hero-showcase,
  .notes-layout,
  .brand-strip {
    grid-template-columns: 1fr;
  }

  .device-pair {
    min-height: 620px;
  }

  .view-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .widget-stage {
    min-height: 720px;
  }

  .widget-one,
  .widget-two {
    width: 43%;
  }

  .widget-three {
    width: 34%;
    left: 33%;
  }
}

@media (max-width: 760px) {
  .twidddle-hero-showcase,
  .showcase-block,
  .brand-strip {
    border-radius: 30px;
  }

  .device-pair {
    min-height: 520px;
  }

  .light-phone {
    width: 210px;
    height: 445px;
    left: 1%;
  }

  .dark-phone {
    width: 195px;
    height: 415px;
    right: 0;
    top: 82px;
  }

  .view-grid {
    grid-template-columns: 1fr;
  }

  .view-card img {
    aspect-ratio: 9 / 15;
  }

  .widget-stage {
    min-height: 760px;
  }

  .widget-one {
    width: 78%;
    left: 11%;
    top: 5%;
  }

  .widget-two {
    width: 78%;
    left: 11%;
    right: auto;
    top: 34%;
  }

  .widget-three {
    width: 62%;
    left: 19%;
    bottom: 5%;
  }

  .notes-phone {
    height: 620px;
  }

  .twidddle-card-gallery {
    min-height: 350px;
  }

  .twidddle-card-shot {
    width: 150px;
  }

  .floating-shot {
    width: 120px;
    right: 0;
  }
}


/* Dedicated Twidddle product page */
.twidddle-page-main .twidddle-showcase {
  padding-top: 92px;
}

.twidddle-page-main .twidddle-showcase .section-heading {
  max-width: 880px;
}

.active-nav {
  color: var(--text) !important;
}

@media (max-width: 760px) {
  .twidddle-page-main .twidddle-showcase {
    padding-top: 72px;
  }
}


/* Widget section visibility fix */
.widget-showcase {
  background:
    radial-gradient(circle at 50% 0%, rgba(8,145,178,0.16), transparent 38%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(241,245,249,0.86)) !important;
}

html[data-theme="dark"] .widget-showcase {
  background:
    radial-gradient(circle at 50% 0%, rgba(103,232,249,0.18), transparent 38%),
    linear-gradient(145deg, rgba(30,41,59,0.96), rgba(15,23,42,0.92)) !important;
}

.widget-stage {
  background:
    linear-gradient(135deg, #f8fafc, #e2e8f0) !important;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.85),
    0 34px 90px rgba(15, 23, 42, 0.14);
  padding: 28px;
}

html[data-theme="dark"] .widget-stage {
  background:
    radial-gradient(circle at 50% 20%, rgba(103,232,249,0.10), transparent 34%),
    linear-gradient(135deg, #111827, #334155) !important;
  border-color: rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 34px 100px rgba(0,0,0,0.34);
}

.widget-stage::before {
  content: "";
  position: absolute;
  inset: 22px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.55);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="dark"] .widget-stage::before {
  border-color: rgba(255,255,255,0.10);
}

.widget-shot {
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.22);
  outline: 1px solid rgba(15,23,42,0.10);
  background: #000;
  box-shadow:
    0 32px 80px rgba(15,23,42,0.28),
    0 0 0 10px rgba(255,255,255,0.14);
}

html[data-theme="dark"] .widget-shot {
  border-color: rgba(255,255,255,0.20);
  outline-color: rgba(255,255,255,0.08);
  box-shadow:
    0 34px 95px rgba(0,0,0,0.48),
    0 0 0 10px rgba(255,255,255,0.08);
}

.secondary-project-link {
  background: transparent !important;
  border: 1px solid var(--border);
  color: var(--text) !important;
}

.secondary-project-link:hover {
  background: var(--surface-soft) !important;
}

@media (max-width: 760px) {
  .widget-stage {
    padding: 18px;
  }

  .widget-stage::before {
    inset: 14px;
  }
}


/* Consistent iPhone-style frames across Twidddle page */
.framed-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.framed-shot-card {
  margin: 0;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 34px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.92), rgba(241,245,249,0.72)),
    var(--panel);
  padding: 22px;
  box-shadow: 0 28px 80px rgba(15,23,42,0.12);
  transition: transform 320ms cubic-bezier(.22,1,.36,1), box-shadow 320ms ease, border-color 320ms ease;
}

html[data-theme="dark"] .framed-shot-card {
  background:
    linear-gradient(145deg, rgba(15,23,42,0.90), rgba(2,6,23,0.74)),
    var(--panel);
  box-shadow: 0 30px 90px rgba(0,0,0,0.32);
}

.framed-shot-card:hover {
  transform: translateY(-10px);
  border-color: rgba(8,145,178,0.30);
  box-shadow: 0 38px 100px rgba(15,23,42,0.18);
}

html[data-theme="dark"] .framed-shot-card:hover {
  border-color: rgba(103,232,249,0.34);
  box-shadow: 0 38px 110px rgba(0,0,0,0.44);
}

.screenshot-frame {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  background: #020617;
  box-shadow:
    0 24px 70px rgba(15,23,42,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.10);
}

html[data-theme="dark"] .screenshot-frame {
  box-shadow:
    0 28px 80px rgba(0,0,0,0.48),
    inset 0 0 0 1px rgba(255,255,255,0.10);
}

.screenshot-frame::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  width: 72px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #020617;
  z-index: 2;
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-frame {
  width: min(240px, 100%);
  aspect-ratio: 9 / 19.5;
  border: 10px solid #111827;
  border-radius: 44px;
}

.landscape-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  border: 10px solid #111827;
  border-radius: 44px;
}

.landscape-frame img {
  object-fit: cover;
  object-position: top;
}

.detail-phone-frame {
  width: min(330px, 100%);
}

.framed-shot-card figcaption {
  margin-top: 18px;
  color: var(--text);
  font-size: 14px;
  font-weight: 900;
  text-align: center;
}

.widget-frame-grid {
  align-items: stretch;
}

.widget-frame-grid .wide-widget-card {
  grid-column: span 1;
}

.widget-frame-grid .framed-shot-card {
  background:
    radial-gradient(circle at top, rgba(8,145,178,0.10), transparent 44%),
    linear-gradient(145deg, rgba(255,255,255,0.95), rgba(241,245,249,0.82));
}

html[data-theme="dark"] .widget-frame-grid .framed-shot-card {
  background:
    radial-gradient(circle at top, rgba(103,232,249,0.12), transparent 44%),
    linear-gradient(145deg, rgba(30,41,59,0.96), rgba(15,23,42,0.88));
}

.notes-framed-card {
  max-width: 430px;
  margin: 0 auto;
}

.brand-framed-card {
  width: min(340px, 44vw);
  padding: 18px;
}

.brand-framed-card .phone-frame {
  width: 100%;
}

.brand-assets img {
  width: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

@media (max-width: 1050px) {
  .framed-showcase-grid {
    grid-template-columns: 1fr;
  }

  .landscape-frame {
    width: min(360px, 100%);
  }

  .brand-framed-card {
    width: min(360px, 100%);
  }
}

@media (max-width: 760px) {
  .framed-shot-card {
    border-radius: 28px;
    padding: 16px;
  }

  .phone-frame,
  .landscape-frame {
    border-width: 8px;
    border-radius: 36px;
  }

  .screenshot-frame::before {
    width: 62px;
    height: 17px;
    top: 10px;
  }

  .detail-phone-frame {
    width: min(280px, 100%);
  }
}


/* Home Screen Widgets: match Multiple Views phone sizing */
.widget-phone-grid {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.widget-phone-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18px;
}

.widget-phone-card img {
  aspect-ratio: auto !important;
}

.widget-phone-frame {
  width: min(240px, 100%);
  aspect-ratio: 9 / 19.5;
  border: 10px solid #111827;
  border-radius: 44px;
  background: #020617;
  box-shadow:
    0 24px 70px rgba(15,23,42,0.22),
    inset 0 0 0 1px rgba(255,255,255,0.10);
}

.widget-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.widget-phone-card figcaption {
  width: 100%;
  margin-top: 0;
}

/* override older widget mixed-size rules */
.widget-frame-grid,
.wide-widget-card,
.landscape-frame {
  all: unset;
}

@media (max-width: 1050px) {
  .widget-phone-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .widget-phone-frame {
    width: min(220px, 100%);
  }
}

@media (max-width: 900px) {
  .widget-phone-grid {
    grid-template-columns: 1fr;
  }

  .widget-phone-frame {
    width: min(260px, 100%);
  }
}

@media (max-width: 760px) {
  .widget-phone-frame {
    width: min(235px, 100%);
    border-width: 8px;
    border-radius: 36px;
  }
}


/* Home Screen Widgets: borderless like Multiple Views */
.widget-phone-card {
  padding: 0 !important;
  align-items: stretch !important;
}

.widget-phone-card img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19 !important;
  height: auto !important;
  object-fit: cover;
  object-position: top;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.widget-phone-card figcaption {
  margin-top: 0 !important;
  padding: 16px;
}

/* fully neutralize previous iPhone-frame styling for widget section */
.widget-phone-frame,
.widget-phone-frame::before,
.widget-phone-frame img {
  all: unset;
}

@media (max-width: 760px) {
  .widget-phone-card img {
    aspect-ratio: 9 / 15 !important;
  }
}


/* Apple-level final CTA */
.final-cta-section {
  position: relative;
  padding: 110px 0;
}

.final-cta-card {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 42px;
  align-items: end;
  border: 1px solid var(--border);
  border-radius: 44px;
  padding: clamp(34px, 6vw, 70px);
  background:
    radial-gradient(circle at 85% 18%, rgba(8,145,178,0.22), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(241,245,249,0.78));
  box-shadow: 0 38px 120px rgba(15,23,42,0.14);
}

html[data-theme="dark"] .final-cta-card {
  background:
    radial-gradient(circle at 85% 18%, rgba(103,232,249,0.22), transparent 34%),
    linear-gradient(145deg, rgba(15,23,42,0.94), rgba(2,6,23,0.82));
  box-shadow: 0 42px 130px rgba(0,0,0,0.42);
}

.final-cta-glow {
  position: absolute;
  right: -180px;
  top: -180px;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.72), rgba(8,145,178,0.26) 34%, transparent 68%);
  filter: blur(2px);
  opacity: 0.85;
  animation: heroFloat 8s ease-in-out infinite;
}

html[data-theme="dark"] .final-cta-glow {
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,0.22), rgba(103,232,249,0.25) 34%, transparent 68%);
}

.final-cta-content,
.final-cta-actions {
  position: relative;
  z-index: 2;
}

.final-cta-content h2 {
  max-width: 820px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.final-cta-desc {
  margin-left: 0;
  max-width: 670px;
}

.final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
}

.final-cta-actions .btn {
  width: 100%;
  white-space: nowrap;
}

@media (max-width: 1000px) {
  .final-cta-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .final-cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: 0;
  }

  .final-cta-actions .btn {
    width: auto;
  }
}

@media (max-width: 760px) {
  .final-cta-section {
    padding: 82px 0;
  }

  .final-cta-card {
    min-height: auto;
    border-radius: 32px;
  }

  .final-cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .final-cta-actions .btn {
    width: 100%;
  }
}
