﻿:root {
  --brand-primary: #1f6feb;
  --brand-white: #ffffff;
  --brand-secondary: #64b5ff;
  --brand-dark: #081a33;
  --brand-muted: #6e7fa0;
  --brand-light: #f2f6ff;
  --text-primary: #0a1c33;
  --text-secondary: #516285;
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(12, 32, 74, 0.08);
  --transition-base: all 0.4s ease;
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  background-color: var(--brand-white);
  color: var(--text-primary);
  line-height: 1.8;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(207, 223, 255, 0.9), rgba(230, 241, 255, 0.45));
  z-index: -2;
}

.app-wrapper {
  width: 100%;
  margin: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: none;
  overflow: visible;
}

.navbar {
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(8, 24, 58, 0.1);
  border-bottom: 1px solid rgba(8, 24, 58, 0.08);
}

.navbar-brand {
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--brand-primary) !important;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  transform: translateX(80px);
  opacity: 0;
  animation: brandSlideIn 0.9s ease forwards;
}

.brand-logo img {
  height: 48px;
  width: auto;
  display: block;
}

.page-preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(7, 18, 41, 0.95), rgba(7, 18, 41, 0.85));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.page-preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  animation: preloaderFloat 2s ease-in-out infinite;
}

.preloader-ring {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  position: relative;
}

.preloader-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--brand-secondary);
  border-right-color: var(--brand-primary);
  animation: preloaderSpin 1.6s linear infinite;
}

.preloader-logo img {
  width: 70px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.preloader-content p {
  font-family: 'Cairo', sans-serif;
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.nav-link {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: navRise 0.8s ease forwards;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: 0;
  background: linear-gradient(
    120deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: translateX(0);
}

.navbar-nav .nav-item:nth-child(1) .nav-link {
  animation-delay: 0.2s;
}

.navbar-nav .nav-item:nth-child(2) .nav-link {
  animation-delay: 0.3s;
}

.navbar-nav .nav-item:nth-child(3) .nav-link {
  animation-delay: 0.4s;
}

.navbar-nav .nav-item:nth-child(4) .nav-link {
  animation-delay: 0.5s;
}

.navbar-nav .nav-item:nth-child(5) .nav-link {
  animation-delay: 0.6s;
}

.language-switch .btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.15rem 0.75rem;
  backdrop-filter: blur(10px);
  transition: var(--transition-base);
}

.language-switch .btn.active {
  background: linear-gradient(
    120deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  color: #101010;
  font-weight: 700;
}

.hero-section {
  min-height: 95vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: #071529;
}

.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(7, 18, 41, 0.9), rgba(7, 18, 41, 0.55));
  z-index: 1;
}

.hero-section > .container-fluid {
  position: relative;
  z-index: 3;
}

.hero-content {
  background: rgba(7, 18, 41, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2.5rem;
  color: #ffffff;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(8px);
}

.hero-content h1,
.hero-content .stat-number {
  color: #ffffff;
}

.hero-content .lead {
  color: rgba(255, 255, 255, 0.85);
}

.hero-content .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

.hero-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.6s ease, transform 6s ease;
}

.hero-bg-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-content h1 {
  font-size: clamp(2.5rem, 4.8vw, 4.2rem);
  font-weight: 800;
}

.hero-content .lead {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.hero-visual {
  position: relative;
}

.hero-visual::after {
  content: '';
  position: absolute;
  inset: -15%;
  border-radius: 40%;
  background: radial-gradient(circle, rgba(31, 111, 235, 0.2), transparent 70%);
  animation: pulse 8s infinite;
  z-index: -1;
}

.floating-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.floating-card {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(31, 111, 235, 0.18);
  backdrop-filter: blur(12px);
  text-align: center;
  box-shadow: 0 12px 30px rgba(8, 35, 82, 0.15);
  color: var(--text-primary);
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(even) {
  animation-duration: 7s;
  animation-delay: 1s;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section-title {
  color: var(--brand-primary);
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.section-heading {
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 45px rgba(8, 24, 58, 0.1);
}

.about-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.6);
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.product-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 56, 0.08);
  border-radius: 22px;
  padding: 1.5rem;
  height: 100%;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(255, 255, 255, 0.08),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(15, 23, 56, 0.18);
}

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

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

.gallery-item {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 56, 0.1);
  background: #ffffff;
  aspect-ratio: 4 / 3;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.18);
  transition: transform 0.5s ease;
}

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

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

.gallery-empty {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px dashed rgba(15, 23, 56, 0.2);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 12, 24, 0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1050;
}

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

.lightbox-backdrop {
  position: absolute;
  inset: 0;
}

.lightbox-dialog {
  position: relative;
  max-width: min(90vw, 1100px);
  max-height: 90vh;
  border-radius: 24px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  padding: 1rem;
  animation: upscale 0.35s ease;
}

.lightbox-dialog img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 18px;
}

.lightbox-close {
  position: absolute;
  top: 0.5rem;
  inset-inline-end: 0.5rem;
  z-index: 2;
  filter: invert(1);
}

@keyframes upscale {
  from {
    transform: scale(0.9);
    opacity: 0.6;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.contact-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 56, 0.08);
  padding: 2rem;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.contact-card .form-control {
  background: var(--brand-light);
  border: 1px solid rgba(15, 23, 56, 0.1);
  border-radius: 14px;
  color: var(--text-primary);
}

.contact-card .form-control:focus {
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 0.25rem rgba(31, 111, 235, 0.2);
  background: #fff;
}

.contact-card form {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-card form > .row {
  flex: 1;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(31, 111, 235, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-primary);
  font-size: 1.4rem;
  flex-shrink: 0;
}

.contact-info-title {
  font-weight: 700;
  margin-bottom: 0.15rem;
  color: var(--text-primary);
}

.ltr-number {
  direction: ltr;
  unicode-bidi: bidi-override;
  font-family: 'Poppins', 'Cairo', sans-serif;
  letter-spacing: 0.04em;
  display: inline-block;
}

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.contact-social-link {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: #fff;
  border: 1px solid transparent;
  transition: var(--transition-base);
  background: var(--brand-primary);
}

.contact-social-link i {
  line-height: 1;
}

.contact-social-link:hover,
.contact-social-link:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(8, 24, 58, 0.15);
  text-decoration: none;
  outline: none;
}

.contact-social-link:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9),
    0 0 0 5px rgba(31, 111, 235, 0.35);
}

.social-link--whatsapp {
  background: #25d366;
  border-color: #1da851;
}

.social-link--whatsapp:hover,
.social-link--whatsapp:focus-visible {
  background: #1fa855;
  border-color: #1a8d49;
}

.social-link--facebook {
  background: #1877f2;
  border-color: #0f5ad0;
}

.social-link--facebook:hover,
.social-link--facebook:focus-visible {
  background: #0f5ad0;
  border-color: #0c4bb0;
}

.social-link--linkedin {
  background: #0a66c2;
  border-color: #084b8a;
}

.social-link--linkedin:hover,
.social-link--linkedin:focus-visible {
  background: #084f94;
  border-color: #063866;
}

.map-wrapper {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 56, 0.08);
  box-shadow: 0 35px 65px rgba(15, 23, 42, 0.25);
}

iframe {
  border: none;
}

footer {
  background: #f5f6fb;
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(15, 23, 56, 0.08);
}

footer .social-link {
  width: 45px;
  height: 45px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 56, 0.2);
  color: var(--text-primary);
  transition: var(--transition-base);
}

footer .social-link:hover {
  background: linear-gradient(
    120deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  color: #101010;
  border-color: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.btn-gradient {
  background: linear-gradient(
    120deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  color: #101010;
  border: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 15px 35px rgba(31, 111, 235, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gradient:hover {
  transform: translateY(-2px);
  color: #101010;
  box-shadow: 0 20px 45px rgba(31, 111, 235, 0.4);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-label {
  color: var(--brand-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

.divider {
  width: 80px;
  height: 3px;
  border-radius: 8px;
  background: linear-gradient(
    120deg,
    var(--brand-primary),
    var(--brand-secondary)
  );
  display: inline-block;
}

.form-check-input:checked {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
}

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

@keyframes brandSlideIn {
  from {
    opacity: 0;
    transform: translateX(80px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes navRise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

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

@keyframes pulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

@media (max-width: 992px) {
  .hero-section {
    padding-top: 5rem;
  }

  .glass-panel {
    padding: 2rem;
  }
}

@media (max-width: 576px) {
  .language-switch .btn {
    padding: 0.25rem 0.65rem;
  }

  .hero-section {
    min-height: 75vh;
  }
}

