/* ==========================================================================
   Mahatma Ayyankali Memorial Theme - Ultra-Modern 3D Glassmorphic Stylesheet
   ========================================================================== */

:root {
  --primary: #c2410c;           /* Vibrant Terracotta */
  --primary-dark: #7c2d12;
  --primary-light: #ea580c;
  --secondary: #d97706;         /* Golden Amber */
  --secondary-light: #fbbf24;
  --accent-gold: #f59e0b;
  --accent: #1e3a8a;            /* Royal Navy */
  --bg-main: #0c0604;           /* Deep Obsidian Base */
  --bg-card: rgba(26, 14, 8, 0.72); /* Glassmorphic Dark Card */
  --bg-card-hover: rgba(36, 18, 10, 0.88);
  --bg-subtle: #140b07;         /* Alternate Section Mesh */
  --text-main: #f5ede6;         /* Crisp Light Sand */
  --text-muted: #c4b5a5;
  --text-light: #948677;
  --border-color: rgba(251, 191, 36, 0.16);
  --border-highlight: rgba(251, 191, 36, 0.48);
  --glow-gold: 0 0 25px rgba(217, 119, 6, 0.35);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.75);
  --shadow-3d: 0 16px 36px -8px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(251, 191, 36, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-3d-hover: 0 24px 50px -10px rgba(217, 119, 6, 0.32), 0 0 0 1.5px rgba(251, 191, 36, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --max-width: 1200px;
  --font-serif: 'Merriweather', 'Georgia', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-main);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(circle at 12% 18%, rgba(194, 65, 12, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 88% 35%, rgba(217, 119, 6, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 35% 85%, rgba(124, 45, 18, 0.2) 0%, transparent 50%),
    radial-gradient(circle at 75% 90%, rgba(251, 191, 36, 0.08) 0%, transparent 40%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

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

a {
  color: var(--secondary-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover, a:focus {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: #ffffff;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.container {
  width: 92%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================================================
   Site Topbar & Malayalam Switcher
   ========================================================================== */
.site-topbar {
  background: rgba(14, 7, 4, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #f3efe6;
  font-size: 0.85rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(251, 191, 36, 0.15);
  position: relative;
  z-index: 1002;
}

.site-topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.55);
  border: 1.5px solid var(--secondary);
  border-radius: 30px;
  padding: 3px 6px;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.lang-icon {
  font-size: 0.9rem;
  padding-left: 5px;
  line-height: 1;
}

.lang-sep {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.75rem;
  user-select: none;
}

.lang-btn {
  background: transparent;
  border: none;
  color: #e2dcd0;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  line-height: 1.25;
}

.lang-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.lang-btn.active {
  background: linear-gradient(135deg, #d97706 0%, #fbbf24 100%);
  color: #1a0c02;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.5);
}

.topbar-tagline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: #d1c7bc;
}

.topbar-badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.topbar-date {
  font-size: 0.82rem;
  color: #a89f94;
}

/* Malayalam Font & Typography Styles */
body.lang-ml {
  font-family: 'Noto Sans Malayalam', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.85;
}

body.lang-ml h1,
body.lang-ml h2,
body.lang-ml h3,
body.lang-ml h4,
body.lang-ml .site-title,
body.lang-ml .hero-content h1,
body.lang-ml .section-title,
body.lang-ml .article-title {
  font-family: 'Gayathri', 'Noto Sans Malayalam', serif;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.2px;
}

body.lang-ml .hero-quote-box p,
body.lang-ml blockquote,
body.lang-ml .quote-card blockquote {
  font-family: 'Gayathri', 'Noto Sans Malayalam', serif;
  font-style: normal;
  font-weight: 600;
  line-height: 1.7;
}

/* ==========================================================================
   Header & Sticky Glass Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1001;
  background: rgba(12, 6, 4, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  text-decoration: none;
}

.site-logo-img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.4), 0 4px 10px rgba(0, 0, 0, 0.5);
  animation: logoPulse 4s ease-in-out infinite;
  transition: transform 0.4s ease;
}

.site-logo-img:hover {
  transform: scale(1.08) rotate(4deg);
}

@keyframes logoPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.3), 0 4px 10px rgba(0, 0, 0, 0.5);
  }
  50% {
    box-shadow: 0 0 28px rgba(251, 191, 36, 0.6), 0 6px 16px rgba(0, 0, 0, 0.6);
  }
}

.site-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.15;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 60%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.site-description {
  font-size: 0.8rem;
  color: var(--secondary-light);
  margin: 0.2rem 0 0 0;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  font-weight: 600;
}

.primary-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.primary-menu a {
  display: block;
  padding: 0.55rem 1rem;
  color: #d1c7bc;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 30px;
  transition: var(--transition);
}

.primary-menu a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.primary-menu a.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(194, 65, 12, 0.6) 0%, rgba(217, 119, 6, 0.5) 100%);
  border: 1px solid var(--border-highlight);
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.35);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: #ffffff;
  font-size: 1.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   Interactive 3D Hero Banner
   ========================================================================== */
.hero-section {
  position: relative;
  background: radial-gradient(circle at 70% 30%, #1f0d05 0%, #0d0603 70%);
  padding: 5.5rem 0 6rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-3d-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 1;
}

.hero-3d-orb-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(194, 65, 12, 0.4) 0%, rgba(194, 65, 12, 0) 70%);
  top: -100px;
  right: 10%;
  animation: orbDrift1 14s ease-in-out infinite alternate;
}

.hero-3d-orb-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.3) 0%, rgba(217, 119, 6, 0) 70%);
  bottom: -80px;
  left: 5%;
  animation: orbDrift2 12s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-50px, 40px, 0) scale(1.15); }
}

@keyframes orbDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(60px, -30px, 0) scale(1.2); }
}

.hero-3d-bg-wheel {
  position: absolute;
  width: 550px;
  height: 550px;
  right: 2%;
  top: 50%;
  margin-top: -275px;
  opacity: 0.18;
  pointer-events: none;
  transform: rotateY(25deg) rotateX(15deg);
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out;
  animation: heroWheelSpin 50s linear infinite;
}

@keyframes heroWheelSpin {
  0% { transform: rotateY(25deg) rotateX(15deg) rotate(0deg); }
  100% { transform: rotateY(25deg) rotateX(15deg) rotate(360deg); }
}

.hero-floating-pill {
  position: absolute;
  background: rgba(22, 11, 6, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid var(--secondary);
  color: #fef3c7;
  padding: 0.55rem 1.25rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6), 0 0 15px rgba(217, 119, 6, 0.35);
  z-index: 10;
  pointer-events: none;
  transition: transform 0.15s ease-out;
}

.hero-floating-pill.pill-1 {
  top: 18%;
  right: 38%;
  animation: pillFloat1 6s ease-in-out infinite alternate;
}

.hero-floating-pill.pill-2 {
  bottom: 18%;
  right: 6%;
  animation: pillFloat2 7s ease-in-out infinite alternate;
}

@keyframes pillFloat1 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes pillFloat2 {
  0% { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(18px) rotate(-2deg); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 5;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.25) 0%, rgba(194, 65, 12, 0.35) 100%);
  border: 1px solid var(--secondary);
  color: #fef08a;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.35rem 1rem;
  border-radius: 30px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 15px rgba(217, 119, 6, 0.25);
}

.hero-content h1 {
  font-size: 3.4rem;
  color: #ffffff;
  margin-bottom: 0.4rem;
  line-height: 1.12;
  background: linear-gradient(135deg, #ffffff 0%, #fef3c7 50%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--secondary-light);
  margin-bottom: 1.8rem;
  font-weight: 500;
}

.hero-quote-box {
  background: rgba(28, 14, 8, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-left: 4px solid var(--secondary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.5rem 1.8rem;
  margin-bottom: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(251, 191, 36, 0.1);
  border-right: 1px solid rgba(251, 191, 36, 0.1);
  border-bottom: 1px solid rgba(251, 191, 36, 0.1);
}

.hero-quote-box p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.2rem;
  color: #ffffff;
  line-height: 1.55;
  margin-bottom: 0.5rem;
}

.hero-quote-box cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 0.88rem;
  color: #d1c7bc;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* 3D Card Stage in Hero */
.hero-3d-stage {
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: linear-gradient(145deg, #1f0e07 0%, #120703 100%);
  border: 2px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(217, 119, 6, 0.35);
  transform-style: preserve-3d;
  animation: heroCardFloat3D 6s ease-in-out infinite alternate;
  transition: transform 0.15s ease-out, box-shadow 0.3s ease;
}

@keyframes heroCardFloat3D {
  0% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  100% { transform: translateY(-14px) rotateX(3deg) rotateY(-3deg); }
}

.hero-card-shine {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: var(--radius-lg);
  pointer-events: none;
  z-index: 12;
  transition: background 0.15s ease-out;
}

.hero-card-seal {
  position: absolute;
  top: -18px;
  right: -18px;
  width: 58px;
  height: 58px;
  background: radial-gradient(circle, #f59e0b 0%, #b45309 100%);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6), 0 0 15px rgba(251, 191, 36, 0.6);
  z-index: 15;
  transform: translateZ(55px);
}

.hero-card-seal img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.hero-card-img-wrapper {
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid rgba(251, 191, 36, 0.25);
  background: #000;
}

.hero-card-img-wrapper img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.hero-card-caption {
  text-align: center;
  margin-top: 1rem;
}

.hero-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.hero-card-subtitle {
  font-size: 0.85rem;
  color: var(--secondary-light);
  margin-top: 0.2rem;
}

/* ==========================================================================
   Buttons with 3D Depth & Hover Effects
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 0.85rem 1.8rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, #d97706 0%, #b45309 50%, #9a3412 100%);
  color: #ffffff;
  border: 1px solid rgba(251, 191, 36, 0.45);
  box-shadow: 0 8px 24px rgba(217, 119, 6, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 14px 32px rgba(217, 119, 6, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.btn-outline {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid var(--secondary);
  color: var(--secondary-light);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.btn-outline:hover {
  background: rgba(217, 119, 6, 0.2);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(217, 119, 6, 0.4);
}

/* ==========================================================================
   Stats Bar with Glassmorphic 3D Tiles
   ========================================================================== */
.stats-bar {
  background: rgba(14, 7, 4, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  padding: 3rem 0;
  position: relative;
  z-index: 10;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-3d);
  transition: var(--transition);
  transform-style: preserve-3d;
}

.stat-item:hover {
  transform: perspective(600px) translateY(-8px) translateZ(10px);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--border-highlight);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 0%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.stat-label {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.3rem;
}

.stat-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   Sections & 3D Cards
   ========================================================================== */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: var(--bg-subtle);
  background-image: 
    radial-gradient(circle at 80% 20%, rgba(217, 119, 6, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(194, 65, 12, 0.12) 0%, transparent 45%);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-block;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid var(--border-highlight);
  color: #fbbf24;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 0.3rem 1.1rem;
  border-radius: 30px;
  margin-bottom: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 2.6rem;
  color: #ffffff;
  margin-bottom: 1.2rem;
  line-height: 1.2;
}

.section-title-divider {
  width: 80px;
  height: 3.5px;
  background: linear-gradient(90deg, #d97706, #fbbf24, #d97706);
  margin: 0 auto 1.5rem;
  border-radius: 4px;
  box-shadow: 0 0 14px rgba(251, 191, 36, 0.6);
}

.section-intro {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Bio Overview Section */
.bio-overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

.bio-text p {
  margin-bottom: 1.3rem;
  color: var(--text-main);
}

.bio-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 2rem;
}

.bio-card-mini {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--secondary);
  box-shadow: var(--shadow-3d);
  transition: var(--transition);
  transform-style: preserve-3d;
}

.bio-card-mini:hover {
  transform: perspective(600px) translateY(-6px) translateZ(8px);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--border-highlight);
}

.bio-card-mini h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.bio-card-mini p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Movements Grid with 3D Tactile Cards
   ========================================================================== */
.movements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.movement-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 2.4rem;
  box-shadow: var(--shadow-3d);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.movement-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #d97706, #fbbf24, #c2410c);
  opacity: 0.8;
}

.movement-card:hover {
  transform: perspective(800px) translateY(-10px) translateZ(12px);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--border-highlight);
}

.movement-year-badge {
  display: inline-block;
  align-self: flex-start;
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 30px;
  margin-bottom: 1.3rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
}

.movement-title {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
  color: #ffffff;
  line-height: 1.3;
}

.movement-desc {
  font-size: 0.96rem;
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.8rem;
  line-height: 1.65;
}

.movement-link {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--secondary-light);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.movement-link:hover {
  color: #ffffff;
  gap: 0.8rem;
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* ==========================================================================
   Interactive 3D Timeline
   ========================================================================== */
.timeline-filters {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(22, 11, 6, 0.8);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  padding: 0.65rem 1.4rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  color: #ffffff;
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border-color: var(--secondary-light);
  box-shadow: 0 6px 20px rgba(217, 119, 6, 0.45);
}

.timeline {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(180deg, #d97706 0%, #fbbf24 50%, #ea580c 100%);
  box-shadow: 0 0 16px rgba(251, 191, 36, 0.65);
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -2px;
  border-radius: 4px;
}

.timeline-item {
  padding: 15px 45px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item.left {
  left: 0;
  text-align: right;
}

.timeline-item.right {
  left: 50%;
  text-align: left;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  right: -11px;
  background: radial-gradient(circle, #fbbf24 0%, #b45309 100%);
  border: 4px solid #140804;
  top: 24px;
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 18px rgba(251, 191, 36, 0.9);
}

.timeline-item.right::after {
  left: -11px;
}

.timeline-box {
  padding: 1.8rem;
  background-color: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-3d);
  transition: var(--transition);
  transform-style: preserve-3d;
}

.timeline-item:hover .timeline-box {
  transform: perspective(700px) translateY(-6px) translateZ(8px);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--border-highlight);
}

.timeline-year {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--secondary-light);
  display: block;
  margin-bottom: 0.4rem;
  text-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
}

.timeline-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: #ffffff;
}

.timeline-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   Quotes Grid with 3D Embossed Marks
   ========================================================================== */
.quotes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.8rem;
}

.quote-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  padding: 2.8rem;
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--secondary);
  box-shadow: var(--shadow-3d);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  transform-style: preserve-3d;
}

.quote-card::before {
  content: '“';
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 8rem;
  line-height: 1;
  font-family: var(--font-serif);
  color: rgba(251, 191, 36, 0.07);
  pointer-events: none;
  font-weight: 800;
}

.quote-card:hover {
  transform: perspective(800px) translateY(-8px) translateZ(10px);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--border-highlight);
}

.quote-card blockquote {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.65;
  color: #ffffff;
  font-style: italic;
  margin-bottom: 1.8rem;
  position: relative;
  z-index: 1;
}

.quote-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 1.2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quote-author {
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
}

.quote-context {
  font-size: 0.85rem;
  color: var(--secondary-light);
  font-style: normal;
}

/* ==========================================================================
   Gallery Grid with 3D Depth Frames
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.2rem;
}

.gallery-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-3d);
  cursor: pointer;
  transition: var(--transition);
  transform-style: preserve-3d;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  transform: perspective(800px) translateY(-10px) translateZ(12px);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--border-highlight);
}

.gallery-thumb {
  height: 250px;
  overflow: hidden;
  position: relative;
  background: #000;
}

.gallery-thumb img, .gallery-thumb svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-thumb img {
  transform: scale(1.08);
}

.gallery-details {
  padding: 1.8rem;
  flex-grow: 1;
}

.gallery-title {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.gallery-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  background: #140804;
  border: 1.5px solid var(--secondary);
  border-radius: var(--radius-lg);
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(217, 119, 6, 0.4);
  position: relative;
  animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.lightbox-close {
  position: absolute;
  top: 15px;
  right: 18px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--primary);
}

.lightbox-img-wrapper img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #000;
}

.lightbox-caption {
  padding: 1.5rem 2rem;
}

/* ==========================================================================
   CTA Banner & Footer
   ========================================================================== */
.cta-banner {
  background: radial-gradient(circle at center, #260e05 0%, #0c0502 100%);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 5.5rem 0;
  text-align: center;
  position: relative;
}

.cta-banner h2 {
  font-size: 2.5rem;
  color: #ffffff;
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.site-footer {
  background: #080302;
  color: #c4b5a5;
  padding: 5rem 0 2.5rem;
  border-top: 1px solid rgba(251, 191, 36, 0.12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-col h3, .footer-col h4 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 1.2rem;
}

.footer-about p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.7rem;
}

.footer-links a {
  color: #c4b5a5;
  font-size: 0.92rem;
}

.footer-links a:hover {
  color: var(--secondary-light);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ==========================================================================
   Article Pages (Biography, Movements, Speeches, Gallery) 3D Container
   ========================================================================== */
.article-container {
  max-width: 920px;
  margin: 4rem auto 6rem;
  padding: 0 1.5rem;
}

.article-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.article-meta {
  display: inline-block;
  background: rgba(217, 119, 6, 0.18);
  border: 1px solid var(--border-highlight);
  color: #fbbf24;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0.35rem 1.1rem;
  border-radius: 30px;
  margin-bottom: 1rem;
}

.article-title {
  font-size: 2.8rem;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.article-card-3d, .article-section-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-3d);
  transition: var(--transition);
  transform-style: preserve-3d;
}

.article-card-3d:hover, .article-section-card:hover {
  transform: perspective(900px) translateY(-6px) translateZ(8px);
  box-shadow: var(--shadow-3d-hover);
  border-color: var(--border-highlight);
}

.article-body h2 {
  font-size: 1.7rem;
  color: #ffffff;
  margin-bottom: 1.2rem;
  padding-bottom: 0.5rem;
  border-bottom: 1.5px solid var(--border-color);
}

.article-body p {
  margin-bottom: 1.3rem;
  color: var(--text-main);
  line-height: 1.8;
}

.article-body blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  border-left: 4px solid var(--secondary);
  background: rgba(35, 17, 10, 0.8);
  backdrop-filter: blur(12px);
  padding: 1.6rem 2.2rem;
  margin: 2rem 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.article-body ul {
  margin: 1.5rem 0 2rem 2rem;
}

.article-body li {
  margin-bottom: 0.8rem;
  color: var(--text-main);
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .bio-overview-grid {
    grid-template-columns: 1fr;
  }
  .movements-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-topbar .container {
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.5rem;
  }
  .topbar-left {
    justify-content: center;
    width: 100%;
    gap: 0.75rem;
  }
  .topbar-tagline {
    font-size: 0.78rem;
    text-align: center;
  }
  .topbar-date {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .primary-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(14, 7, 4, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
  }
  .primary-menu.active {
    display: flex;
  }
  .site-logo-img {
    width: 60px;
    height: 60px;
  }
  .site-title {
    font-size: 1.25rem;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .hero-floating-pill {
    display: none;
  }
  .hero-card {
    transform: none !important;
    animation: none !important;
  }
  .movements-grid {
    grid-template-columns: 1fr;
  }
  .timeline::after {
    left: 20px;
  }
  .timeline-item {
    width: 100%;
    padding-left: 55px;
    padding-right: 15px;
    text-align: left !important;
  }
  .timeline-item.right {
    left: 0%;
  }
  .timeline-item::after {
    left: 10px;
  }
  .quotes-grid, .gallery-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .article-title {
    font-size: 2.1rem;
  }
}
