:root {
  --bg: #050505;
  --bg-soft: #090909;
  --surface: #101010;
  --surface-2: #161616;
  --surface-3: #1d1d1f;
  --text: #f5f5f5;
  --text-soft: #d4d4d8;
  --muted: #a1a1aa;
  --muted-2: #71717a;
  --border: #2a2a2e;
  --border-strong: #3f3f46;
  --accent: #f8f8f8;
  --brand: #e67894;
  --brand-deep: #7d315f;
  --brand-glow: rgba(230, 120, 148, 0.25);
  --shadow: 0 34px 100px rgba(0, 0, 0, 0.48);
  --bg-grid-1: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 96px);
  --bg-grid-2: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.012) 0 1px, transparent 1px 96px);
  --bg-glow-1: linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 320px);
  --bg-glow-2: linear-gradient(110deg, rgba(230, 120, 148, 0.08), transparent 24%);
  --max: 1240px;
}

[data-theme="light"] {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --text: #0f172a;
  --text-soft: #334155;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --accent: #0f172a;
  --brand: #db2777;
  --brand-deep: #9d174d;
  --brand-glow: rgba(219, 39, 119, 0.22);
  --shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
  --bg-grid-1: repeating-linear-gradient(90deg, rgba(15, 23, 42, 0.035) 0 1px, transparent 1px 96px);
  --bg-grid-2: repeating-linear-gradient(0deg, rgba(15, 23, 42, 0.02) 0 1px, transparent 1px 96px);
  --bg-glow-1: linear-gradient(180deg, rgba(255, 255, 255, 0.95), transparent 320px);
  --bg-glow-2: linear-gradient(110deg, rgba(219, 39, 119, 0.06), transparent 24%);
  color-scheme: light;
}

html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 280ms ease, border-color 280ms ease, color 280ms ease, box-shadow 280ms ease !important;
}

/* ==========================================================================
   Scroll Progress Bar
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #e67894, #f43f5e, #fb7185);
  box-shadow: 0 0 12px rgba(230, 120, 148, 0.7);
  z-index: 1000;
  pointer-events: none;
  transition: width 120ms cubic-bezier(0.1, 0.5, 0.5, 1);
}

[data-theme="light"] .scroll-progress-bar {
  background: linear-gradient(90deg, #db2777, #f43f5e, #e11d48);
  box-shadow: 0 0 10px rgba(219, 39, 119, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    var(--bg-glow-1),
    var(--bg-glow-2),
    var(--bg-grid-1),
    var(--bg-grid-2),
    var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  letter-spacing: 0;
  color-scheme: dark;
}

[data-theme="light"] body {
  color-scheme: light;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

::selection {
  color: #050505;
  background: #f4f4f5;
}

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

.section-band {
  position: relative;
  padding: 104px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 48px), var(--max));
  margin: 18px auto 0;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(8, 8, 9, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 14px 46px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

[data-theme="light"] .site-header {
  border-color: rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.site-header.is-scrolled {
  background: rgba(8, 8, 8, 0.94);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover {
  transform: translateY(-1px);
}

.brand-mark {
  display: inline-flex;
  width: 64px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(230, 120, 148, 0.28);
  border-radius: 6px;
  background: linear-gradient(135deg, rgba(230, 120, 148, 0.12), rgba(255, 255, 255, 0.035));
  overflow: hidden;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-mark {
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(230, 120, 148, 0.22), rgba(255, 255, 255, 0.08));
  box-shadow: 0 4px 16px var(--brand-glow);
}

[data-theme="light"] .brand-mark {
  border-color: rgba(219, 39, 119, 0.25);
  background: linear-gradient(135deg, rgba(219, 39, 119, 0.1), rgba(255, 255, 255, 0.8));
}

[data-theme="light"] .brand:hover .brand-mark {
  border-color: var(--brand);
  box-shadow: 0 4px 16px rgba(219, 39, 119, 0.2);
}

.brand-mark img {
  width: 54px;
  height: 36px;
  object-fit: contain;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-mark img {
  transform: scale(1.05);
}

.brand-name {
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 200ms ease;
}

.brand:hover .brand-name {
  color: #ffffff;
}

[data-theme="light"] .brand-name {
  color: var(--text);
}

[data-theme="light"] .brand:hover .brand-name {
  color: var(--brand-deep);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  margin-right: 8px;
}

.site-nav a {
  min-height: 40px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: color 200ms ease, background 200ms ease, border-color 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: #ffffff;
  border-color: rgba(230, 120, 148, 0.3);
  background: rgba(230, 120, 148, 0.08);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  outline: 0;
}

.site-nav a.is-active {
  color: #ffffff;
  border-color: rgba(230, 120, 148, 0.38);
  background: linear-gradient(180deg, rgba(230, 120, 148, 0.14), rgba(255, 255, 255, 0.04));
}

[data-theme="light"] .site-nav a {
  color: var(--muted);
}

[data-theme="light"] .site-nav a:hover,
[data-theme="light"] .site-nav a:focus-visible {
  color: var(--text);
  border-color: rgba(219, 39, 119, 0.28);
  background: rgba(219, 39, 119, 0.06);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .site-nav a.is-active {
  color: #0f172a;
  border-color: rgba(219, 39, 119, 0.35);
  background: linear-gradient(180deg, rgba(219, 39, 119, 0.1), rgba(0, 0, 0, 0.02));
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 200ms ease;
}

.lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1.5px);
  box-shadow: 0 4px 14px var(--brand-glow);
}

.lang-toggle:active {
  transform: translateY(0) scale(0.97);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.lang-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.lang-toggle:hover .lang-icon {
  transform: rotate(20deg) scale(1.1);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.theme-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .theme-toggle:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.theme-toggle-track {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 20px;
  height: 20px;
}

.theme-icon {
  width: 18px;
  height: 18px;
  position: absolute;
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1), opacity 240ms ease;
}

/* Dark mode (default): show sun icon to switch to light */
.sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0.5);
  pointer-events: none;
}

/* Light mode: show moon icon to switch to dark */
[data-theme="light"] .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0.5);
  pointer-events: none;
}

[data-theme="light"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  min-height: 820px;
  padding-top: 154px;
  padding-bottom: 92px;
  overflow: hidden;
}

/* Hero Ambient Glow Orb */
.hero-glow-orb {
  position: absolute;
  top: 18%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(760px, 92vw);
  height: min(420px, 60vw);
  background: radial-gradient(ellipse at center, rgba(230, 120, 148, 0.16) 0%, rgba(125, 49, 95, 0.06) 45%, transparent 72%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: pulse-glow 9s ease-in-out infinite alternate;
}

@keyframes pulse-glow {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.65; }
  100% { transform: translate(-50%, -46%) scale(1.08); opacity: 0.95; }
}

[data-theme="light"] .hero-glow-orb {
  background: radial-gradient(ellipse at center, rgba(219, 39, 119, 0.08) 0%, rgba(219, 39, 119, 0.02) 45%, transparent 70%);
  filter: blur(50px);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(255, 255, 255, 0.075) 50% 50.16%, transparent 50.16%),
    linear-gradient(90deg, rgba(230, 120, 148, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%);
}

.hero::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, 0.84fr);
  gap: 86px;
  align-items: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 18px;
  padding: 6px 14px;
  border: 1px solid rgba(230, 120, 148, 0.28);
  border-radius: 999px;
  background: rgba(230, 120, 148, 0.07);
  backdrop-filter: blur(12px);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 200ms ease,
              background 200ms ease,
              box-shadow 220ms ease;
}

.status-badge:hover {
  transform: translateY(-1.5px);
  border-color: var(--brand);
  background: rgba(230, 120, 148, 0.14);
  box-shadow: 0 6px 20px var(--brand-glow);
}

.status-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

.status-dot::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.6;
  animation: pulse-ring 2.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }
  70%, 100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.eyebrow {
  position: relative;
  margin: 0 0 14px;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  position: absolute;
  top: 0.38em;
  left: 0;
  width: 7px;
  height: 7px;
  border: 1px solid rgba(230, 120, 148, 0.9);
  background: rgba(230, 120, 148, 0.18);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: 6.15rem;
  line-height: 0.98;
  letter-spacing: -0.022em;
}

h2 {
  margin-bottom: 18px;
  font-size: 3rem;
  line-height: 1.05;
  letter-spacing: -0.016em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.45rem;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.hero-intro,
.section-copy p,
.project-content p,
.contact-copy p {
  color: var(--text-soft);
  font-size: 1.08rem;
}

.hero-intro {
  max-width: 680px;
  margin-bottom: 30px;
}

.hero-copy {
  max-width: 760px;
}

.hero-actions,
.social-row,
.inline-links,
.project-topline,
.footer-inner {
  display: flex;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 200ms ease,
              background 200ms ease,
              color 200ms ease,
              box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2.5px) scale(1.02);
  outline: 0;
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn:active {
  transform: translateY(0) scale(0.98);
}

.btn-primary {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
  color: #050505;
}

.btn-primary::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -80%;
  width: 50%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(25deg);
  pointer-events: none;
  transition: transform 650ms ease;
}

.btn-primary:hover::after {
  transform: rotate(25deg) translate(360%, 0);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(255, 255, 255, 0.2), 0 0 20px var(--brand-glow);
}

.btn-secondary {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--brand);
  background: rgba(230, 120, 148, 0.1);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28), 0 0 16px rgba(230, 120, 148, 0.15);
}

.social-row {
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 640px;
  margin-top: 34px;
}

.hero-metrics div {
  min-height: 96px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018));
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 200ms ease,
              background 200ms ease,
              box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-metrics div:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 120, 148, 0.5);
  background: linear-gradient(180deg, rgba(230, 120, 148, 0.1), rgba(255, 255, 255, 0.03));
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35), 0 0 20px rgba(230, 120, 148, 0.15);
}

.hero-metrics strong {
  display: block;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1;
  transition: color 200ms ease;
}

.hero-metrics div:hover strong {
  color: var(--brand);
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.social-row a,
.inline-links a,
.project-topline a,
.site-footer a {
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 750;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  transition: color 200ms ease, border-color 200ms ease, transform 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.social-row a:hover,
.inline-links a:hover,
.project-topline a:hover,
.site-footer a:hover,
.social-row a:focus-visible,
.inline-links a:focus-visible,
.project-topline a:focus-visible,
.site-footer a:focus-visible {
  color: #fff;
  border-color: var(--brand);
  outline: 0;
}

.link-arrow {
  display: inline-block;
  font-size: 0.84em;
  margin-left: 3px;
  color: var(--brand);
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1), color 200ms ease;
}

a:hover .link-arrow,
a:focus-visible .link-arrow {
  transform: translate(3px, -3px);
  color: #fff;
}

.hero-visual {
  position: relative;
  min-height: 640px;
}

.portrait-frame {
  position: absolute;
  inset: 0 0 74px 72px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 260ms ease,
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.portrait-frame:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 120, 148, 0.4);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.55), 0 0 24px rgba(230, 120, 148, 0.15);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms cubic-bezier(0.16, 1, 0.3, 1);
}

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

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(0, 0, 0, 0.28));
}

@keyframes float-badge-1 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes float-badge-2 {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-panel {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: min(330px, 78%);
  padding: 22px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: rgba(14, 14, 15, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  animation: float-badge-2 8s ease-in-out infinite 3.5s;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 220ms ease,
              box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-panel:hover {
  animation-play-state: paused;
  transform: translateY(-4px);
  border-color: rgba(230, 120, 148, 0.45);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 20px rgba(230, 120, 148, 0.12);
}

.system-card {
  position: absolute;
  top: 52px;
  left: 0;
  width: 210px;
  padding: 18px;
  border: 1px solid rgba(230, 120, 148, 0.28);
  border-radius: 8px;
  background: rgba(10, 10, 11, 0.9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  animation: float-badge-1 7s ease-in-out infinite;
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 220ms ease,
              box-shadow 260ms cubic-bezier(0.16, 1, 0.3, 1);
}

.system-card:hover {
  animation-play-state: paused;
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), 0 0 24px var(--brand-glow);
}

.system-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.system-card ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.system-card li {
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 750;
}

.hero-panel span,
.credential-card span,
.cert-issuer,
.certificate-list a > span:first-child,
.certificate-item > span:first-child {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  transition: color 200ms ease;
}

.hero-panel strong {
  color: var(--text-soft);
  font-size: 0.98rem;
  line-height: 1.45;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.05fr);
  gap: 74px;
}

.section-kicker h2 {
  max-width: 520px;
}

.section-copy {
  display: grid;
  gap: 18px;
}

.section-copy p {
  margin-bottom: 0;
}

.about-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.about-strip span {
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-soft);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 200ms ease,
              background 200ms ease,
              color 200ms ease,
              box-shadow 220ms ease;
}

.about-strip span:hover {
  transform: translateY(-3px);
  border-color: rgba(230, 120, 148, 0.48);
  background: rgba(230, 120, 148, 0.12);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3), 0 0 16px rgba(230, 120, 148, 0.15);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 44px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.project-card,
.credential-card,
.certificate-list,
.contact-form {
  border: 1px solid var(--border);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.014)),
    rgba(10, 10, 11, 0.9);
}

.skill-card {
  position: relative;
  overflow: hidden;
  min-height: 268px;
  padding: 26px 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.048), rgba(255, 255, 255, 0.014)),
    rgba(10, 10, 11, 0.9);
  transition: transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 300ms ease,
              background 300ms ease,
              box-shadow 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Luminous top gradient beam that expands on hover */
.skill-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--brand) 50%, transparent 100%);
  opacity: 0;
  transform: scaleX(0.25);
  transform-origin: center;
  transition: opacity 300ms ease, transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 120, 148, 0.45);
  background:
    radial-gradient(circle at 85% 0%, rgba(230, 120, 148, 0.12), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(14, 14, 16, 0.98);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.58), 0 0 30px rgba(230, 120, 148, 0.16);
}

.skill-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.skill-card,
.skill-card h3,
.skill-card ul,
.skill-card li {
  cursor: default;
}

.skill-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  user-select: none;
  -webkit-user-select: none;
}

.skill-card h3::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid rgba(230, 120, 148, 0.82);
  background: rgba(230, 120, 148, 0.18);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
              background 240ms ease,
              border-color 240ms ease,
              box-shadow 240ms ease;
}

.skill-card:hover h3::before {
  transform: rotate(45deg) scale(1.18);
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 12px var(--brand);
}

.skill-card ul,
.feature-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-card li {
  display: inline-flex;
  align-items: center;
  margin: 0 6px 8px 0;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.9rem;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 180ms ease,
              background 180ms ease,
              color 180ms ease,
              box-shadow 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

.skill-card li:hover {
  transform: translateY(-3px) scale(1.04);
  border-color: var(--brand);
  background: rgba(230, 120, 148, 0.18);
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 14px var(--brand-glow);
}

.projects {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 36%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.025), transparent);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, 0.88fr);
  gap: 38px;
  align-items: center;
  margin-bottom: 30px;
  padding: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 260ms ease,
              background 260ms ease,
              box-shadow 300ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(230, 120, 148, 0.42);
  background:
    radial-gradient(circle at 80% 20%, rgba(230, 120, 148, 0.09), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(12, 12, 13, 0.96);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.6), 0 0 34px rgba(230, 120, 148, 0.14);
}

.project-card:nth-of-type(even) .project-media {
  order: 2;
}

.project-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  transition: transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 260ms ease,
              box-shadow 420ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-media img {
  transform: scale(1.025);
  border-color: rgba(230, 120, 148, 0.36);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48), 0 0 20px rgba(230, 120, 148, 0.12);
}

.project-content {
  position: relative;
  padding: 34px 18px 34px 0;
}

.project-index {
  position: absolute;
  top: 0;
  right: 0;
  color: rgba(255, 255, 255, 0.08);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.04);
  font-size: 4.3rem;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.project-topline {
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.project-topline .eyebrow {
  margin-bottom: 0;
}

.feature-list {
  display: grid;
  gap: 11px;
  margin: 24px 0;
}

.feature-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
}

.feature-list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(230, 120, 148, 0.75);
  background: rgba(230, 120, 148, 0.14);
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-list span {
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 750;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 160ms ease,
              background 160ms ease,
              color 160ms ease,
              box-shadow 180ms ease;
}

.tech-list span:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  background: rgba(230, 120, 148, 0.14);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25), 0 0 12px var(--brand-glow);
}

.credentials-grid {
  display: grid;
  grid-template-columns: 0.86fr 1.14fr;
  gap: 44px;
}

.credentials-grid .section-heading {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.credential-column {
  display: grid;
  gap: 14px;
}

.credential-card,
.certificate-list,
.contact-form {
  padding: 26px;
}

.credential-card {
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 220ms ease,
              background 220ms ease,
              box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.credential-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 120, 148, 0.4);
  background:
    linear-gradient(180deg, rgba(230, 120, 148, 0.05), transparent 60%),
    rgba(12, 12, 14, 0.95);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38), 0 0 20px rgba(230, 120, 148, 0.12);
}

.credential-card p {
  margin-bottom: 8px;
  color: var(--text-soft);
}

.credential-card p:last-child {
  margin-bottom: 0;
}

.inline-links {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

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

.certificate-list h3 {
  margin-bottom: 2px;
}

.cert-title {
  display: inline;
  color: var(--text-soft);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: normal;
  transition: color 200ms ease, font-weight 200ms ease;
}

.certificate-list a,
.certificate-item,
.cert-link-card {
  position: relative;
  display: block;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(12, 12, 14, 0.7);
  backdrop-filter: blur(8px);
  color: var(--text-soft);
  overflow: hidden;
  transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1),
              border-color 220ms ease,
              background 220ms ease,
              box-shadow 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cert-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.cert-meta-row .cert-issuer {
  margin-bottom: 0;
}

.cert-verify-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 0.72rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  border: 1px solid rgba(230, 120, 148, 0.32);
  background: rgba(230, 120, 148, 0.1);
  color: var(--brand);
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.cert-verify-badge svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.cert-badge-training {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
}

.certificate-list a:hover,
.certificate-list a:focus-visible,
.certificate-item:hover,
.cert-link-card:hover,
.cert-link-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--brand);
  background:
    radial-gradient(circle at 95% 50%, rgba(230, 120, 148, 0.15), transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(14, 14, 16, 0.95);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 24px var(--brand-glow);
  outline: 0;
}

.certificate-list a:hover .cert-title,
.certificate-list a:focus-visible .cert-title,
.certificate-item:hover .cert-title,
.cert-link-card:hover .cert-title,
.cert-link-card:focus-visible .cert-title {
  font-weight: 800;
  color: #ffffff;
}

.certificate-list a:hover .cert-issuer,
.certificate-list a:focus-visible .cert-issuer,
.certificate-item:hover .cert-issuer,
.cert-link-card:hover .cert-issuer,
.cert-link-card:focus-visible .cert-issuer {
  color: var(--brand);
}

.cert-link-card:hover .cert-verify-badge {
  border-color: var(--brand);
  background: rgba(230, 120, 148, 0.22);
  box-shadow: 0 0 12px var(--brand-glow);
}

.contact {
  padding-bottom: 96px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.028));
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.78fr);
  gap: 54px;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-links a,
.contact-links span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--text-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 2px;
  transition: color 200ms ease, border-color 200ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-links svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
  color: var(--brand);
  transition: color 200ms ease, transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.contact-links a:hover,
.contact-links a:focus-visible {
  color: #fff;
  border-color: var(--brand);
  transform: translateX(6px);
  outline: 0;
}

.contact-links a:hover svg,
.contact-links a:focus-visible svg {
  color: var(--brand);
  transform: scale(1.18);
}

.contact-form {
  display: grid;
  gap: 16px;
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: #090909;
  color: var(--text);
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.contact-form input:hover,
.contact-form textarea:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background: #0d0d0e;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--brand);
  background: #0c0c0d;
  box-shadow: 0 0 0 4px var(--brand-glow);
  outline: 0;
}

.contact-form .btn {
  width: fit-content;
  margin-top: 4px;
  cursor: pointer;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #050505;
}

.footer-inner {
  justify-content: space-between;
  gap: 18px;
  min-height: 92px;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

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

/* ==========================================================================
   Light Theme (White Mode) Comprehensive Overrides
   ========================================================================== */

[data-theme="light"] ::selection {
  color: #ffffff;
  background: #0f172a;
}

[data-theme="light"] .section-band {
  border-top-color: var(--border);
}

/* Hero Section */
[data-theme="light"] .hero::before {
  background:
    linear-gradient(135deg, transparent 0 50%, rgba(15, 23, 42, 0.04) 50% 50.16%, transparent 50.16%),
    linear-gradient(90deg, rgba(219, 39, 119, 0.05), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), transparent 44%);
}

[data-theme="light"] .hero::after {
  background: linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.12), transparent);
}

[data-theme="light"] .status-badge {
  border-color: rgba(219, 39, 119, 0.28);
  background: rgba(219, 39, 119, 0.07);
  color: var(--text);
}

[data-theme="light"] .eyebrow::before {
  border-color: rgba(219, 39, 119, 0.9);
  background: rgba(219, 39, 119, 0.18);
}

[data-theme="light"] .btn-primary {
  background: #0f172a;
  color: #ffffff;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-primary:focus-visible {
  background: #020617;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}

[data-theme="light"] .btn-secondary {
  border-color: var(--border-strong);
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .btn-secondary:hover,
[data-theme="light"] .btn-secondary:focus-visible {
  border-color: #94a3b8;
  background: #f8fafc;
}

[data-theme="light"] .hero-metrics div {
  border-color: var(--border);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .hero-metrics strong {
  color: var(--text);
}

[data-theme="light"] .hero-metrics span {
  color: #475569;
}

[data-theme="light"] .social-row a,
[data-theme="light"] .inline-links a,
[data-theme="light"] .project-topline a,
[data-theme="light"] .site-footer a {
  color: var(--text-soft);
  border-bottom-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .social-row a:hover,
[data-theme="light"] .inline-links a:hover,
[data-theme="light"] .project-topline a:hover,
[data-theme="light"] .site-footer a:hover,
[data-theme="light"] .social-row a:focus-visible,
[data-theme="light"] .inline-links a:focus-visible,
[data-theme="light"] .project-topline a:focus-visible,
[data-theme="light"] .site-footer a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

[data-theme="light"] a:hover .link-arrow,
[data-theme="light"] a:focus-visible .link-arrow {
  color: var(--brand);
}

[data-theme="light"] .portrait-frame {
  border-color: var(--border);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .portrait-frame::after {
  background: linear-gradient(180deg, transparent 65%, rgba(15, 23, 42, 0.12));
}

[data-theme="light"] .hero-panel {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .system-card {
  border-color: rgba(219, 39, 119, 0.25);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

/* About Section */
[data-theme="light"] .about-strip span {
  border-color: var(--border);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

/* Skills Cards & Enhanced Hover (Light Theme) */
[data-theme="light"] .skill-card {
  border-color: var(--border);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .skill-card:hover {
  border-color: rgba(219, 39, 119, 0.42);
  background:
    radial-gradient(circle at 85% 0%, rgba(219, 39, 119, 0.06), transparent 65%),
    #ffffff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.09), 0 0 24px rgba(219, 39, 119, 0.12);
}

[data-theme="light"] .skill-card h3::before {
  border-color: rgba(219, 39, 119, 0.8);
  background: rgba(219, 39, 119, 0.15);
}

[data-theme="light"] .skill-card:hover h3::before {
  background: var(--brand);
  border-color: var(--brand);
  box-shadow: 0 0 10px rgba(219, 39, 119, 0.45);
}

[data-theme="light"] .skill-card li {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
}

[data-theme="light"] .skill-card li:hover {
  border-color: rgba(219, 39, 119, 0.35);
  background: #ffffff;
  color: var(--brand-deep);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* Projects Section */
[data-theme="light"] .projects {
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), transparent 36%),
    linear-gradient(90deg, transparent, rgba(15, 23, 42, 0.015), transparent);
}

[data-theme="light"] .project-card {
  border-color: var(--border);
  background: #ffffff;
  box-shadow: 0 14px 44px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .project-card:hover {
  border-color: rgba(219, 39, 119, 0.32);
  background:
    radial-gradient(circle at 80% 20%, rgba(219, 39, 119, 0.04), transparent 60%),
    linear-gradient(180deg, #ffffff, #fafbff);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.11);
}

[data-theme="light"] .project-media img {
  background: #f1f5f9;
  border-color: var(--border);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .project-index {
  color: rgba(15, 23, 42, 0.12);
  -webkit-text-stroke: 1px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .feature-list li::before {
  border-color: rgba(219, 39, 119, 0.75);
  background: rgba(219, 39, 119, 0.15);
}

[data-theme="light"] .tech-list span {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
}

[data-theme="light"] .tech-list span:hover {
  border-color: rgba(15, 23, 42, 0.2);
  background: #ffffff;
  color: var(--text);
}

/* Credentials & Certificates */
[data-theme="light"] .credential-card,
[data-theme="light"] .certificate-list,
[data-theme="light"] .contact-form {
  border-color: var(--border);
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .credential-card:hover {
  border-color: rgba(219, 39, 119, 0.32);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .certificate-list a,
[data-theme="light"] .certificate-item,
[data-theme="light"] .cert-link-card {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text-soft);
}

[data-theme="light"] .cert-verify-badge {
  border-color: rgba(219, 39, 119, 0.28);
  background: rgba(219, 39, 119, 0.08);
  color: var(--brand);
}

[data-theme="light"] .cert-badge-training {
  border-color: var(--border-strong);
  background: #ffffff;
  color: var(--text-soft);
}

[data-theme="light"] .certificate-list a:hover,
[data-theme="light"] .certificate-list a:focus-visible,
[data-theme="light"] .certificate-item:hover,
[data-theme="light"] .cert-link-card:hover,
[data-theme="light"] .cert-link-card:focus-visible {
  border-color: rgba(219, 39, 119, 0.35);
  background:
    radial-gradient(circle at 95% 50%, rgba(219, 39, 119, 0.06), transparent 60%),
    #ffffff;
  color: var(--text);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
}

[data-theme="light"] .certificate-list a:hover .cert-title,
[data-theme="light"] .certificate-list a:focus-visible .cert-title,
[data-theme="light"] .certificate-item:hover .cert-title,
[data-theme="light"] .cert-link-card:hover .cert-title,
[data-theme="light"] .cert-link-card:focus-visible .cert-title {
  font-weight: 800;
  color: #0f172a;
}

/* Contact Section & Form */
[data-theme="light"] .contact {
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.02));
}

[data-theme="light"] .contact-links a,
[data-theme="light"] .contact-links span {
  border-bottom-color: rgba(15, 23, 42, 0.15);
}

[data-theme="light"] .contact-links a:hover,
[data-theme="light"] .contact-links a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--text);
}

[data-theme="light"] .contact-links a:hover svg,
[data-theme="light"] .contact-links a:focus-visible svg {
  color: var(--brand);
}

[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
  border-color: var(--border-strong);
  background: #f8fafc;
  color: var(--text);
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(219, 39, 119, 0.12);
}

/* Footer */
[data-theme="light"] .site-footer {
  border-top-color: var(--border);
  background: #f1f5f9;
}

[data-theme="light"] .lang-toggle {
  border-color: var(--border);
  background: var(--surface-2);
  color: var(--text);
}

[data-theme="light"] .lang-toggle:hover {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 4px 14px rgba(219, 39, 119, 0.16);
}

[data-theme="light"] .hero-metrics div:hover {
  border-color: rgba(219, 39, 119, 0.45);
  background: linear-gradient(180deg, #ffffff, #fff5f8);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08), 0 0 20px rgba(219, 39, 119, 0.1);
}

[data-theme="light"] .hero-metrics div:hover strong {
  color: var(--brand);
}

[data-theme="light"] .about-strip span:hover {
  border-color: var(--brand);
  background: rgba(219, 39, 119, 0.08);
  color: var(--brand-deep);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .tech-list span:hover {
  border-color: var(--brand);
  background: rgba(219, 39, 119, 0.08);
  color: var(--brand-deep);
}

[data-theme="light"] .contact-links a:hover,
[data-theme="light"] .contact-links a:focus-visible {
  color: var(--text);
  border-bottom-color: var(--brand);
}

[data-theme="light"] .site-footer a:hover,
[data-theme="light"] .site-footer a:focus-visible {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ==========================================================================
   RTL (Arabic) Localization Styles
   ========================================================================== */

[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: normal;
}

[dir="rtl"] .site-nav {
  margin-left: 8px;
  margin-right: auto;
}

[dir="rtl"] .eyebrow {
  padding-left: 0;
  padding-right: 16px;
  letter-spacing: normal;
}

[dir="rtl"] .eyebrow::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .link-arrow {
  margin-left: 0;
  margin-right: 4px;
  transform: scaleX(-1);
}

[dir="rtl"] a:hover .link-arrow,
[dir="rtl"] a:focus-visible .link-arrow {
  transform: translate(-3px, -3px) scaleX(-1);
}

[dir="rtl"] .btn:hover svg {
  transform: translateX(-3px);
}

[dir="rtl"] .portrait-frame {
  inset: 0 72px 74px 0;
}

[dir="rtl"] .hero-panel {
  right: auto;
  left: 0;
}

[dir="rtl"] .system-card {
  left: auto;
  right: 0;
}

[dir="rtl"] .skill-card li {
  margin: 0 0 8px 6px;
}

[dir="rtl"] .project-content {
  padding: 34px 0 34px 18px;
}

[dir="rtl"] .project-index {
  right: auto;
  left: 0;
}

[dir="rtl"] .feature-list li {
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .feature-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .contact-links a:hover,
[dir="rtl"] .contact-links a:focus-visible {
  transform: translateX(-6px);
}

[dir="rtl"] .scroll-progress-bar {
  left: auto;
  right: 0;
}

[dir="rtl"] .cert-verify-badge {
  letter-spacing: normal;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .hero-grid,
  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 620px;
    max-width: 560px;
  }

  .portrait-frame {
    left: 0;
  }

  .system-card {
    left: 18px;
  }

  .about-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .project-card,
  .project-card:nth-of-type(even) {
    grid-template-columns: 1fr;
  }

  .project-card:nth-of-type(even) .project-media {
    order: initial;
  }

  .project-content {
    padding: 12px 0 4px;
  }

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

  [dir="rtl"] .portrait-frame {
    right: 0;
    left: 0;
  }

  [dir="rtl"] .system-card {
    right: 18px;
    left: auto;
  }

  [dir="rtl"] .project-content {
    padding: 12px 0 4px;
  }
}

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

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

  .site-header {
    margin-top: 12px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 74px;
    right: 14px;
    left: 14px;
    display: grid;
    gap: 4px;
    padding: 12px;
    margin-left: 0;
    margin-right: 0;
    border: 1px solid var(--border);
    background: rgba(8, 8, 8, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  [data-theme="light"] .site-nav {
    background: rgba(255, 255, 255, 0.98);
    border-color: var(--border);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  }

  .nav-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 12px;
  }

  .brand-name {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 122px;
  }

  .hero-grid {
    gap: 48px;
  }

  h1 {
    font-size: 3.25rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .hero-intro,
  .section-copy p,
  .project-content p,
  .contact-copy p {
    font-size: 1rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 560px;
  }

  .portrait-frame {
    inset: 78px 0 68px 0;
  }

  .hero-panel {
    width: calc(100% - 28px);
    animation: none;
  }

  .system-card {
    top: 0;
    left: 0;
    width: 100%;
    animation: none;
  }

  .system-card ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .system-card li {
    font-size: 0.78rem;
  }

  .about-strip {
    grid-template-columns: 1fr;
  }

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

  .skill-card {
    min-height: auto;
  }

  .project-card {
    padding: 12px;
  }

  .project-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .project-index {
    top: 4px;
    right: 4px;
    font-size: 3rem;
  }

  .contact-grid {
    gap: 30px;
  }

  [dir="rtl"] .portrait-frame {
    inset: 78px 0 68px 0;
  }

  [dir="rtl"] .system-card {
    right: 0;
    left: 0;
  }

  [dir="rtl"] .project-index {
    right: auto;
    left: 4px;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.75rem;
  }

  h2 {
    font-size: 1.78rem;
  }

  .hero-visual {
    min-height: 540px;
  }

  .brand-mark {
    width: 58px;
  }

  .contact-form .btn {
    width: 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
