/* © 2024-2026 Mehdi TMIMI — Vivace Music (vivace-music.org) */
/* ==========================================================
   ANDALOUSIE — Self-contained Stylesheet
   Moroccan Andalusian Music Heritage
   No dependency on main.css (avoids all override conflicts)
========================================================== */

/* ===== GLOBAL RESET ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

ul {
  list-style: none;
}

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

/* ===== ROOT VARIABLES (Light Default) ===== */
:root {
  /* Andalousie palette */
  --gold: #f4d03f;
  --gold-dark: #daa520;
  --gold-deeper: #b8860b;
  --brown: #6b4f2d;
  --brown-dark: #5a3f20;
  --red: #8b0000;
  --gold-gradient: linear-gradient(135deg, #f4d03f, #daa520, #b8860b);
  --brown-gradient: linear-gradient(135deg, #6b4f2d, #5a3f20, #6b4f2d);

  /* Fonts */
  --font-arabic: 'Noto Naskh Arabic', 'Amiri', serif;
  --font-latin: 'Poppins', sans-serif;

  /* Semantic tokens — light mode */
  --bg-page: #f5f0e8;
  --bg-nav: rgba(255, 255, 255, 0.98);
  --bg-card: rgba(0, 0, 0, 0.03);
  --bg-footer: #e8e2d6;
  --text-primary: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-body: rgba(0, 0, 0, 0.7);
  --text-muted: rgba(0, 0, 0, 0.55);
  --border-subtle: rgba(0, 0, 0, 0.1);
  --shadow-nav: rgba(0, 0, 0, 0.1);
  --shadow-glow: rgba(218, 165, 32, 0.3);
  --gold-text: #8b6914;
  --card-border: rgba(107, 79, 45, 0.2);
  --card-hover-border: rgba(218, 165, 32, 0.5);
  --card-hover-shadow: rgba(107, 79, 45, 0.15);
  --scrollbar-track: #e8e2d6;
  --scrollbar-thumb: #daa520;
}

[data-theme="dark"] {
  --bg-page: #0a0a0f;
  --bg-nav: rgba(10, 10, 10, 0.95);
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-footer: rgba(10, 10, 15, 0.95);
  --text-primary: #f5f0e8;
  --text-secondary: #b0b0b0;
  --text-body: rgba(255, 255, 255, 0.8);
  --text-muted: rgba(255, 255, 255, 0.55);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --shadow-nav: rgba(0, 0, 0, 0.3);
  --shadow-glow: rgba(218, 165, 32, 0.4);
  --gold-text: #f4d03f;
  --card-border: rgba(201, 162, 39, 0.25);
  --card-hover-border: #f4d03f;
  --card-hover-shadow: rgba(201, 162, 39, 0.2);
  --scrollbar-track: #1a1410;
  --scrollbar-thumb: #daa520;
}

body {
  font-family: var(--font-latin), sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-page);
}

/* ===== SCROLLBAR ===== */
html, body {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #daa520, #b8860b);
  border-radius: 6px;
  border: 3px solid var(--scrollbar-track);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #f4d03f, #daa520);
}

/* ===== ARABIC TYPOGRAPHY ===== */
html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: var(--font-arabic), var(--font-latin), sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: var(--font-arabic), serif;
  font-weight: 700;
}

/* ==========================================================
   THEME TOGGLE
========================================================== */
.theme-toggle {
  position: fixed;
  top: 140px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 2px solid rgba(139, 0, 0, 0.3);
  box-shadow: 0 4px 20px var(--shadow-glow), 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  z-index: 9999;
}

.theme-toggle:hover {
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 6px 30px var(--shadow-glow), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.theme-toggle:active {
  transform: scale(0.95) rotate(-5deg);
}

.theme-toggle i {
  font-size: 24px;
  color: #2a1f14;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
}

.theme-toggle .fa-moon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

.theme-toggle .fa-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

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

[data-theme="light"] .theme-toggle .fa-sun {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

@media (max-width: 768px) {
  .theme-toggle {
    top: 130px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
  .theme-toggle i { font-size: 20px; }
}

/* ==========================================================
   LANGUAGE TOGGLE
========================================================== */
.language-toggle {
  position: fixed;
  top: 200px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold-gradient);
  border: 2px solid var(--gold);
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
  z-index: 9998;
}

.language-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(201, 162, 39, 0.5);
}

.language-toggle .lang-label {
  font-size: 16px;
  font-weight: 700;
  color: #0a0a0f;
  display: none;
}

.language-toggle .lang-label[data-lang="ar"] {
  font-family: var(--font-arabic);
  font-size: 18px;
}

[data-theme="light"] .language-toggle {
  background: linear-gradient(135deg, #daa520, #b8860b);
  border-color: #8b6914;
}

[data-theme="light"] .language-toggle .lang-label {
  color: #2a1f14;
}

@media (max-width: 768px) {
  .language-toggle {
    top: 190px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ==========================================================
   FIXED NAVIGATION  (ported from main.css, themed for gold)
========================================================== */
.nav-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 10100;
  background: var(--bg-nav);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px var(--shadow-nav);
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  direction: ltr !important;
}

.nav-container,
.nav-container * {
  direction: ltr !important;
  text-align: left;
}

.nav-container.shrink {
  padding: 0.5rem 2rem;
  box-shadow: 0 4px 12px var(--shadow-nav);
}

/* Logo */
.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo img {
  width: 50px;
  height: auto;
}

.logo span {
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--text-primary);
  transition: color 0.4s ease;
}

/* Nav Links */
.nav-links {
  display: flex;
  gap: 0.4rem;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  padding: 0.7rem 1.2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: var(--text-primary);
  position: relative;
  overflow: hidden;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.nav-links a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--gold-gradient);
  transform: translateX(-50%);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover::before { width: 80%; }

.nav-links a:hover {
  background: rgba(201, 162, 39, 0.08);
  transform: translateY(-1px);
  cursor: pointer;
}

.nav-links a.active {
  background: rgba(201, 162, 39, 0.15);
  color: var(--gold-text);
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.2);
}

.nav-links a.active::before { width: 100%; }

/* First link (Home) gets a subtle border */
.nav-links li:first-child a {
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.3);
}

.nav-links li:first-child a:hover {
  background: rgba(201, 162, 39, 0.15);
  border-color: rgba(201, 162, 39, 0.4);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 10001;
  position: relative;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.2s ease;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10050;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  transform: translateY(-120%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              visibility 0s 0.3s;
}

.nav-container.shrink ~ .mobile-nav { top: 54px; }

.mobile-nav.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              visibility 0s;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav a {
  display: block;
  color: var(--text-primary);
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.mobile-nav a:hover {
  background: rgba(201, 162, 39, 0.08);
  transform: translateX(4px);
}

.mobile-nav a.active {
  background: rgba(201, 162, 39, 0.15);
  font-weight: 700;
  color: var(--gold-text);
}

/* Responsive nav — switch to hamburger earlier (6 links) */
@media (max-width: 1280px) {
  .nav-links { gap: 0.3rem; }
  .nav-links a { padding: 0.5rem 0.7rem; font-size: 0.85rem; }
}

@media (max-width: 1100px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }
}

/* ==========================================================
   HERO SECTION
========================================================== */
.hero-andalousie {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--bg-page);
  overflow: hidden;
  padding: 6rem 2rem 4rem;
}

.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(201, 162, 39, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(26, 71, 42, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(139, 0, 0, 0.06) 0%, transparent 40%);
  pointer-events: none;
}

.hero-bg-pattern::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='none' stroke='%23c9a227' stroke-width='0.5' opacity='0.1'/%3E%3C/svg%3E");
  opacity: 0.3;
}

.hero-content {
  text-align: center;
  z-index: 1;
  max-width: 900px;
}

/* --- Animated Logo --- */
.logo-andalousie-container {
  position: relative;
  width: 320px;
  height: 300px;
  margin: 0 auto 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-part {
  position: absolute;
  opacity: 0;
  max-width: 100%;
}

.logo-waves {
  z-index: 1;
  width: 320px;
  animation: wavesFadeIn 1.2s ease-out forwards;
}

.logo-clef {
  z-index: 2;
  width: 160px;
  margin-top: 20px;
  animation: clefSpinIn 1.4s ease-out 0.5s forwards;
}

.logo-hat {
  z-index: 3;
  width: 80px;
  top: 40px;
  left: 50%;
  margin-left: -15px;
  animation: hatDropIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

@keyframes wavesFadeIn {
  from { opacity: 0; transform: scale(1.3); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes clefSpinIn {
  from { opacity: 0; transform: scale(0.2) rotate(-90deg); }
  to   { opacity: 1; transform: scale(1)   rotate(0deg); }
}

@keyframes hatDropIn {
  0%   { opacity: 0; transform: translateY(-100px) rotate(-30deg); }
  60%  { opacity: 1; transform: translateY(10px) rotate(5deg); }
  80%  { transform: translateY(-5px) rotate(-3deg); }
  100% { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.logo-andalousie-container:hover .logo-part {
  filter: drop-shadow(0 10px 40px rgba(201, 162, 39, 0.5));
}

.logo-andalousie-container.complete {
  animation: logoFloat 6s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* --- Hero Text --- */
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--gold-text);
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(201, 162, 39, 0.3);
  font-family: var(--font-arabic), serif;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-body);
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-family: var(--font-arabic), serif;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  padding: 1rem 2.5rem;
  background: var(--gold-gradient);
  color: #0a0a0f;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
  font-family: var(--font-arabic), serif;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.6);
}

.btn-secondary {
  padding: 1rem 2.5rem;
  background: transparent;
  color: var(--gold-text);
  border: 2px solid var(--gold-text);
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-arabic), serif;
}

.btn-secondary:hover {
  background: rgba(201, 162, 39, 0.1);
  transform: translateY(-3px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  animation: bounce 2s infinite;
  color: var(--gold-text);
  opacity: 0.8;
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-10px); }
  60% { transform: translateY(-5px); }
}

/* ==========================================================
   SHARED SECTION STYLES
========================================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--gold-text);
  margin-bottom: 1rem;
  font-family: var(--font-arabic), serif;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ==========================================================
   ABOUT SECTION
========================================================== */
.section-about {
  padding: 6rem 0;
  background: var(--bg-page);
}

.about-content {
  max-width: 1000px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.3rem;
  line-height: 2;
  color: var(--text-body);
  text-align: center;
  margin-bottom: 3rem;
  padding: 2.5rem 3rem;
  background: linear-gradient(135deg, rgba(201, 162, 39, 0.06), rgba(139, 0, 0, 0.04));
  border-radius: 20px;
  border: 1px solid var(--card-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.detail-card:hover::before { transform: scaleX(1); }

.detail-card:hover {
  transform: translateY(-8px);
  border-color: var(--card-hover-border);
  box-shadow: 0 12px 48px var(--card-hover-shadow);
}

.detail-icon {
  width: 80px;
  height: 80px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: #0a0a0f;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
  transition: all 0.4s ease;
}

.detail-card:hover .detail-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 24px rgba(201, 162, 39, 0.5);
}

.detail-card h3 {
  color: var(--gold-text);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.detail-card p {
  color: var(--text-body);
  line-height: 1.8;
  font-size: 1rem;
  text-align: justify;
}

/* ==========================================================
   SUPERVISOR SECTION
========================================================== */
.section-supervisor {
  padding: 6rem 0;
  background: var(--bg-page);
}

.supervisor-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 900px) {
  .supervisor-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.supervisor-image {
  position: relative;
}

.supervisor-image img {
  width: 100%;
  max-width: 300px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
}

.image-frame {
  position: absolute;
  inset: -15px;
  border: 3px solid var(--gold);
  border-radius: 25px;
  opacity: 0.5;
}

.supervisor-info { padding-top: 1rem; }

.supervisor-name {
  font-size: 2.5rem;
  color: var(--gold-text);
  margin-bottom: 0.5rem;
  font-family: var(--font-arabic), serif;
}

.supervisor-role {
  font-size: 1.3rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  font-family: var(--font-arabic), serif;
}

.supervisor-bio p {
  color: var(--text-body);
  line-height: 2;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  text-align: justify;
}

.supervisor-quote {
  font-style: italic;
  padding: 1.5rem 2rem;
  background: rgba(201, 162, 39, 0.1);
  border-right: 4px solid var(--gold);
  border-radius: 0 15px 15px 0;
  margin: 2rem 0;
}

html[dir="ltr"] .supervisor-quote {
  border-right: none;
  border-left: 4px solid var(--gold);
  border-radius: 15px 0 0 15px;
}

.supervisor-prize {
  color: var(--gold-text);
  font-weight: 600;
  font-style: normal;
}

.supervisor-highlight {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.7;
  padding: 2rem 2.5rem;
  background: rgba(201, 162, 39, 0.08);
  border: 2px solid rgba(201, 162, 39, 0.4);
  border-radius: 12px;
  margin: 2rem 0;
  text-align: justify;
  animation: subtleGlow 3s ease-in-out infinite;
}

@keyframes subtleGlow {
  0%, 100% { box-shadow: 0 0 0 rgba(201, 162, 39, 0); }
  50%      { box-shadow: 0 0 20px rgba(201, 162, 39, 0.3); }
}

/* ==========================================================
   ANTHOLOGY SECTION
========================================================== */
.section-anthology {
  padding: 6rem 0;
  background: var(--bg-page);
}

.coming-soon-banner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 4rem;
  background: var(--bg-card);
  border: 2px dashed var(--card-border);
  border-radius: 30px;
  position: relative;
  overflow: hidden;
}

.coming-soon-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(201, 162, 39, 0.05), transparent 70%);
  pointer-events: none;
}

.coming-soon-icon {
  width: 100px;
  height: 100px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  color: #0a0a0f;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0    rgba(201, 162, 39, 0.4); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(201, 162, 39, 0); }
}

.coming-soon-banner h3 {
  font-size: 2.5rem;
  color: var(--gold-text);
  margin-bottom: 1.5rem;
  font-family: var(--font-arabic), serif;
}

.coming-soon-banner > p {
  color: var(--text-body);
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.anthology-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.preview-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.preview-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold-text);
  font-family: var(--font-latin), sans-serif;
}

.preview-label {
  color: var(--text-muted);
  font-size: 1rem;
  font-family: var(--font-arabic), serif;
}

.preview-divider {
  width: 2px;
  height: 60px;
  background: rgba(201, 162, 39, 0.3);
}

/* ==========================================================
   SHADHARAT SECTION
========================================================== */
.section-shadharat {
  padding: 6rem 0;
  background: var(--bg-page);
}

.songs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.song-card {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
}

.song-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gold-gradient);
  transform: scaleX(0);
  transition: transform 0.5s ease;
  z-index: 1;
}

.song-card:hover::before { transform: scaleX(1); }

.song-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: var(--card-hover-border);
  box-shadow: 0 20px 60px var(--card-hover-shadow), 0 0 0 1px rgba(201, 162, 39, 0.1);
}

.song-thumbnail {
  height: 180px;
  background: var(--brown-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
}

.song-card:hover .song-thumbnail {
  background: linear-gradient(135deg, #7b5f3d, #6b4f2d);
}

.song-thumbnail > i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.25);
  transition: all 0.4s ease;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
}

.song-card:hover .song-thumbnail > i {
  color: rgba(255, 255, 255, 0.4);
  transform: scale(1.15);
}

.song-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

.instrument-count {
  background: var(--gold-gradient);
  color: #0a0a0f;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 2px 8px rgba(201, 162, 39, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instrument-count i {
  position: static;
  font-size: 0.85rem;
  color: #0a0a0f;
  transform: none;
}

.song-card:hover .instrument-count {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.6);
}

.song-info { padding: 1.5rem; }

.song-info h3 {
  color: var(--gold-text);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  font-family: var(--font-arabic), serif;
}

.song-title-ar {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
  font-family: var(--font-arabic), serif;
}

.song-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.song-meta span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.song-meta i { color: var(--gold-text); }

.song-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.tag {
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.tag.genre {
  background: rgba(26, 71, 42, 0.5);
  color: #7cb899;
}

.tag.difficulty {
  background: rgba(201, 162, 39, 0.2);
  color: var(--gold-text);
}

.btn-play {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--gold-gradient);
  color: #0a0a0f;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(201, 162, 39, 0.3);
}

.btn-play:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.5);
}

/* ==========================================================
   FOOTER
========================================================== */
footer {
  background: var(--bg-footer);
  border-top: 1px solid var(--card-border);
  padding: 2.5rem 0;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
  direction: ltr;
}

.footer-text {
  color: var(--text-body);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.8;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  direction: ltr;
  text-align: left;
}

.footer-text > * { white-space: nowrap; }

.creator-credit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  direction: rtl;
  padding: 0.4rem 1rem;
  background: rgba(201, 162, 39, 0.06);
  border-radius: 20px;
  border: 1px solid rgba(201, 162, 39, 0.15);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.creator-credit:hover {
  background: rgba(201, 162, 39, 0.1);
  border-color: rgba(201, 162, 39, 0.25);
}

.footer-text span,
.footer-text a {
  display: inline-block;
  unicode-bidi: isolate;
}

.creator-link {
  color: var(--gold-text);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
  position: relative;
}

.creator-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-gradient);
  transition: width 0.3s ease;
}

.creator-link:hover { color: var(--brown); }
.creator-link:hover::after { width: 100%; }

.footer-social {
  display: flex;
  gap: 0.8rem;
  align-items: center;
}

.footer-social a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 50%;
  color: var(--gold-text);
  font-size: 1.1rem;
  transition: transform 0.4s ease, color 0.4s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.footer-social a::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-gradient);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50%;
}

.footer-social a i {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.footer-social a:hover::before { opacity: 1; }

.footer-social a:hover {
  color: #0a0a0f;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 16px rgba(201, 162, 39, 0.4);
  border-color: var(--gold);
}

.footer-social a:hover i { color: #0a0a0f; }

/* ==========================================================
   ANIMATIONS
========================================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-about,
.section-supervisor,
.section-anthology,
.section-shadharat {
  animation: fadeInUp 0.8s ease-out;
}

/* Intersection Observer scroll-reveal */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Nav active state */
.nav-links a.active,
.mobile-nav a.active {
  color: var(--gold-text);
}

/* ==========================================================
   RESPONSIVE — MOBILE
========================================================== */
@media (max-width: 768px) {
  .hero-andalousie { padding: 5rem 1.5rem 3rem; }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

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

  .supervisor-image img {
    max-width: 250px;
    margin: 0 auto;
    display: block;
  }

  .anthology-preview { flex-direction: column; }
  .preview-divider   { width: 60px; height: 2px; }
  .songs-grid        { grid-template-columns: 1fr; }

  .footer-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-text {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
  }

  .footer-separator { display: none; }
  .creator-credit   { margin-top: 0.5rem; }
  .footer-social    { justify-content: center; }
}
