/* ===== Google Font ===== */
@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@100..900&display=swap');

/* ===== CSS Custom Properties ===== */
:root {
  --primary: #0080BD;
  --primary-light: #33a3d4;
  --primary-dark: #006a9e;
  --secondary: #262262;
  --secondary-light: #3a3680;
  --accent: #00c9a7;
  --white: #ffffff;
  --off-white: #f8fafb;
  --gray-50: #f0f4f8;
  --gray-100: #e1e8ed;
  --gray-200: #c8d3dc;
  --gray-400: #8a9bae;
  --gray-600: #5a6b7d;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 60px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Alexandria', sans-serif;
  direction: rtl;
  text-align: right;
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ===== Reveal Animations ===== */
.reveal {
  opacity: 0;
  transform: translateY(100px) scale(0.5) rotateX(15deg); /* Dramatic leap and tilt */
  filter: blur(30px) brightness(0.5); /* Strong blur and dark start */
  transition: 
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), 
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s ease-out;
  will-change: transform, opacity, filter;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0deg);
  filter: blur(0) brightness(1);
}
.reveal-delay-1 { transition-delay: 0.3s; }
.reveal-delay-2 { transition-delay: 0.8s; }
.reveal-delay-3 { transition-delay: 1.3s; }




/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
  background: white; /* Default to white for mobile/logic */
  box-shadow: var(--shadow-sm);
}

/* Initially transparent only on desktop hover/hero if needed, 
   but for now let's make it solid white on mobile as requested */
@media (min-width: 993px) {
  .navbar:not(.scrolled) {
    background: transparent;
    box-shadow: none;
  }
}


.navbar.scrolled {
  background: #ffffff !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo img {
  height: 44px;
  transition: var(--transition);
}
.navbar.scrolled .navbar-logo img {
  height: 38px;
}

/* Logo switching - Logical Fix */
/* logo-dark = الشعار الغامق (يستخدم على خلفية فاتحة) */
/* logo-light = الشعار الفاتح (يستخدم على خلفية غامقة) */
.navbar .logo-dark { display: block; }  /* Default: background is white now */
.navbar .logo-light { display: none; }

@media (min-width: 993px) {
  .navbar:not(.scrolled) .logo-dark { display: none; }
  .navbar:not(.scrolled) .logo-light { display: block; }
}


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

.navbar-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-800); /* Default for white background */
  position: relative;
  padding-bottom: 4px;
  transition: var(--transition);
}

@media (min-width: 993px) {
  .navbar:not(.scrolled) .navbar-links a {
    color: var(--white);
  }
}


.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}
.navbar-links a:hover::after {
  width: 100%;
}

.navbar-cta {
  background: var(--primary) !important;
  color: var(--white) !important;
  padding: 8px 24px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
  box-shadow: 0 4px 15px rgba(0,128,189,0.3);
}
.navbar-cta:hover {
  background: var(--primary-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,128,189,0.4) !important;
}
.navbar-cta::after { display: none !important; }

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  z-index: 1001;
}
.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--gray-800); /* Default for white background */
  border-radius: 4px;
  transition: var(--transition);
}

@media (min-width: 993px) {
  .navbar:not(.scrolled) .menu-toggle span {
    background: var(--white);
  }
}


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

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('image/image.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 80%, rgba(0,128,189,0.3) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(38,34,98,0.4) 0%, transparent 60%);
  z-index: 1;
}

/* Animated particles */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}
.hero-particles span {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}
@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
}

.hero-content {
  color: var(--white);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,0.15);
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}
.hero-title .highlight {
  color: #7dd3fc;
  -webkit-text-fill-color: #7dd3fc;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 50px;
  font-family: 'Tajawal', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--white);
  color: var(--secondary);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: #20bd5a;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
}

.btn-submit {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  padding: 16px 48px;
  font-size: 1.1rem;
  box-shadow: 0 6px 25px rgba(0,128,189,0.35);
  width: 100%;
}
.btn-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(0,128,189,0.45);
}

/* Hero Image */
.hero-image {
  position: relative;
}
.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-image-wrapper img,
.hero-image-wrapper video {
  width: 100%;
  height: 420px;
  object-fit: cover;
}
.hero-trust-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  padding: 12px 20px;
  border-top-left-radius: 20px;
  box-shadow: -5px -5px 25px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 5;
  pointer-events: none;
  animation: floatBadge 3s ease-in-out infinite;
  backdrop-filter: blur(10px);
  direction: rtl;
  border-left: 1px solid rgba(0, 128, 189, 0.1);
  border-top: 1px solid rgba(0, 128, 189, 0.1);
}

.hero-trust-badge .badge-icon {
  background: #e1f5fe;
  color: #0080BD;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 128, 189, 0.1);
}

.hero-trust-badge .badge-text {
  display: flex;
  flex-direction: column;
}

.hero-trust-badge .badge-title {
  font-family: 'Tajawal', sans-serif;
  font-weight: 800;
  font-size: 1rem;
  color: var(--secondary);
  line-height: 1.2;
}

.hero-trust-badge .badge-desc {
  font-family: 'Tajawal', sans-serif;
  font-size: 0.8rem;
  color: var(--gray-500);
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.hero-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(38,34,98,0.15));
  pointer-events: none;
}

/* Hero floating stats */
.hero-stat {
  position: absolute;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: floatStat 4s ease-in-out infinite;
}
.hero-stat:nth-child(2) { animation-delay: -1.5s; }

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

.hero-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.hero-stat-icon.blue { background: rgba(0,128,189,0.12); color: var(--primary); }
.hero-stat-icon.green { background: rgba(0,201,167,0.12); color: var(--accent); }

.hero-stat-text h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--secondary);
}
.hero-stat-text p {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
}

.stat-1 { bottom: -20px; right: -20px; }
.stat-2 { top: -20px; left: -20px; }

/* ===== Features Section ===== */
.features {
  padding: 120px 0;
  background: var(--off-white);
  position: relative;
  overflow: hidden;
}

/* Background blob for premium feel */
.features::after {
  content: '';
  position: absolute;
  top: 20%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 128, 189, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, var(--white), var(--off-white));
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,128,189,0.08);
  padding: 6px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}
.section-title {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--secondary);
  margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 560px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  z-index: 1;
}

/* Horizontal line removed as per user request */


.feature-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 60px 40px; 
  text-align: center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  /* The rotating border mechanism - Subtle/Light */
  border: 2px solid transparent; 
  background-clip: padding-box;
  z-index: 1;
  perspective: 1000px;
}

/* Base background to cover the center of the card - Subtle Inset */
.feature-card::after {
  content: '';
  position: absolute;
  inset: 2px; /* Matches border width */
  background: var(--white);
  border-radius: calc(var(--radius-xl) - 2px);
  z-index: -1;
  transition: var(--transition);
}

/* The Rotating Flash / Beam - Subtle/Light */
.feature-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    transparent, 
    rgba(0, 168, 255, 0.4), /* Lighter Blue */
    rgba(38, 34, 98, 0.4), 
    transparent 25%
  );
  animation: borderRotate 4s linear infinite; /* Normal speed */
  z-index: -2;
}


@keyframes borderRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Floating animation after reveal */
.feature-card.visible {
  animation: floatCard 5s ease-in-out infinite; 
}

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

.feature-card:hover {
  animation-play-state: paused;
  transform: translateY(-12px) scale(1.02); 
  box-shadow: 0 15px 35px rgba(0, 168, 255, 0.15); /* Softer neon glow */
}

.feature-card:hover::after {
  background: #fbfcfe;
}

/* Subtle Glowing light that orbits outside the card on hover */
.feature-card:hover::before {
  filter: brightness(1.2) blur(4px);
}



.feature-icon {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 32px;
  font-size: 2.2rem;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 2;
  background: var(--white);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.05);
}

/* Moving the circular decorative line to the icon - Enlarged */
.feature-icon::before {
  content: '';
  position: absolute;
  inset: -18px; /* Larger Ring */
  border: 2.5px dashed rgba(38, 34, 98, 0.5); /* Thicker Dashed Line */
  border-radius: 50%;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}


.feature-icon.icon-1 { color: var(--primary); background: rgba(0, 128, 189, 0.1); }
.feature-icon.icon-2 { color: var(--primary); background: rgba(0, 128, 189, 0.1); }
.feature-icon.icon-3 { color: var(--primary); background: rgba(0, 128, 189, 0.1); }


.feature-card:hover .feature-icon {
  transform: scale(1.15) translateY(-5px);
  background: var(--white);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.feature-card:hover .feature-icon::after {
  opacity: 1;
  inset: -12px;
}


.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
}
.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* ===== Products Section ===== */
.products {
  padding: 120px 0;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('image/image.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 1;
}

.product-card {
  background: var(--white);
  padding: 50px 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 10px 25px -10px rgba(0, 128, 189, 0.2);
}

.product-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gray-50);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background 0.3s ease, color 0.3s ease;
}

.product-card:hover .product-icon {
  background: var(--primary);
  color: var(--white);
}

.product-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 12px;
}

.product-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
  max-width: 250px;
}

/* Simple Entrance */
.products .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

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

/* Responsive Products */
@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ===== Form Section ===== */
.form-section {
  padding: 100px 0;
  background: var(--white);
  position: relative;
}


/* ===== Projects Gallery Section ===== */
.gallery {
  padding: 120px 0;
  background: var(--off-white);
  position: relative;
}

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

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--white);
  transition: var(--transition);
}

.gallery-image {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 128, 189, 0.9), transparent);
  display: flex;
  align-items: flex-end;
  padding: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
}

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

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

.gallery-info h3 {
  color: var(--white);
  font-size: 1.25rem;
  margin-bottom: 8px;
  font-weight: 800;
}

.gallery-info p {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.6;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* ===== Footer ===== */
.footer {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 0 24px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand img {
  height: 48px;
  margin-bottom: 16px;
}
.footer-brand p {
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
}
.footer-col a,
.footer-col p {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: var(--transition);
}
.footer-col a:hover {
  color: var(--white);
  transform: translateX(-4px);
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 20px;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
}
.footer-socials {
  display: flex;
  gap: 12px;
}
.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-socials a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
}

/* ===== Floating Actions ===== */
.floating-actions {
  position: fixed;
  bottom: 28px;
  left: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}
.fab:hover {
  transform: scale(1.1);
}
.fab-whatsapp {
  background: #25d366;
}
.fab-whatsapp:hover {
  box-shadow: 0 6px 25px rgba(37,211,102,0.5);
}

.fab-phone {
  background: var(--primary);
}
.fab-phone:hover {
  box-shadow: 0 6px 25px rgba(0,128,189,0.5);
}

.fab-save {
  background: var(--primary);
}
.fab-save:hover {
  box-shadow: 0 6px 25px rgba(0,128,189,0.5);
}

.fab {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fab .label {
  position: absolute;
  left: 70px;
  background: rgba(26, 32, 44, 0.9);
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  box-shadow: var(--shadow-md);
}

.fab:hover .label {
  opacity: 1;
  visibility: visible;
  transform: translateX(5px);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-content { order: 1; }
  .hero-image { order: 2; }
  .hero-subtitle {
    margin: 0 auto 40px;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-title { font-size: 2.8rem; }

  .features-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .form-wrapper {
    grid-template-columns: 1fr;
  }
  .form-info { text-align: center; }
  .form-benefits { align-items: center; }
  .form-benefit-item { text-align: right; }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-brand p { margin: 0 auto; }
  .footer-col a,
  .footer-col p {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: var(--white);
    padding: 80px 32px 32px;
    box-shadow: var(--shadow-xl);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
  }
  .navbar-links.active a {
    color: var(--gray-800) !important;
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
  }
  @keyframes slideIn {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
  }
  .menu-toggle { display: flex; }

  .hero-title { font-size: 2.2rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-image-wrapper img,
  .hero-image-wrapper video { height: 280px; }
  .hero-stat { display: none; }

  .section-title { font-size: 1.8rem; }

  .form-card { padding: 28px 20px; }
  .parts-grid { grid-template-columns: 1fr; }
  .radio-group { flex-direction: column; }

  .btn { padding: 12px 28px; font-size: 0.95rem; }
  .btn-submit { padding: 14px 36px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.8rem; }
  .hero-badge { font-size: 0.8rem; }
  .floating-actions {
    bottom: 16px;
    left: 16px;
  }
  .fab {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }
}

/* Mobile overlay */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 999;
}
.menu-overlay.active {
  display: block;
}

/* ===== Lightbox Modal ===== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2100;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  backdrop-filter: blur(8px);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 50px;
  color: var(--white);
  cursor: pointer;
  line-height: 1;
  transition: transform 0.3s ease, color 0.3s ease;
  z-index: 2201;
}

.lightbox-close:hover {
  transform: scale(1.2) rotate(90deg);
  color: var(--primary-light);
}

[dir='rtl'] .lightbox-close {
  left: 30px;
  right: auto;
}
