/* ========================================
   PERSIAN PODCAST — DESIGN SYSTEM
   Dark Mode · Glassmorphism · RTL
   ======================================== */

@font-face {
  font-family: '2laye';
  src: url(/fonts/2laye.ttf);
}

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0d0d1a;
  --bg-secondary: #1a1a2e;
  --bg-surface: #16213e;
  --bg-card: rgba(255, 255, 255, 0.04);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.12);

  --accent: #ff6b35;
  --accent-light: #ff8c42;
  --accent-glow: rgba(255, 107, 53, 0.3);
  --accent-gradient: linear-gradient(135deg, #ff6b35, #ff8c42);
  --accent-gradient-hover: linear-gradient(135deg, #ff8c42, #ffab73);

  --text-primary: #f0f0f0;
  --text-secondary: #b0b8c8;
  --text-muted: #6b7280;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 50%;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--accent-glow);

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --font-family: '2laye', system-ui, -apple-system, sans-serif;
  --nav-height: 72px;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background: var(--bg-primary);
  color: var(--text-primary);
  direction: rtl;
  text-align: right;
  line-height: 1.8;
  overflow-x: hidden;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-light);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.6rem); }

p {
  color: var(--text-secondary);
  line-height: 1.9;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Background Floating Elements --- */
.bg-decorations {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-decorations .wave {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  opacity: 0.03;
  background: var(--accent);
  animation: floatBubble 20s ease-in-out infinite;
}

.bg-decorations .wave:nth-child(1) { top: 10%; right: 5%; animation-delay: 0s; width: 400px; height: 400px; }
.bg-decorations .wave:nth-child(2) { top: 60%; left: 10%; animation-delay: -7s; width: 250px; height: 250px; }
.bg-decorations .wave:nth-child(3) { bottom: 10%; right: 30%; animation-delay: -14s; width: 350px; height: 350px; }

.bg-decorations .soundwave-line {
  position: absolute;
  width: 2px;
  background: var(--accent);
  opacity: 0.06;
  animation: soundPulse 3s ease-in-out infinite;
}

.bg-decorations .soundwave-line:nth-child(4) { height: 120px; top: 20%; left: 15%; animation-delay: 0s; }
.bg-decorations .soundwave-line:nth-child(5) { height: 80px; top: 40%; left: 25%; animation-delay: 0.4s; }
.bg-decorations .soundwave-line:nth-child(6) { height: 150px; top: 15%; right: 20%; animation-delay: 0.8s; }
.bg-decorations .soundwave-line:nth-child(7) { height: 60px; bottom: 30%; right: 35%; animation-delay: 1.2s; }
.bg-decorations .soundwave-line:nth-child(8) { height: 100px; bottom: 20%; left: 40%; animation-delay: 1.6s; }

@keyframes floatBubble {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

@keyframes soundPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.06; }
  50% { transform: scaleY(1.8); opacity: 0.12; }
}

/* --- Glassmorphism Utility --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--glass-highlight);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-gradient-hover);
  box-shadow: 0 6px 30px rgba(255, 107, 53, 0.45);
  transform: translateY(-2px);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}

.btn-outline:hover {
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent-light);
  border-color: var(--accent-light);
}

.btn-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.btn-glass:hover {
  background: var(--glass-highlight);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-base);
  background: rgba(13, 13, 26, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(13, 13, 26, 0.92);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-brand .brand-icon {
  width: 40px;
  height: 40px;
  background: var(--accent-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: rgba(255, 107, 53, 0.08);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  right: 16px;
  left: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    right: 0;
    left: 0;
    bottom: 0;
    flex-direction: column;
    background: rgba(13, 13, 26, 0.97);
    backdrop-filter: blur(20px);
    padding: 32px 24px;
    gap: 4px;
    transform: translateX(100%);
    transition: transform var(--transition-base);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a {
    font-size: 1.1rem;
    padding: 14px 20px;
    width: 100%;
  }
}

/* ========================================
   HERO SECTION (Landing)
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
}

.hero-text {
  z-index: 2;
}

.hero-text .subtitle {
  display: inline-block;
  background: rgba(255, 107, 53, 0.12);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: var(--radius-xl);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 107, 53, 0.2);
}

.hero-text h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 60%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.portrait-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--glass-border);
  box-shadow: 0 0 60px rgba(255, 107, 53, 0.15);
}

.portrait-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portrait-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  z-index: -1;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

.visualizer-container {
  width: 100%;
  max-width: 360px;
  height: 80px;
  position: relative;
}

#audioVisualizer {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-visual { order: -1; }
  .hero-text p { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .portrait-wrapper { width: 240px; height: 240px; }
}

/* ========================================
   LATEST EPISODE PLAYER
   ======================================== */
.latest-episode {
  padding: 100px 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .label {
  display: inline-block;
  background: rgba(255, 107, 53, 0.1);
  color: var(--accent);
  padding: 6px 18px;
  border-radius: var(--radius-xl);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 107, 53, 0.15);
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  max-width: 560px;
  margin: 0 auto;
}

.episode-player {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px;
}

.player-inner {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}

.player-art {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--glass-border);
}

.player-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.player-info {
  flex: 1;
}

.player-info .ep-number {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.player-info h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
}

.player-info .ep-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: var(--accent-gradient);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: all var(--transition-base);
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 30px rgba(255, 107, 53, 0.5);
}

.play-btn svg {
  fill: #fff;
  width: 22px;
  height: 22px;
}

.progress-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.progress-fill {
  height: 100%;
  width: 35%;
  background: var(--accent-gradient);
  border-radius: 3px;
  transition: width 0.1s linear;
}

.progress-times {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Equalizer animation */
.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 24px;
}

.equalizer .bar {
  width: 3px;
  background: var(--accent);
  border-radius: 2px;
  animation: eqBounce 0.8s ease-in-out infinite;
}

.equalizer .bar:nth-child(1) { height: 30%; animation-delay: 0s; }
.equalizer .bar:nth-child(2) { height: 60%; animation-delay: 0.15s; }
.equalizer .bar:nth-child(3) { height: 100%; animation-delay: 0.3s; }
.equalizer .bar:nth-child(4) { height: 45%; animation-delay: 0.45s; }
.equalizer .bar:nth-child(5) { height: 75%; animation-delay: 0.6s; }

.equalizer.paused .bar {
  animation-play-state: paused;
}

@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

@media (max-width: 600px) {
  .player-inner { flex-direction: column; text-align: center; }
  .player-art { width: 160px; height: 160px; margin: 0 auto; }
}

/* ========================================
   PODCAST PLATFORMS
   ======================================== */
.platforms {
  padding: 80px 0;
  position: relative;
  z-index: 2;
}

.platforms-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.platform-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 36px 48px;
  text-decoration: none;
  min-width: 200px;
}

.platform-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.platform-card .platform-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-base);
}

.platform-card:hover .platform-icon {
  transform: scale(1.15);
}

.platform-card .platform-icon svg {
  width: 48px;
  height: 48px;
}

.platform-card .platform-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-primary);
}

.platform-card .platform-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ========================================
   EPISODES PAGE
   ======================================== */
.page-header {
  padding: 140px 0 60px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  max-width: 560px;
  margin: 0 auto;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 100px;
  position: relative;
  z-index: 2;
}

.episode-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.episode-card .card-art {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}

.episode-card .card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.episode-card:hover .card-art img {
  transform: scale(1.08);
}

.episode-card .card-art .duration {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
}

.episode-card .card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.episode-card .ep-num {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.episode-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.episode-card .ep-summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 20px;
  line-height: 1.7;
}

.episode-card .btn {
  align-self: flex-start;
  font-size: 0.85rem;
  padding: 10px 22px;
}

@media (max-width: 1024px) {
  .episodes-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .episodes-grid { grid-template-columns: 1fr; }
}

/* ========================================
   YOUTUBE PAGE
   ======================================== */
.youtube-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  padding-bottom: 60px;
  position: relative;
  z-index: 2;
}

.video-card {
  overflow: hidden;
  padding: 0;
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 20px 24px;
}

.video-info h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.video-info p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.subscribe-cta {
  text-align: center;
  padding: 80px 0 100px;
  position: relative;
  z-index: 2;
}

.subscribe-cta h2 {
  margin-bottom: 16px;
}

.subscribe-cta p {
  margin-bottom: 32px;
  max-width: 500px;
  margin-inline: auto;
}

.subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  background: #ff0000;
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1.05rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: 0 4px 20px rgba(255, 0, 0, 0.3);
  text-decoration: none;
}

.subscribe-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 0, 0, 0.45);
  color: #fff;
}

.subscribe-btn svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .youtube-grid { grid-template-columns: 1fr; }
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-hero {
  padding: 160px 0 80px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.about-hero .tagline {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--text-primary) 50%, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-hero p {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.timeline {
  position: relative;
  padding: 40px 0 100px;
  z-index: 2;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent), transparent);
  transform: translateX(1px);
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 60px;
  margin-bottom: 80px;
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-item .timeline-content {
  flex: 1;
}

.timeline-item .timeline-image {
  flex: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  max-height: 300px;
}

.timeline-item .timeline-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.timeline-dot {
  position: absolute;
  right: 50%;
  transform: translateX(50%);
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 20px var(--accent-glow);
  z-index: 2;
}

.timeline-content .year {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.timeline-content h3 {
  margin-bottom: 12px;
}

.timeline-content p {
  font-size: 0.95rem;
}

/* Stats */
.stats-section {
  padding: 60px 0 100px;
  position: relative;
  z-index: 2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
}

.stat-card .stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

.stat-card .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .timeline::before { right: 24px; }
  .timeline-item { flex-direction: column !important; gap: 24px; }
  .timeline-dot { right: 24px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-section {
  padding: 140px 0 60px;
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-form {
  padding: 40px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 0.95rem;
  direction: rtl;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-info {
  padding: 40px;
}

.contact-info h3 {
  margin-bottom: 20px;
}

.contact-info p {
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.social-link {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-base);
  color: var(--text-secondary);
  text-decoration: none;
}

.social-link:hover {
  background: rgba(255, 107, 53, 0.1);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-3px);
}

.social-link svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.88rem;
  max-width: 360px;
}

.footer-links h4 {
  font-size: 0.95rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-links a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 5px 0;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: none; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: none; }

/* --- Utility --- */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
