/* ISCM Website - Custom Styles */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* RTL adjustments */
.is-rtl [dir="ltr"] {
  direction: rtl;
}

.is-rtl .nav-link,
.is-rtl .lang-option,
.is-rtl .inline-flex {
  direction: rtl;
}

.is-rtl .flex.items-start.gap-4 svg,
.is-rtl .inline-flex svg,
.is-rtl a svg {
  transform: scaleX(-1);
}

/* Language dropdown mirror fix */
[dir="rtl"] #langMenu .lang-option {
  text-align: right;
}

[dir="rtl"] #langBtn {
  flex-direction: row-reverse;
}

/* Hero title animation */
#home h1 {
  animation: fadeInUp 0.8s ease-out;
}

#home p,
#home .flex.flex-wrap {
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

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

/* Card hover lift */
.service-card,
.news-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover,
.news-card:hover {
  transform: translateY(-4px);
}

/* Image scale on hover */
.image-zoom {
  overflow: hidden;
}

.image-zoom img {
  transition: transform 0.6s ease;
}

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

/* Form focus states */
input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(15, 27, 51, 0.1);
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Admin page specific */
.admin-input {
  @apply w-full px-4 py-2 rounded-lg border border-slate-200 focus:border-primary focus:ring-2 focus:ring-primary/20 outline-none;
}

/* Ensure Arabic fonts are used */
[lang="ar"] body {
  font-family: 'Noto Sans Arabic', 'Noto Sans SC', system-ui, sans-serif;
}

[lang="hi"] body {
  font-family: 'Noto Sans Devanagari', 'Noto Sans SC', system-ui, sans-serif;
}

[lang="zh"] body {
  font-family: 'Noto Sans SC', 'Inter', system-ui, sans-serif;
}
