/*
  ======================================================
  STYLE.CSS - OMAR BADR PORTFOLIO (SPA EDITION)
  Premium Dark/Light Hybrid Design System (RTL & LTR)
  ======================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  /* Fonts */
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Outfit', sans-serif;

  /* Theme: Dark Mode (Default) */
  --bg-primary: hsl(222, 47%, 10%);
  --bg-secondary: hsl(222, 47%, 6%);
  --bg-card: hsla(223, 47%, 14%, 0.6);
  --bg-card-hover: hsla(223, 47%, 18%, 0.8);
  --text-primary: hsl(210, 38%, 96%);
  --text-secondary: hsl(215, 20%, 70%);
  --text-muted: hsl(215, 16%, 50%);
  --border-color: hsla(217, 91%, 60%, 0.15);
  --border-hover: hsla(174, 90%, 41%, 0.4);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
  --glass-bg: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.05);

  /* Brand Accents */
  --accent-blue: hsl(217, 91%, 60%);
  --accent-teal: hsl(174, 90%, 41%);
  --accent-purple: hsl(263, 90%, 55%);
  --accent-gradient: linear-gradient(135deg, var(--accent-blue), var(--accent-teal));
  --accent-gradient-glow: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(20, 184, 166, 0.15));

  /* System Colors */
  --color-success: hsl(142, 72%, 40%);
  --color-error: hsl(0, 84%, 60%);

  /* Spacing */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
  --bg-primary: hsl(210, 20%, 98%);
  --bg-secondary: hsl(210, 20%, 94%);
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --text-primary: hsl(222, 47%, 12%);
  --text-secondary: hsl(215, 25%, 35%);
  --text-muted: hsl(215, 20%, 55%);
  --border-color: rgba(37, 99, 235, 0.08);
  --border-hover: rgba(20, 184, 166, 0.3);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(0, 0, 0, 0.05);
  --accent-gradient-glow: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(20, 184, 166, 0.05));
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
}

body[dir="rtl"] {
  font-family: var(--font-ar);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

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

/* Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-blue);
}

/* Layout Wrapper */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  min-height: 80vh;
  padding-bottom: 5rem;
}

/* ======================================================
   NAVBAR (GLASSMORPHISM)
   ====================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  transition: background-color var(--transition-normal);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4.5rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  color: var(--accent-teal);
  background: initial;
  -webkit-text-fill-color: initial;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.5rem 0;
}

.nav-item:hover, .nav-item.active {
  color: var(--text-primary);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width var(--transition-fast);
}

.nav-item.active::after, .nav-item:hover::after {
  width: 100%;
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Action Buttons */
.icon-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
}

.icon-btn:hover {
  background-color: var(--bg-card);
  border-color: var(--accent-blue);
  transform: translateY(-2px);
}

.lang-btn {
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  background: none;
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn:hover {
  background-color: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
}

/* ======================================================
   BUTTONS
   ====================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  font-size: 0.95rem;
  border: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--accent-teal);
  transform: translateY(-3px);
}

/* ======================================================
   HERO SECTION
   ====================================================== */
.hero-section {
  padding: 5rem 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
}

.hero-title span {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Visual Glow effects */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}

.glow-circle {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  filter: blur(100px);
  opacity: 0.35;
  z-index: -1;
}

/* Visual Interactive Data Sphere */
.interactive-sphere {
  width: 320px;
  height: 320px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  background: radial-gradient(circle, var(--bg-card) 0%, transparent 80%);
  position: relative;
  animation: float 6s ease-in-out infinite;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
}

.interactive-sphere::before {
  content: '';
  position: absolute;
  inset: 10px;
  border-radius: var(--radius-full);
  border: 1px dashed var(--border-hover);
  animation: rotate 20s linear infinite;
}

.interactive-sphere-icon {
  font-size: 4rem;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 3s ease-in-out infinite;
}

/* ======================================================
   SOCIAL PROOF / STATS BAR
   ====================================================== */
.stats-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

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

.stat-val {
  font-size: 2.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

/* ======================================================
   BENTO GRID (SERVICES)
   ====================================================== */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.section-tag {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-teal);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
}

.section-subtitle {
  color: var(--text-secondary);
}

.bento-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
}

.bento-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
  background-color: var(--bg-card-hover);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.bento-card:hover::before {
  opacity: 1;
}

.bento-icon {
  font-size: 2.2rem;
  color: var(--accent-blue);
  margin-bottom: 0.5rem;
}

.bento-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
}

.bento-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex-grow: 1;
}

/* Card layout sizing overrides */
.card-large {
  grid-column: span 1;
  grid-row: span 2;
  justify-content: center;
}

.card-cta {
  background: var(--accent-gradient-glow);
  border-color: var(--border-hover);
  align-items: center;
  text-align: center;
  justify-content: center;
}

.card-cta .btn {
  margin-top: 1rem;
}

/* List items in bento */
.outcomes-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 0.5rem;
}

.outcomes-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.outcomes-list i {
  color: var(--accent-teal);
  font-size: 0.85rem;
}

/* ======================================================
   INTERACTIVE DATA ANALYST SANDBOX
   ====================================================== */
.sandbox-section {
  padding: 5rem 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.sandbox-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.sandbox-card {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sandbox-controls {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.sandbox-select-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.sandbox-select {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition-fast);
}

.sandbox-select:focus {
  border-color: var(--accent-teal);
}

.sandbox-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-top: 1px solid var(--border-color);
  padding-top: 1.5rem;
}

.sandbox-stat-item h5 {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.sandbox-stat-val {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-teal);
}

/* SVG Chart styles */
.chart-container {
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

.chart-svg {
  width: 100%;
  height: 100%;
}

.chart-line {
  fill: none;
  stroke: var(--accent-blue);
  stroke-width: 3;
  stroke-linecap: round;
  transition: d var(--transition-slow);
}

.chart-area {
  fill: url(#chart-gradient);
  transition: d var(--transition-slow);
}

.chart-point {
  fill: var(--bg-primary);
  stroke: var(--accent-teal);
  stroke-width: 3;
  transition: cx var(--transition-slow), cy var(--transition-slow);
  cursor: pointer;
}

.chart-point:hover {
  r: 8;
  fill: var(--accent-teal);
}

.chart-grid {
  stroke: var(--border-color);
  stroke-dasharray: 4 4;
}

.chart-text {
  fill: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
}

/* ======================================================
   PORTFOLIO GALLERY
   ====================================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--accent-blue);
  color: white;
  border-color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

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

.project-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg);
}

.project-img-wrapper {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

.project-info {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  color: var(--accent-teal);
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.project-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  flex-grow: 1;
}

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

.read-more-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-blue);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.read-more-link:hover {
  color: var(--accent-teal);
}

/* ======================================================
   PROJECT DETAILS PAGE (CASE STUDY)
   ====================================================== */
.project-details {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.project-details-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.back-link {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: flex-start;
}

.back-link:hover {
  color: var(--accent-blue);
}

.project-details-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 900;
}

.project-details-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.project-details-img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

/* Study Grid */
.study-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 4rem;
  align-items: start;
}

.study-overview {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
  position: sticky;
  top: 6rem;
}

.overview-box {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.overview-box h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-teal);
  letter-spacing: 1px;
}

.overview-box p {
  font-size: 0.95rem;
  color: var(--text-primary);
}

.study-body {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.study-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.study-section h2 {
  font-size: 1.6rem;
  font-weight: 800;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.study-section h2::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 24px;
  background: var(--accent-gradient);
  border-radius: var(--radius-full);
}

.study-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.8;
}

.study-section ol, .study-section ul {
  padding-inline-start: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  color: var(--text-secondary);
  font-size: 1.05rem;
}

.study-section li strong {
  color: var(--text-primary);
}

.study-footer-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* ======================================================
   BLOG STYLING
   ====================================================== */
.blog-controls {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem 0.8rem 2.8rem;
  border-radius: var(--radius-full);
  outline: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

body[dir="rtl"] .search-box input {
  padding: 0.8rem 2.8rem 0.8rem 1.2rem;
}

.search-box input:focus {
  border-color: var(--accent-blue);
  background-color: var(--bg-card-hover);
}

.search-box i {
  position: absolute;
  top: 50%;
  left: 1.2rem;
  transform: translateY(-50%);
  color: var(--text-muted);
}

body[dir="rtl"] .search-box i {
  left: auto;
  right: 1.2rem;
}

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

.blog-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

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

.blog-img-wrapper {
  aspect-ratio: 16/9;
  overflow: hidden;
  background-color: var(--bg-secondary);
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.blog-card:hover .blog-img {
  transform: scale(1.04);
}

.blog-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}

.blog-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
}

.blog-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  flex-grow: 1;
}

.blog-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* Detailed blog post view */
.blog-post-view {
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.blog-post-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-post-title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.3;
}

.blog-post-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.blog-post-body {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-post-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-top: 1.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

.blog-post-body h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 1rem;
}

.blog-post-body pre {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 1.2rem;
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.blog-post-body code {
  font-family: monospace;
  background-color: var(--bg-secondary);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent-teal);
}

.blog-post-body pre code {
  padding: 0;
  background-color: transparent;
  color: inherit;
}

.blog-post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.blog-post-body th, .blog-post-body td {
  border: 1px solid var(--border-color);
  padding: 0.8rem;
  text-align: left;
}

body[dir="rtl"] .blog-post-body th, body[dir="rtl"] .blog-post-body td {
  text-align: right;
}

.blog-post-body th {
  background-color: var(--bg-secondary);
  font-weight: 700;
}

.blog-post-body ul, .blog-post-body ol {
  padding-inline-start: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-post-body hr {
  border: 0;
  height: 1px;
  background: var(--border-color);
  margin: 2rem 0;
}

/* ======================================================
   ABOUT PAGE DETAILS
   ====================================================== */
.about-hero {
  text-align: center;
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 5rem;
}

.problem-card {
  background-color: hsla(0, 84%, 60%, 0.05);
  border-color: rgba(239, 68, 68, 0.2);
}

.problem-card .bento-icon {
  color: var(--color-error);
}

.solution-card {
  background-color: hsla(142, 72%, 40%, 0.05);
  border-color: rgba(16, 185, 129, 0.2);
}

.solution-card .bento-icon {
  color: var(--color-success);
}

.about-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin: 4rem auto;
  max-width: 800px;
}

.timeline-step {
  display: flex;
  gap: 2rem;
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 2rem;
  left: 1.5rem;
  bottom: -2rem;
  width: 2px;
  background-color: var(--border-color);
}

body[dir="rtl"] .timeline-step::before {
  left: auto;
  right: 1.5rem;
}

.timeline-step:last-child::before {
  display: none;
}

.step-num-badge {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.2rem;
  z-index: 1;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.timeline-content {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  flex-grow: 1;
}

.timeline-content h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

/* Comparison Table */
.comparison-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin-bottom: 5rem;
}

.comp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

body[dir="rtl"] .comp-table {
  text-align: right;
}

.comp-table th, .comp-table td {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.comp-table th {
  background-color: var(--bg-secondary);
  font-weight: 700;
  font-size: 0.95rem;
}

.comp-table tr:last-child td {
  border-bottom: none;
}

.comp-highlight {
  color: var(--accent-teal);
  font-weight: 600;
}

/* ======================================================
   CONTACT PAGE & FORMS
   ====================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info-panel {
  background: var(--accent-gradient-glow);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-method {
  display: flex;
  gap: 1.2rem;
}

.contact-method-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--accent-blue);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-method-details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.contact-method-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.contact-method-val {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.contact-socials-wrapper {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-socials-list {
  display: flex;
  gap: 1rem;
}

.form-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-md);
}

.form-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.input-wrapper {
  position: relative;
}

.form-control {
  width: 100%;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Status message */
.form-status {
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1.5rem;
  display: none;
  text-align: center;
}

.form-status.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: var(--color-success);
}

.form-status.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: var(--color-error);
}

/* ======================================================
   START PROJECT MULTI-STEP WIZARD
   ====================================================== */
.wizard-card {
  max-width: 750px;
  margin: 2.5rem auto 0 auto;
}

.wizard-steps-header {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 3.5rem;
}

.wizard-steps-header::before {
  content: '';
  position: absolute;
  top: 1.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--border-color);
  z-index: 0;
}

.wizard-step-indicator {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.indicator-circle {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-full);
  background-color: var(--bg-primary);
  border: 2px solid var(--border-color);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  font-weight: 700;
  transition: all var(--transition-normal);
}

.wizard-step-indicator.active .indicator-circle {
  background: var(--accent-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.wizard-step-indicator.completed .indicator-circle {
  background-color: var(--accent-teal);
  color: white;
  border-color: transparent;
}

.indicator-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.wizard-step-indicator.active .indicator-title {
  color: var(--text-primary);
}

.wizard-step-content {
  display: none;
  animation: fadeIn var(--transition-normal);
}

.wizard-step-content.active {
  display: block;
}

.wizard-question {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
}

/* Selector Grids for Options */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.option-radio {
  display: none;
}

.option-label {
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.option-label:hover {
  background-color: var(--bg-card);
  border-color: var(--accent-blue);
}

.option-radio:checked + .option-label {
  background-color: var(--accent-gradient-glow);
  border-color: var(--accent-teal);
  color: var(--text-primary);
}

.option-bullet {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: var(--radius-full);
  border: 2px solid var(--border-color);
  display: grid;
  place-items: center;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.option-radio:checked + .option-label .option-bullet {
  border-color: var(--accent-teal);
}

.option-radio:checked + .option-label .option-bullet::after {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  border-radius: var(--radius-full);
  background-color: var(--accent-teal);
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  margin-top: 2rem;
}

/* ======================================================
   NEWSLETTER
   ====================================================== */
.newsletter-section {
  padding: 5rem 0;
}

.newsletter-card {
  background: var(--accent-gradient-glow);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.newsletter-card h3 {
  font-size: 1.8rem;
  font-weight: 800;
}

.newsletter-card p {
  color: var(--text-secondary);
  max-width: 600px;
}

.newsletter-form {
  display: flex;
  gap: 0.8rem;
  width: 100%;
  max-width: 500px;
  margin-top: 1rem;
}

.newsletter-form input {
  flex-grow: 1;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-full);
  outline: none;
  font-size: 0.95rem;
}

.newsletter-form input:focus {
  border-color: var(--accent-teal);
}

/* ======================================================
   FOOTER
   ====================================================== */
footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ======================================================
   ANIMATIONS & TRANSITIONS
   ====================================================== */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

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

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

.page-transition {
  animation: fadeIn var(--transition-normal);
}

/* ======================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ====================================================== */
@media (max-width: 968px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .interactive-sphere {
    width: 250px;
    height: 250px;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .card-large {
    grid-row: span 1;
  }
  
  .sandbox-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .study-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .study-overview {
    position: static;
  }
  
  .blog-controls {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .newsletter-card {
    padding: 2.5rem 1.5rem;
  }
  
  .newsletter-form {
    flex-direction: column;
    border-radius: 0;
  }
  
  .newsletter-form input {
    border-radius: var(--radius-sm);
  }
  
  .newsletter-form .btn {
    border-radius: var(--radius-sm);
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 4.5rem;
    left: 0;
    width: 100%;
    background-color: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-md);
  }
  
  .nav-links.open {
    display: flex;
  }
  
  .menu-toggle {
    display: grid;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .wizard-steps-header {
    margin-bottom: 2.5rem;
  }
  
  .indicator-title {
    display: none;
  }
}