@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@600;700;900&family=Inter:wght@500;600;700;800&family=Space+Grotesk:wght@600;700&display=swap");

:root {
  color-scheme: dark;
  --deep-black: #0a0a0a;
  --dark-surface: #0f0f0f;
  --panel-bg: #141414;
  --premium-gold: #c9a84c;
  --gold-light: #e8cc6e;
  --gold-dark: #8b6823;
  --gold-deep: #2a1f08;
  --soft-white: #f5f3ea;
  --warm-white: #f8f6f1;
  --ink: #f5f3ea;
  --ink-muted: #b0ab9e;
  --muted-soft: #8a8578;
  --gold-glow: rgba(201, 168, 76, 0.3);
  --gold-soft: rgba(201, 168, 76, 0.12);
  --gold-line: rgba(201, 168, 76, 0.3);
  --line: rgba(245, 243, 234, 0.12);
  --line-strong: rgba(245, 243, 234, 0.2);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 20px 60px rgba(201, 168, 76, 0.15);
  --radius: 14px;
  --radius-lg: 20px;
  --time-ribbon-height: 34px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 7%, rgba(201, 168, 76, 0.08), transparent 31%),
    radial-gradient(circle at 86% 2%, rgba(201, 168, 76, 0.06), transparent 28%),
    radial-gradient(circle at 50% 38%, rgba(201, 168, 76, 0.04), transparent 36%),
    linear-gradient(135deg, #0a0a0a 0%, #0f0f0f 38%, #141414 72%, #0a0a0a 100%);
  color: var(--ink);
  font-family: "Cairo", "Tajawal", Tahoma, Arial, sans-serif;
  line-height: 1.7;
}

body.en {
  direction: ltr;
  font-family: "Inter", "Space Grotesk", "Segoe UI", Arial, Tahoma, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(245, 243, 234, 0.025) 1px, transparent 1px),
    linear-gradient(30deg, rgba(201, 168, 76, 0.02) 1px, transparent 1px);
  background-size: 92px 92px, 120px 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.88), transparent 82%);
}

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

main {
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
}

/* ── Time Ribbon ── */

.time-ribbon {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 34px;
  padding: 6px clamp(16px, 4vw, 56px);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(42, 31, 8, 0.98), rgba(139, 104, 35, 0.94), rgba(42, 31, 8, 0.98));
  border-bottom: 1px solid var(--gold-line);
  color: #fff0a8;
  font-family: "Cairo", Tahoma, sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.4);
}

.time-ribbon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 38%, rgba(244, 200, 75, 0.08) 44%, rgba(255, 229, 118, 0.34) 50%, rgba(244, 200, 75, 0.08) 56%, transparent 62% 100%);
  transform: translateX(-120%);
  animation: ribbonGoldSweep 3.8s linear infinite;
  pointer-events: none;
}

.time-ribbon time,
.time-ribbon [data-hijri-date],
.time-ribbon [data-gregorian-date] {
  position: relative;
  z-index: 1;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-dark));
  color: #fff1a8;
  font-weight: 700;
}

.time-dot {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--premium-gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.2), 0 0 16px var(--gold-glow);
}

.date-divider {
  position: relative;
  z-index: 1;
  color: var(--premium-gold);
  opacity: 0.6;
}

/* ── Prayer Ribbon ── Compact Premium ── */

.prayer-ribbon {
  position: relative;
  z-index: 55;
  background: linear-gradient(135deg, #0d0d0d, #111 50%, #0f0f0f);
  border-bottom: 1px solid var(--gold-line);
  padding: 6px clamp(16px, 3vw, 48px);
  font-size: 11px;
}

.pr-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* Location label — green pill matching Dhuhr/next-prayer style */
.pr-city-label {
  font-size: 11px;
  font-weight: 700;
  color: #B9F6CA;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
  flex-shrink: 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(0, 168, 107, 0.12);
  border: 1px solid #00A86B;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 12px rgba(0, 168, 107, 0.18), inset 0 0 6px rgba(0, 168, 107, 0.05);
}

/* GPS capsule — same style as prayer pills, clickable GPS trigger */
.pr-gps-capsule {
  background: rgba(0, 168, 107, 0.12);
  border: 1px solid #00A86B;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  color: #00E676;
  flex-shrink: 0;
  cursor: pointer;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 0 12px rgba(0, 168, 107, 0.18), inset 0 0 6px rgba(0, 168, 107, 0.05);
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.pr-gps-capsule:hover {
  background: rgba(0, 168, 107, 0.25);
  border-color: #00E676;
  box-shadow: 0 0 20px rgba(0, 168, 107, 0.35);
}

/* Dimmed state — after GPS attempt, inert, no glow, same space */
.pr-gps-capsule.pr-gps-done {
  cursor: default;
  pointer-events: none;
  box-shadow: none;
  border-color: rgba(0, 168, 107, 0.3);
  background: rgba(0, 168, 107, 0.06);
  color: rgba(0, 230, 118, 0.5);
}

/* Urgent next prayer — within 90 minutes, extra prominent */
.pr-pill.pr-urgent {
  border-color: #00E676;
  background: rgba(0, 168, 107, 0.18);
  box-shadow: 0 0 24px rgba(0, 168, 107, 0.4), inset 0 0 12px rgba(0, 168, 107, 0.1);
}
.pr-pill.pr-urgent .pr-name {
  color: #69F0AE;
}
.pr-pill.pr-urgent .pr-time {
  color: #B9F6CA;
}

/* Next prayer pill — premium green pill, strong, clear */
.pr-next-pill {
  background: rgba(0, 168, 107, 0.12);
  border: 1px solid #00A86B;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  box-shadow: 0 0 12px rgba(0, 168, 107, 0.18), inset 0 0 6px rgba(0, 168, 107, 0.05);
}
.pr-next-label {
  color: #f5f3ea;
  font-weight: 600;
}
.pr-next-name {
  color: #00E676;
  font-weight: 700;
}
.pr-next-time {
  color: #B9F6CA;
  font-weight: 700;
}

/* Remaining countdown pill — matching green family */
.pr-remaining-pill {
  background: rgba(0, 168, 107, 0.12);
  border: 1px solid #00A86B;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  box-shadow: 0 0 12px rgba(0, 168, 107, 0.18), inset 0 0 6px rgba(0, 168, 107, 0.05);
}
.pr-remaining-label {
  color: #f5f3ea;
  font-weight: 600;
}
.pr-remaining-value {
  color: #00E676;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ── Prayer Pills ── */

.pr-pills {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

body.en .pr-pills {
  direction: ltr;
}

.pr-pills::-webkit-scrollbar {
  display: none;
}

.pr-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(245, 243, 234, 0.08);
  background: rgba(245, 243, 234, 0.04);
  white-space: nowrap;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s, opacity 0.3s;
  flex-shrink: 0;
  min-height: 28px;
}

.pr-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--ink-muted);
  transition: color 0.3s;
}

.pr-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s;
}

/* Non-next non-sunrise pills — white neon spring glow */
.pr-past:not(.pr-sunrise),
.pr-upcoming:not(.pr-sunrise) {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2), inset 0 0 10px rgba(255, 255, 255, 0.06);
}

.pr-past:not(.pr-sunrise) .pr-name,
.pr-upcoming:not(.pr-sunrise) .pr-name {
  color: rgba(245, 243, 234, 0.75);
}

.pr-past:not(.pr-sunrise) .pr-time,
.pr-upcoming:not(.pr-sunrise) .pr-time {
  color: rgba(245, 243, 234, 0.9);
}

/* Sunrise — no border, transparent (even when next) */
.pr-sunrise,
.pr-sunrise.pr-next {
  background: none;
  border: none;
  box-shadow: none;
}

.pr-sunrise .pr-name {
  color: rgba(245, 243, 234, 0.5);
}

.pr-sunrise .pr-time {
  color: rgba(245, 243, 234, 0.65);
}

/* Isha when past — green border only, no glow */
.pr-pills .pr-pill:nth-child(6).pr-past {
  background: none;
  border-color: #00A86B;
  box-shadow: none;
}

.pr-pills .pr-pill:nth-child(6).pr-past .pr-name {
  color: rgba(0, 230, 118, 0.6);
}

.pr-pills .pr-pill:nth-child(6).pr-past .pr-time {
  color: rgba(185, 249, 202, 0.7);
}

/* Next prayer — Saudi green glow (distinctive, unchanged) */
.pr-next {
  border-color: #00A86B;
  background: rgba(0, 168, 107, 0.12);
  box-shadow: 0 0 16px rgba(0, 168, 107, 0.25), inset 0 0 8px rgba(0, 168, 107, 0.06);
  animation: nextGlow 2.5s ease-in-out infinite;
}

.pr-next .pr-name {
  color: #00E676;
}

.pr-next .pr-time {
  color: #B9F6CA;
}

@keyframes nextGlow {
  0%, 100% {
    box-shadow: 0 0 8px rgba(0, 168, 107, 0.15), inset 0 0 4px rgba(0, 168, 107, 0.04);
  }
  50% {
    box-shadow: 0 0 20px rgba(0, 168, 107, 0.35), inset 0 0 10px rgba(0, 168, 107, 0.08);
  }
}

@media (max-width: 900px) {
  .prayer-ribbon {
    padding: 4px 12px;
  }
  .pr-pills {
    gap: 4px;
    justify-content: flex-start;
  }
  .pr-pill {
    padding: 3px 10px;
    min-height: 26px;
  }
  .pr-city-label {
    font-size: 10px;
    padding: 2px 10px;
  }
  .pr-gps-capsule {
    font-size: 10px;
    padding: 3px 12px;
  }
  .pr-next-pill {
    font-size: 9px;
    padding: 2px 8px;
  }
  .pr-remaining-pill {
    font-size: 10px;
    padding: 2px 8px;
  }
}

@media (max-width: 560px) {
  .pr-city-label {
    font-size: 9px;
    padding: 2px 8px;
  }
  .pr-gps-capsule {
    font-size: 9px;
    padding: 3px 10px;
  }
  .pr-next-pill {
    font-size: 8px;
    padding: 2px 6px;
  }
  .pr-remaining-pill {
    font-size: 9px;
    padding: 2px 6px;
  }
  .pr-pill {
    padding: 2px 8px;
    gap: 3px;
  }
  .pr-name {
    font-size: 9px;
  }
  .pr-time {
    font-size: 10px;
  }
}

body.en .pr-city-label,
body.en .pr-gps-capsule,
body.en .pr-next-pill,
body.en .pr-remaining-pill {
  direction: ltr;
}

/* ── Topbar ── */

.topbar {
  position: sticky;
  top: var(--time-ribbon-height);
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 18px;
  align-items: center;
  padding: 12px clamp(18px, 4vw, 56px);
  background: linear-gradient(135deg, rgba(245, 243, 234, 0.06), transparent 28%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.96), rgba(15, 15, 15, 0.94) 42%, rgba(20, 20, 20, 0.92));
  border-bottom: 1px solid var(--gold-line);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  background: linear-gradient(145deg, var(--gold-deep), var(--gold-dark) 54%, var(--premium-gold));
  color: #fff6c9;
  border: 1px solid rgba(245, 243, 234, 0.2);
  border-radius: var(--radius);
  font-weight: 900;
  font-size: 16px;
}

.brand-photo {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  border: 2px solid var(--premium-gold);
  border-radius: 12px;
  object-fit: cover;
  object-position: center 22%;
}

.brand-photo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
}

.brand-photo-link:focus-visible {
  outline: 2px solid var(--premium-gold);
  outline-offset: 3px;
}

.brand-text {
  position: relative;
  display: block;
  overflow: hidden;
  padding: 6px 14px;
  border: 1px solid rgba(245, 243, 234, 0.15);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold-deep), var(--gold-dark));
}

.brand-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 36%, rgba(255, 229, 118, 0.22) 48%, transparent 60% 100%);
  transform: translateX(-120%);
  animation: ribbonGoldSweep 3.8s linear infinite;
  pointer-events: none;
}

.brand strong,
.brand small {
  position: relative;
  z-index: 1;
  display: block;
}

.brand small {
  color: var(--gold-light);
  font-size: 12px;
}

.brand strong {
  color: var(--soft-white);
  font-weight: 900;
}

/* ── Navigation ── */

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.nav a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(245, 243, 234, 0.06);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 600;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.nav a:hover {
  border-color: var(--premium-gold);
  color: var(--premium-gold);
  background: var(--gold-soft);
}

.lang-toggle {
  min-width: 54px;
  padding: 9px 12px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--premium-gold), var(--gold-dark));
  color: #0a0a0a;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.5px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--gold-glow);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(245, 243, 234, 0.06);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--ink-muted);
}

.section-shell {
  padding: clamp(48px, 6vw, 86px) clamp(18px, 6vw, 82px);
}

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 74px);
  padding-top: clamp(28px, 5vw, 64px);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 20%, rgba(201, 168, 76, 0.12), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(201, 168, 76, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(15, 15, 15, 0.96) 48%, rgba(20, 20, 20, 0.92));
  border-bottom: 1px solid var(--gold-line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 22px clamp(18px, 5vw, 72px);
  z-index: -1;
  border: 1px solid var(--gold-soft);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(245, 243, 234, 0.03), transparent 34%),
    repeating-linear-gradient(45deg, rgba(245, 243, 234, 0.02) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  max-width: 1040px;
  margin: 0;
  font-size: clamp(36px, 5.5vw, 74px);
  line-height: 1.12;
  text-wrap: balance;
  font-weight: 900;
  color: var(--soft-white);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--premium-gold);
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: inline-flex;
  padding: 6px 14px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-light);
}

.lead {
  max-width: 760px;
  color: var(--ink-muted);
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 500;
}

.typing-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--ink-muted);
  font-size: clamp(16px, 2vw, 20px);
}

.typing-line strong {
  color: var(--premium-gold);
}

.typing-line strong::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-inline-start: 4px;
  background: var(--premium-gold);
  vertical-align: -2px;
  animation: blink 0.8s infinite;
}

.hero-actions,
.hero-tags,
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  border: 1px solid transparent;
}

.btn.primary {
  background: linear-gradient(135deg, var(--premium-gold), var(--gold-light) 48%, var(--gold-dark));
  color: #0a0a0a;
  box-shadow: 0 18px 42px rgba(201, 168, 76, 0.2);
}

.btn.secondary {
  background: rgba(245, 243, 234, 0.08);
  border-color: var(--gold-line);
  color: var(--soft-white);
}

.btn.ghost {
  background: rgba(245, 243, 234, 0.06);
  border-color: var(--line);
  color: var(--ink-muted);
}

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

.btn.primary:hover {
  box-shadow: 0 22px 50px rgba(201, 168, 76, 0.35);
}

.btn.secondary:hover {
  border-color: var(--premium-gold);
  background: var(--gold-soft);
}

.btn.ghost:hover {
  border-color: var(--premium-gold);
  color: var(--premium-gold);
}

.hero-tags {
  margin-top: 20px;
}

.hero-tags span {
  padding: 8px 12px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  color: var(--ink-muted);
  background: rgba(245, 243, 234, 0.05);
  font-size: 13px;
  font-weight: 600;
}

/* ── Profile Panel ── */

.profile-panel {
  position: relative;
  z-index: 1;
}

.portrait-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-line);
  background: linear-gradient(145deg, rgba(201, 168, 76, 0.15), rgba(201, 168, 76, 0.05));
  box-shadow: var(--shadow);
}

.portrait-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(10, 10, 10, 0.72));
  pointer-events: none;
  z-index: 1;
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245, 243, 234, 0.1);
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
}

.portrait-frame img {
  display: block;
  width: 100%;
  height: min(66vh, 650px);
  min-height: 430px;
  object-fit: cover;
  object-position: left top;
}

.profile-video {
  display: block;
  width: 100%;
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #000;
}

.profile-card {
  position: absolute;
  z-index: 2;
  right: 18px;
  bottom: 56px;
  left: 18px;
  padding: 14px 16px;
  background: rgba(10, 10, 10, 0.82);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.profile-card span,
.profile-card strong {
  display: block;
}

.profile-card span {
  color: var(--premium-gold);
  font-size: 14px;
  font-weight: 800;
}

.profile-card strong {
  margin: 2px 0;
  font-size: 18px;
  color: var(--soft-white);
}

.profile-card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ── Video Frame ── */

.video-frame {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--gold-soft);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(245, 243, 234, 0.06), rgba(245, 243, 234, 0.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.profile-video {
  width: 100%;
  max-height: none;
  border-radius: var(--radius);
  scroll-margin-top: calc(var(--time-ribbon-height) + 112px);
  transition: border-color 0.25s, box-shadow 0.25s, filter 0.25s;
}

.profile-video.is-focused {
  border-color: var(--premium-gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.15), 0 0 34px var(--gold-glow);
}

.video-caption {
  margin: 10px 2px 0;
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}

.video-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-top: 10px;
  padding: 9px 16px;
  border: 1px solid var(--gold-line);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--premium-gold), var(--gold-dark));
  color: #0a0a0a;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-play-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px var(--gold-glow);
}

/* ── Stats ── */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: linear-gradient(90deg, var(--gold-dark), var(--premium-gold), var(--gold-light));
  border-block: 1px solid var(--gold-line);
}

.stats article {
  padding: clamp(20px, 3vw, 32px);
  background: var(--dark-surface);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--premium-gold);
  font-size: clamp(23px, 3vw, 36px);
  font-weight: 900;
}

.stats span {
  color: var(--ink-muted);
  font-size: 14px;
}

/* ── About / Info List ── */

.info-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.info-list span {
  padding: 12px 14px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(245, 243, 234, 0.04);
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 14px;
}

/* ── Section Heads ── */

.section-head {
  max-width: 860px;
  margin-bottom: 28px;
}

.section-head h2,
.split-section h2,
.region-focus h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.18;
  font-weight: 900;
  color: var(--soft-white);
}

.rich-text p {
  margin-top: 0;
  color: var(--ink-muted);
  font-size: 17px;
}

/* ── Cards ── */

.card-grid {
  display: grid;
  gap: 14px;
}

.card-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.project-card,
.lab-card,
.proof-item,
.skill-group,
.timeline article,
.contact-grid a {
  padding: 22px;
  background: linear-gradient(145deg, rgba(245, 243, 234, 0.08), rgba(245, 243, 234, 0.03));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}

.feature-card:hover,
.project-card:hover,
.lab-card:hover,
.proof-item:hover,
.contact-grid a:hover {
  border-color: var(--premium-gold);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.card-code {
  color: var(--premium-gold);
  font-weight: 800;
  font-size: 14px;
}

.feature-card h3,
.project-card h3,
.lab-card h3,
.skill-group h3,
.timeline h3 {
  margin: 10px 0;
  font-size: 21px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--soft-white);
}

.feature-card p,
.project-card p,
.lab-card p,
.timeline p,
.proof-item span {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.6;
}

.feature-card small,
.project-card span,
.lab-card span,
.timeline span {
  color: var(--premium-gold);
  font-weight: 700;
  font-size: 13px;
}

/* ── Skills ── */

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

.skill-group span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 15px;
}

.skill-group b {
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 700;
}

/* ── Split Section Layout ── */

.split-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  border-top: 1px solid var(--line);
}

/* ── Proof / Certifications ── */

.proof-section {
  background:
    radial-gradient(circle at 12% 12%, rgba(201, 168, 76, 0.06), transparent 32%),
    rgba(10, 10, 10, 0.3);
  border-block: 1px solid var(--line);
}

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

.proof-item {
  display: block;
  min-height: 140px;
}

.proof-item strong,
.proof-item span {
  display: block;
}

.proof-item strong {
  margin-bottom: 10px;
  color: var(--soft-white);
  font-size: 18px;
  font-weight: 800;
}

/* ── Timeline ── */

.timeline {
  display: grid;
  gap: 14px;
}

.timeline article {
  padding: 20px;
}

.timeline h3 {
  font-size: 18px;
}

/* ── Region Focus ── */

.region-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 26px;
  align-items: center;
  background:
    radial-gradient(circle at 10% 8%, rgba(201, 168, 76, 0.1), transparent 30%),
    radial-gradient(circle at 90% 16%, rgba(201, 168, 76, 0.08), transparent 28%),
    linear-gradient(135deg, rgba(10, 10, 10, 0.98), rgba(15, 15, 15, 0.95), rgba(20, 20, 20, 0.9));
  border-block: 1px solid var(--gold-line);
}

.region-focus p,
.lab-section .section-head p {
  color: var(--ink-muted);
}

.region-focus h2,
.region-focus p,
.region-focus .eyebrow {
  color: var(--soft-white);
}

.region-list {
  display: grid;
  gap: 10px;
}

.region-list span {
  padding: 14px 16px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--gold-light);
  font-weight: 600;
  font-size: 14px;
}

/* ── Creative Lab ── */

.lab-section {
  border-top: 1px solid var(--line);
}

.lab-card {
  position: relative;
  overflow: hidden;
}

.lab-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 16px;
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.lab-card code {
  display: inline-flex;
  max-width: 100%;
  margin-top: 8px;
  padding: 5px 10px;
  overflow-wrap: anywhere;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.3);
  color: var(--gold-light);
  font-size: 12px;
  font-family: "Space Grotesk", monospace;
}

.lab-card .game-status {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--premium-gold);
  font-size: 12px;
  font-weight: 700;
}

/* ── Extra Background (details) ── */

.extra-background {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  padding-bottom: 24px;
}

.extra-background summary {
  cursor: pointer;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 0;
  user-select: none;
}

.extra-background summary:hover {
  color: var(--premium-gold);
}

.extra-background summary::marker {
  color: var(--premium-gold);
}

.extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.extra-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(245, 243, 234, 0.04);
}

.extra-card .card-code {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
}

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

/* ── Contact ── */

.contact-grid a {
  flex: 1 1 220px;
  padding: 16px 18px;
  font-weight: 700;
  text-align: center;
  font-size: 14px;
  color: var(--ink-muted);
}

.contact-grid a:hover {
  color: var(--premium-gold);
}

.platform-panel {
  margin-top: 22px;
}

.platform-panel p {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-weight: 700;
  font-size: 14px;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.platform-links a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(245, 243, 234, 0.06);
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 13px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.platform-links a:hover {
  border-color: var(--premium-gold);
  color: var(--premium-gold);
  background: var(--gold-soft);
}

footer {
  padding: 26px clamp(18px, 6vw, 82px);
  background: var(--deep-black);
  border-top: 1px solid var(--gold-line);
  color: var(--ink-muted);
  text-align: center;
  font-size: 14px;
}

/* ── Floating WhatsApp ── */

.floating-wa {
  position: fixed;
  inset-inline-end: 20px;
  bottom: 20px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366, #128C7E);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.6);
}

/* ── Animations ── */

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes ribbonGoldSweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(120%); }
}

@keyframes goldPulse {
  0%, 100% { box-shadow: 0 0 0 rgba(244, 200, 75, 0); filter: brightness(1); }
  50% { box-shadow: 0 0 18px rgba(244, 200, 75, 0.72); filter: brightness(1.16); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ── Responsive: 1180px ── */

@media (max-width: 1180px) {
  .card-grid.four,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ── Responsive: 900px ── */

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto auto auto;
  }

  .menu-toggle {
    display: grid;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .nav.is-open {
    display: grid;
  }

  .nav a {
    text-align: center;
  }

  .hero,
  .split-section,
  .region-focus {
    grid-template-columns: 1fr;
  }

  .portrait-frame img {
    height: auto;
    min-height: 0;
  }

  .profile-card {
    position: static;
    margin-top: 12px;
  }

  .stats,
  .card-grid.four,
  .card-grid.three,
  .proof-grid,
  .skill-groups {
    grid-template-columns: 1fr;
  }

  .hero::before {
    inset: 14px;
    border-radius: 24px;
  }

  .profile-video {
    max-height: 190px;
  }

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

/* ── Responsive: 560px ── */

@media (max-width: 560px) {
  .topbar {
    gap: 10px;
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand-photo {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero {
    min-height: auto;
  }

  .btn,
  .contact-grid a,
  .platform-links a {
    width: 100%;
  }

  .floating-wa {
    width: 48px;
    height: 48px;
    inset-inline-end: 14px;
    bottom: 14px;
  }

  .video-play-btn,
  .lang-toggle {
    width: 100%;
  }

  .topbar {
    grid-template-columns: 1fr auto auto;
  }

  .brand-text {
    max-width: 160px;
  }
}
