/* ==========================================================================
   SITE STYLESHEET
   - Tokenized variables
   - Clear sectioning & comments
   - Unified drawer/overlay logic
   - Mobile-first with one breakpoint at 768px
   ========================================================================== */

/* === 0) TYPE & TOKENS =================================================== */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap");

:root {
  /* Colors */
  --bg: #383535;
  --bar: #0f0f0f;
  --text: #eaeaea;
  --muted: #b5b5b5;
  --pill-bg: #f2f2f2;
  --pill-text: #151515;
  --ring: #ffffff;
  --neon-cyan: #40e6ff;
  --neon-cyan-soft: rgba(64, 230, 255, 0.35);
  --neon-cyan-strong: rgba(64, 230, 255, 0.9);
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-dark: rgba(255, 255, 255, 0.06); /* darker “grey” button base */
  --glass-bg-clear: rgba(255, 255, 255, 0.02); /* transparent glass on hover */
  --glass-brd: rgba(255, 255, 255, 0.22);
  --glass-brd-strong: rgba(255, 255, 255, 0.35);
  --ring-gray: rgba(255, 255, 255, 0.14);

  /* privacy-glass bases */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-dark: rgba(255, 255, 255, 0.06);
  --glass-glare: linear-gradient(to bottom right, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.12) 35%, rgba(255, 255, 255, 0) 60%);
  --glass-brd: rgba(255, 255, 255, 0.22);
  --glass-brd-strong: rgba(255, 255, 255, 0.35);

  /* Layout */
  --header-h: 60px;
  --footer-h: 56px;
  --radius-pill: 9999px;

  /* Drawer (desktop) */
  --drawer-w: 260px;
  --drawer-shadow: 6px 0 12px rgba(0, 0, 0, 0.5);
  --drawer-hide-offset: 18px; /* slide off incl. shadow */
}

/* === 1) BASE & HOME BACKGROUND ========================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.7;
  padding-top: var(--header-h); /* reserve space for fixed nav */
}
body.home {
  padding-bottom: var(--footer-h);
} /* fixed home footer */

body.home {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(59, 59, 59, 0.8) 0%, rgba(36, 36, 36, 0.95) 60%, rgba(23, 23, 23, 1) 100%),
    url("https://www.transparenttextures.com/patterns/dark-mosaic.png");
  background-repeat: no-repeat, repeat;
  background-size: cover, auto;
  background-attachment: fixed, fixed;
  background-blend-mode: normal, multiply;
}

/* Headings */
h1,
h2,
h3,
h4 {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 1px;
  margin: 0 0 15px 0;
}

/* === 2) TOP NAV =========================================================
   Structure:
   <nav> (fixed)
     .nav-toggle  (left)
     .nav-brand   (center)
     .contact-btn (right)
     ul           (menu: mobile dropdown / desktop drawer)
     .nav-overlay (scrim)
   -----------------------------------------------------------------------*/
nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h) !important; /* enforce consistent height */
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 10px 20px;
  background: var(--bar);
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Brand link */
.nav-brand {
  justify-self: center;
  color: #fff;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.2rem;
  position: relative;
}

/* hidden by default */
.nav-brand::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
  opacity: 0;
  transform: scaleX(0.85);
  transform-origin: center;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* reveal on hover / keyboard focus */
.nav-brand:hover::after,
.nav-brand:focus-visible::after {
  opacity: 0.7;
  transform: scaleX(1);
}

/* Contact icon */
.contact-btn {
  justify-self: end;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: opacity 0.2s ease;
}
.contact-btn:hover {
  opacity: 0.85;
}

/* Hamburger */
.nav-toggle {
  justify-self: start;
  width: 36px;
  height: 36px;
  display: inline-block;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.nav-toggle:focus {
  outline: 2px solid #666;
  outline-offset: 2px;
}
.nav-toggle .bar {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  margin: 6px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Menu base + overlay */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
nav .nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(60, 60, 60, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
  z-index: 900;
  display: block;
}
nav.open .nav-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* === 2a) MOBILE MENU (≤768px): full-width dropdown ==================== */
@media (max-width: 768px) {
  .contact-btn {
    display: none !important;
  }

  /* hidden by default */
  nav ul {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    width: 100%;
    background: #111;
    border-top: 1px solid #444;
    padding: 14px 16px;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    z-index: 1001;
    margin: 0 !important; /* guard against stray margins */
  }

  /* reveal when open */
  nav.open ul {
    display: flex;
  }

  /* Mobile dropdown link styling */
  nav ul li {
    width: 100%;
  }
  nav ul li a {
    display: block;
    width: 100%;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    padding: 10px 12px;
    border-radius: 6px;
    transition: background 0.2s ease, color 0.2s ease;
  }
  nav ul li a:hover {
    background: #1f1f1f;
  }

  /* Hide the desktop-only close button on mobile */
  .nav-close {
    display: none !important;
  }

  /* Morph hamburger -> X (mobile only) */
  nav.open .nav-toggle .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  nav.open .nav-toggle .bar:nth-child(2) {
    opacity: 0;
  }
  nav.open .nav-toggle .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* === 2b) DESKTOP DRAWER (≥769px): slide from left ===================== */
@media (min-width: 769px) {
  nav ul {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--drawer-w);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    background: #111;
    box-shadow: var(--drawer-shadow);

    /* fully off-screen incl. shadow when closed */
    transform: translateX(calc(-100% - var(--drawer-hide-offset)));
    transition: transform 240ms ease-out;
    z-index: 1001;
    pointer-events: none;

    /* stay snug to viewport edge; no stray offsets */
    margin-left: 0 !important;
  }
  nav.open ul {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* vertically center list; leave headroom for close button */
  nav ul {
    justify-content: center;
    padding-top: 56px;
  }

  nav ul li {
    width: 100%;
  }
  nav ul li a {
    display: block;
    width: 100%;
    text-align: left;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 12px;
    border-radius: 4px;
    transition: background 0.2s ease, color 0.2s ease;
  }
  nav ul li a:hover {
    background: #1f1f1f;
  }

  /* keep hamburger as bars on desktop (no morph) */
  nav.open .nav-toggle .bar {
    transform: none;
    opacity: 1;
  }

  /* Drawer “X” close button (desktop only) */
  .nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: transparent;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: box-shadow 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
  }
  .nav-close:hover {
    opacity: 0.95;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.08), 0 0 14px rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
  }
}

/* lock background scroll when nav is open (mobile) */
html.no-scroll {
  overflow: hidden;
}

/* === 3) HERO =========================================================== */
.hero {
  min-height: calc(100vh - var(--header-h) - var(--footer-h));
  display: grid;
  place-items: center;
  padding: 24px 16px;
}
.hero-inner {
  max-width: 960px;
  width: 100%;
  text-align: center;
  animation: heroFade 260ms ease-out both;
}
@media (prefers-reduced-motion: reduce) {
  .hero-inner {
    animation: none;
  }
}
@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  color: var(--text);
  font-size: clamp(1.75rem, 3.5vw + 0.5rem, 3rem);
  line-height: 1.15;
  margin: 0 0 10px 0;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero-title .hero-role {
  display: block;
  font-size: 0.8em;
  opacity: 0.85;
  margin-top: 4px;
  letter-spacing: 0.6px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.hero-subhead {
  color: var(--text);
  text-align: center;
  max-width: 54ch;
  font-size: clamp(1rem, 0.8vw + 0.9rem, 1.2rem);
  line-height: 1.6;
  margin: 0 auto;
}
/* spacing between subhead and CTAs */
.hero-inner .cta-row {
  margin-top: clamp(14px, 4vw, 32px);
}

@media (max-width: 768px) {
  .hero {
    place-items: start center;
    padding-top: 0;
  }
  .hero-inner {
    margin-top: max(0px, calc(33vh - var(--header-h)));
  }
  .hero-inner .cta-row {
    margin-top: clamp(18px, 6vw, 40px);
  }
}

/* Refined hero typography */
.hero h1,
.hero h2 {
  text-align: center;
  letter-spacing: 0.5px;
  font-family: "Poppins", "Helvetica Neue", sans-serif;
  color: #f5f5f5;
  line-height: 1.2;
  margin: 0.25em 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
}

.hero h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: #cfcfcf;
}

/* Hero paragraph refinement */
.hero p {
  max-width: 650px;
  margin: 1.2em auto 2em;
  font-size: 1rem;
  color: #d0d0d0;
  line-height: 1.6;
  text-align: center;
}

/* Button container alignment */
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Elegant glowing buttons */
.hero-buttons a {
  position: relative;
  padding: 0.75em 1.6em;
  border-radius: 2em;
  font-weight: 500;
  font-size: 0.95rem;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.3px;
  box-shadow: none !important;
  background: none !important;
  color: inherit !important;
  transition: all 0.3s ease;
}

/* Soft hover glow */
.hero-buttons a:hover {
  background: #ffffff;
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 0 12px rgba(255, 0, 0, 0.35), 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Underlight accent (red pulse) */
.hero-buttons a::after {
  content: "";
  display: none !important;
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 0, 0, 0.7), transparent);
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.4s ease, width 0.3s ease;
}

.hero-buttons a:hover::after {
  opacity: 1;
  width: 70%;
}

/* Subtle entrance animation */
.hero h1,
.hero h2,
.hero p,
.hero-buttons {
  animation: fadeUp 1.2s ease forwards;
  opacity: 0;
}

.hero h1 {
  animation-delay: 0.1s;
}
.hero h2 {
  animation-delay: 0.3s;
}
.hero p {
  animation-delay: 0.5s;
}
.hero-buttons {
  animation-delay: 0.8s;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* === 4) CTAs — Glassmorphism + red underlight ========================= */
/* === CTAs — gray underglow → neon cyan; text turns cyan; privacy glass === */
.cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
@media (min-width: 768px) {
  .cta-row {
    flex-direction: row;
    justify-content: center;
    gap: 36px;
  }
}

/* Base glass button */
.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  color: #f5f5f5;

  /* privacy glass body */
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  backdrop-filter: blur(8px) saturate(120%);

  /* tight ring (very subtle gray at rest) + depth */
  box-shadow: 0 0 0 1.2px var(--ring-gray), 0 12px 28px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.05);

  transition: transform 0.18s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.18s ease;
}

/* soft glass sheen */
.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--glass-glare);
  opacity: 0.25;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

/* icon follows label color */
.cta .icon {
  transition: color 0.18s ease;
  color: #f5f5f5;
}

/* Hover/Focus — ring → neon cyan; label becomes cyan (no text glow) */
.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  border-color: var(--glass-brd-strong);
  box-shadow: 0 0 0 2px var(--neon-cyan-strong), 0 16px 34px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: var(--neon-cyan);
}
.cta:hover .icon,
.cta:focus-visible .icon {
  color: var(--neon-cyan);
}
.cta:hover::before {
  opacity: 0.35;
}

/* Active press */
.cta:active {
  transform: translateY(0);
}
.cta:focus-visible {
  outline: none;
}

/* Secondary (the “grey” button): slightly darker at rest,
   then becomes semi-opaque privacy glass on hover */
.cta-secondary {
  background: var(--glass-bg-dark);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1.2px var(--ring-gray), 0 10px 22px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.cta-secondary:hover,
.cta-secondary:focus-visible {
  /* more privacy-glass: darker, a touch more blur, transparent feel */
  background: rgba(40, 40, 40, 0.35);
  -webkit-backdrop-filter: blur(10px) saturate(135%);
  backdrop-filter: blur(10px) saturate(135%);

  border-color: var(--glass-brd-strong);
  box-shadow: 0 0 0 2px var(--neon-cyan-strong), 0 16px 34px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.06);

  color: var(--neon-cyan);
}

/* ===== About page background (refined) ===== */
:root {
  /* Adjust this if your main content container is a different max width */
  --content-max: 1120px;
  /* Horizontal page gutters so the light band respects side padding on small desktops */
  --page-gutter: 48px;
}

/* Base background (mosaic), no old linear bands */
body.about-page {
  position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(59, 59, 59, 0.8) 0%, rgba(36, 36, 36, 0.95) 60%, rgba(23, 23, 23, 1) 100%),
    url("https://www.transparenttextures.com/patterns/dark-mosaic.png");
  background-repeat: no-repeat, repeat;
  background-size: cover, auto;
  background-attachment: fixed, fixed;
  background-blend-mode: normal, multiply;
  /* keep content above the overlays */
  z-index: 0;
}

/* Global subtle dark wash over everything */
body.about-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0; /* sits behind content, above base bg */
}

/* Centered "light band" aligned to your content width */
body.about-page::after {
  content: "";
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 100%;
  /* Match your content column: max width minus gutters on narrower viewports */
  width: min(var(--content-max), calc(100vw - (var(--page-gutter) * 2)));
  pointer-events: none;
  z-index: 0;
}

/* Ensure main content sits above overlays */
main,
.article,
.about-container {
  position: relative;
  z-index: 1;
}

/* Mobile: disable the center band and use a uniform mid-opacity wash */
@media (max-width: 768px) {
  body.about-page::after {
    display: none; /* entire page gets a single tone on mobile */
  }
  body.about-page::before {
    /* middle band feel (your “80%” equivalent) */
    background: rgba(0, 0, 0, 0.14);
  }
}

/* container rhythm shared by about sections */
.about section {
  max-width: clamp(960px, 84vw, 1160px);
  margin: 48px auto;
  padding: clamp(28px, 4vw, 48px) 16px;
}

/* --- Hero --- */
.about-hero {
  text-align: center;
  padding-top: clamp(18px, 4vw, 32px);
}
.about-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.8vw, 3rem);
  margin: 0 0 8px;
}
.about-tagline {
  color: #d4d4d4;
  max-width: 60ch;
  margin: 0 auto 18px;
}
.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-meta li span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #f0f0f0;
  font-size: 0.9rem;
}

/* --- Intro split --- */
.about-intro {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(18px, 4vw, 36px);
  align-items: start;
}
@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
}
.about-copy h2 {
  margin-bottom: 10px;
}
.about-copy p {
  color: #ddd;
}

.about-portrait {
  margin: 0;
  display: grid;
  place-items: center;
  max-width: min(420px, 38vw);
  margin: 0 auto;
}

.about-portrait img {
  display: block;
  width: 100%;
  height: auto; /* maintain the photo’s natural aspect ratio */
  aspect-ratio: 4 / 5; /* gives a consistent box while loading */
  object-fit: cover; /* trims gracefully if source is larger */
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  background: #1f1f1f; /* subtle base in case the image is still loading */
}

.portrait-fallback {
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03)),
    radial-gradient(120px 80px at 70% 20%, rgba(64, 230, 255, 0.18), transparent 60%), #212121;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ensure the fallback never appears above the img */
.about-portrait .portrait-fallback {
  display: none;
}

/* Mobile: stack gracefully and relax the max-size a touch */
@media (max-width: 900px) {
  .about-intro {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    max-width: min(520px, 72vw);
  }
}

/* --- Skills --- */
.about-skills h2 {
  margin-bottom: 12px;
}
.tools-head {
  margin-top: 20px;
  font-size: 1.05rem;
  opacity: 0.9;
}

.chip-list {
  list-style: none;
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip-list li {
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-brd);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.chips-muted li {
  opacity: 0.85;
}

/* --- Timeline --- */
.about-timeline h2 {
  margin-bottom: 14px;
}
.tl {
  --line: rgba(255, 255, 255, 0.14);
  --dot: var(--neon-cyan);
  list-style: none;
  margin: 0;
  padding: 0 0 0 26px;
  position: relative;
}
.tl::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: var(--line);
}
.tl > li {
  position: relative;
  padding: 10px 0 10px 6px;
}
.tl > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--dot);
  box-shadow: 0 0 0 3px rgba(64, 230, 255, 0.18);
}
.tl-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.tl-card h4 {
  margin: 0 0 6px;
}

/* --- CTA --- */
.about-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  padding-bottom: min(6vh, 40px);
}
.about-cta .cta .icon {
  font-size: 1rem;
}

/* === 5) FOOTER ========================================================= */
/* === Footer (minimal, precise alignment) ========================= */
.site-footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 0 12px; /* removed excess top padding */
  text-align: center;
  background: transparent;
}

.footer-divider {
  height: 2px;
  max-width: 680px;
  margin: 0 auto 8px; /* tightened gap above copyright */
  background: linear-gradient(90deg, transparent, var(--neon-cyan, #40e6ff), transparent);
  opacity: 0.55;
  filter: drop-shadow(0 0 6px rgba(64, 230, 255, 0.35));
}

.footer-copy {
  font-size: 0.8rem; /* slightly smaller text */
  color: #e0e0e0;
  opacity: 0.7; /* 70% opacity */
  margin-top: 4px; /* precise placement under cyan line */
  line-height: 1.2;
}

/* === 6) ACCESSIBILITY HELPERS ========================================= */
.sr-only,
.sr-only-inline,
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sr-section {
  min-height: 0;
}

@keyframes glowElastic {
  0% {
    box-shadow: 0 0 0 1.2px var(--ring-gray);
  }
  60% {
    box-shadow: 0 0 0 2.4px var(--neon-cyan-soft), 0 12px 28px rgba(0, 0, 0, 0.18);
  }
  100% {
    box-shadow: 0 0 0 2px var(--neon-cyan-strong), 0 16px 34px rgba(0, 0, 0, 0.25);
  }
}

/* attach it only during hover */
.cta:hover,
.cta:focus-visible {
  animation: glowElastic 0.4s cubic-bezier(0.3, 1.4, 0.4, 1) both;
}

/* --- Global overflow hygiene --------------------------------------------- */
html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

/* Modern way to suppress accidental scrollbars from effects/filters */
body {
  overflow-x: clip; /* replaces hidden; keeps y scrolling */
  overscroll-behavior-y: contain; /* prevents rubber-banding “stuck” feel */
  -webkit-overflow-scrolling: touch; /* smooth on iOS */
}

/* Ensure the copyright line is the last thing that can take space */
.site-footer::after {
  content: none;
} /* guard against older footer pulses */

/* (end) */
