* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: #F7F9FC; color: #101828; }

/* Section scroll-reveal: each section settles into place like a page laid down, hinging up from the bottom */
.section-fade {
  opacity: 0;
  transform: perspective(1400px) rotateX(10deg) translateY(50px) scale(0.97);
  transform-origin: center bottom;
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.section-fade.is-visible {
  opacity: 1;
  transform: perspective(1400px) rotateX(0deg) translateY(0) scale(1);
}

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #F0F4F8; }
::-webkit-scrollbar-thumb { background: #1580DC; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #0E6BC4; }

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(60px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(21, 128, 220, 0.3); }
  50% { box-shadow: 0 0 40px rgba(21, 128, 220, 0.55); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes width-grow {
  from { width: 0%; }
  to { width: var(--target-width); }
}

.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeIn { animation: fadeIn 0.6s ease forwards; }
.animate-slideInLeft { animation: slideInLeft 0.8s ease forwards; }
.animate-slideInRight { animation: slideInRight 0.8s ease forwards; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }

.hidden-animate { opacity: 0; }

/* Diagonal stripe pattern */
.stripe-pattern {
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 10px,
    rgba(21, 128, 220, 0.04) 10px,
    rgba(21, 128, 220, 0.04) 20px
  );
}

/* Service card hover */
.service-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: #1580DC;
  box-shadow: 0 12px 28px -8px rgba(16, 24, 40, 0.12);
}
.service-card:hover .service-icon {
  background: #1580DC;
  color: white;
  transform: scale(1.1);
}
.service-card:hover .service-number {
  color: #1580DC;
}

.service-icon {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CTA button */
.cta-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.cta-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}
.cta-btn:hover::before {
  left: 100%;
}
.cta-btn:hover {
  animation: pulse-glow 2s infinite;
}

/* Glow line */
.glow-line {
  background: linear-gradient(90deg, transparent, #1580DC, transparent);
  height: 1px;
  opacity: 0.5;
}

/* Nav link underline */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #1580DC;
  transition: width 0.3s ease;
}
.nav-link:hover::after {
  width: 100%;
}

/* Stat counter */
.stat-item {
  position: relative;
}
.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(16,24,40,0.1);
}
.stat-item:last-child::after { display: none; }

/* Gallery image */
.gallery-item {
  overflow: hidden;
  transition: all 0.4s ease;
}
.gallery-item:hover {
  transform: scale(1.02);
  z-index: 10;
}
.gallery-item img {
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-item .gallery-overlay {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.active {
  transform: translateX(0);
}

/* Toast notification */
.toast {
  animation: fadeInUp 0.4s ease forwards;
}
.toast.hiding {
  animation: fadeIn 0.3s ease reverse forwards;
}

/* Testimonial card */
.testimonial-card {
  transition: all 0.3s ease;
}
.testimonial-card:hover {
  border-color: #1580DC;
  background: rgba(21, 128, 220, 0.04);
}

/* Working hours indicator */
.hours-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: pulse-glow 2s infinite;
}

/* Section divider */
.section-divider {
  background: linear-gradient(90deg, transparent, rgba(21, 128, 220, 0.4), transparent);
}
