/* styles.css */

/* Global Resets */
html {
  scroll-behavior: smooth;
}

body {
  /* Exact site.sa dark background */
  font-family: 'NeoSansArabic', sans-serif;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0f172a;
}

::-webkit-scrollbar-thumb {
  background: #7efcee;
  border-radius: 0;
}

/* Utilities */
.glass-nav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hero-overlay {
  background: linear-gradient(180deg,
      rgba(0, 60, 60, 0.4),
      rgba(0, 40, 40, 0.75));
}



/* Card Styles */
.site-card {
  border-radius: 0;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.site-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.btn-site {
  background-color: #ffffff;
  color: #000;
  font-weight: bold;
  border-radius: 0;
  padding: 10px 24px;
  transition: all 0.3s ease;
}

.btn-site-primary {
  background-color: #7efcee;
  color: #000;
  font-weight: bold;
  border-radius: 0;
  padding: 10px 24px;
  transition: all 0.3s ease;
}

.btn-site:hover {
  background-color: #7efcee;
  color: #000;
}

.btn-site-outline {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  font-weight: bold;
  border-radius: 0;
  padding: 10px 24px;
  transition: all 0.3s ease;
}

.btn-site-outline:hover {
  background-color: #ffffff;
  color: #0f172a;
}

/* Logo Slider */
.logo-slider {
  overflow: hidden;
  position: relative;
  padding: 20px 0;
}

.logo-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll 40s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Flip Card Styles */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 300px;
  perspective: 1000px;
  cursor: pointer;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 0;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  /* Gray-200 */
}

.flip-card-front {
  color: #0f172a;
}

.flip-card-back {
  /* Brand Primary */
  color: #000;
  transform: rotateY(180deg);
}

/* Dark mode adjustments */

/* Swiper Smooth Scroll */
.swiper-wrapper {
  transition-timing-function: linear !important;
}

/* Preloader Styles */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #001826;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-bar {
  width: 150px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.loading-progress {
  width: 100%;
  height: 100%;
  background-color: #7efcee;
  /* Brand Accent */
  animation: loading 1.5s infinite ease-in-out;
  transform-origin: left;
}

@keyframes loading {
  0% {
    transform: translateX(-100%);
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(100%);
  }
}