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

:root {
  --brand-blue: #0038B8;
  --brand-blue-dark: #002B8F;
  --brand-blue-light: #1A54D6;
  --brand-blue-50: #EEF4FF;
  --brand-orange: #FF6B35;
  --brand-orange-hover: #E85520;
  --brand-orange-light: #FF8A5C;
  --brand-orange-50: #FFF5F0;
  --bg-main: #FFFFFF;
  --bg-alt: #F8FAFC;
  --text-dark: #0F172A;
  --text-muted: #475569;
}

html {
  scroll-behavior: smooth;
  font-family: 'Cairo', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #F1F5F9;
}
::-webkit-scrollbar-thumb {
  background: #94A3B8;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-blue);
}

/* Brand Colors Classes */
.bg-brand-blue {
  background-color: var(--brand-blue);
}
.bg-brand-blue-dark {
  background-color: var(--brand-blue-dark);
}
.text-brand-blue {
  color: var(--brand-blue);
}
.border-brand-blue {
  border-color: var(--brand-blue);
}

.bg-brand-orange {
  background-color: var(--brand-orange);
}
.bg-brand-orange-hover:hover {
  background-color: var(--brand-orange-hover);
}
.text-brand-orange {
  color: var(--brand-orange);
}
.border-brand-orange {
  border-color: var(--brand-orange);
}

/* Glass & Card Effects */
.glass-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-hover-effect {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.card-hover-effect:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 56, 184, 0.08), 0 8px 10px -6px rgba(0, 56, 184, 0.05);
}

/* Subtle Geometric Pattern for Industrial / Engineering Vibe */
.hvac-pattern {
  background-image: radial-gradient(rgba(0, 56, 184, 0.06) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Pulse badge animation */
@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.5);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 10px rgba(255, 107, 53, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

.pulse-badge {
  animation: pulse-ring 2.5s infinite;
}

/* Marquee for Partners */
@keyframes marquee {
  0% { transform: translateX(0%); }
  100% { transform: translateX(50%); }
}

.animate-marquee {
  display: flex;
  width: 200%;
  animation: marquee 25s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

/* Active tab state */
.tab-btn.active {
  background-color: var(--brand-blue);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 56, 184, 0.28);
}

/* Arabic Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: normal !important;
}

/* UIverse Folding Corner Button (ferlagher/afraid-dingo-99) in Brand Orange */
.btn-fold-orange {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  background-color: var(--brand-orange, #FF6B35);
  color: #FFFFFF !important;
  text-decoration: none;
  border: none;
  border-radius: 0.5em;
  font-weight: 700;
  box-shadow: 0.35em 0.35em 0.5em rgba(255, 107, 53, 0.32), 0.15em 0.15em 0.3em rgba(0, 0, 0, 0.12);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  --fold-bg: #FFFFFF;
}

.btn-fold-orange::before {
  position: absolute;
  content: '';
  height: 0;
  width: 0;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--fold-bg, #FFFFFF) 0%, var(--fold-bg, #FFFFFF) 50%, #B83A09 50%, #D84B18 60%, #FF6B35 100%);
  border-radius: 0 0 0.5em 0;
  box-shadow: 0.2em 0.2em 0.25em rgba(0, 0, 0, 0.28);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
  pointer-events: none;
}

.btn-fold-orange:hover::before {
  width: 1.6em;
  height: 1.6em;
}

.btn-fold-orange:active {
  box-shadow: 0.2em 0.2em 0.3em rgba(0, 0, 0, 0.25);
  transform: translate(0.1em, 0.1em);
}

/* Background adaptations for folding cutout corner */
footer .btn-fold-orange,
.bg-slate-950 .btn-fold-orange {
  --fold-bg: #020617;
}

.bg-slate-900 .btn-fold-orange {
  --fold-bg: #0F172A;
}

.bg-brand-blue .btn-fold-orange,
.from-brand-blue .btn-fold-orange,
section.bg-gradient-to-r .btn-fold-orange {
  --fold-bg: #0738a5;
}

/* UIverse Sliding Pill Button (ICX40/weak-turtle-25) in Brand Blue */
.btn-turtle-blue {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-weight: 700;
  color: var(--brand-blue, #0038B8);
  border: 2px solid var(--brand-blue, #0038B8);
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 56, 184, 0.15);
  transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
  text-decoration: none;
  cursor: pointer;
  background-color: transparent;
}

.btn-turtle-blue .btn-turtle-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #ffffff;
  background-color: var(--brand-blue, #0038B8);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.btn-turtle-blue:hover .btn-turtle-slide,
.btn-turtle-blue.group:hover .group-hover\:translate-x-0 {
  transform: translateX(0);
}

.btn-turtle-blue .btn-turtle-text {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--brand-blue, #0038B8);
  transition: transform 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.btn-turtle-blue:hover .btn-turtle-text,
.btn-turtle-blue.group:hover .group-hover\:translate-x-full {
  transform: translateX(100%);
}

.btn-turtle-blue .btn-turtle-spacer {
  position: relative;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ==========================================================================
   Navigation Links & Small Orange Active Indicator
   ========================================================================== */
.nav-link {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 2px 10px 2px;
  color: #334155;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 26px;
  height: 3.5px;
  background-color: var(--brand-orange, #FF6B35);
  border-radius: 9999px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  opacity: 0;
  transform-origin: center;
  pointer-events: none;
}

.nav-link:hover {
  color: var(--brand-blue, #0038B8);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 0.55;
}

.nav-link.active {
  color: var(--brand-blue, #0038B8) !important;
  font-weight: 700;
}

.nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.4);
}

/* Mobile Navigation Active Indicator */
.mobile-nav-link {
  position: relative;
  transition: all 0.2s ease;
}

.mobile-nav-link.active {
  color: var(--brand-blue, #0038B8) !important;
  font-weight: 800;
  border-right: 4px solid var(--brand-orange, #FF6B35);
  padding-right: 0.75rem;
  background: linear-gradient(to left, rgba(255, 107, 53, 0.08), transparent);
  border-radius: 0 8px 8px 0;
}

/* ==========================================================================
   Hero Banner Slideshow
   ========================================================================== */
.hero-slider {
  position: relative;
  width: 100%;
  min-height: 560px;
  overflow: hidden;
  background-color: #020617;
}

@media (min-width: 640px) {
  .hero-slider {
    min-height: 620px;
  }
}

@media (min-width: 1024px) {
  .hero-slider {
    min-height: 680px;
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  z-index: 1;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 7s cubic-bezier(0.25, 1, 0.5, 1);
}

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

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(2, 6, 23, 0.95) 0%,
    rgba(2, 6, 23, 0.85) 45%,
    rgba(2, 6, 23, 0.55) 75%,
    rgba(2, 6, 23, 0.35) 100%
  );
  z-index: 2;
}

@media (max-width: 768px) {
  .hero-slide-overlay {
    background: linear-gradient(
      to bottom,
      rgba(2, 6, 23, 0.85) 0%,
      rgba(2, 6, 23, 0.92) 50%,
      rgba(2, 6, 23, 0.98) 100%
    );
  }
}

.hero-slide-content {
  position: relative;
  z-index: 3;
  opacity: 0;
  transform: translateY(22px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.hero-slide.active .hero-slide-content {
  opacity: 1;
  transform: translateY(0);
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.35);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: none;
  padding: 0;
}

.slide-dot:hover {
  background-color: rgba(255, 255, 255, 0.75);
}

.slide-dot.active {
  width: 36px;
  background-color: var(--brand-orange, #FF6B35);
  box-shadow: 0 0 14px rgba(255, 107, 53, 0.7);
}

.slider-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
}

.slider-nav-btn:hover {
  background-color: var(--brand-blue, #0038B8);
  border-color: var(--brand-blue, #0038B8);
  transform: scale(1.08);
}

