@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* Typography and Custom Base Styles */
body {
  font-family: 'Tajawal', sans-serif;
  scroll-behavior: smooth;
  background-color: #ffffff;
  color: #1e293b;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cairo', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #171923;
}
::-webkit-scrollbar-thumb {
  background: #f47a20;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffb300;
}

/* Header Sticky / Shrink Effect */
header.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background-color: rgba(23, 25, 35, 0.98);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.3);
}

/* Custom Nav Link Underline Hover Effect */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  right: 0;
  background-color: #f47a20;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}
.nav-link.active::after {
  width: 100%;
}

/* Button Premium styling */
.btn-primary-accent {
  background: linear-gradient(135deg, #f47a20 0%, #ffb300 100%);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn-primary-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ffb300 0%, #f47a20 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.5s ease;
}
.btn-primary-accent:hover::before {
  opacity: 1;
}
.btn-primary-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(244, 122, 32, 0.4);
}

/* Card Zoom & Reveal Effects */
.hover-zoom-container {
  overflow: hidden;
}
.hover-zoom-img {
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.hover-zoom-container:hover .hover-zoom-img {
  transform: scale(1.1);
}

/* Services Card Accents */
.service-card {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border-bottom: 3px solid transparent;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-bottom-color: #f47a20;
}
.service-card-icon {
  transition: all 0.3s ease;
}
.service-card:hover .service-card-icon {
  transform: rotateY(180deg);
  background-color: #f47a20;
  color: white;
}

/* Project Hover Overlay */
.project-card {
  position: relative;
  overflow: hidden;
}
.project-overlay {
  background: linear-gradient(to top, rgba(23, 25, 35, 0.95) 0%, rgba(23, 25, 35, 0.4) 100%);
  opacity: 0;
  transition: all 0.4s ease;
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-card:hover .project-details {
  transform: translateY(0);
}
.project-details {
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Text Accent Lines */
.section-subtitle {
  position: relative;
  display: inline-block;
  padding-right: 1.5rem;
}
.section-subtitle::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 2px;
  background-color: #f47a20;
}

/* Floating Animation */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.animate-float {
  animation: float 4s ease-in-out infinite;
}

/* Back to Top Button */
#backToTop {
  transition: all 0.3s ease;
  z-index: 99;
}
#backToTop:hover {
  background-color: #ffb300;
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(255, 179, 0, 0.4);
}

/* RTL Specific Tweaks */
.dir-rtl {
  direction: rtl;
}

/* Grid & Layout Adjustments */
@media (max-width: 768px) {
  .hero-heading {
    font-size: 2.25rem !important;
    line-height: 1.25 !important;
  }
}

/* Hero Slider Styles */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 10;
}
/* Slide Content Animation */
.hero-slide .slide-content > * {
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.8s ease;
}
.hero-slide.active .slide-content > * {
  transform: translateY(0);
  opacity: 1;
}
/* Animation delays for premium feel */
.hero-slide.active .slide-content > *:nth-child(1) { transition-delay: 0.2s; }
.hero-slide.active .slide-content > *:nth-child(2) { transition-delay: 0.4s; }
.hero-slide.active .slide-content > *:nth-child(3) { transition-delay: 0.6s; }
.hero-slide.active .slide-content > *:nth-child(4) { transition-delay: 0.8s; }

/* ========================================== */
/* NEW MULTI-PAGE STYLES                      */
/* ========================================== */

/* Page Hero Banner - Simple & Professional (No Bottom Shadow/Fade) */
.page-hero {
  position: relative;
  background-color: #171923; /* brand-dark */
  overflow: hidden;
}
.page-hero-overlay {
  background: linear-gradient(135deg, rgba(15, 16, 23, 0.75) 0%, rgba(23, 25, 35, 0.5) 100%);
}
.breadcrumb-simple {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #cbd5e1; /* slate-300 */
}
.breadcrumb-simple a {
  transition: color 0.3s ease;
}
.breadcrumb-simple a:hover {
  color: #f47a20;
}

/* Counter Section */
.counter-item {
  text-align: center;
}
.counter-value {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Clients Marquee */
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee-track {
  display: flex;
  animation: marquee-scroll 35s linear infinite;
  width: max-content;
}
.marquee-track:hover {
  animation-play-state: paused;
}
[dir="rtl"] .marquee-track {
  animation-name: marquee-scroll-rtl;
}
@keyframes marquee-scroll-rtl {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

/* Project Filter */
.filter-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid;
  transition: all 0.3s ease;
  cursor: pointer;
  font-family: 'Cairo', sans-serif;
}
.filter-btn.active {
  background-color: #f47a20;
  border-color: #f47a20;
  color: white;
}
.filter-btn:not(.active) {
  background-color: transparent;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.7);
}
.filter-btn:not(.active):hover {
  border-color: #f47a20;
  color: #f47a20;
}

/* Project Filter Card Animation */
.project-filter-card {
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.project-filter-card.hidden-filter {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}

/* Service Detail Sections (Alternating Layout) */
.service-detail:nth-child(even) {
  background-color: #f8fafc;
}

/* Vision / Mission Cards */
.vision-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.vision-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

/* Why Choose Us Cards */
.why-card {
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.why-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(244, 122, 32, 0.15);
}
.why-card:hover .why-card-icon {
  background-color: #f47a20;
  color: white;
  transform: scale(1.1);
}
.why-card-icon {
  transition: all 0.3s ease;
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-on-scroll.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.reveal-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.reveal-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.reveal-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.reveal-on-scroll:nth-child(6) { transition-delay: 0.5s; }

/* Google Maps Container */
.map-container {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
}

/* Working Hours */
.hours-item {
  transition: background-color 0.3s ease;
}
.hours-item:hover {
  background-color: rgba(244, 122, 32, 0.05);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 6rem;
  left: 1.5rem;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 98;
  transition: all 0.3s ease;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Process Steps */
.process-step {
  position: relative;
}
.process-step::after {
  content: '';
  position: absolute;
  top: 2rem;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, #f47a20, transparent);
}
.process-step:last-child::after {
  display: none;
}
@media (max-width: 768px) {
  .process-step::after {
    display: none;
  }
}

/* HSE Badge */
.hse-badge {
  transition: all 0.3s ease;
}
.hse-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(244, 122, 32, 0.2);
}

/* Project Card Image Slider */
.project-image-slider .slide {
  transition: opacity 0.5s ease-in-out;
}
.project-image-slider .slider-dot {
  cursor: pointer;
  transition: all 0.3s ease;
}
.project-image-slider .slider-dot:hover {
  background-color: #ffffff;
}

