/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
  --beige-50:  #faf8f3;
  --beige-100: #f5f0e8;
  --beige-200: #ede4d4;
  --beige-300: #ddd0b8;
  --beige-400: #c9b89a;
  --beige-500: #b09878;
  --beige-600: #8c7558;
  --beige-700: #6b5640;
  --beige-800: #3d3028;
  --beige-900: #1e1710;
  --accent:    #8c7558;
  --text-dark: #2a2118;
  --text-mid:  #6b5640;
  --text-light:#9e8870;
  --white:     #faf8f3;
  --shadow:    0 4px 32px rgba(44,33,18,.08);
  --shadow-lg: 0 12px 48px rgba(44,33,18,.14);
  --r: 16px; 
  --r-sm: 8px;
}

[data-theme="dark"] {
  /* Cinematic Warm Obsidian Scales */
  --beige-50:  #0d0b09; /* Deep warm obsidian background */
  --beige-100: #13100e; /* Elevated panel background */
  --beige-200: #1a1613; /* Surface background for active controls */
  --beige-300: #2b241f; /* Soft bronze-clay border */
  --beige-400: #3d332c; /* Medium bronze border */
  --beige-500: #5c4e43; /* Warm silt text / passive icons */
  --beige-600: #8c7867; /* Soft sand gold */
  --beige-700: #ad9a88; /* Linen accent text */
  --beige-800: #d4bfab; /* Champagne gold highlight / active states */
  --beige-900: #f7f2eb; /* Pure warm ivory text */
  
  --accent:    #d4bfab; /* Champagne gold primary accent */
  --text-dark: #f7f2eb; /* High readability warm ivory text */
  --text-mid:  #d4bfab; /* Mid-tone champagne gold */
  --text-light:#9e8d7d; /* Soft linen body text */
  --white:     #13100e; /* Card background */
  --shadow:    0 4px 30px rgba(0,0,0,.5);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.75);
}

/* ==========================================================================
   Base Styles
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Offset for fixed nav — prevents headings being hidden behind navbar on anchor links */
}

/* Skip-to-content link — visually hidden until focused (WCAG 2.4.1) */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--beige-800);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 10px 10px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
  white-space: nowrap;
}
.skip-to-content:focus {
  top: 0;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Accessibility: respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body, nav, section, .mini-card, .finding-card, .glass-card, .dash-wrapper, .rec-item, .res-card, .team-card, .btn-p, .btn-s {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--beige-50);
  color: var(--text-dark);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

.control-btn.mobile-menu-btn {
  display: none;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--beige-200);
  transition: 0.3s;
}

[data-theme="dark"] nav {
  background: rgba(21, 19, 16, 0.88);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.control-btn {
  background: transparent;
  border: 1px solid var(--beige-300);
  color: var(--text-dark);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.2s;
  position: relative;
  overflow: hidden;
}

.control-btn:hover {
  background: var(--beige-200);
}

.control-btn svg {
  width: 18px;
  height: 18px;
  transition: opacity 0.3s, transform 0.3s;
}

[data-theme="dark"] .sun-icon {
  opacity: 1;
  transform: rotate(0);
}
[data-theme="dark"] .moon-icon {
  opacity: 0;
  transform: rotate(90deg) scale(0);
  position: absolute;
}
[data-theme="light"] .sun-icon, :root:not([data-theme]) .sun-icon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
  position: absolute;
}
[data-theme="light"] .moon-icon, :root:not([data-theme]) .moon-icon {
  opacity: 1;
  transform: rotate(0);
}

.lang-text {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: 'Space Mono', monospace;
}

/* ==========================================================================
   RTL Layout
   ========================================================================== */
html[dir="rtl"] {
  font-family: 'Cairo', 'DM Sans', sans-serif;
}

html[dir="rtl"] .hero h1,
html[dir="rtl"] .sec-title,
html[dir="rtl"] h2,
html[dir="rtl"] h3 {
  font-family: 'Amiri', 'Cormorant Garamond', serif;
  line-height: 1.4;
  letter-spacing: 0;
}

html[dir="rtl"] .nav-logo {
  gap: 12px;
}

html[dir="rtl"] .btn-p {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-badge,
html[dir="rtl"] .sec-label {
  font-family: 'Cairo', 'Space Mono', monospace;
  letter-spacing: 0;
}

html[dir="rtl"] .hero {
  text-align: center;
}

html[dir="rtl"] .sec-header {
  text-align: center;
}

html[dir="rtl"] .about-text,
html[dir="rtl"] .rec-item,
html[dir="rtl"] .res-card,
html[dir="rtl"] .repo-content,
html[dir="rtl"] .finding-card,
html[dir="rtl"] .dash-wrapper {
  text-align: right;
}

html[dir="rtl"] .about-text .sec-title {
  text-align: right;
}

html[dir="rtl"] .hero-ctas, html[dir="rtl"] .btn-p, html[dir="rtl"] .btn-s {
  flex-direction: row;
}

html[dir="rtl"] .rec-item,
html[dir="rtl"] .var-card {
  flex-direction: row-reverse;
}

html[dir="rtl"] .rec-item:hover {
  transform: translateX(-4px);
}

/* Research Section RTL Overrides */
html[dir="rtl"] #research {
  text-align: right;
}

html[dir="rtl"] .res-card-header {
  text-align: right;
}

html[dir="rtl"] .res-header-side {
  margin-left: 0;
  margin-right: 24px;
}

html[dir="rtl"] .res-content-sidebar {
  border-right: none;
  padding-right: 0;
  border-left: 1px solid var(--beige-100);
  padding-left: 24px;
}

html[dir="rtl"] .res-conclusion-box {
  border-left: none;
  border-right: 3px solid var(--accent);
  border-radius: 12px 0 0 12px;
}

html[dir="rtl"] .res-source-btn svg {
  transform: scaleX(-1);
}

html[dir="rtl"] .res-source-btn:hover svg {
  transform: scaleX(-1) translate(2px, -2px);
}

html[dir="rtl"] .res-meta-list {
  padding-right: 0;
  padding-left: 0;
}

html[dir="rtl"] .res-meta-list li {
  padding-left: 0;
  padding-right: 12px;
}

html[dir="rtl"] .res-meta-list li::before {
  left: auto;
  right: 0;
}

html[dir="rtl"] .res-bullet-list {
  padding-right: 0;
  padding-left: 0;
}

html[dir="rtl"] .res-bullet-list li {
  padding-left: 0;
  padding-right: 16px;
}

html[dir="rtl"] .res-bullet-list li::before {
  left: auto;
  right: 0;
}


.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.site-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-logo:hover .site-logo {
  transform: translateY(-1px);
  opacity: 0.92;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--beige-900);
}

.nav-brand span {
  color: var(--accent);
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 7px 14px;
  border-radius: 100px;
  transition: 0.2s;
}

.nav-links a:hover {
  background: var(--beige-200);
  color: var(--text-dark);
}

.nav-links a.active {
  background: var(--beige-800);
  color: var(--white);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(90px);
}

.hero-orb.o1 {
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, var(--beige-300) 0%, transparent 70%);
  top: -140px;
  right: -120px;
  opacity: 0.45;
}

.hero-orb.o2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--beige-400) 0%, transparent 70%);
  bottom: -80px;
  left: -80px;
  opacity: 0.3;
}

.hero-orb.o3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--beige-500) 0%, transparent 70%);
  top: 40%;
  left: 30%;
  opacity: 0.12;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--beige-200);
  border: 1px solid var(--beige-300);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.72rem;
  font-family: 'Space Mono', monospace;
  color: var(--text-mid);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--beige-900);
  margin-bottom: 8px;
  animation: fadeUp 0.8s 0.1s ease both;
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 44px;
  animation: fadeUp 0.8s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.3s ease both;
}

.btn-p {
  background: var(--beige-800);
  color: var(--white);
  border: none;
  padding: 13px 30px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s;
  box-shadow: 0 4px 20px rgba(44, 33, 18, 0.2);
}

.btn-p:hover {
  background: var(--beige-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(44, 33, 18, 0.25);
}

.btn-s {
  background: transparent;
  color: var(--text-dark);
  border: 1.5px solid var(--beige-300);
  padding: 12px 26px;
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.25s;
}

.btn-s:hover {
  background: var(--beige-200);
  border-color: var(--beige-400);
}

.hero-stats {
  display: flex;
  gap: 56px;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--beige-200);
  animation: fadeUp 0.8s 0.4s ease both;
}

.hs-item {
  text-align: center;
}

.hs-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--beige-800);
  line-height: 1;
}

.hs-label {
  font-size: 0.72rem;
  color: var(--text-light);
  margin-top: 4px;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
}

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

/* ==========================================================================
   General Section Styles
   ========================================================================== */
section {
  position: relative;
  z-index: 1;
}

.sec-label {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.sec-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--beige-900);
  line-height: 1.2;
}

.sec-desc {
  color: var(--text-light);
  max-width: 520px;
  margin: 14px auto 0;
  line-height: 1.75;
}

.sec-header {
  text-align: center;
  margin-bottom: 60px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
#about {
  padding: clamp(60px, 8vw, 110px) clamp(16px, 4vw, 48px);
  background: var(--beige-100);
}

.about-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .sec-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-text p {
  color: var(--text-mid);
  line-height: 1.85;
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.about-text .btn-p {
  margin-top: 12px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.mini-card {
  background: var(--white);
  border: 1px solid var(--beige-200);
  border-radius: var(--r);
  padding: 22px;
  transition: 0.25s;
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--beige-300);
}

.mini-card .ic {
  width: 44px;
  height: 44px;
  background: var(--beige-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.mini-card .ic svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  transition: all 0.3s ease;
}

.mini-card:hover .ic {
  background: var(--beige-800);
  transform: scale(1.08) rotate(3deg);
}

.mini-card:hover .ic svg {
  stroke: var(--white);
  transform: scale(1.05);
}

.mini-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.mini-card p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.5;
}



/* ==========================================================================
   Results / Findings Section
   ========================================================================== */
#results {
  padding: clamp(60px, 8vw, 110px) clamp(16px, 4vw, 48px);
  max-width: 1150px;
  margin: 0 auto;
}

.findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 18px;
  margin-top: 8px;
}

.finding-card {
  background: var(--white);
  border: 1px solid var(--beige-200);
  border-radius: var(--r);
  padding: 28px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.finding-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--beige-300), var(--beige-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.3s;
}

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

.finding-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--beige-300);
}

.fc-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Subtle warm gradient — light mode */
  background: linear-gradient(135deg, var(--beige-400) 0%, var(--beige-300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent; /* graceful fallback for browsers that skip clip */
}

/* Dark mode: lift champagne warmth into visibility without blowing contrast */
[data-theme="dark"] .fc-num {
  background: linear-gradient(135deg, var(--beige-700) 0%, var(--beige-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.finding-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  line-height: 1.4;
}

.finding-card p {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.65;
}

.fc-icon {
  width: 44px;
  height: 44px;
  background: var(--beige-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fc-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  transition: all 0.3s ease;
}

.finding-card:hover .fc-icon {
  background: var(--beige-800);
  transform: scale(1.08) rotate(5deg);
}

.finding-card:hover .fc-icon svg {
  stroke: var(--white);
  transform: scale(1.05);
}

/* ==========================================================================
   Recommendations Section
   ========================================================================== */
#recs {
  padding: clamp(60px, 8vw, 110px) clamp(16px, 4vw, 48px);
  background: var(--beige-100);
}

.recs-inner {
  max-width: 900px;
  margin: 0 auto;
}

.rec-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.rec-item {
  background: var(--white);
  border: 1px solid var(--beige-200);
  border-radius: var(--r-sm);
  padding: 22px 26px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  transition: 0.25s;
}

.rec-item:hover {
  border-color: var(--beige-300);
  box-shadow: var(--shadow);
  transform: translateX(4px);
}

.rec-icon {
  width: 44px;
  height: 44px;
  background: var(--beige-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.rec-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
  transition: all 0.3s ease;
}

.rec-item:hover .rec-icon {
  background: var(--beige-800);
  transform: scale(1.08) rotate(3deg);
}

.rec-item:hover .rec-icon svg {
  stroke: var(--white);
  transform: scale(1.05);
}

.rec-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.rec-item p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ==========================================================================
   Team Section
   ========================================================================== */
#team {
  padding: clamp(60px, 8vw, 110px) clamp(16px, 4vw, 48px);
  max-width: 1150px;
  margin: 0 auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--beige-200);
  border-radius: var(--r);
  padding: 30px 22px;
  text-align: center;
  transition: 0.3s;
  cursor: default;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.team-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.t-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.t-avatar::after {
  content: attr(data-initials);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.t-avatar--fallback::after {
  opacity: 1;
}

.t-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.t-avatar::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--beige-300);
  pointer-events: none;
}

.t-avatar.accent-1 { background: linear-gradient(135deg, #8c7558, #6b5640); }
.t-avatar.accent-2 { background: linear-gradient(135deg, #b09878, #8c7558); }
.t-avatar.accent-3 { background: linear-gradient(135deg, #6b5640, #3d3028); }
.t-avatar.accent-4 { background: linear-gradient(135deg, #c9b89a, #b09878); }

.team-card h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.t-role {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.team-card p {
  font-size: 0.78rem;
  color: var(--text-light);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

.t-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
  margin-top: 13px;
}

.t-skill {
  background: var(--beige-100);
  border: 1px solid var(--beige-200);
  border-radius: 100px;
  padding: 3px 9px;
  font-size: 0.68rem;
  color: var(--text-mid);
}

.t-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--beige-100);
}

.t-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--beige-50);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  border: 1px solid var(--beige-200);
}

.t-social-btn:hover {
  background: var(--beige-800);
  color: var(--white);
  transform: translateY(-2px);
  border-color: var(--beige-800);
}

.t-social-btn svg {
  width: 14px;
  height: 14px;
}

.glass-card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   Repository Section
   ========================================================================== */
#repository {
  padding: clamp(40px, 5vw, 60px) clamp(16px, 4vw, 48px) clamp(60px, 8vw, 110px);
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.repo-banner {
  background: var(--beige-100);
  border: 1px solid var(--beige-300);
  border-radius: 24px;
  padding: 50px 40px;
  position: relative;
  overflow: hidden;
  transition: 0.4s;
}

.repo-banner:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--beige-400);
}

.repo-content {
  position: relative;
  z-index: 2;
}

.repo-icon {
  color: var(--accent);
  margin-bottom: 20px;
}

.repo-banner h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--beige-900);
  margin-bottom: 12px;
}

.repo-banner p {
  color: var(--text-mid);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.btn-repo {
  display: inline-block;
  background: var(--beige-900);
  color: var(--white);
  text-decoration: none;
  padding: 14px 34px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.3s;
  border: 1px solid transparent;
}

.btn-repo:hover {
  background: var(--white);
  color: var(--beige-900);
  border-color: var(--beige-900);
  transform: translateY(-2px);
}

/* ==========================================================================
   Research Section (Premium Accordion Style)
   ========================================================================== */
#research {
  padding: clamp(60px, 8vw, 110px) clamp(16px, 4vw, 48px);
  background: var(--beige-100);
}

.res-inner {
  max-width: 900px;
  margin: 0 auto;
}

.research-accordion {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 10px;
}

.res-accordion-card {
  background: var(--white);
  border: 1px solid var(--beige-200);
  border-radius: var(--r);
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.res-accordion-card:hover {
  border-color: var(--beige-300);
  box-shadow: var(--shadow);
}

.res-accordion-card.active {
  border-color: var(--beige-400);
  box-shadow: var(--shadow-lg);
}

/* Header Collapsed Layout */
.res-card-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 36px 40px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: background 0.3s ease;
}

.res-card-header:hover {
  background: rgba(250, 248, 243, 0.5);
}

.res-header-main {
  flex: 1;
}

.res-header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.res-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.68rem;
  font-weight: 500;
  border-radius: 100px;
  line-height: 1;
}

.res-badge-category {
  background: var(--beige-100);
  color: var(--text-mid);
  border: 1px solid var(--beige-200);
}

.res-badge-source {
  background: rgba(140, 117, 88, 0.1);
  color: var(--accent);
  border: 1px solid rgba(140, 117, 88, 0.2);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.res-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 6px 0;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.res-accordion-card:hover .res-card-title,
.res-accordion-card.active .res-card-title {
  color: var(--accent);
}

.res-card-subtitle {
  font-size: 0.72rem;
  color: var(--accent);
  font-family: 'Space Mono', monospace;
  margin: 0 0 12px 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.res-card-summary {
  font-size: 0.82rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
  max-width: 680px;
}

.res-header-side {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 24px;
}

.res-stat-highlight {
  background: var(--beige-50);
  border: 1px solid var(--beige-200);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  text-align: center;
  transition: all 0.3s ease;
}

.res-accordion-card:hover .res-stat-highlight,
.res-accordion-card.active .res-stat-highlight {
  border-color: var(--accent);
  background: rgba(140, 117, 88, 0.04);
}

.res-stat-val {
  font-family: 'Space Mono', monospace;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  line-height: 1.1;
  white-space: nowrap;
}

.res-stat-label {
  font-size: 0.58rem;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.res-expand-trigger {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--beige-200);
  background: var(--white);
  color: var(--text-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.res-expand-trigger svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

.res-accordion-card.active .res-expand-trigger {
  background: var(--beige-900);
  color: var(--white);
  border-color: var(--beige-900);
}

.res-accordion-card.active .res-expand-trigger svg {
  transform: rotate(180deg);
}

/* Accordion Expanded Content Panel */
.res-body-wrapper {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.res-body-content {
  padding: 0 40px 40px 40px;
  border-top: 1px solid var(--beige-100);
  background: var(--white);
}

.res-content-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-bottom: 1px solid var(--beige-100);
  margin-bottom: 28px;
}

.res-content-sidebar {
  border-right: 1px solid var(--beige-100);
  padding-right: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.res-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.res-meta-label {
  font-size: 0.65rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.res-meta-val {
  font-size: 0.8rem;
  color: var(--text-dark);
  font-weight: 500;
  line-height: 1.4;
}

.res-content-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.res-detail-section h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 6px 0;
}

.res-detail-section p {
  font-size: 0.82rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin: 0;
}

/* Splitted Results/Findings Columns */
.res-content-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 28px;
}

.res-split-box {
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid var(--beige-200);
  transition: all 0.3s ease;
}

.res-split-box:hover {
  transform: translateY(-2px);
}

.res-box-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.res-box-icon svg {
  width: 18px;
  height: 18px;
}

.res-split-box h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 8px 0;
  letter-spacing: 0.01em;
}

.res-split-box p {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* Green Color Harmony (Results) */
.res-box-results {
  background: rgba(174, 197, 182, 0.06);
  border-color: rgba(174, 197, 182, 0.2);
}

.res-box-results:hover {
  border-color: rgba(174, 197, 182, 0.4);
  box-shadow: 0 8px 24px rgba(174, 197, 182, 0.12);
}

.res-box-results .res-box-icon {
  background: rgba(174, 197, 182, 0.15);
  color: #4a6654;
}

.res-box-results h4 {
  color: #344d3d;
}

.res-box-results p {
  color: #4e5e54;
}

/* Golden Color Harmony (Findings) */
.res-box-findings {
  background: rgba(218, 186, 134, 0.06);
  border-color: rgba(218, 186, 134, 0.2);
}

.res-box-findings:hover {
  border-color: rgba(218, 186, 134, 0.4);
  box-shadow: 0 8px 24px rgba(218, 186, 134, 0.12);
}

.res-box-findings .res-box-icon {
  background: rgba(218, 186, 134, 0.15);
  color: #8c6a33;
}

.res-box-findings h4 {
  color: #634b22;
}

.res-box-findings p {
  color: #615644;
}

/* Footer Section */
.res-content-footer {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.res-conclusion-box {
  background: var(--beige-50);
  border: 1px solid var(--beige-200);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  position: relative;
}

.res-conclusion-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}

.res-conclusion-box p {
  font-size: 0.82rem;
  color: var(--text-dark);
  line-height: 1.65;
  margin: 0;
  font-style: italic;
}

.res-action-row {
  display: flex;
  justify-content: flex-end;
}

.res-source-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.78rem;
  font-weight: 500;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.res-source-btn svg {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.res-source-btn:hover svg {
  transform: translate(2px, -2px);
}

/* Custom Bullet & Meta Lists for Accordion content */
.res-meta-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
}

.res-meta-list li {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-bottom: 6px;
  position: relative;
  padding-left: 12px;
}

.res-meta-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
}

.res-bullet-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0 0;
}

.res-bullet-list li {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-mid);
  margin-bottom: 8px;
  position: relative;
  padding-left: 16px;
}

.res-bullet-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  opacity: 0.8;
}

/* ==========================================================================
   Dashboard Section
   ========================================================================== */
#dashboard {
  padding: clamp(60px, 8vw, 110px) clamp(16px, 4vw, 48px);
  background: var(--white);
}

.dash-wrapper {
  max-width: 1000px;
  margin: 0 auto;
}

.dash-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.dash-stat {
  background: var(--beige-50);
  border: 1px solid var(--beige-200);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  text-align: center;
  min-width: 140px;
  transition: 0.3s;
}

.dash-stat:hover {
  border-color: var(--beige-400);
  transform: translateY(-2px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.dash-stat-label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.dash-stat-val {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.dash-container {
  background: var(--beige-50);
  border: 1px solid var(--beige-200);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: 0.4s;
}

.dash-container:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--beige-300);
}

.dash-top {
  background: var(--white);
  border-bottom: 1px solid var(--beige-200);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-dots {
  display: flex;
  gap: 6px;
}

.dash-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--beige-300);
}

.dash-dots span:nth-child(1) { background: #E1A49E; }
.dash-dots span:nth-child(2) { background: #DABA86; }
.dash-dots span:nth-child(3) { background: #AEC5B6; }

.dash-title {
  font-size: 0.8rem;
  color: var(--text-mid);
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.dash-title span {
  color: var(--text-light);
  font-family: 'Space Mono', monospace;
  font-size: 0.72rem;
}

.dash-open-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: rgba(218, 186, 134, 0.06);
  border: 1px solid rgba(218, 186, 134, 0.15);
  padding: 5px 12px;
  border-radius: 100px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.dash-open-btn:hover {
  background: var(--accent);
  color: #0d0b09;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(218, 186, 134, 0.2);
  transform: translateY(-1px);
}

.dash-open-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.dash-open-btn:hover .dash-open-icon {
  transform: translate(2px, -2px);
}

html[dir="rtl"] .dash-open-btn:hover .dash-open-icon {
  transform: translate(-2px, -2px);
}

.dash-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9.5; /* Perfectly matches standard report width with Power BI bottom bar */
  height: auto;
  display: block;
  background: var(--white);
  border: none;
  overflow: hidden;
}

/* ==========================================================================
   Footer Section
   ========================================================================== */
footer {
  background: var(--beige-900);
  padding: 44px 48px;
  text-align: center;
  color: var(--beige-600);
  font-size: 0.75rem;
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
}

.foot-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--beige-300);
  margin-bottom: 10px;
}

.foot-logo span {
  color: var(--beige-500);
  font-style: italic;
}

footer p {
  line-height: 2;
}

/* ==========================================================================
   Animations / Utility
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media(max-width: 900px) {
  nav {
    padding: 14px 20px;
  }
  
  .control-btn.mobile-menu-btn {
    display: flex;
  }
  
  .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px; /* height of nav on mobile */
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - 65px);
    background: rgba(250, 248, 243, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 20px;
    border-top: 1px solid var(--beige-200);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    pointer-events: none;
    z-index: 99;
  }
  
  [data-theme="dark"] .nav-links {
    background: rgba(21, 19, 16, 0.96);
  }
  
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  
  .nav-links a {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 10px 28px;
  }
  
  .hero,
  #about,
  #results,
  #dashboard,
  #recs,
  #team,
  #repository,
  #research {
    padding: clamp(50px, 6vw, 80px) clamp(12px, 3vw, 20px);
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .team-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  footer {
    padding: 28px 20px;
  }
}

@media (max-width: 768px) {
  .hero-stats {
    gap: 28px;
    margin-top: 48px;
    padding-top: 32px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hs-num {
    font-size: 2rem;
  }
  
  .res-card {
    padding: 24px;
  }
  
  .dash-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
  }
  
  .dash-stat {
    min-width: unset;
    padding: 12px 14px;
  }
  
  .dash-stat-val {
    font-size: 1.05rem;
  }
}

@media (max-width: 580px) {
  .dash-title {
    font-size: 0.72rem;
  }
  
  .dash-top {
    justify-content: space-between;
    padding: 10px 14px;
  }
  
  .dash-open-btn span {
    display: none;
  }
  
  .dash-open-btn {
    padding: 6px;
  }
  
  .rec-item {
    padding: 16px;
    gap: 12px;
  }
  
  .rec-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  
  .rec-icon svg {
    width: 18px;
    height: 18px;
  }
  
  .repo-banner {
    padding: 36px 20px;
  }
  
  .repo-banner h2 {
    font-size: 1.6rem;
  }
  
  .repo-banner p {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }
  
  .btn-repo {
    padding: 12px 24px;
    font-size: 0.8rem;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 550px) {
  .mini-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .mini-card {
    padding: 16px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .team-card {
    padding: 24px 16px;
  }
}

@media (max-width: 480px) {
  section,
  #about,
  #results,
  #dashboard,
  #recs,
  #team,
  #repository,
  #research {
    padding: clamp(40px, 5vw, 60px) clamp(10px, 2.5vw, 16px);
  }
  
  .sec-header {
    margin-bottom: 36px;
  }
  
  .sec-title {
    font-size: 1.8rem;
  }
  
  .sec-desc {
    margin-top: 10px;
    font-size: 0.88rem;
  }
  
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    width: 100%;
  }
  
  .hs-item {
    padding: 4px;
  }
  
  .var-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .var-card {
    padding: 14px 16px;
  }
  
  .res-card {
    padding: 18px;
  }
  
  .res-outcomes {
    gap: 6px;
  }
  
  .res-out {
    padding: 4px 10px;
    font-size: 0.7rem;
  }
  
  .dash-stats {
    grid-template-columns: 1fr;
  }
  
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 10px;
  }
  
  .hero-ctas .btn-p,
  .hero-ctas .btn-s {
    width: 100%;
    justify-content: center;
    box-sizing: border-box;
  }
  
  .rec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
  }
}

@media (max-width: 375px) {
  nav {
    padding: 10px 12px;
  }
  .nav-controls {
    gap: 6px;
  }
  .control-btn {
    width: 32px;
    height: 32px;
    font-size: 0.65rem;
  }
  .nav-brand {
    font-size: 0.95rem;
  }
  .site-logo {
    width: 24px;
    height: 24px;
  }
}

/* ==========================================================================
   Research Section Media Queries (Responsive Styling)
   ========================================================================== */
@media (max-width: 768px) {
  .res-card-header {
    padding: 28px 30px;
  }
  
  .res-content-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .res-content-sidebar {
    border-right: none;
    border-left: none;
    padding-right: 0;
    padding-left: 0;
    border-bottom: 1px solid var(--beige-200);
    padding-bottom: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
  }
  
  .res-meta-item {
    flex: 1 1 140px;
  }
}

@media (max-width: 640px) {
  .res-card-header {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    position: relative;
  }
  
  .res-header-main {
    padding-right: 44px;
  }
  
  html[dir="rtl"] .res-header-main {
    padding-right: 0;
    padding-left: 44px;
  }
  
  .res-header-side {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    justify-content: space-between;
  }
  
  html[dir="rtl"] .res-header-side {
    margin-left: 0;
    margin-right: 0;
  }
  
  .res-expand-trigger {
    position: absolute;
    top: 24px;
    right: 24px;
  }
  
  html[dir="rtl"] .res-expand-trigger {
    left: 24px;
    right: auto;
  }
  
  .res-body-content {
    padding: 0 20px 24px 20px;
  }
  
  .res-content-split {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .res-split-box {
    padding: 20px;
  }
}

/* ==========================================================================
   Premium Cinematic Dark Mode Overrides
   ========================================================================== */
[data-theme="dark"] .glass-card {
  background: rgba(19, 16, 14, 0.7);
  border: 1px solid rgba(212, 191, 171, 0.08);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4), 
    inset 0 1px 0px rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .mini-card,
[data-theme="dark"] .finding-card,
[data-theme="dark"] .rec-item,
[data-theme="dark"] .res-card {
  background: #13100e;
  border: 1px solid rgba(212, 191, 171, 0.06);
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.25), 
    inset 0 1px 0px rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .mini-card:hover,
[data-theme="dark"] .finding-card:hover,
[data-theme="dark"] .rec-item:hover,
[data-theme="dark"] .res-card:hover {
  background: #1a1613;
  border-color: rgba(212, 191, 171, 0.18);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.4), 
    inset 0 1px 0px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .team-card {
  border: 1px solid rgba(212, 191, 171, 0.08);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.45), 
    inset 0 1px 0px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .team-card:hover {
  border-color: rgba(212, 191, 171, 0.22);
  box-shadow: 
    0 20px 50px rgba(0, 0, 0, 0.55), 
    inset 0 1px 0px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .t-skill {
  background: rgba(212, 191, 171, 0.05);
  border: 1px solid rgba(212, 191, 171, 0.12);
  color: var(--accent);
  transition: all 0.25s ease;
}

[data-theme="dark"] .t-skill:hover {
  background: rgba(212, 191, 171, 0.12);
  border-color: var(--accent);
  transform: translateY(-1px);
}

[data-theme="dark"] .btn-p {
  background: var(--accent);
  color: #0d0b09;
  box-shadow: 0 4px 20px rgba(212, 191, 171, 0.15);
  font-weight: 600;
}

[data-theme="dark"] .btn-p:hover {
  background: #f7f2eb;
  box-shadow: 
    0 8px 30px rgba(212, 191, 171, 0.25);
  transform: translateY(-2px);
}

[data-theme="dark"] .btn-s {
  background: rgba(212, 191, 171, 0.03);
  border: 1.5px solid rgba(212, 191, 171, 0.2);
  color: var(--text-dark);
}

[data-theme="dark"] .btn-s:hover {
  background: rgba(212, 191, 171, 0.08);
  border-color: var(--accent);
  box-shadow: none;
}

[data-theme="dark"] .t-social-btn {
  background: rgba(212, 191, 171, 0.03);
  border: 1px solid rgba(212, 191, 171, 0.1);
  color: var(--text-mid);
}

[data-theme="dark"] .t-social-btn:hover {
  background: var(--accent);
  color: #0d0b09;
  border-color: var(--accent);
  box-shadow: none;
}

[data-theme="dark"] .repo-banner {
  background: #13100e;
  border: 1px solid rgba(212, 191, 171, 0.12);
  box-shadow: 
    0 15px 40px rgba(0, 0, 0, 0.4), 
    inset 0 1px 0px rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .repo-banner:hover {
  border-color: rgba(212, 191, 171, 0.25);
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.5), 
    0 0 30px rgba(212, 191, 171, 0.05),
    inset 0 1px 0px rgba(255, 255, 255, 0.06);
}

[data-theme="dark"] .btn-repo {
  background: var(--text-dark);
  color: #0d0b09;
}

[data-theme="dark"] .btn-repo:hover {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--text-dark);
}

[data-theme="dark"] .hero-orb.o1 {
  background: radial-gradient(circle, rgba(212, 191, 171, 0.14) 0%, transparent 70%);
  filter: blur(120px);
  opacity: 0.8;
}

[data-theme="dark"] .hero-orb.o2 {
  background: radial-gradient(circle, rgba(140, 117, 88, 0.1) 0%, transparent 70%);
  filter: blur(120px);
  opacity: 0.6;
}

[data-theme="dark"] .hero-orb.o3 {
  background: radial-gradient(circle, rgba(212, 191, 171, 0.06) 0%, transparent 70%);
  filter: blur(100px);
  opacity: 0.4;
}

[data-theme="dark"] .dash-container {
  background: #0d0b09;
  border: 1px solid rgba(212, 191, 171, 0.1);
  box-shadow: 
    0 24px 64px rgba(0, 0, 0, 0.55), 
    inset 0 1px 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .dash-top {
  background: #13100e;
  border-bottom: 1px solid rgba(212, 191, 171, 0.06);
}

[data-theme="dark"] .dash-top .dash-dots span {
  opacity: 0.8;
}

[data-theme="dark"] .dash-container iframe {
  background: #0d0b09;
}

[data-theme="dark"] nav {
  background: rgba(13, 11, 9, 0.85);
  border-bottom: 1px solid rgba(212, 191, 171, 0.06);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .nav-links a:hover {
  background: rgba(212, 191, 171, 0.08);
  color: var(--text-dark);
}

[data-theme="dark"] .nav-links a.active {
  background: var(--accent);
  color: #0d0b09;
}

[data-theme="dark"] .control-btn {
  border-color: rgba(212, 191, 171, 0.15);
}

[data-theme="dark"] .control-btn:hover {
  background: rgba(212, 191, 171, 0.08);
  border-color: var(--accent);
}

/* ==========================================================================
   Premium Dark Mode Overrides for Research Section
   ========================================================================== */
[data-theme="dark"] #research {
  background: var(--beige-50); /* #0d0b09 Obsidian background */
}

[data-theme="dark"] .res-accordion-card {
  background: var(--white); /* #13100e elevated card background */
  border-color: rgba(212, 191, 171, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .res-accordion-card:hover {
  border-color: rgba(212, 191, 171, 0.15);
  background: #181411;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .res-accordion-card.active {
  border-color: rgba(212, 191, 171, 0.25);
  background: var(--white);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 0 24px rgba(212, 191, 171, 0.03);
}

[data-theme="dark"] .res-card-header:hover {
  background: rgba(212, 191, 171, 0.02);
}

[data-theme="dark"] .res-body-content {
  border-top-color: rgba(212, 191, 171, 0.06);
  background: var(--white);
}

[data-theme="dark"] .res-content-sidebar {
  border-right-color: rgba(212, 191, 171, 0.06);
}

html[dir="rtl"][data-theme="dark"] .res-content-sidebar {
  border-left-color: rgba(212, 191, 171, 0.06);
}

[data-theme="dark"] .res-stat-highlight {
  background: rgba(212, 191, 171, 0.02);
  border-color: rgba(212, 191, 171, 0.1);
}

[data-theme="dark"] .res-accordion-card:hover .res-stat-highlight,
[data-theme="dark"] .res-accordion-card.active .res-stat-highlight {
  border-color: var(--accent);
  background: rgba(212, 191, 171, 0.04);
}

/* Green Color Harmony (Results - High Contrast for Dark Mode) */
[data-theme="dark"] .res-box-results {
  background: rgba(174, 197, 182, 0.04);
  border-color: rgba(174, 197, 182, 0.12);
}

[data-theme="dark"] .res-box-results:hover {
  border-color: rgba(174, 197, 182, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(174, 197, 182, 0.02);
}

[data-theme="dark"] .res-box-results .res-box-icon {
  background: rgba(174, 197, 182, 0.18);
  color: #aec5b6;
}

[data-theme="dark"] .res-box-results h4 {
  color: #aec5b6;
}

[data-theme="dark"] .res-box-results p {
  color: #92ab9b;
}

/* Golden Color Harmony (Findings - High Contrast for Dark Mode) */
[data-theme="dark"] .res-box-findings {
  background: rgba(218, 186, 134, 0.04);
  border-color: rgba(218, 186, 134, 0.12);
}

[data-theme="dark"] .res-box-findings:hover {
  border-color: rgba(218, 186, 134, 0.25);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px rgba(218, 186, 134, 0.02);
}

[data-theme="dark"] .res-box-findings .res-box-icon {
  background: rgba(218, 186, 134, 0.18);
  color: #daba86;
}

[data-theme="dark"] .res-box-findings h4 {
  color: #daba86;
}

[data-theme="dark"] .res-box-findings p {
  color: #c2ab84;
}

/* Conclusion & Footer */
[data-theme="dark"] .res-conclusion-box {
  background: rgba(212, 191, 171, 0.02);
  border-color: rgba(212, 191, 171, 0.08);
}

[data-theme="dark"] .res-accordion-card.active .res-expand-trigger {
  background: var(--accent);
  color: #0d0b09;
  border-color: var(--accent);
}

@media (max-width: 768px) {
  [data-theme="dark"] .res-content-sidebar {
    border-bottom-color: rgba(212, 191, 171, 0.08);
  }
}