/* ==========================================================================
   ENCYCLOPEDIA OF AFALA YATADABBARUN (مَوْسُوعَةُ أَفَلَا يَتَدَبَّرُونَ)
   Design System & Premium Production Stylesheet
   Author: Antigravity AI
   Target: Zoho Catalyst Production Environment (RTL Mandatory)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Global Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Parchment Mode Color Design Tokens */
  --color-bg-main: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-text-main: #0F172A;
  --color-text-muted: #475569;
  --color-royal-dark: #1E3A8A;
  --color-gold-luxury: #B8860B;
  --color-gold-glow: #D4AF37;

  /* Redirection mapping to preserve stylesheet visual consistency */
  --bg-primary: var(--color-bg-main);
  --bg-secondary: var(--color-bg-card);
  --bg-card: var(--color-bg-card);
  --bg-card-hover: #f1f5f9;

  --color-gold-metallic: var(--color-gold-luxury);
  --color-gold-glow: var(--color-gold-glow);
  --color-text-primary: var(--color-text-main);
  --color-text-secondary: var(--color-text-muted);
  --color-text-muted: #64748b;

  --color-success: #10b981;
  --color-danger: #ef4444;

  /* Glassmorphism Details (light-adjusted for parchment visibility) */
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(184, 134, 11, 0.15);
  --glass-border-hover: rgba(212, 175, 55, 0.45);
  
  /* Fonts */
  --font-headings: 'Amiri', Georgia, serif;
  --font-body: 'Tajawal', system-ui, -apple-system, sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  
  /* Layout constraints */
  --max-width-content: 1280px;
  --max-width-reading: 70ch;

  /* Soft Shadows for Light-Theme Cards */
  --box-shadow-subtle: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --box-shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -4px rgba(0, 0, 0, 0.07);
}

/* --------------------------------------------------------------------------
   2. Reset & Core Setups (RTL Aware)
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--color-bg-main);
    color: var(--color-text-main);
    direction: rtl;
    font-size: 1.1rem;
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

/* Gold Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--color-gold-metallic);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-gold-glow);
}

/* Typography Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.4;
  margin-bottom: 0.8rem;
}

a {
  color: var(--color-gold-metallic);
  text-decoration: none;
  transition: var(--transition-fast);
}
a:hover {
  color: var(--color-gold-glow);
}

/* --------------------------------------------------------------------------
   3. Below-the-fold Deferred Rendering (Modern Performance Guidance)
   -------------------------------------------------------------------------- */
.heavy-section-deferred {
  content-visibility: auto;
  contain-intrinsic-size: auto none auto 400px;
}

/* --------------------------------------------------------------------------
   4. Glassmorphic Navigation Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-royal-dark);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-gold-luxury);
  transition: var(--transition-smooth);
  box-shadow: var(--box-shadow-subtle);
}

.site-header.scrolled {
  background: #111827; /* Darker navy/slate for scroll contrast */
  border-bottom: 1px solid var(--color-gold-glow);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.header-container {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 2px solid var(--color-gold-glow);
  background: radial-gradient(circle, var(--color-royal-dark) 0%, #111827 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-headings);
  font-size: 1.5rem;
  color: var(--color-gold-glow);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.brand-text h1 {
  font-size: 1.4rem;
  margin-bottom: 0;
  color: #FFFFFF;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  letter-spacing: 0.5px;
}

.brand-text span {
  font-size: 0.8rem;
  color: var(--color-gold-glow);
  font-weight: 500;
}

/* Nav Menu */
.main-nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: var(--transition-smooth);
  position: relative;
  cursor: pointer;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 80%;
  height: 2px;
  background-color: var(--color-gold-glow);
  transition: var(--transition-smooth);
  transform-origin: center;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-gold-glow);
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* --------------------------------------------------------------------------
   5. Hero & Quick Stats Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  padding: 160px 1.5rem 80px 1.5rem;
  background: radial-gradient(ellipse at center, rgba(30, 58, 138, 0.25) 0%, transparent 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(var(--glass-border) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.4;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  background: rgba(30, 58, 138, 0.3);
  border: 1px solid var(--color-gold-metallic);
  color: var(--color-gold-glow);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 2rem;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(4px);
  animation: float 4s ease-in-out infinite;
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.3;
  max-width: 900px;
  margin: 0 auto 1.5rem auto;
  color: var(--color-text-primary);
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

.hero-title span {
  display: block;
  font-size: 1.8rem;
  color: var(--color-gold-glow);
  margin-top: 0.5rem;
  font-weight: 400;
}

.hero-desc {
  max-width: 680px;
  color: var(--color-text-secondary);
  font-size: 1.2rem;
  line-height: 1.9;
  margin-bottom: 2.5rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--color-royal-dark);
  color: #FFFFFF;
  border: 1px solid var(--color-gold-luxury);
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
  background: #1e40af; /* slightly lighter royal dark for hover */
  color: var(--color-gold-glow);
}

.btn-secondary {
  background: transparent;
  color: var(--color-royal-dark);
  border: 1px solid var(--color-royal-dark);
}

.btn-secondary:hover {
  border-color: var(--color-gold-luxury);
  background: var(--color-royal-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Scientific Stats Panel */
.stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--max-width-content);
  width: 100%;
  margin: 4rem auto 0 auto;
  padding: 0 1.5rem;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--box-shadow-subtle);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--glass-border-hover);
  box-shadow: var(--box-shadow-hover);
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-gold-glow);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

/* --------------------------------------------------------------------------
   6. Main Content Views (Grid / Layout Structures)
   -------------------------------------------------------------------------- */
.main-wrapper {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-header h2 {
  font-size: 2.6rem;
  color: var(--color-text-primary);
  display: inline-block;
  position: relative;
  padding-bottom: 1rem;
}

.section-header h2::after {
  content: '✥';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-gold-metallic);
  font-size: 1.2rem;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 1.5rem auto 0 auto;
}

/* --------------------------------------------------------------------------
   7. Home View - Dashboard & Feeds
   -------------------------------------------------------------------------- */
.home-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

.featured-article-card {
  background: linear-gradient(145deg, var(--bg-card) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
}

.featured-article-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.featured-tag {
  align-self: flex-start;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, transparent 100%);
  border: 1px solid var(--color-gold-metallic);
  color: var(--color-gold-glow);
  padding: 0.35rem 1rem;
  border-radius: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.featured-title {
  font-size: 2.2rem;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.featured-desc {
  color: var(--color-text-secondary);
  font-size: 1.1rem;
}

/* Updates Column */
.updates-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.updates-title {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  border-bottom: 2px solid var(--glass-border);
  padding-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.updates-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.update-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.5rem;
  padding: 1.25rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.update-item:hover {
  border-color: var(--color-gold-metallic);
  background: var(--bg-card);
  transform: translateX(-4px);
}

.update-date {
  font-size: 0.8rem;
  color: var(--color-gold-glow);
  font-weight: 500;
}

.update-item h4 {
  font-size: 1.1rem;
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   8. Scientific Articles Section & Reading Mode
   -------------------------------------------------------------------------- */
.category-filter-bar {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.category-tab {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--color-text-secondary);
  padding: 0.6rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.category-tab:hover, .category-tab.active {
  background: var(--color-gold-metallic);
  color: var(--bg-primary);
  border-color: var(--color-gold-metallic);
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.25);
}

/* Grid layout for standard articles list */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  padding: 2rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  box-shadow: var(--box-shadow-subtle);
}

.article-card:hover {
  border-color: var(--color-gold-metallic);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-4px);
}

.article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-gold-glow);
  font-weight: 500;
}

.article-card h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.article-excerpt {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
}

.read-more-btn {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-gold-metallic);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.read-more-btn:hover {
  color: var(--color-gold-glow);
}

/* Elegant Reading Mode Screen */
.reading-view-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 6, 23, 0.97);
  z-index: 2000;
  overflow-y: auto;
  padding: 4rem 2rem;
  animation: fadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reading-view-overlay.active {
  display: block;
}

.reading-container {
  max-width: var(--max-width-reading);
  margin: 0 auto;
  position: relative;
  background: #0f172a;
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 3rem;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.8);
}

/* Theme options in reading mode */
.reading-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.reading-controls {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--color-text-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: var(--transition-fast);
}

.control-btn:hover {
  background: var(--color-gold-metallic);
  color: var(--bg-primary);
  border-color: var(--color-gold-metallic);
}

.close-reading-btn {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--color-danger);
  padding: 0.5rem 1.25rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.close-reading-btn:hover {
  background: var(--color-danger);
  color: var(--color-text-primary);
}

.reading-header {
  margin-bottom: 2rem;
}

.reading-category {
  color: var(--color-gold-metallic);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  display: block;
}

.reading-title {
  font-size: 2.8rem;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-text-primary);
}

.reading-meta-row {
  display: flex;
  gap: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.reading-content {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  line-height: 2.1;
  color: #e2e8f0;
  text-align: justify;
}

.reading-content p {
  margin-bottom: 2rem;
}

.reading-content h4 {
  font-size: 1.8rem;
  color: var(--color-gold-glow);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 0.5rem;
}

.reading-content blockquote {
  border-right: 4px solid var(--color-gold-metallic);
  padding-right: 1.5rem;
  margin: 2rem 0;
  color: var(--color-gold-glow);
  font-style: italic;
}

/* Warm / Sepia theme variant for reading mode */
.reading-container.theme-sepia {
  background: #fdf6e3;
  border-color: rgba(181, 137, 0, 0.2);
}
.reading-container.theme-sepia .reading-title,
.reading-container.theme-sepia .reading-content h4 {
  color: #586e75;
}
.reading-container.theme-sepia .reading-content {
  color: #073642;
}
.reading-container.theme-sepia .reading-meta-row,
.reading-container.theme-sepia .reading-category {
  color: #b58900;
}

/* --------------------------------------------------------------------------
   9. Media Vault & Omnichannel Hub (Mixed-Media Grid)
   -------------------------------------------------------------------------- */
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* Horizontal YouTube Card */
.video-card-horizontal {
  grid-column: span 2;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.video-card-horizontal:hover {
  border-color: var(--color-gold-metallic);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.video-frame-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  background: #000;
}

.video-frame-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-info {
  padding: 1.5rem;
}

.video-info h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.video-info p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* Vertical 9:16 Short-Form Reels Card */
.reel-card-vertical {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 0.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.reel-card-vertical:hover {
  border-color: var(--color-gold-metallic);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.reel-media-wrapper {
  position: relative;
  padding-bottom: 177.77%; /* 9:16 Aspect Ratio */
  height: 0;
  background: #000;
  overflow: hidden;
}

.reel-media-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.9) 0%, transparent 50%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  pointer-events: none;
}

.reel-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.9);
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.5);
  transition: var(--transition-smooth);
  pointer-events: auto;
}

.reel-play-btn:hover {
  background: var(--color-gold-glow);
  transform: translate(-50%, -50%) scale(1.1);
}

.reel-play-btn svg {
  width: 20px;
  height: 20px;
  fill: var(--bg-primary);
  margin-right: -2px; /* Visual centering adjustment for play triangle */
}

.reel-title {
  color: var(--color-text-primary);
  font-size: 1.1rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.reel-source {
  color: var(--color-gold-glow);
  font-size: 0.8rem;
  font-weight: 500;
  margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   10. Professional Biography Section (E-A-T Optimized)
   -------------------------------------------------------------------------- */
.bio-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  align-items: start;
}

.bio-card-profile {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 2.5rem;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.profile-avatar-wrapper {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto 1.5rem auto;
}

.profile-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-gold-metallic);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.35);
}

.bio-card-profile h3 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.bio-title-sub {
  color: var(--color-gold-glow);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.credentials-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: right;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  font-size: 0.95rem;
}

.credential-item {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  color: var(--color-text-secondary);
}

.credential-icon {
  color: var(--color-gold-metallic);
  flex-shrink: 0;
  margin-top: 4px;
}

/* Timeline Layout for Achievements */
.bio-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-item {
  position: relative;
  padding-right: 2rem;
  border-right: 2px solid var(--glass-border);
}

.timeline-item::after {
  content: '';
  position: absolute;
  top: 5px;
  right: -7px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-gold-metallic);
  border: 2px solid var(--bg-primary);
  transition: var(--transition-smooth);
}

.timeline-item:hover::after {
  background: var(--color-gold-glow);
  box-shadow: 0 0 8px var(--color-gold-glow);
}

.timeline-year {
  font-size: 0.9rem;
  color: var(--color-gold-glow);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.timeline-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.timeline-desc {
  color: var(--color-text-secondary);
  font-size: 1rem;
}

/* --------------------------------------------------------------------------
   11. Dynamic Client Comments & Secure UI Placeholders
   -------------------------------------------------------------------------- */
.comments-container {
  margin-top: 4rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 1rem;
  padding: 3rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.comment-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.form-group-full {
  grid-column: span 2;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-smooth);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-gold-metallic);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

/* Dynamic HTML5 Validation States */
.form-input:focus:invalid {
  border-color: var(--color-danger);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

.form-input:focus:user-valid {
  border-color: var(--color-success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.comments-feed {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
}

.comment-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition-smooth);
}

.comment-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--glass-border);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.comment-author {
  font-weight: 600;
  color: var(--color-gold-glow);
}

.comment-date {
  color: var(--color-text-muted);
}

.comment-body {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   12. Floating Aesthetic Social Sidebar & Footer
   -------------------------------------------------------------------------- */
.social-sidebar {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-button {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  color: var(--color-gold-metallic);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
  backdrop-filter: blur(8px);
}

.social-button:hover {
  background: var(--color-gold-metallic);
  color: var(--bg-primary);
  border-color: var(--color-gold-metallic);
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 6px 20px rgba(250, 204, 21, 0.4);
}

.social-button svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Site Footer */
.site-footer {
  background: #020617;
  border-top: 1px solid var(--glass-border);
  padding: 4rem 1.5rem 2rem 1.5rem;
}

.footer-grid {
  max-width: var(--max-width-content);
  margin: 0 auto 3rem auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

.footer-brand h3 {
  font-size: 1.8rem;
  color: var(--color-text-primary);
  margin-bottom: 1rem;
}

.footer-brand p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 450px;
}

.footer-links h4 {
  font-size: 1.2rem;
  color: var(--color-gold-glow);
  margin-bottom: 1.25rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-gold-metallic);
  padding-right: 4px;
}

.footer-bottom {
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   13. Responsive Utilities & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .home-grid, .bio-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .video-card-horizontal {
    grid-column: span 2;
  }
  .stats-panel {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 1rem;
  }
  .site-header {
    position: relative;
  }
  .header-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem 1rem;
  }
  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
  .hero-section {
    padding: 60px 1rem 40px 1rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .stats-panel {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }
  .articles-grid {
    grid-template-columns: 1fr;
  }
  .media-grid {
    grid-template-columns: 1fr;
  }
  .video-card-horizontal {
    grid-column: span 1;
  }
  .comment-form {
    grid-template-columns: 1fr;
  }
  .form-group-full {
    grid-column: span 1;
  }
  .reading-container {
    padding: 1.5rem;
  }
  .reading-title {
    font-size: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
