/* ==========================================================================
   Cabinet Dr. Ilias Bouitcha - Style System (Horizon UI & Executive Luxury)
   Fully Responsive | Dark & Executive Gold Palette | Seamless LTR & RTL
   ========================================================================== */

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

:root {
  /* Core Horizon & Executive Palette */
  --bg-body: #070B14;
  --bg-surface: #0E1626;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(23, 35, 62, 0.85);
  --bg-glass: rgba(14, 22, 38, 0.65);

  /* Gold & Royal Accents */
  --gold-primary: #D4AF37;
  --gold-light: #F7E5A9;
  --gold-dark: #9F7B1C;
  --gold-glow: rgba(212, 175, 55, 0.22);
  --gold-gradient: linear-gradient(135deg, #FCEBA7 0%, #D4AF37 50%, #A57E1E 100%);
  --blue-accent: #2563EB;
  --blue-glow: rgba(37, 99, 235, 0.25);
  --whatsapp-color: #25D366;
  --whatsapp-glow: rgba(37, 211, 102, 0.25);

  /* Typography & Slate Colors */
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(212, 175, 55, 0.2);
  --border-hover: rgba(212, 175, 55, 0.45);

  /* Layout & Geometry */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px var(--border-subtle);
  --shadow-glow: 0 0 35px -5px var(--gold-glow);
  --shadow-lg: 0 20px 45px -15px rgba(0, 0, 0, 0.7);

  /* Fonts */
  --font-base: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

/* RTL (Arabic Mode) Overrides */
[dir="rtl"] {
  --font-base: 'Cairo', -apple-system, BlinkMacSystemFont, Tahoma, sans-serif;
  --font-heading: 'Cairo', sans-serif;
  --font-serif: 'Cairo', sans-serif;
  text-align: right;
}

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

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

body {
  font-family: var(--font-base);
  background-color: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Ambient Horizon Glow Backgrounds */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 20%;
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(212, 175, 55, 0.05) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: '';
  position: fixed;
  bottom: 0;
  right: 10%;
  width: 50vw;
  height: 50vw;
  max-width: 650px;
  max-height: 650px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(14, 22, 38, 0.3) 60%, transparent 80%);
  filter: blur(90px);
  pointer-events: none;
  z-index: -1;
}

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

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.25;
  font-weight: 700;
}

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

.gold-text {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Header Style */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

[dir="rtl"] .section-pill {
  letter-spacing: 0;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 0.98rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  font-family: inherit;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold-gradient);
  color: #0B111E;
  box-shadow: 0 4px 20px -2px rgba(212, 175, 55, 0.35);
  font-weight: 700;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.btn-instagram {
  background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(220, 39, 67, 0.3);
}

.btn-calendly {
  background: linear-gradient(135deg, #006BFF 0%, #0050BD 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(0, 107, 255, 0.35);
  font-weight: 700;
}

.btn-calendly:hover {
  background: linear-gradient(135deg, #1A7BFF 0%, #0045A8 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 107, 255, 0.55);
}

.booking-banner-card {
  background: linear-gradient(135deg, rgba(14, 22, 38, 0.95) 0%, rgba(20, 32, 56, 0.9) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-card), 0 0 35px var(--gold-glow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  margin: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.booking-banner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold-gradient);
}

[dir="rtl"] .booking-banner-card::before {
  left: auto;
  right: 0;
}

.booking-banner-content h3 {
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.booking-banner-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 680px;
}

.booking-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.booking-feat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--gold-light);
  font-weight: 600;
}

.booking-action-box {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

@media (max-width: 900px) {
  .booking-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 2.25rem 1.75rem;
  }
  .booking-features-row {
    justify-content: center;
  }
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 1.25rem 0;
}

.site-header.scrolled {
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  box-shadow: 0 0 15px var(--gold-glow);
  flex-shrink: 0;
}

.brand-text h1 {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.brand-text span {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

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

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

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

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

[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Language Switcher */
.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--gold-light);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
}

.lang-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-1px);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 9.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

[dir="rtl"] .hero-content {
  align-items: flex-start;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 1.25rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold-light);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(10px);
}

.hero-badge-tag .pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--gold-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-call-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold-light);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 2.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.hero-call-bar a {
  color: var(--gold-light);
}

.hero-call-bar a:hover {
  text-decoration: underline;
}

/* Hero Stats Row */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item h4 {
  font-size: 1.55rem;
  font-weight: 800;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.2rem;
}

.stat-item p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Hero Visual / Consultant Photo Showcase Card */
.hero-visual-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1.25rem;
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1.08;
  background: #111A2E;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.6s ease;
}

.hero-visual-card:hover .hero-image-wrapper img {
  transform: scale(1.03);
}

/* Floating Badges on Photo */
.floating-badge {
  position: absolute;
  background: rgba(14, 22, 38, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.75rem 1.1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.floating-badge.badge-top {
  top: 1.5rem;
  right: -1rem;
}

[dir="rtl"] .floating-badge.badge-top {
  right: auto;
  left: -1rem;
}

.floating-badge.badge-bottom {
  bottom: 1.5rem;
  left: -1rem;
  max-width: 90%;
}

[dir="rtl"] .floating-badge.badge-bottom {
  left: auto;
  right: -1rem;
}

.badge-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.badge-text h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
}

.badge-text p {
  font-size: 0.75rem;
  color: var(--gold-light);
}

/* ==========================================================================
   About & Credentials Section
   ========================================================================== */
.about-section {
  padding: 6rem 0;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 22, 38, 0.5) 100%);
}

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

.about-intro-text p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-intro-text strong {
  color: var(--text-primary);
}

.credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.cred-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.cred-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: transparent;
  transition: var(--transition);
}

.cred-card:hover {
  border-color: var(--border-glass);
  transform: translateY(-5px);
  box-shadow: var(--shadow-card), 0 0 25px var(--gold-glow);
}

.cred-card:hover::before {
  background: var(--gold-gradient);
}

.cred-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-glass);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.cred-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.65rem;
}

.cred-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ==========================================================================
   Expertise / Practice Areas Section
   ========================================================================== */
.services-section {
  padding: 6.5rem 0;
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.85rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-7px);
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.6), 0 0 25px var(--gold-glow);
}

.service-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #60A5FA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.service-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
  transition: var(--transition);
}

.service-card:hover h3 {
  color: var(--gold-light);
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.service-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-primary);
  margin-top: auto;
}

.service-action-link:hover {
  color: var(--gold-light);
  gap: 0.7rem;
}

/* ==========================================================================
   Videos & Reels Section
   ========================================================================== */
.videos-section {
  padding: 6.5rem 0;
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(14, 22, 38, 0.7) 0%, transparent 80%);
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-bottom: 3.5rem;
}

.video-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.video-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-lg), 0 0 35px var(--gold-glow);
}

.video-player-container {
  position: relative;
  background: #070B14;
  aspect-ratio: 9 / 12;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-player-container.is-playing {
  min-height: 580px !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  height: auto !important;
}

.video-poster-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
  z-index: 1;
}

.video-card:hover .video-poster-img {
  transform: scale(1.03);
}

.video-overlay-preview {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.4) 0%, rgba(7, 11, 20, 0.15) 40%, rgba(7, 11, 20, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  z-index: 2;
  cursor: pointer;
  pointer-events: auto;
  transition: opacity 0.4s ease, background 0.3s ease;
}

.video-overlay-preview * {
  pointer-events: none;
}

.video-overlay-preview:hover {
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.25) 0%, rgba(7, 11, 20, 0.1) 40%, rgba(7, 11, 20, 0.88) 100%);
}

.video-overlay-preview.hidden {
  opacity: 0;
  pointer-events: none !important;
  visibility: hidden;
}

.video-overlay-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  z-index: 3;
}

.video-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.4);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.video-duration-pill {
  font-size: 0.78rem;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.play-pulse-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: auto 0;
  z-index: 3;
  pointer-events: none;
}

.play-pulse-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0B111E;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 35px rgba(212, 175, 55, 0.65);
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  pointer-events: auto;
}

.play-pulse-btn svg {
  margin-left: 3px;
  transition: transform 0.2s ease;
}

[dir="rtl"] .play-pulse-btn svg {
  margin-left: 0;
  margin-right: 3px;
}

.video-overlay-preview:hover .play-pulse-btn,
.play-pulse-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 50px rgba(212, 175, 55, 0.95), 0 0 15px rgba(255, 255, 255, 0.5);
}

.play-cta-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #F8FAFC;
  background: rgba(11, 17, 30, 0.85);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.02em;
  transition: var(--transition);
}

.video-overlay-preview:hover .play-cta-text {
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold-light);
}

.video-overlay-bottom {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  z-index: 3;
}

.video-author-pill {
  font-size: 0.78rem;
  color: #94A3B8;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.video-loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--gold-light);
  font-size: 0.9rem;
  z-index: 3;
}

.video-loading-indicator.active {
  display: flex;
}

.spinner-circle {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top-color: var(--gold-primary);
  border-radius: 50%;
  animation: spinReel 0.9s linear infinite;
}

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

.video-iframe-slot {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.video-iframe-slot iframe {
  width: 100%;
  height: 100%;
  min-height: 580px;
  border: none;
}

.video-close-inline-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.95);
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.5);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 10;
  display: none;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  pointer-events: auto;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

[dir="rtl"] .video-close-inline-btn {
  right: auto;
  left: 14px;
}

.video-close-inline-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
  transform: scale(1.08);
}

.video-actions-row {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 0.75rem;
  margin-top: auto;
}

.video-actions-row .btn {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-size: 0.9rem;
  justify-content: center;
}

@media (max-width: 640px) {
  .video-actions-row {
    grid-template-columns: 1fr;
  }
}

/* Video Lightbox Modal */
.video-lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-lightbox-modal.active {
  display: flex;
  opacity: 1;
}

.lightbox-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 8, 15, 0.88);
  backdrop-filter: blur(14px);
}

.lightbox-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 500px;
  max-height: 94vh;
  background: #0B111E;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalZoomIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalZoomIn {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.6);
}

.lightbox-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
  padding-right: 1rem;
}

[dir="rtl"] .lightbox-title-wrap {
  padding-right: 0;
  padding-left: 1rem;
}

.lightbox-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.lightbox-title {
  font-size: 1.05rem;
  color: #F8FAFC;
  line-height: 1.35;
  margin: 0;
}

.lightbox-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #F8FAFC;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.lightbox-close-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: #EF4444;
  color: #EF4444;
  transform: rotate(90deg);
}

.lightbox-body {
  position: relative;
  flex-grow: 1;
  min-height: 540px;
  max-height: calc(88vh - 160px);
  background: #000000;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--gold-light);
  font-size: 0.9rem;
  z-index: 1;
}

.lightbox-player-wrap {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.lightbox-player-wrap iframe {
  width: 100%;
  height: 100%;
  min-height: 540px;
  border: none;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-glass);
  background: rgba(15, 23, 42, 0.6);
}

.lightbox-footer .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  justify-content: center;
}

.video-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.video-badge {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.85rem;
  border: 1px solid var(--border-glass);
}

.video-details h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.video-details p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* Instagram Banner Card */
.instagram-banner {
  background: linear-gradient(135deg, rgba(23, 35, 62, 0.8) 0%, rgba(14, 22, 38, 0.9) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-card);
}

.ig-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.ig-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(45deg, #F09433 0%, #E6683C 25%, #DC2743 50%, #CC2366 75%, #BC1888 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  flex-shrink: 0;
  box-shadow: 0 8px 25px rgba(220, 39, 67, 0.4);
}

.ig-text h4 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

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

/* ==========================================================================
   Simulator / Case Diagnostic Section
   ========================================================================== */
.simulator-section {
  padding: 6.5rem 0;
  position: relative;
}

.simulator-card {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-card);
}

.sim-step-group {
  margin-bottom: 2.25rem;
}

.sim-step-group label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.sim-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.sim-option-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

[dir="rtl"] .sim-option-btn {
  text-align: right;
}

.sim-option-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--text-primary);
}

.sim-option-btn.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 20px var(--gold-glow);
}

.sim-result-box {
  margin-top: 2.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(23, 35, 62, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.sim-result-info h4 {
  font-size: 1.25rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.sim-result-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Methodology Steps Section
   ========================================================================== */
.steps-section {
  padding: 6.5rem 0;
  position: relative;
  background: linear-gradient(180deg, rgba(14, 22, 38, 0.4) 0%, transparent 100%);
}

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

.step-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  transition: var(--transition);
}

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

.step-number {
  font-size: 2.75rem;
  font-weight: 900;
  line-height: 1;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.step-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.85rem;
}

.step-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-section {
  padding: 6.5rem 0;
  position: relative;
}

.faq-list {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover, .faq-item.active {
  border-color: var(--border-glass);
}

.faq-question {
  padding: 1.5rem 1.75rem;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  user-select: none;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gold-primary);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 1.75rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.75rem 1.5rem;
}

/* ==========================================================================
   Contact Section & Form
   ========================================================================== */
.contact-section {
  padding: 6.5rem 0;
  position: relative;
  background: linear-gradient(180deg, transparent 0%, rgba(14, 22, 38, 0.8) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-card-box {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  transition: var(--transition);
}

.contact-card-box:hover {
  border-color: var(--border-glass);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.contact-box-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-glass);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-box-text h4 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.contact-box-text a, .contact-box-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-box-text a:hover {
  color: var(--gold-light);
}

/* Form Styles */
.contact-form-container {
  background: var(--bg-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

.form-control option {
  background: #0E1626;
  color: var(--text-primary);
}

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

.form-submit-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.75rem;
}

.form-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  display: none;
}

.form-alert.success {
  display: block;
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.4);
  color: #A7F3D0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #05080F;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

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

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.footer-brand p {
  line-height: 1.7;
  margin-top: 1rem;
  font-size: 0.92rem;
}

.footer-col h4 {
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  position: relative;
}

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

.footer-links a:hover {
  color: var(--gold-light);
  transform: translateX(3px);
  display: inline-block;
}

[dir="rtl"] .footer-links a:hover {
  transform: translateX(-3px);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  max-width: 800px;
}

/* ==========================================================================
   Mobile Bottom Quick Bar (Optimized Mobile Sticky Bar)
   ========================================================================== */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(7, 11, 20, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-glass);
  padding: 0.65rem 0.85rem;
  padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.6);
}

.mobile-bar-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  max-width: 520px;
  margin: 0 auto;
}

.mobile-bar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.7rem 0.4rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  transition: var(--transition);
}

.mobile-bar-btn svg {
  flex-shrink: 0;
}

/* ==========================================================================
   Off-Canvas Mobile Drawer
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100%;
  height: 100dvh;
  background: rgba(11, 17, 30, 0.98);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 2000;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 2rem 1.75rem;
  padding-bottom: calc(2rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border-glass);
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.8);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

[dir="rtl"] .mobile-drawer {
  right: auto;
  left: -100%;
  border-left: none;
  border-right: 1px solid var(--border-glass);
  transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.open {
  right: 0;
}

[dir="rtl"] .mobile-drawer.open {
  left: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.drawer-link {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.drawer-link:hover, .drawer-link:active {
  color: var(--gold-light);
  transform: translateX(4px);
}

[dir="rtl"] .drawer-link:hover, [dir="rtl"] .drawer-link:active {
  transform: translateX(-4px);
}

.drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 1rem;
  flex-shrink: 0;
}

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet Landscape / Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid, .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual-card {
    max-width: 480px;
    margin: 0 auto;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .video-card {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .floating-badge.badge-top, .floating-badge.badge-bottom {
    position: static;
    margin-top: 0.75rem;
    max-width: 100%;
    width: 100%;
  }
}

/* Tablet Portrait & Large Phones (<= 768px - Covers user's 688px viewport!) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  body {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Header */
  .site-header {
    padding: 0.85rem 0;
  }

  .site-header.scrolled {
    padding: 0.65rem 0;
  }

  .nav-links, .nav-actions .btn-primary {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .brand-logo-icon {
    width: 38px;
    height: 38px;
  }

  .brand-text h1 {
    font-size: 1.05rem;
  }

  .lang-toggle-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.82rem;
  }

  /* Section Spacing */
  .hero-section {
    padding: 6.75rem 0 3rem;
  }

  .about-section,
  .services-section,
  .videos-section,
  .steps-section,
  .faq-section,
  .contact-section {
    padding: 4rem 0;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 5.5vw, 2.3rem);
  }

  .section-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(1.9rem, 6.2vw, 2.75rem);
    margin-bottom: 1.25rem;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 1.75rem;
  }

  .hero-cta-group {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .hero-call-bar {
    margin-bottom: 2rem;
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-item h4 {
    font-size: 1.35rem;
  }

  .stat-item p {
    font-size: 0.8rem;
  }

  .hero-visual-card {
    max-width: 440px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem;
  }

  .hero-image-wrapper {
    aspect-ratio: 1 / 1.05;
  }

  /* Booking Banner */
  .booking-banner-card {
    flex-direction: column;
    text-align: center;
    padding: 2.25rem 1.5rem;
    margin: 3rem 0;
    gap: 2rem;
  }

  .booking-banner-content h3 {
    font-size: 1.55rem;
  }

  .booking-features-row {
    justify-content: center;
    gap: 1rem;
  }

  .booking-action-box {
    width: 100%;
  }

  .booking-action-box .btn {
    width: 100%;
    justify-content: center;
  }

  /* Credentials & Steps */
  .credentials-grid, .steps-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
  }

  .service-card {
    padding: 1.75rem 1.5rem;
  }

  /* Videos Section */
  .videos-section {
    padding: 4rem 0;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .video-card {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .video-player-container {
    aspect-ratio: 9 / 11;
    min-height: 420px;
    max-height: 480px;
  }

  .video-details {
    padding: 1.75rem 1.5rem;
  }

  .video-details h3 {
    font-size: 1.2rem;
  }

  .video-details p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  .video-actions-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .video-actions-row .btn {
    width: 100%;
    justify-content: center;
  }

  /* Instagram Banner */
  .instagram-banner {
    flex-direction: column;
    text-align: center;
    padding: 2.25rem 1.5rem;
    gap: 1.75rem;
  }

  .ig-content {
    flex-direction: column;
    gap: 1rem;
  }

  .instagram-banner .btn-instagram {
    width: 100%;
    max-width: 380px;
    justify-content: center;
  }

  /* Simulator */
  .simulator-card {
    padding: 2rem 1.5rem;
  }

  .sim-result-box {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .sim-result-box .btn {
    width: 100%;
    justify-content: center;
  }

  /* FAQ */
  .faq-question {
    padding: 1.25rem 1.5rem;
    font-size: 1.02rem;
  }

  .faq-answer {
    padding: 0 1.5rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.5rem 1.25rem;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-form-container {
    padding: 2rem 1.5rem;
  }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Mobile Sticky Bar Display */
  .mobile-sticky-bar {
    display: block;
  }
}

/* Standard Mobile Phones (<= 540px) */
@media (max-width: 540px) {
  .container {
    padding: 0 1rem;
  }

  /* Header */
  .brand-text span {
    display: none;
  }

  .brand-text h1 {
    font-size: 0.98rem;
  }

  .brand-logo-icon {
    width: 36px;
    height: 36px;
  }

  .lang-toggle-btn {
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    gap: 0.3rem;
  }

  /* Hero */
  .hero-section {
    padding: 6.25rem 0 2.25rem;
  }

  .hero-badge-tag {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 8vw, 2.3rem);
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    text-align: center;
  }

  .stat-item {
    padding: 0.65rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
  }

  .hero-visual-card {
    max-width: 100%;
    padding: 0.75rem;
  }

  /* Section Titles */
  .section-title {
    font-size: 1.7rem;
  }

  .section-pill {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
  }

  .section-subtitle {
    font-size: 0.92rem;
  }

  /* Booking Banner */
  .booking-banner-card {
    padding: 1.75rem 1.15rem;
    margin: 2.25rem 0;
  }

  .booking-banner-content h3 {
    font-size: 1.35rem;
  }

  .booking-banner-content p {
    font-size: 0.92rem;
  }

  .booking-features-row {
    flex-direction: column;
    gap: 0.65rem;
    align-items: center;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .service-card {
    padding: 1.5rem 1.25rem;
  }

  .service-card h3 {
    font-size: 1.15rem;
  }

  .service-card p {
    font-size: 0.88rem;
    margin-bottom: 1.25rem;
  }

  /* Video Player Container */
  .video-player-container {
    aspect-ratio: 9 / 12;
    min-height: 360px;
    max-height: 440px;
  }

  .play-pulse-btn {
    width: 66px;
    height: 66px;
  }

  .play-cta-text {
    font-size: 0.78rem;
    padding: 0.3rem 0.75rem;
  }

  .video-details {
    padding: 1.35rem 1.15rem;
  }

  .video-details h3 {
    font-size: 1.15rem;
  }

  .video-details p {
    font-size: 0.88rem;
  }

  /* Video Lightbox Modal */
  .video-lightbox-modal {
    padding: 0.5rem;
  }

  .lightbox-dialog {
    max-height: 96vh;
    border-radius: var(--radius-lg);
  }

  .lightbox-header {
    padding: 1rem 1.15rem;
  }

  .lightbox-title {
    font-size: 0.95rem;
  }

  .lightbox-body {
    min-height: 420px;
    max-height: calc(90vh - 130px);
  }

  .lightbox-player-wrap iframe {
    min-height: 420px;
  }

  .lightbox-footer {
    padding: 1rem 1.15rem;
    flex-direction: column;
    gap: 0.65rem;
  }

  .lightbox-footer .btn {
    width: 100%;
  }

  /* Simulator */
  .simulator-card {
    padding: 1.5rem 1.15rem;
  }

  .sim-options-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sim-option-btn {
    padding: 0.95rem 1rem;
    font-size: 0.88rem;
  }

  /* Form Elements */
  .contact-form-container {
    padding: 1.5rem 1.15rem;
  }

  .form-control {
    font-size: 16px; /* Prevents auto-zoom in iOS Safari */
    padding: 0.85rem 1rem;
  }

  /* FAQ */
  .faq-question {
    padding: 1.1rem 1.15rem;
    font-size: 0.95rem;
  }

  .faq-answer {
    padding: 0 1.15rem;
    font-size: 0.9rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1.15rem 1.15rem;
  }

  /* Mobile Bottom Bar */
  .mobile-bar-actions {
    gap: 0.35rem;
  }

  .mobile-bar-btn {
    padding: 0.65rem 0.25rem;
    font-size: 0.76rem;
    gap: 0.3rem;
  }

  .mobile-bar-btn svg {
    width: 15px;
    height: 15px;
  }
}

/* Extra Small Phones (<= 380px) */
@media (max-width: 380px) {
  .brand-text h1 {
    font-size: 0.9rem;
  }

  .hero-title {
    font-size: 1.6rem;
  }

  .booking-banner-card {
    padding: 1.35rem 0.9rem;
  }

  .mobile-bar-btn span {
    font-size: 0.72rem;
  }

  .video-player-container {
    min-height: 330px;
  }
}
