/* ============================================
   MOHSEN YOSRY SALEM - LEGAL WEBSITE
   Professional Legal Consultation Styles
   ============================================ */

/* ---- CSS Variables / Themes ---- */
:root {
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', 'Playfair Display', serif;
  --font-heading: 'Playfair Display', 'Cairo', serif;
  --transition: 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.18);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.22);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
}

/* -- GOLD CLASSIC THEME -- */
[data-theme="gold"] {
  --primary: #b8860b;
  --primary-light: #d4a535;
  --primary-dark: #8b6508;
  --primary-bg: #faf6ed;
  --primary-bg2: #f5edd8;
  --accent: #1a1a2e;
  --accent-light: #2d2d44;
  --text-dark: #1a1a2e;
  --text-medium: #4a4a5e;
  --text-light: #7a7a8e;
  --bg-white: #ffffff;
  --bg-light: #fdfbf5;
  --bg-section: #f9f5eb;
  --bg-dark: #1a1a2e;
  --bg-dark2: #12121f;
  --border: #e8e0cc;
  --border-light: #f0ead9;
  --mesh-color1: rgba(184, 134, 11, 0.07);
  --mesh-color2: rgba(26, 26, 46, 0.05);
  --mesh-color3: rgba(212, 165, 53, 0.06);
  --gradient-primary: linear-gradient(135deg, #b8860b, #d4a535);
  --gradient-hero: linear-gradient(135deg, #1a1a2e 0%, #2d2d44 50%, #1a1a2e 100%);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(184, 134, 11, 0.15);
  --glow: rgba(184, 134, 11, 0.3);
}

/* -- ROYAL NAVY THEME -- */
[data-theme="navy"] {
  --primary: #1e3a5f;
  --primary-light: #2c5f8a;
  --primary-dark: #0f2440;
  --primary-bg: #edf2f8;
  --primary-bg2: #d9e4f0;
  --accent: #c9a84c;
  --accent-light: #dbbf6a;
  --text-dark: #0f1b2d;
  --text-medium: #3a4a5e;
  --text-light: #6a7a8e;
  --bg-white: #ffffff;
  --bg-light: #f5f8fc;
  --bg-section: #eef3f9;
  --bg-dark: #0f1b2d;
  --bg-dark2: #091320;
  --border: #c8d6e5;
  --border-light: #dce6f0;
  --mesh-color1: rgba(30, 58, 95, 0.07);
  --mesh-color2: rgba(201, 168, 76, 0.05);
  --mesh-color3: rgba(44, 95, 138, 0.06);
  --gradient-primary: linear-gradient(135deg, #1e3a5f, #2c5f8a);
  --gradient-hero: linear-gradient(135deg, #0f1b2d 0%, #1e3a5f 50%, #0f1b2d 100%);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(30, 58, 95, 0.15);
  --glow: rgba(30, 58, 95, 0.3);
}

/* -- LUXURY EMERALD THEME -- */
[data-theme="emerald"] {
  --primary: #1a6b4a;
  --primary-light: #2d9b6e;
  --primary-dark: #0f4a32;
  --primary-bg: #edf8f2;
  --primary-bg2: #d4f0e0;
  --accent: #b8860b;
  --accent-light: #d4a535;
  --text-dark: #0f2a1d;
  --text-medium: #3a5a4a;
  --text-light: #6a8a7a;
  --bg-white: #ffffff;
  --bg-light: #f5fbf8;
  --bg-section: #eef8f3;
  --bg-dark: #0f2a1d;
  --bg-dark2: #091a12;
  --border: #bcd9cc;
  --border-light: #d4ece0;
  --mesh-color1: rgba(26, 107, 74, 0.07);
  --mesh-color2: rgba(184, 134, 11, 0.05);
  --mesh-color3: rgba(45, 155, 110, 0.06);
  --gradient-primary: linear-gradient(135deg, #1a6b4a, #2d9b6e);
  --gradient-hero: linear-gradient(135deg, #0f2a1d 0%, #1a4a35 50%, #0f2a1d 100%);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(26, 107, 74, 0.15);
  --glow: rgba(26, 107, 74, 0.3);
}

/* -- ELEGANT BURGUNDY THEME -- */
[data-theme="burgundy"] {
  --primary: #7b2040;
  --primary-light: #a83258;
  --primary-dark: #5a1530;
  --primary-bg: #f8edf0;
  --primary-bg2: #f0d4dc;
  --accent: #c9a84c;
  --accent-light: #dbbf6a;
  --text-dark: #2d0f1a;
  --text-medium: #5a3a4a;
  --text-light: #8a6a7a;
  --bg-white: #ffffff;
  --bg-light: #fcf5f7;
  --bg-section: #f9eef2;
  --bg-dark: #2d0f1a;
  --bg-dark2: #1a0910;
  --border: #e0c0cc;
  --border-light: #edd4dc;
  --mesh-color1: rgba(123, 32, 64, 0.07);
  --mesh-color2: rgba(201, 168, 76, 0.05);
  --mesh-color3: rgba(168, 50, 88, 0.06);
  --gradient-primary: linear-gradient(135deg, #7b2040, #a83258);
  --gradient-hero: linear-gradient(135deg, #2d0f1a 0%, #4a1a2d 50%, #2d0f1a 100%);
  --card-bg: rgba(255, 255, 255, 0.85);
  --card-border: rgba(123, 32, 64, 0.15);
  --glow: rgba(123, 32, 64, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-ar);
  color: var(--text-dark);
  background: var(--bg-light);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

html[lang="en"] body {
  font-family: var(--font-en);
}

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

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Animated Mesh Background (Canvas) ---- */
#meshCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ---- Navbar ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.logo-icon {
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.2;
}

.navbar:not(.scrolled) .logo-name {
  color: white;
}

.logo-title {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 400;
}

.navbar:not(.scrolled) .logo-title {
  color: rgba(255,255,255,0.6);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  color: var(--text-medium);
  transition: var(--transition);
  position: relative;
}

.navbar:not(.scrolled) .nav-link {
  color: rgba(255,255,255,0.8);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.navbar:not(.scrolled) .nav-link:hover,
.navbar:not(.scrolled) .nav-link.active {
  color: white;
  background: rgba(255,255,255,0.12);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.theme-toggle, .lang-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  font-family: var(--font-en);
}

.navbar:not(.scrolled) .theme-toggle,
.navbar:not(.scrolled) .lang-toggle {
  border-color: rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: white;
}

.theme-toggle:hover, .lang-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* Theme Dropdown */
.theme-dropdown {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: flex;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.theme-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font-family: var(--font-ar);
  font-size: 13px;
  color: var(--text-medium);
  transition: var(--transition);
  white-space: nowrap;
}

html[lang="en"] .theme-option {
  font-family: var(--font-en);
}

.theme-option:hover {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary);
}

.theme-preview {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.1);
}

.gold-preview { background: linear-gradient(135deg, #b8860b, #d4a535); }
.navy-preview { background: linear-gradient(135deg, #1e3a5f, #2c5f8a); }
.emerald-preview { background: linear-gradient(135deg, #1a6b4a, #2d9b6e); }
.burgundy-preview { background: linear-gradient(135deg, #7b2040, #a83258); }

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}

.mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition);
  border-radius: 2px;
}

.navbar:not(.scrolled) .mobile-toggle span {
  background: white;
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(255,255,255,0.05) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--mesh-color1) 0%, transparent 40%);
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 24px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50px;
  color: var(--primary-light);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  margin-bottom: 20px;
  animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-greeting {
  display: block;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  margin-bottom: 4px;
}

.hero-name {
  display: block;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: white;
  line-height: 1.2;
  background: linear-gradient(135deg, white, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  max-width: 520px;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 15px var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--glow);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

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

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  color: white;
  line-height: 1;
  font-family: var(--font-en);
}

.stat-plus {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-label {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.15);
}

/* Hero Image */
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.image-frame {
  position: relative;
  width: 380px;
  height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%);
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

.image-border {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255,255,255,0.15);
  pointer-events: none;
}

/* Scroll Indicator */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 4px;
  height: 8px;
  background: var(--primary-light);
  border-radius: 2px;
  animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(10px); opacity: 0.3; }
}

/* ---- Section Styles ---- */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}

.section.services,
.section.faq {
  background: var(--bg-section);
}

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

.section-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 14px;
  border: 1px solid var(--card-border);
}

.section-title {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 14px;
  line-height: 1.3;
}

.section-line {
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  margin: 0 auto;
  border-radius: 2px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-light);
  max-width: 600px;
  margin: 16px auto 0;
  line-height: 1.7;
}

/* ---- About Section ---- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start;
}

.about-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top center;
}

.about-image-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.about-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
  margin-top: 20px;
}

.about-card-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
  flex-shrink: 0;
}

.about-card strong {
  display: block;
  font-size: 14px;
  color: var(--text-dark);
}

.about-card p {
  font-size: 12px;
  color: var(--text-light);
}

.about-heading {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.4;
}

.about-text {
  font-size: 15px;
  color: var(--text-medium);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-features {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.about-feature:hover {
  border-color: var(--card-border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  flex-shrink: 0;
}

.about-feature strong {
  display: block;
  font-size: 15px;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.about-feature p {
  font-size: 13px;
  color: var(--text-light);
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  padding: 32px 28px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 22px;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
}

.service-link:hover {
  gap: 12px;
}

html[dir="ltr"] .service-link i {
  transform: rotate(180deg);
}

/* ---- Experience Section ---- */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.exp-card {
  padding: 32px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  position: relative;
  transition: all 0.4s ease;
  overflow: hidden;
}

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

.exp-number {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 48px;
  font-weight: 900;
  color: var(--primary-bg2);
  line-height: 1;
  font-family: var(--font-en);
  z-index: 0;
}

html[dir="rtl"] .exp-number {
  left: auto;
  right: 24px;
}

.exp-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.exp-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}

.exp-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* ---- Testimonials ---- */
.testimonials-slider {
  position: relative;
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-card {
  min-width: 100%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  color: #f4c430;
  font-size: 18px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-size: 18px;
  color: var(--text-medium);
  line-height: 1.9;
  max-width: 700px;
  margin-bottom: 28px;
  font-style: italic;
  position: relative;
}

.testimonial-text::before {
  content: '\201C';
  position: absolute;
  top: -30px;
  right: -10px;
  font-size: 80px;
  color: var(--primary-bg2);
  font-family: serif;
  line-height: 1;
}

html[dir="ltr"] .testimonial-text::before {
  right: auto;
  left: -10px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.testimonial-author strong {
  display: block;
  font-size: 16px;
  color: var(--text-dark);
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-light);
}

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-white);
  color: var(--text-medium);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.slider-btn:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: var(--transition);
}

.slider-dot.active {
  background: var(--primary);
  width: 28px;
  border-radius: 5px;
}

/* ---- FAQ Section ---- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--card-border);
}

.faq-item.active {
  box-shadow: var(--shadow-sm);
  border-color: var(--card-border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
  text-align: inherit;
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s ease;
  font-size: 14px;
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-medium);
  line-height: 1.8;
}

/* ---- Contact Section ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.contact-desc {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.7;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.contact-item:hover {
  border-color: var(--card-border);
  transform: translateX(4px);
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 13px;
  color: var(--text-dark);
}

.contact-item a,
.contact-item span {
  font-size: 14px;
  color: var(--text-medium);
}

.contact-item a:hover {
  color: var(--primary);
}

.contact-social {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-medium);
  font-size: 16px;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--bg-light);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

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

/* ---- Footer ---- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 0;
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: white;
  font-size: 20px;
  font-weight: 700;
}

.footer-logo i {
  color: var(--primary-light);
  font-size: 24px;
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-links-col h4 {
  color: white;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-links-col a {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
}

.footer-links-col a:hover {
  color: var(--primary-light);
  padding-right: 6px;
}

html[dir="ltr"] .footer-links-col a:hover {
  padding-right: 0;
  padding-left: 6px;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 24px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  animation: whatsappPulse 2s ease-in-out infinite;
}

html[dir="ltr"] .whatsapp-float {
  left: auto;
  right: 24px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6), 0 0 0 10px rgba(37, 211, 102, 0.1); }
}

/* ---- Back to Top ---- */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  border: none;
  cursor: pointer;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}

html[dir="ltr"] .back-to-top {
  right: auto;
  left: 24px;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-dark);
  color: white;
  padding: 16px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 9999;
  opacity: 0;
  transition: all 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.toast-content i {
  color: #4ade80;
  font-size: 18px;
}

/* ---- Animations ---- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}

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

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-subtitle { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .image-frame { width: 300px; height: 380px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 24px;
    box-shadow: var(--shadow-xl);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 5;
    gap: 0;
  }

  html[dir="ltr"] .nav-links {
    right: auto;
    left: 0;
    transform: translateX(-100%);
  }

  .nav-links.show {
    transform: translateX(0);
  }

  .nav-links .nav-link {
    color: var(--text-dark) !important;
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
  }

  .mobile-toggle { display: flex; }

  .services-grid {
    grid-template-columns: 1fr;
  }
  .experience-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 16px;
  }
  .stat-divider {
    display: none;
  }
  .theme-dropdown {
    flex-wrap: wrap;
    max-width: 300px;
  }
  .image-frame {
    width: 260px;
    height: 340px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 28px;
  }
  .section {
    padding: 60px 0;
  }
  .section-title {
    font-size: 24px;
  }
  .contact-form-wrapper {
    padding: 20px;
  }
}
