/* ============================================================
   Fahad Mahmood — Portfolio Stylesheet
   Assets: /assets/css/style.css
   ============================================================ */

/* ---------- 1. Design tokens ---------- */
:root {
  /* Colors */
  --bg:            #0f1115;
  --bg-elev:       #171a21;
  --bg-elev-2:     #1e222b;
  --surface:       #22262f;
  --border:        #2c313c;
  --border-soft:   #242833;

  --text:          #e8eaed;
  --text-muted:    #9aa1ad;
  --text-dim:      #6b7280;

  --accent:        #e26f56;   /* pomegrade — matches wp.org rating color */
  --accent-hover:  #f0856d;
  --accent-soft:   rgba(226, 111, 86, 0.12);

  --success:       #22c55e;
  --warning:       #f59e0b;
  --danger:        #ef4444;

  /* Typography */
  --font-sans:     -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   "Helvetica Neue", Arial, sans-serif;
  --font-mono:     ui-monospace, SFMono-Regular, "SF Mono", Menlo,
                   Consolas, monospace;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;

  /* Radius / shadows */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow:    0 4px 16px rgba(0,0,0,0.35);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.45);

  /* Layout */
  --max-width: 1200px;
  --transition: 180ms ease;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  margin: 0 0 var(--sp-3);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 var(--sp-4); }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

small { font-size: 0.8125rem; color: var(--text-muted); }

/* ---------- 3. Hero section ---------- */
.hero {
  padding: var(--sp-8) var(--sp-5) var(--sp-7);
  background:
    radial-gradient(ellipse at top left, rgba(226,111,86,0.08), transparent 60%),
    radial-gradient(ellipse at top right, rgba(99,102,241,0.06), transparent 55%),
    var(--bg);
  border-bottom: 1px solid var(--border-soft);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: var(--sp-6);
}

.hero-avatar {
  flex: 0 0 auto;
}

.hero-avatar img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-elev);
}

.hero-body {
  flex: 1 1 auto;
  min-width: 0;
}

.hero-eyebrow {
  margin: 0 0 var(--sp-2);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-name {
  margin: 0 0 var(--sp-3);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
}

.hero-meta {
  margin: 0 0 var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.hero-loc,
.hero-joined {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

/* Stats row */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;

  justify-content: center;
  min-width: 84px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform var(--transition), border-color var(--transition);
}
.hero-stat:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}

.hero-cta,
.hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
}

.hero-cta {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(226,111,86,0.35);
}
.hero-cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(226,111,86,0.45);
}

.hero-secondary {
  background: var(--bg-elev);
  color: var(--text);
  border: 1px solid var(--border);
}
.hero-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Pills */
.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.hero-pill {
  display: inline-block;
  padding: 6px 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all var(--transition);
}
.hero-pill:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* ---------- 4. About section ---------- */
.about-section {
  padding: var(--sp-7) var(--sp-5);
  border-bottom: 1px solid var(--border-soft);
}

.about-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--sp-5);
}

.about-card {
  padding: var(--sp-5);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), transform var(--transition);
}
.about-card:hover {
  border-color: var(--border);
  transform: translateY(-2px);
}

.about-title {
  margin: 0 0 var(--sp-4);
  font-size: 1.125rem;
  color: var(--accent);
  position: relative;
  padding-bottom: var(--sp-3);
}
.about-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.about-text {
  margin: 0;
  white-space: pre-line;          /* preserves the line breaks in the source */
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.about-text a {
  color: var(--accent);
  word-break: break-all;
}

/* ---------- 5. Tabs ---------- */
.info-group {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-5) 0;
}

#content-tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-1);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-5);
}

#content-tabs li a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-4);
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
}
#content-tabs li a:hover {
  color: var(--text);
  background: var(--bg-elev);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}
#content-tabs li.active a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
#content-tabs li a small {
  color: var(--text-dim);
  font-size: 0.75rem;
}
#content-tabs li.active a small { color: var(--accent); }

/* Tab panels */
.main-plugins {
  padding-bottom: var(--sp-8);
}
.main-plugins.inactive { display: none; }

/* ---------- 6. Plugin cards ---------- */
.pp-card {
  background: transparent;
}

.pp-group {
  margin-bottom: var(--sp-6);
}

.pp-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border-soft);
}

.pp-group-head h3 {
  margin: 0;
  font-size: 1.125rem;
}

.pp-gct {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Plugin grid (own plugins) */
.pp-plug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-3);
}

.pp-plug-grid > li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.pp-plug-grid > li:hover {
  border-color: var(--accent);
  background: var(--bg-elev-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.pp-plug-icon {
  flex: 0 0 auto;
  display: block;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}

.pp-plug-icon img,
.plugin-icon {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.pp-plug-body {
  flex: 1 1 auto;
  min-width: 0;
}

.pp-plug-body h4 {
  margin: 0 0 var(--sp-2);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.pp-plug-body h4 a {
  color: var(--text);
  display: block;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.pp-plug-body h4 a:hover { color: var(--accent); }

.pp-plug-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Star ratings */
.wporg-ratings {
  display: inline-flex;
  gap: 1px;
  font-size: 14px;
  line-height: 1;
}
.wporg-ratings .dashicons {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.pp-rating {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
}

.pp-rating-num {
  font-weight: 600;
  color: var(--text);
  font-size: 0.8125rem;
}

.pp-installs {
  color: var(--text-muted);
}

/* ---------- 7. Favorites grid (similar to plugins) ---------- */
.pp-fav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-3);
}

.pp-fav-grid > li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.pp-fav-grid > li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.pp-fav-icon {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.pp-fav-body {
  flex: 1 1 auto;
  min-width: 0;
}
.pp-fav-body h4 {
  margin: 0 0 var(--sp-2);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.pp-fav-body h4 a { color: var(--text); }
.pp-fav-body h4 a:hover { color: var(--accent); }

/* ---------- 8. Themes grid ---------- */
#content-themes ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}

#content-themes li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
#content-themes li:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

#content-themes h3 {
  margin: 0;
  font-size: 0.9375rem;
}

#content-themes h3 a {
  display: block;
  color: var(--text);
  padding: var(--sp-3);
}
#content-themes h3 a:hover { color: var(--accent); }

#content-themes img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Theme favorites */
.pp-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--sp-4);
}
.pp-theme-grid > li {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.pp-theme-grid > li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.pp-theme-shot img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.pp-theme-body {
  padding: var(--sp-3);
}
.pp-theme-body h4 {
  margin: 0;
  font-size: 0.9375rem;
}
.pp-theme-body h4 a { color: var(--text); }
.pp-theme-body h4 a:hover { color: var(--accent); }

/* ---------- 9. Blogs list ---------- */
.article.blogs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-3);
}

.article.blogs > li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.article.blogs > li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.article.blogs h3 {
  grid-column: 2;
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
}
.article.blogs h3 a { color: var(--text); }
.article.blogs h3 a:hover { color: var(--accent); }

.article.blogs p:first-of-type {
  grid-column: 1;
  grid-row: 1 / span 3;
  margin: 0;
  width: 48px;
  height: 48px;
}
.article.blogs p:first-of-type img {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.blog-excerpt {
  grid-column: 2;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- 10. Android / Mozilla app cards ---------- */
#content-apps ul,
#content-mozilla ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-3);
}

#content-apps > ul > li,
#content-mozilla > ul > li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
#content-apps > ul > li:hover,
#content-mozilla > ul > li:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

#content-apps img,
#content-mozilla img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex: 0 0 auto;
}

.plugin-info-container {
  min-width: 0;
  flex: 1 1 auto;
}
.plugin-info-container h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.plugin-info-container h3 a { color: var(--text); }
.plugin-info-container h3 a:hover { color: var(--accent); }

.active_installs {
  margin: 2px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

#content-apps > h3,
#content-mozilla > h3 {
  grid-column: 1 / -1;
  font-size: 1rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--sp-2);
}

/* ---------- 11. Offices list ---------- */
#content-offices ol {
  display: grid;
  gap: var(--sp-2);
  max-width: 720px;
}

#content-offices li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
}

#content-offices .status-icon {
  font-size: 0.75rem;
  line-height: 1;
}

#content-offices b {
  font-weight: 600;
  color: var(--text);
}

#content-offices small {
  margin-left: auto;
  color: var(--text-dim);
}

#content-offices .offices-updated {
  background: transparent;
  border: none;
  justify-content: flex-end;
  padding-top: var(--sp-2);
}

/* ---------- 12. Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .hero-meta,
  .hero-stats,
  .hero-actions,
  .hero-pills {
    justify-content: center;
  }
  .hero-stats { justify-content: center; }
}

@media (max-width: 640px) {
  :root {
    --sp-7: 36px;
    --sp-8: 48px;
  }

  .hero {
    padding: var(--sp-6) var(--sp-4);
  }

  .hero-avatar img {
    width: 120px;
    height: 120px;
  }

  .about-section,
  .info-group {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  .hero-stat {
    min-width: 70px;
    padding: var(--sp-2) var(--sp-3);
  }
  .hero-stat-value { font-size: 1.25rem; }

  .pp-plug-grid,
  .pp-fav-grid,
  .article.blogs,
  #content-apps ul,
  #content-mozilla ul {
    grid-template-columns: 1fr;
  }

  #content-themes ul {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  #content-tabs ul {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  #content-tabs li a {
    white-space: nowrap;
    padding: var(--sp-2) var(--sp-3);
  }
}

/* ---------- 13. Accessibility / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- 14. Print ---------- */
@media print {
  body { background: #fff; color: #000; }
  .hero-actions,
  .hero-pills,
  #content-tabs,
  .hero-cta,
  .hero-secondary { display: none !important; }
  .main-plugins.inactive { display: block !important; }
  a { color: #000; text-decoration: underline; }
}
/* ---------- 15. Site footer ---------- */
.site-footer {
  margin-top: var(--sp-8);
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  color: var(--text-muted);
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-5) var(--sp-5);
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) 2fr;
  gap: var(--sp-6);
}

.footer-brand {
  max-width: 360px;
}

.footer-logo {
  display: inline-block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-2);
}
.footer-logo:hover { color: var(--accent); }

.footer-tagline {
  margin: 0 0 var(--sp-3);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-blurb {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-5);
}

.footer-col h4 {
  margin: 0 0 var(--sp-3);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col ul {
  display: grid;
  gap: var(--sp-2);
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-2);
  font-size: 0.8125rem;
  color: var(--text-dim);
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .site-footer-inner {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
  }
  .footer-nav {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 640px) {
  .site-footer-inner {
    padding: var(--sp-6) var(--sp-4) var(--sp-4);
  }
  .footer-bottom {
    padding: var(--sp-4) var(--sp-4) var(--sp-5);
    flex-direction: column;
  }
}
/* ---------- About cards: constrained height + scrollable body ---------- */
.about-card {
    display: flex;
    flex-direction: column;
    max-height: 420px;          /* tune to taste */
    overflow: hidden;           /* clip the scroll area to the rounded corners */
}

.about-title {
    flex: 0 0 auto;
    /* existing margin/padding stays — no change needed */
}

.about-text {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;   /* momentum on iOS */

    /* Tidy up the scrollbar so it doesn't look intrusive in dark mode */
    scrollbar-width: thin;
    scrollbar-color: var(--border) transparent;
    padding-right: var(--sp-2);          /* breathing room next to the scrollbar */

    /* Soft fade at the bottom edge */
    mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
    -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 24px), transparent);
}

/* WebKit scrollbar styling */
.about-text::-webkit-scrollbar {
    width: 8px;
}
.about-text::-webkit-scrollbar-track {
    background: transparent;
}
.about-text::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}
.about-text::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* When the user reaches the bottom, drop the fade so text isn't cut */
.about-text:not(:hover) {
    /* keep fade visible by default */
}
/* ---------- Hero with background video ---------- */
.hero--video {
    position: relative;
    overflow: hidden;
    isolation: isolate;            /* keep stacking under control */
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;          /* clicks go to hero content, not the iframe */
    overflow: hidden;
}

.hero-video iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Cover the container: 100% height drives width on landscape hero.
       min-width/min-height keep it covering on extreme aspect ratios. */
    width: 100vw;
    height: 56.25vw;               /* 16:9 of the viewport width */
    min-width: 177.78vh;           /* 16:9 of the viewport height */
    min-height: 100vh;
    transform: translate(-50%, -50%);
    border: 0;
    filter: brightness(0.45) saturate(0.9);  /* dim so text stays readable */
}

/* Dark veil on top of the video — makes white text legible on any frame */
.hero--video::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(15,17,21,0.55) 0%, rgba(15,17,21,0.85) 100%),
        radial-gradient(ellipse at top left, rgba(226,111,86,0.15), transparent 60%);
    pointer-events: none;
}

/* Keep the hero content above the video + veil */
.hero--video .hero-inner {
    position: relative;
    z-index: 2;
}

/* Unmute button, bottom-right of the hero */
.hero-video-toggle {
    position: absolute;
    right: var(--sp-4);
    bottom: var(--sp-4);
    z-index: 3;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(23,26,33,0.75);
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background var(--transition), transform var(--transition);
}
.hero-video-toggle:hover {
    background: rgba(23,26,33,0.95);
    transform: scale(1.05);
}

/* Respect users who prefer reduced motion — don't autoplay */
@media (prefers-reduced-motion: reduce) {
    .hero-video iframe {
        display: none;
    }
    .hero--video {
        background:
            radial-gradient(ellipse at top left, rgba(226,111,86,0.08), transparent 60%),
            var(--bg);
    }
}
.hero-video iframe {
    /* …existing width/height/transform… */
    transform: translate(-50%, -50%) scaleX(-1);
}
.whatsapp-float {
        position: fixed;
        right: 16px;
        bottom: 16px;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        background-color: #1a1d21;              /* dark fill */
        color: #25D366;                         /* WhatsApp green icon */
        border: 1px solid rgba(255, 255, 255, 0.25);  /* faded white outline */
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
        text-decoration: none;
        transition: background-color 0.2s ease, border-color 0.2s ease,
                    color 0.2s ease, box-shadow 0.2s ease;
        -webkit-tap-highlight-color: transparent;
		opacity: 0.2;
    }

    .whatsapp-float:hover {
        background-color: #25D366;              /* fill green on hover */
        border-color: rgba(255, 255, 255, 0.45);
        color: #0e1013;                         /* dark icon on green */
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
		opacity: 1;
    }

    .whatsapp-float:active {
        background-color: #1ebe5b;
    }

    .whatsapp-float svg {
        width: 20px;
        height: 20px;
        display: block;
    }

    /* Mobile tweak */
    @media (max-width: 600px) {
        .whatsapp-float {
            right: 12px;
            bottom: 12px;
            width: 27px;
            height: 27px;
        }
        .whatsapp-float svg {
            width: 17px;
            height: 17px;
        }
    }

    /* Respect reduced-motion preference */
    @media (prefers-reduced-motion: reduce) {
        .whatsapp-float { transition: none; }
    }