/* ============================================================
   BalikRumah.org — Design System & Styles
   Following Impeccable Design Language (pbakaus/impeccable)
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

/* ── Design Tokens ── */
:root {
  /* Color Palette — OKLCH, derived from logo */
  --color-cream:        oklch(96% 0.02 80);
  --color-cream-mid:    oklch(93% 0.025 78);
  --color-cream-dark:   oklch(89% 0.03 76);

  --color-green:        oklch(48% 0.14 148);
  --color-green-light:  oklch(62% 0.10 148);
  --color-green-pale:   oklch(88% 0.06 148);
  --color-green-dark:   oklch(34% 0.10 148);

  --color-red:          oklch(52% 0.19 28);
  --color-red-light:    oklch(68% 0.12 28);
  --color-red-dark:     oklch(40% 0.16 28);

  --color-brown:        oklch(42% 0.08 55);
  --color-brown-light:  oklch(58% 0.06 55);
  --color-tan:          oklch(72% 0.07 65);

  --color-dark:         oklch(16% 0.015 55);
  --color-dark-surface: oklch(20% 0.02 55);
  --color-dark-elevated:oklch(24% 0.02 55);

  /* Warm-tinted Neutrals */
  --neutral-50:  oklch(97% 0.008 70);
  --neutral-100: oklch(95% 0.008 70);
  --neutral-200: oklch(90% 0.01 70);
  --neutral-300: oklch(82% 0.01 70);
  --neutral-400: oklch(65% 0.01 70);
  --neutral-500: oklch(50% 0.01 70);
  --neutral-600: oklch(40% 0.012 70);
  --neutral-700: oklch(30% 0.012 70);
  --neutral-800: oklch(22% 0.01 70);
  --neutral-900: oklch(14% 0.01 70);

  /* Typography Scale — Fluid */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.82rem + 0.28vw, 1rem);
  --text-base: clamp(1rem, 0.92rem + 0.4vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.6vw, 1.3rem);
  --text-xl:   clamp(1.25rem, 1.05rem + 1vw, 1.6rem);
  --text-2xl:  clamp(1.5rem, 1.15rem + 1.75vw, 2.25rem);
  --text-3xl:  clamp(1.875rem, 1.3rem + 2.8vw, 3rem);
  --text-4xl:  clamp(2.25rem, 1.4rem + 4.2vw, 4.2rem);
  --text-5xl:  clamp(2.75rem, 1.6rem + 5.8vw, 5.5rem);

  /* Font Stacks */
  --font-display: 'Fraunces', 'Georgia', serif;
  --font-body:    'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;

  /* Spacing Scale */
  --space-xs:   clamp(0.25rem, 0.2rem + 0.25vw, 0.5rem);
  --space-sm:   clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-md:   clamp(1rem, 0.8rem + 1vw, 1.5rem);
  --space-lg:   clamp(1.5rem, 1rem + 2.5vw, 3rem);
  --space-xl:   clamp(2rem, 1.2rem + 4vw, 5rem);
  --space-2xl:  clamp(3rem, 1.5rem + 7.5vw, 8rem);
  --space-3xl:  clamp(4rem, 2rem + 10vw, 12rem);

  /* Layout */
  --max-width: 1200px;
  --nav-height: 72px;

  /* Motion — Impeccable Easing */
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-expo:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-quart:  cubic-bezier(0.5, 0, 0.75, 0);
  --ease-in-out:    cubic-bezier(0.65, 0, 0.35, 1);

  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   500ms;
  --duration-reveal:  700ms;
}

/* ── Reset & Base ── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-brown);
  background-color: var(--color-cream);
  overflow-x: hidden;
  position: relative;
}

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

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

ul {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--color-green-dark);
  font-weight: 700;
}

/* ── Floating Background Orbs ── */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  filter: blur(80px);
}

.bg-orb:nth-child(1) {
  width: 500px;
  height: 500px;
  background: var(--color-green-pale);
  opacity: 0.4;
  top: -10%;
  left: -5%;
  animation: orb-float-1 25s var(--ease-in-out) infinite;
}

.bg-orb:nth-child(2) {
  width: 400px;
  height: 400px;
  background: var(--color-tan);
  opacity: 0.3;
  top: 30%;
  right: -8%;
  animation: orb-float-2 30s var(--ease-in-out) infinite;
}

.bg-orb:nth-child(3) {
  width: 350px;
  height: 350px;
  background: var(--color-red-light);
  opacity: 0.15;
  bottom: 20%;
  left: 15%;
  animation: orb-float-3 22s var(--ease-in-out) infinite;
}

.bg-orb:nth-child(4) {
  width: 450px;
  height: 450px;
  background: var(--color-green-light);
  opacity: 0.2;
  bottom: -10%;
  right: 20%;
  animation: orb-float-4 28s var(--ease-in-out) infinite;
}

.bg-orb:nth-child(5) {
  width: 300px;
  height: 300px;
  background: var(--color-cream-dark);
  opacity: 0.5;
  top: 50%;
  left: 50%;
  animation: orb-float-5 35s var(--ease-in-out) infinite;
}

@keyframes orb-float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(60px, 80px) scale(1.08); }
  50%      { transform: translate(-30px, 120px) scale(0.95); }
  75%      { transform: translate(40px, 40px) scale(1.05); }
}

@keyframes orb-float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(-80px, 60px) scale(1.1); }
  50%      { transform: translate(-40px, -50px) scale(0.92); }
  75%      { transform: translate(30px, 40px) scale(1.05); }
}

@keyframes orb-float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(70px, -60px) scale(1.12); }
  66%      { transform: translate(-50px, 30px) scale(0.9); }
}

@keyframes orb-float-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%      { transform: translate(-60px, -80px) scale(1.06); }
  60%      { transform: translate(50px, -30px) scale(0.95); }
}

@keyframes orb-float-5 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%      { transform: translate(80px, -70px) scale(1.1); }
  70%      { transform: translate(-40px, 50px) scale(0.93); }
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--duration-normal) var(--ease-out-quart),
              box-shadow var(--duration-normal) var(--ease-out-quart);
}

.nav.scrolled {
  background-color: oklch(96% 0.02 80 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 oklch(50% 0.08 55 / 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 var(--space-md);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--color-green-dark);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-brown);
  transition: color var(--duration-fast) var(--ease-out-quart);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-red);
  transition: width var(--duration-normal) var(--ease-out-expo);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  background: var(--color-red);
  color: var(--neutral-50) !important;
  font-weight: 700;
  font-size: var(--text-sm);
  border-radius: 8px;
  transition: transform var(--duration-fast) var(--ease-out-quart),
              background-color var(--duration-fast) var(--ease-out-quart);
}

.nav-cta:hover {
  background: var(--color-red-dark);
  transform: translateY(-1px);
}

.nav-cta::after {
  display: none !important;
}

.nav-cta svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Mobile Menu Button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 110;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--color-brown);
  border-radius: 2px;
  transition: transform var(--duration-normal) var(--ease-out-expo),
              opacity var(--duration-fast) var(--ease-out-quart);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Section Utility ── */
.section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) var(--space-md);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-red);
  margin-bottom: var(--space-sm);
}

.section-heading {
  font-size: var(--text-3xl);
  color: var(--color-green-dark);
  margin-bottom: var(--space-md);
  max-width: 20ch;
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--neutral-500);
  max-width: 55ch;
  line-height: 1.8;
}

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: calc(var(--nav-height) + var(--space-xl));
  padding-bottom: var(--space-2xl);
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero-logo {
  width: clamp(200px, 40vw, 420px);
  margin-bottom: var(--space-sm);
  animation: hero-logo-enter 900ms var(--ease-out-expo) both;
}

.hero-heading {
  font-size: var(--text-4xl);
  color: var(--color-green-dark);
  letter-spacing: -0.03em;
  max-width: 16ch;
  animation: hero-text-enter 800ms var(--ease-out-expo) 150ms both;
}

.hero-heading em {
  font-style: normal;
  color: var(--color-red);
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--neutral-500);
  max-width: 48ch;
  line-height: 1.8;
  animation: hero-text-enter 800ms var(--ease-out-expo) 300ms both;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  animation: hero-text-enter 800ms var(--ease-out-expo) 450ms both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-base);
  padding: 0.85rem 2rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-quart),
              background-color var(--duration-fast) var(--ease-out-quart),
              box-shadow var(--duration-fast) var(--ease-out-quart);
}

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

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

.btn-primary {
  background: var(--color-red);
  color: var(--neutral-50);
  box-shadow: 0 4px 20px oklch(52% 0.19 28 / 0.25);
}

.btn-primary:hover {
  background: var(--color-red-dark);
  box-shadow: 0 6px 28px oklch(52% 0.19 28 / 0.35);
}

.btn-secondary {
  background: transparent;
  color: var(--color-green);
  border: 2px solid var(--color-green);
}

.btn-secondary:hover {
  background: var(--color-green);
  color: var(--neutral-50);
}

/* Ensure SVGs inside buttons inherit color properly */
.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.btn-primary svg {
  fill: var(--neutral-50);
}

.hero-scroll-hint {
  margin-top: var(--space-xl);
  animation: hero-text-enter 800ms var(--ease-out-expo) 600ms both;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--neutral-400);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.scroll-indicator .arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--neutral-400);
  border-bottom: 2px solid var(--neutral-400);
  transform: rotate(45deg);
  animation: scroll-bounce 2s var(--ease-out-quart) infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.4; }
  50%      { transform: rotate(45deg) translate(4px, 4px); opacity: 1; }
}

/* Hero Entrance Animations */
@keyframes hero-logo-enter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes hero-text-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── About Section ── */
.about {
  background: var(--color-cream-mid);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-text {
  padding-right: var(--space-lg);
}

.about-text .section-heading {
  max-width: 22ch;
}

.about-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-icon-wrap {
  width: clamp(180px, 25vw, 300px);
  height: clamp(180px, 25vw, 300px);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 32px;
  background: linear-gradient(135deg, var(--color-green-pale), var(--color-cream));
  position: relative;
}

.about-icon-wrap img {
  width: 65%;
  height: auto;
  object-fit: contain;
}

.about-icon-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--color-green-light), var(--color-tan));
  z-index: -1;
  opacity: 0.5;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.highlight-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1em;
}

.highlight-item h4 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-green);
  margin-bottom: 0.15rem;
}

.highlight-item p {
  font-size: var(--text-xs);
  color: var(--neutral-500);
  line-height: 1.5;
}

/* ── Features Section ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--neutral-200);
  border: 1px solid var(--neutral-200);
  border-radius: 16px;
  overflow: hidden;
  margin-top: var(--space-xl);
}

.feature-item {
  background: var(--color-cream);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: background-color var(--duration-normal) var(--ease-out-quart);
}

.feature-item:hover {
  background: var(--neutral-50);
}

.feature-emoji {
  font-size: 2rem;
  line-height: 1;
}

.feature-item h3 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-green-dark);
}

.feature-item p {
  font-size: var(--text-sm);
  color: var(--neutral-500);
  line-height: 1.7;
}

/* ── Stats Section ── */
.stats {
  background: var(--color-dark);
  color: var(--neutral-100);
  overflow: hidden;
}

.stats .section-label {
  color: var(--color-red-light);
}

.stats .section-heading {
  color: var(--neutral-50);
}

.stats .section-desc {
  color: var(--neutral-400);
}

.stats-row {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-xl);
  gap: var(--space-lg);
}

.stat-item {
  flex: 1;
  text-align: left;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: oklch(50% 0.01 55 / 0.2);
}

.stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--color-green-light);
  line-height: 1.1;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--neutral-400);
  margin-top: 0.35rem;
  font-weight: 500;
}

/* ── Testimonials Section ── */
.testimonials {
  background: var(--color-cream-mid);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.testimonial {
  position: relative;
  padding-left: var(--space-md);
}

.testimonial::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-green);
  border-radius: 3px;
}

.testimonial blockquote {
  font-size: var(--text-base);
  color: var(--neutral-600);
  font-style: italic;
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-green-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-green);
}

.testimonial-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-brown);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--neutral-400);
}

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: var(--space-3xl) var(--space-md);
}

.cta-section .section-heading {
  margin-left: auto;
  margin-right: auto;
  max-width: 18ch;
  font-size: var(--text-4xl);
}

.cta-section .section-desc {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  margin-bottom: var(--space-lg);
}

.cta-section .btn-primary {
  padding: 1rem 2.5rem;
  font-size: var(--text-lg);
}

/* ── Footer ── */
.footer {
  background: var(--color-dark);
  color: var(--neutral-400);
  padding: var(--space-xl) var(--space-md);
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-logo img {
  height: 32px;
}

.footer-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--neutral-200);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: var(--text-sm);
  color: var(--neutral-400);
  transition: color var(--duration-fast) var(--ease-out-quart);
}

.footer-links a:hover {
  color: var(--neutral-100);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--neutral-600);
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
              transform var(--duration-reveal) var(--ease-out-expo);
}

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

.reveal-stagger > .reveal {
  transition-delay: calc(var(--i, 0) * 80ms);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .stats-row {
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .stat-item {
    flex: 0 0 calc(50% - var(--space-lg) / 2);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 0;
    background: oklch(96% 0.02 80 / 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-lg);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: var(--text-xl);
  }

  .menu-toggle {
    display: flex;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .about-visual {
    order: -1;
  }

  .about-text {
    padding-right: 0;
  }

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

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

  .stats-row {
    flex-direction: column;
    gap: var(--space-lg);
  }

  .stat-item {
    flex: unset;
    padding-bottom: var(--space-md);
    border-bottom: 1px solid oklch(50% 0.01 55 / 0.15);
  }

  .stat-item::after {
    display: none !important;
  }

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

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

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

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

  .bg-orb {
    animation: none !important;
  }
}

/* ── Audio Player Enhancement ── */
.audio-controls-wrap {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--color-glass);
  backdrop-filter: blur(12px);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--color-glass-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.audio-controls-wrap:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.audio-toggle-btn {
  background: var(--color-primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.audio-toggle-btn:hover {
  transform: scale(1.1);
}

.audio-toggle-btn.playing {
  background: var(--color-secondary);
}

/* Volume Slider */
.volume-slider-container {
  display: flex;
  align-items: center;
  width: 0;
  overflow: hidden;
  transition: width 0.4s ease, opacity 0.4s ease;
  opacity: 0;
}

.audio-controls-wrap:hover .volume-slider-container {
  width: 100px;
  opacity: 1;
}

.volume-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(0,0,0,0.1);
  border-radius: 2px;
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .audio-controls-wrap {
    bottom: 20px;
    right: 20px;
    padding: 6px 12px;
  }
}
