body {
  font-family: Arial, sans-serif;

  margin: 0;
  padding: 0;
}

/* home hero section content*/
@keyframes fade-slide-left {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.hero-animate {
  animation: fade-slide-left 0.9s ease-out both;
}
.hero-animate-late {
  animation: fade-up 1s ease-out 0.15s both;
}

/* احترام تفضيل تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
  .hero-animate,
  .hero-animate-late {
    animation: none !important;
  }
}

/* browse categories section */

#categories h2 {
  color: #1f2937; /* teal-600 */
  text-align: start;
  margin-bottom: 30px;
  font-size: 2rem;
}

#categories .block {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
  transition: transform 0.3s, box-shadow 0.3s;
}

#categories .block:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

#categories img {
  width: 100%;
  height: 8rem; /* 32 Tailwind unit */
  object-fit: contain;
  display: block;
  transition: transform 0.3s, filter 0.3s;
}

#categories .block:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

#categories h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937; /* gray-800 */
  margin-top: 8px;
  transition: transform 0.3s, color 0.3s;
}

#categories .block:hover h3 {
  transform: translateY(-3px);
  color: #0d9488; /* teal-600 */
}

#categories .block:nth-child(1) {
  animation-delay: 0.1s;
}
#categories .block:nth-child(2) {
  animation-delay: 0.2s;
}
#categories .block:nth-child(3) {
  animation-delay: 0.3s;
}
#categories .block:nth-child(4) {
  animation-delay: 0.4s;
}
#categories .block:nth-child(5) {
  animation-delay: 0.5s;
}
#categories .block:nth-child(6) {
  animation-delay: 0.6s;
}

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

.service-card {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.service-card img {
  width: 100%;
  height: 10rem;
  object-fit: contain;
  transition: transform 0.3s, filter 0.3s;
}

.service-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.1);
}

.service-card:nth-child(1) {
  animation-delay: 0.1s;
}
.service-card:nth-child(2) {
  animation-delay: 0.2s;
}
.service-card:nth-child(3) {
  animation-delay: 0.3s;
}
.service-card:nth-child(4) {
  animation-delay: 0.4s;
}
.service-card:nth-child(5) {
  animation-delay: 0.5s;
}
.service-card:nth-child(6) {
  animation-delay: 0.6s;
}
.service-card:nth-child(7) {
  animation-delay: 0.7s;
}
.service-card:nth-child(8) {
  animation-delay: 0.8s;
}

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

/* services details slider */
.slider-frame {
  aspect-ratio: 3 / 2;
  max-width: 900px;
  margin: 0 auto;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 1024px) {
  .slider-frame {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 640px) {
  .slider-frame {
    aspect-ratio: 1 / 1;
  }
}

#offerSlider {
  height: 100%;
}

#offerSlider > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  flex: 0 0 100%;
}

/* =====about us img ===== */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0);
  }
}

.animate-float1 {
  animation: float 5s ease-in-out infinite;
}

.animate-float2 {
  animation: float 6s ease-in-out infinite;
}

.animate-float3 {
  animation: float 7s ease-in-out infinite;
}

/* ====== inputs in main log in form ====== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fade-in-up 0.6s ease-out both;
}

/* Stagger helpers */
.delay-0 {
  animation-delay: 0s;
}
.delay-1 {
  animation-delay: 0.08s;
}
.delay-2 {
  animation-delay: 0.16s;
}
.delay-3 {
  animation-delay: 0.24s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .focus-glow {
    animation: none !important;
    transition: none !important;
  }
}

/* ====== Fields focus animation (no black outline) ====== */
.no-outline,
.no-outline:focus,
.no-outline:focus-visible {
  outline: none !important;
}

/* Smooth transitions for border/ring/shadow (Tailwind-compatible) */
.ani-field {
  transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ani-field:focus,
.ani-field:focus-visible {
  /* subtle scale + glow; border/ring تبقى من Tailwind عندك */
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.15), /* teal soft shadow */ 0 0 0 0 rgba(13, 148, 136, 0); /* slot for future ring sync if رغبت */
}

/* Optional: slight hover lift on desktop */
@media (hover: hover) {
  .ani-field:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  }
}

/* Wrapper animation (label + input block) */
.field-wrap {
  animation: fade-in-up 0.6s ease-out both;
}

/* ======log in button====== */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn-anim {
  animation: fade-in-up 1s ease-out both;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.btn-anim:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
}

.btn-anim::after {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.1) 100%);
  transform: skewX(-20deg);
}

.btn-anim:hover::after {
  left: 130%;
  transition: left 1.2s ease;
}
