/* ============================================
   مركز النخبة - Stylesheet
   ============================================ */

:root {
  --primary: #1a3a6c;
  --primary-dark: #0f2348;
  --primary-light: #2952a3;
  --accent: #e8a020;
  --accent-light: #f5c060;
  --accent-dark: #c4841a;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --text-dark: #111827;
  --text-mid: #374151;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --wa-green: #25D366;
  --wa-dark: #128C7E;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.15);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.20);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Tajawal', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
input, select, textarea, button { font-family: inherit; }

/* ============== NAVBAR ============== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,58,108,0.08);
  transition: var(--transition);
}

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

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

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

.logo-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.logo-icon svg { width: 24px; height: 24px; }

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

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

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

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

.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-mid);
  transition: var(--transition);
}

.nav-links a:hover {
  background: var(--off-white);
  color: var(--primary);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-call-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-call-nav svg { width: 16px; height: 16px; }
.btn-call-nav:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
}

.hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ============== HERO ============== */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #f0f5ff 0%, #e8f0fe 30%, #dbeafe 60%, #f0f5ff 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
}

.shape-1 {
  width: 600px; height: 600px;
  background: var(--primary);
  top: -200px; left: -150px;
}

.shape-2 {
  width: 400px; height: 400px;
  background: var(--accent);
  bottom: -100px; right: -100px;
}

.shape-3 {
  width: 200px; height: 200px;
  background: var(--primary-light);
  top: 50%; left: 40%;
  transform: translate(-50%, -50%);
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(26,58,108,0.08);
  border: 1px solid rgba(26,58,108,0.15);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.hero-title {
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 900;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

.title-gradient {
  display: block;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 17px;
  color: var(--text-mid);
  max-width: 500px;
  margin-bottom: 36px;
  line-height: 1.8;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
  color: white;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(37,211,102,0.35);
}

.btn-primary svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 32px rgba(37,211,102,0.45); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  transition: var(--transition);
}

.btn-secondary svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-secondary:hover { background: var(--primary); color: white; transform: translateY(-3px); box-shadow: var(--shadow-md); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 20px 28px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 420px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

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

.stat-label {
  font-size: 11px;
  color: var(--text-light);
  font-weight: 500;
  text-align: center;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* TV Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.tv-mockup {
  position: relative;
  animation: floatTV 4s ease-in-out infinite;
}

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

.tv-screen {
  width: 380px;
  background: var(--primary-dark);
  border-radius: 20px;
  padding: 16px;
  box-shadow: 0 0 0 4px #1e3a5f, var(--shadow-xl);
}

.tv-screen-inner {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #0f2348, #1a3a6c);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tv-screen-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.screen-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.4);
}

.screen-placeholder svg { width: 60px; height: 60px; }
.screen-placeholder p { font-size: 14px; font-weight: 700; color: rgba(255,255,255,0.5); }

.tv-screen-inner.no-img .screen-placeholder,
.tv-screen-inner:not(:has(img[src])) .screen-placeholder { display: flex; }

.tv-stand {
  width: 60px;
  height: 30px;
  background: var(--primary-dark);
  margin: 0 auto;
  clip-path: polygon(20% 0%, 80% 0%, 100% 100%, 0% 100%);
}

.tv-base {
  width: 120px;
  height: 8px;
  background: var(--primary-dark);
  margin: 0 auto;
  border-radius: 4px;
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

.floating-badge svg { width: 16px; height: 16px; color: var(--accent); }

.badge-top { top: 0; right: -30px; }
.badge-bottom { bottom: 30px; left: -30px; }

.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  font-size: 12px;
}

.scroll-arrow {
  animation: bounceDown 2s infinite;
}

.scroll-arrow svg { width: 24px; height: 24px; }

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* ============== SECTION COMMONS ============== */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
}

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

.section-header h2 {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 900;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

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

.section-header.light h2 { color: white; }
.section-header.light p { color: rgba(255,255,255,0.75); }

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(26,58,108,0.08);
  color: var(--primary);
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header.light .section-tag {
  background: rgba(255,255,255,0.15);
  color: white;
}

/* ============== SERVICES ============== */
.services {
  background: var(--off-white);
}

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

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

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

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

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.featured {
  background: linear-gradient(145deg, var(--primary), var(--primary-light));
  color: white;
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.service-card.featured::before {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(1);
}

.service-badge-featured {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 4px 12px;
  background: var(--accent);
  color: white;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: rgba(26,58,108,0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}

.service-icon svg { width: 30px; height: 30px; }

.service-card.featured .service-icon {
  background: rgba(255,255,255,0.15);
  color: white;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--primary-dark);
}

.service-card.featured h3 { color: white; }

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

.service-card.featured p { color: rgba(255,255,255,0.8); }

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-list li {
  font-size: 13px;
  color: var(--text-mid);
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-list li::before {
  content: '✓';
  color: var(--primary);
  font-weight: 700;
  font-size: 12px;
  flex-shrink: 0;
}

.service-card.featured .service-list li { color: rgba(255,255,255,0.85); }
.service-card.featured .service-list li::before { color: var(--accent-light); }

/* ============== GALLERY ============== */
.gallery {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: rgba(255,255,255,0.08);
  aspect-ratio: 4/3;
}

.gallery-item.large {
  grid-row: span 2;
  aspect-ratio: auto;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 2px dashed rgba(255,255,255,0.15);
}

.gallery-item.placeholder::after {
  content: '📷 صورة قيد الإضافة';
  color: rgba(255,255,255,0.35);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 20px;
}

.gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  padding: 20px 16px 14px;
  transform: translateY(100%);
  transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}

.gallery-overlay span {
  color: white;
  font-size: 13px;
  font-weight: 700;
}

/* ============== FEATURES ============== */
.features {
  background: white;
}

.features-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.feature-item:hover {
  background: var(--off-white);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.feature-icon svg { width: 22px; height: 22px; }

.feature-item h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 6px;
}

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

.features-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.features-img-wrap img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.features-img-wrap.placeholder {
  width: 100%;
  height: 450px;
  background: linear-gradient(135deg, var(--off-white), #dbeafe);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
}

.features-img-wrap.placeholder::after {
  content: '🖼️ صورة المركز\nقيد الإضافة';
  white-space: pre;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.8;
}

.features-img-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: var(--primary);
  color: white;
  padding: 16px 20px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.badge-number {
  font-size: 28px;
  font-weight: 900;
}

.badge-label {
  font-size: 12px;
  opacity: 0.85;
}

/* ============== WHATSAPP FORM ============== */
.whatsapp-form-section {
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.whatsapp-form-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xl);
}

.form-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-header h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-dark);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(26,58,108,0.08);
}

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

.btn-wa-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--wa-green), var(--wa-dark));
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(37,211,102,0.3);
}

.btn-wa-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(37,211,102,0.4);
}

.contact-info-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contact-card h4 {
  color: white;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.contact-item:last-child { border-bottom: none; }

.ci-icon {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.ci-icon svg { width: 20px; height: 20px; }
.ci-icon.whatsapp { background: var(--wa-green); }
.ci-icon.location { background: rgba(232,160,32,0.4); }

.contact-item span {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  display: block;
}

.contact-item a {
  font-size: 17px;
  font-weight: 700;
  color: white;
  transition: var(--transition);
}

.contact-item a:hover { color: var(--accent-light); }
.contact-item p { color: white; font-weight: 600; font-size: 15px; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255,255,255,0.15);
}

/* ============== FOOTER ============== */
.footer {
  background: var(--primary-dark);
  color: white;
}

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

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

.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-main { color: white; }
.footer-brand .logo-sub { color: rgba(255,255,255,0.5); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.8; }

.footer-links-col h5,
.footer-contact-col h5 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-links-col a,
.footer-contact-col a,
.footer-contact-col p {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  padding: 4px 0;
  transition: var(--transition);
}

.footer-links-col a:hover,
.footer-contact-col a:hover { color: var(--accent-light); }

.footer-bottom {
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* ============== FLOATING BUTTONS ============== */
.floating-btns {
  position: fixed;
  bottom: 32px;
  left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.float-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
  position: relative;
}

.float-btn svg { width: 24px; height: 24px; }

.float-btn.call {
  background: var(--primary);
  color: white;
}

.float-btn.whatsapp {
  background: var(--wa-green);
  color: white;
}

.float-btn:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 8px 28px rgba(0,0,0,0.3);
}

.float-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  background: var(--primary-dark);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.float-tooltip::after {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right-color: var(--primary-dark);
}

.float-btn:hover .float-tooltip { opacity: 1; }

/* ============== ANIMATIONS ============== */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-stats { margin: 0 auto; }
  .hero-visual { order: -1; }
  .tv-screen { width: 300px; }
  .badge-top { right: -10px; }
  .badge-bottom { left: -10px; }
  .features-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 72px; left: 0; right: 0; background: white; flex-direction: column; padding: 20px 24px; box-shadow: var(--shadow-lg); gap: 4px; }
  .nav-links.open { display: flex; }
  .btn-call-nav span { display: none; }
  .hamburger { display: flex; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.large { grid-row: span 1; aspect-ratio: 4/3; }
  .contact-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .hero-stats { gap: 16px; padding: 16px 20px; }
  .tv-screen { width: 260px; }
  .floating-btns { bottom: 24px; left: 16px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.large { grid-row: span 1; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn-primary, .btn-secondary { justify-content: center; }
  .hero-stats { flex-direction: column; gap: 8px; }
  .stat-divider { width: 60px; height: 1px; }
  .whatsapp-form-card { padding: 24px 20px; }
}

/* حاوية الكرت الأساسية */
.single-photo-card {
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    margin-bottom: 20px;
    max-width: 400px; /* يمكنك التحكم في عرض الكرت من هنا */
    border: 1px solid #eee;
    transition: 0.3s;
}

/* إطار الصورة المخصص لمنع القص */
.photo-frame {
    width: 100%;
    height: 250px; /* ارتفاع ثابت للكرت */
    background-color: #f8f9fa; /* خلفية هادئة لملء الفراغات */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* السر في ظهور الصورة كاملة */
.photo-frame img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* يضمن عدم قص أي جزء من الصورة */
    display: block;
}

/* منطقة النص تحت الصورة */
.photo-caption {
    padding: 15px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #f1f1f1;
}

.photo-caption h4 {
    margin: 0;
    color: #2563eb;
    font-size: 18px;
}