:root {
  --primary-blue: #0a1a35;
  --accent-red: #e30613;
  --metallic-silver: #e8e8e8;
  --dark-gray: #333333;
}

body {
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
  margin: 0;
}

[dir="rtl"] {
  direction: rtl;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.7;
}

.hero-overlay {
  background: linear-gradient(
    90deg,
    rgba(10, 26, 53, 0.9) 0%,
    rgba(10, 26, 53, 0.7) 100%
  );
}

.world-map {
  background-image: url("https://images.pexels.com/photos/5905709/pexels-photo-5905709.jpeg");
  background-size: cover;
  background-position: center;
}

.feature-icon {
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: translateY(-5px) scale(1.05);
  color: var(--accent-red);
}

.testimonial-slide {
  transition: all 0.5s ease;
  opacity: 0;
}

.testimonial-slide.active {
  opacity: 1;
}

.product-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.product-card img {
  transition: transform 0.5s ease;
}

.product-card:hover img {
  transform: scale(1.1);
}

.product-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.product-card:hover::after {
  left: 100%;
}

.product-card .text-content {
  transition: all 0.3s ease;
}

.product-card:hover .text-content {
  transform: translateY(-5px);
}

.faq-item {
  transition: all 0.3s ease;
}

.faq-item.active {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

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

.faq-item.active .faq-answer {
  max-height: 300px; /* Adjust based on content */
}

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

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.contact-card {
  transition: all 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.form-input,
.form-textarea {
  transition: all 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 8px rgba(227, 6, 19, 0.2);
}

.map-container {
  transition: all 0.3s ease;
}

.map-container:hover {
  transform: scale(1.02);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  transition: transform 0.5s ease;
}

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

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 8px;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

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

.animate-pulse-slow {
  animation: pulseSlow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulseSlow {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.8;
  }
}

.language-switcher {
  transition: all 0.3s ease;
}

.language-switcher:hover {
  transform: scale(1.05);
}

.language-menu {
  width: 120px;
}

.scroll-down {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

.counter-item {
  transition: all 0.5s ease;
}

.counter-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.navbar {
  transition: all 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-menu {
  transition: transform 0.3s ease;
}

.mobile-menu.hidden {
  transform: translateX(-100%);
}

.brand-image {
  transition: transform 0.3s ease;
}

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

.certification-logo {
  transition: all 0.3s ease;
}

.certification-logo:hover {
  transform: scale(1.05);
  opacity: 1;
}

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

.pulse {
  animation: pulse 2s infinite;
}

.footer-link {
  position: relative;
}

.footer-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: white;
  transition: width 0.3s ease;
}

.footer-link:hover::after {
  width: 100%;
}

.sidebar {
  transition: transform 0.3s ease;
}

.sidebar.hidden {
  transform: translateX(-100%);
}

.button {
  position: relative;
  overflow: hidden;
}

.button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.3s ease;
}

.button:hover::after {
  left: 100%;
}

/* Gallery Overlay for Gallery Page */
.gallery-item {
  position: relative;
}

.gallery-overlay {
  background: rgba(0, 0, 0, 0.6);
}

.gallery-item:hover .gallery-overlay {
  opacity: 1 !important;
}

.gallery-item img {
  transition: transform 0.3s ease;
}

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

/* Responsive Adjustments */

/* Tablets (≤ 1024px) */
@media (max-width: 1024px) {
  .navbar {
    padding: 1rem 1.5rem;
  }

  .hero-section {
    height: 80vh;
  }

  h1 {
    font-size: 2.5rem;
  }

  p {
    font-size: 1rem;
  }

  .gallery-item {
    margin-bottom: 1.5rem;
  }

  .grid {
    gap: 1.5rem;
  }

  .gallery-item img {
    height: 200px;
  }
}

/* Mobile Devices (≤ 768px) */
@media (max-width: 768px) {
  /* Hide Desktop Navbar Links and Get a Quote Button */
  .desktop-nav {
    display: none !important;
  }

  .navbar .get-quote-button {
    display: none;
  }

  /* Ensure Sidebar Toggle Button (Hamburger Icon) is Visible */
  .sidebar-toggle {
    display: block !important;
  }

  /* Sidebar Styling for Mobile */
  .sidebar {
    width: 200px;
    transform: translateX(-100%);
  }

  .sidebar:not(.hidden) {
    transform: translateX(0);
  }

  /* Adjust Hero Section */
  .hero-section {
    height: 70vh;
  }

  h1 {
    font-size: 2rem;
  }

  p {
    font-size: 0.9rem;
  }

  /* Stack Grids Vertically */
  .grid {
    grid-template-columns: 1fr !important;
    gap: 1rem;
  }

  .gallery-item {
    margin-bottom: 1rem;
  }

  .gallery-item img {
    height: 180px;
  }

  /* Adjust Lightbox for Mobile */
  .lightbox img {
    max-height: 70%;
  }

  .lightbox-nav {
    font-size: 1.5rem;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }

  .lightbox-close {
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
  }

  /* Adjust Footer */
  footer .grid {
    grid-template-columns: 1fr !important;
  }

  footer h3 {
    font-size: 1.25rem;
  }

  footer p,
  footer ul li {
    font-size: 0.875rem;
  }

  /* CTA Section */
  .cta-section .flex {
    flex-direction: column;
    gap: 1rem;
  }

  .cta-section button,
  .cta-section a {
    width: 100%;
    text-align: center;
  }

  /* Modal Adjustments */
  #quote-modal .max-w-md {
    width: 90%;
    padding: 1.5rem;
  }
}

/* Small Mobile Devices (≤ 480px) */
@media (max-width: 480px) {
  .navbar {
    padding: 0.75rem 1rem;
  }

  .hero-section {
    height: 60vh;
  }

  h1 {
    font-size: 1.75rem;
  }

  p {
    font-size: 0.85rem;
  }

  .gallery-item img {
    height: 150px;
  }

  .button {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  footer p,
  footer ul li {
    font-size: 0.8rem;
  }

  .lightbox img {
    max-height: 60%;
  }

  .lightbox-nav {
    font-size: 1.2rem;
  }

  .lightbox-close {
    font-size: 1.2rem;
  }
}
