/* ========================================
   SOFIAN MALKI - Landing Page & Legal Pages
   Classic + Modern Design
   ======================================== */

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

:root {
  --primary: #0891B2;
  --primary-light: #06B6D4;
  --primary-dark: #0E7490;
  --primary-bg: #ECFEFF;
  --text-dark: #0F172A;
  --text-secondary: #475569;
  --text-light: #94A3B8;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --success: #10B981;
  --warning: #F59E0B;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(8, 145, 178, 0.08);
  --shadow-lg: 0 12px 40px rgba(8, 145, 178, 0.12);
  --transition: 0.3s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Cairo', 'Segoe UI', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: 'Cairo', 'Segoe UI', sans-serif;
  direction: rtl;
  text-align: right;
}

html[dir="ltr"] body {
  direction: ltr;
  text-align: left;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

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

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

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

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

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(8, 145, 178, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(8, 145, 178, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- Header Actions --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-bg);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: 'Cairo', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

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

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  margin: 6px 0;
  transition: var(--transition);
  border-radius: 2px;
}

/* --- Hero Section --- */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(180deg, var(--primary-bg) 0%, var(--white) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.hero-badge span {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
}

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

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 600;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-illustration {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-illustration::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath d='M200 40 L340 120 L340 280 L200 360 L60 280 L60 120 Z' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='2'/%3E%3Cpath d='M200 80 L310 140 L310 260 L200 320 L90 260 L90 140 Z' fill='none' stroke='rgba(255,255,255,0.08)' stroke-width='1.5'/%3E%3Ccircle cx='200' cy='200' r='60' fill='none' stroke='rgba(255,255,255,0.15)' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;
}

.hero-illustration-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.hero-illustration-content .icon-large {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 12px;
  color: var(--white);
  letter-spacing: 2px;
}

.hero-illustration-content p {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* Floating cards */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

.float-card:nth-child(2) {
  top: 20%;
  right: -30px;
  animation-delay: -1s;
}

.float-card:nth-child(3) {
  bottom: 20%;
  left: -30px;
  animation-delay: -3s;
}

.float-card:nth-child(4) {
  bottom: 10%;
  right: -20px;
  animation-delay: -2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.float-card .fc-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: var(--primary-bg);
  color: var(--primary);
}

.float-card .fc-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.float-card .fc-sub {
  font-size: 11px;
  color: var(--text-light);
}

/* --- Features Section --- */
.features {
  padding: 120px 0;
}

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

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  border-radius: 50px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: var(--primary-bg);
  color: var(--primary);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- Subjects/Categories Section --- */
.subjects {
  padding: 120px 0;
}

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

.subject-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.subject-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  background: var(--primary-bg);
  color: var(--primary);
}

.subject-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

/* --- App Preview / CTA --- */
.app-preview {
  padding: 120px 0;
}

.app-preview .container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.app-preview-visual {
  flex: 1;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: linear-gradient(180deg, var(--primary), var(--primary-dark));
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: var(--white);
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-header {
  padding: 20px 16px 12px;
  background: var(--primary-bg);
  text-align: center;
}

.phone-header .ph-greeting {
  font-size: 11px;
  color: var(--text-light);
}

.phone-header .ph-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.phone-content {
  padding: 16px;
  flex: 1;
}

.phone-stat-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.phone-stat {
  flex: 1;
  background: var(--gray-50);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}

.phone-stat .ps-num {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary);
}

.phone-stat .ps-label {
  font-size: 9px;
  color: var(--text-light);
}

.phone-card-mini {
  background: var(--gray-50);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-card-mini .pcm-dot {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  background: var(--primary-bg);
}

.phone-card-mini .pcm-text {
  font-size: 11px;
  font-weight: 700;
}

.phone-card-mini .pcm-sub {
  font-size: 9px;
  color: var(--text-light);
}

.phone-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid var(--gray-200);
}

.phone-nav span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gray-200);
}

.phone-nav span.active-nav {
  background: var(--primary);
}

.app-preview-content {
  flex: 1;
}

.download-btns {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius);
  transition: var(--transition);
}

.download-btn:hover {
  background: var(--text-dark);
  transform: translateY(-2px);
}

.download-btn .db-icon {
  font-size: 28px;
}

.db-icon-shape {
  width: 28px;
  height: 28px;
  position: relative;
}

.db-icon-shape.green-play::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent var(--white);
}

.db-icon-shape.apple-store::before {
  content: 'A';
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  line-height: 28px;
}

.download-btn .db-text small {
  font-size: 10px;
  opacity: 0.7;
  display: block;
}

.download-btn .db-text strong {
  font-size: 15px;
}

/* --- Testimonials --- */
.testimonials {
  padding: 120px 0;
  background: var(--gray-50);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 960px;
  margin: 0 auto;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.testimonial-author {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-light);
  margin-top: 2px;
}

/* --- FAQ --- */
.faq {
  padding: 120px 0;
  background: var(--gray-50);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
}

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

.faq-question:hover {
  color: var(--primary);
}

.faq-question .faq-arrow {
  font-size: 18px;
  transition: var(--transition);
  color: var(--text-light);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

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

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

/* --- Footer --- */
.footer {
  background: var(--gray-900);
  color: var(--white);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 12px;
  line-height: 1.8;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--white);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-light);
  padding: 4px 0;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-light);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: var(--transition);
  font-size: 16px;
}

.footer-social a:hover {
  background: var(--primary);
  color: var(--white);
}

/* --- Privacy / Legal Page --- */
.privacy-hero {
  padding: 120px 0 60px;
  background: linear-gradient(180deg, var(--primary-bg) 0%, var(--white) 100%);
  text-align: center;
}

.privacy-hero h1 {
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 12px;
}

.privacy-hero p {
  color: var(--text-secondary);
  font-size: 16px;
}

.privacy-content {
  padding: 60px 0 100px;
}

.privacy-content .container {
  max-width: 800px;
}

.privacy-section {
  margin-bottom: 40px;
}

.privacy-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-bg);
}

.privacy-section h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin: 20px 0 10px;
}

.privacy-section p,
.privacy-section li {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.9;
}

.privacy-section ul {
  padding-left: 20px;
  margin: 10px 0;
}

html[dir="rtl"] .privacy-section ul {
  padding-left: 0;
  padding-right: 20px;
}

.privacy-section li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 6px;
}

html[dir="rtl"] .privacy-section li {
  padding-left: 0;
  padding-right: 14px;
}

.privacy-section li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
}

html[dir="rtl"] .privacy-section li::before {
  left: auto;
  right: 0;
}

.privacy-info-box {
  background: var(--primary-bg);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius) 0 0 var(--radius);
  padding: 20px 24px;
  margin: 20px 0;
}

html[dir="rtl"] .privacy-info-box {
  border-left: none;
  border-right: 4px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.privacy-info-box p {
  color: var(--primary-dark);
  font-weight: 600;
}

/* --- Contact Page --- */
.contact-methods {
  padding: 80px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.contact-card {
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-light), var(--primary-dark));
  opacity: 0;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

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

.contact-card-icon {
  font-size: 40px;
  margin-bottom: 16px;
  line-height: 1;
}

.contact-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.contact-card-subtitle {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-card-detail {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.contact-card-email {
  font-size: 13px;
  color: var(--text-light);
  margin-top: 12px;
  direction: ltr;
}

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

.contact-social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 8px;
}

.contact-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  transition: var(--transition);
}

.contact-social-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.contact-social-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.contact-social-btn:hover .contact-social-icon {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

/* Contact Form */
.contact-form-section {
  padding: 80px 0;
  background: var(--gray-50);
}

.contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-200);
}

.contact-form-header {
  text-align: center;
  margin-bottom: 36px;
}

.contact-form-header h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
}

.contact-form-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

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

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: var(--white);
  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 rgba(8, 145, 178, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

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

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 36px;
}

html[dir="rtl"] .form-group select {
  background-position: left 16px center;
  padding-right: 16px;
  padding-left: 36px;
}

.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 24px;
  font-size: 16px;
  margin-top: 8px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--success), #059669);
  color: var(--white);
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.form-success h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 40px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .subjects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    right: 0;
    left: 0;
    background: var(--white);
    padding: 20px 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    gap: 16px;
    border-radius: 0 0 12px 12px;
    z-index: 999;
  }

  .nav-links.nav-open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .lang-btn span:not(.lang-icon) {
    display: none;
  }

  .lang-btn {
    padding: 6px 10px;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-visual {
    width: 100%;
  }

  .hero-illustration {
    max-width: 300px;
    aspect-ratio: 1;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .subjects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .app-preview .container {
    flex-direction: column;
    text-align: center;
  }

  .download-btns {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .section-header h2 {
    font-size: 28px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-wrapper {
    padding: 28px 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-social-links {
    flex-direction: column;
    align-items: center;
  }

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

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-number {
    font-size: 22px;
  }

  .subjects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .phone-mockup {
    width: 240px;
    height: 480px;
  }

  .download-btns {
    flex-direction: column;
    align-items: center;
  }
}
