:where([class^="ri-"])::before {
  content: "\f3c2";
}

/* Prevent layout shifts */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Tajawal", sans-serif;
  overflow-x: hidden;
  position: relative;
  width: 100%;
}

/* Fix mobile menu container */
.nav-mobile-container {
  position: absolute;
  width: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  transform: translateY(0);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-mobile-container.hidden {
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
}

/* Prevent content shift when mobile menu opens */
@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }
  
  .nav-mobile-container {
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* Fix animations to prevent layout shifts */
.work-progress {
  width: 0;
  transition: width 0.6s ease;
  will-change: width;
}

.work-step {
  opacity: 0;
  will-change: opacity, transform;
}

@media (max-width: 1024px) {
  .work-progress {
    display: none;
  }
}

:root {
  --primary: #00CCFF;
  --secondary: #007FFF;
  --accent: #194CE5;
  --background: #000033;
}

.font-ar {
  font-family: "Tajawal", sans-serif;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.gradient-bg {
  background: linear-gradient(-45deg, #00CCFF, #007FFF, #194CE5, #000033);
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.btn-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 15px -3px rgba(0, 204, 255, 0.3),
    0 4px 6px -2px rgba(0, 204, 255, 0.2);
}

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

.service-card:hover {
  transform: translateY(-10px);
}

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

.service-card:hover .service-icon {
  transform: scale(1.1);
}

/* =============================================== */
/* Generic Tab System */
/* =============================================== */

.tab-content {
  position: relative;
}

.tab-pane {
  display: none !important;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.tab-pane.active {
  display: block !important;
  opacity: 1;
  transform: translateY(0);
}

/* =============================================== */
/* Why YAS Section Specific Styles */
/* =============================================== */

#why-yas .tab-content .tab-pane {
  display: none !important;
}

#why-yas .tab-content .tab-pane.active {
  display: block !important;
}

#why-yas .tab-button.active {
  background-color: var(--primary) !important;
  color: var(--background) !important;
  box-shadow: 0 4px 14px 0 rgba(0, 204, 255, 0.3);
  transform: translateY(-2px);
}

/* =============================================== */
/* Policies & Models Section Specific Styles */
/* =============================================== */

#policies-models .tab-content .tab-pane {
  display: none !important;
}

#policies-models .tab-content .tab-pane.active {
  display: block !important;
}

#policies-models .tab-btn {
  border-bottom: 4px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
  /* Ensure minimum visibility */
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

#policies-models .tab-btn.active {
  color: #00CCFF !important;
  border-color: #00CCFF !important;
  font-weight: bold !important;
  /* Additional visibility styles */
  background-color: rgba(0, 204, 255, 0.05) !important;
}

/* Ensure text remains visible */
#policies-models .tab-btn:not(.active) {
  color: #6b7280 !important;
  border-color: transparent !important;
}

/* Force visibility on hover */
#policies-models .tab-btn:hover {
  color: #00CCFF !important;
  background-color: rgba(0, 204, 255, 0.1) !important;
}

@media (max-width: 768px) {
  #policy-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    justify-content: flex-start !important;
  }
}

@media (max-width: 600px) {
  #policy-tabs {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    justify-content: flex-start !important;
    gap: 0 !important;
    flex-direction: column !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    flex-wrap: nowrap;
  }
  #policy-tabs .tab-btn {
    min-width: 140px;
    font-size: 1rem;
    padding-left: 10px;
    padding-right: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #tab-underline {
    height: 3px;
  }
  * {
    animation: none !important;
    transition: none !important;
  }
} 