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

/* Dynamic Language Styles */
html[lang="en"], html[lang="it"], html[lang="es"] {
  font-family: 'Montserrat', sans-serif;
}

html[lang="ar"] {
  font-family: 'Cairo', sans-serif;
}

html[lang="zh"] {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

/* Hide texts of other languages */
html[lang="ar"] .lang-en {
  display: none !important;
}

html:not([lang="ar"]) .lang-ar {
  display: none !important;
}

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

/* Image Animations & Hover States */
.card-hover {
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.img-zoom-container {
  overflow: hidden;
  border-radius: 0.75rem;
}

.img-zoom {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Nav Transition */
.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #ef4444; /* red-500 */
  transition: width 0.3s ease;
}

html[dir="rtl"] .nav-link::after {
  left: auto;
  right: 0;
}

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

/* Custom Scrollbar for sleek aesthetic */
::-webkit-scrollbar {
  width: 10px;
}

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

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

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

/* Form inputs styling */
.form-input {
  transition: all 0.3s ease;
}

.form-input:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}
