/* ============================================================
   500 SERVIS — PREMIUM CUSTOM STYLES
   ============================================================ */

:root {
  --brand: #2563EB;
  --brand-dark: #1d4ed8;
  --accent: #F97316;
  --accent-dark: #ea580c;
  --ink: #0f172a;
  --slate: #64748b;
  --radius: 20px;
  --shadow-soft: 0 10px 40px -12px rgba(37, 99, 235, 0.15);
  --shadow-lift: 0 24px 60px -12px rgba(37, 99, 235, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  border-radius: 10px;
  border: 2px solid #f1f5f9;
}

/* ============================================================
   SELECTION
   ============================================================ */
::selection {
  background: rgba(37, 99, 235, 0.2);
  color: #1e3a8a;
}

/* ============================================================
   IMAGE SKELETON (LOADING)
   ============================================================ */
/* .img-skeleton {
  background: linear-gradient(110deg, #e2e8f0 8%, #f1f5f9 18%, #e2e8f0 33%);
  background-size: 200% 100%;
  animation: shimmer 1.6s linear infinite;
  z-index: 1;
}
img {
  transition: opacity 0.5s ease;
}
img:not(.loaded) {
  opacity: 0;
}
img.loaded {
  opacity: 1;
} */
/* Hide the skeleton once the following image is loaded.
   Skeleton sits before the image in the DOM, so we target it
   with :has() — with a JS fallback in app.js. */
.img-skeleton:has(+ img.loaded),
.img-skeleton:has(~ img.loaded) {
  display: none;
}
.img-skeleton.hidden-skeleton {
  display: none;
}

/* ============================================================
   FLOATING ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}
.float-anim {
  animation: float 6s ease-in-out infinite;
}
.float-anim-delay {
  animation: float 5s ease-in-out 1s infinite;
}
.float-anim-delay-2 {
  animation: float 4.5s ease-in-out 2s infinite;
}

/* ============================================================
   HERO PARALLAX
   ============================================================ */
.hero-bg {
  transform: scale(1.08);
  will-change: transform;
}
.parallax-slow {
  background-attachment: fixed;
}

/* ============================================================
   ANIMATED GRADIENT TEXT / BUTTONS
   ============================================================ */
@keyframes gradient-x {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.animate-gradient-x {
  background-size: 200% 200%;
  animation: gradient-x 4s ease infinite;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}
#navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 30px -12px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: rgba(226, 232, 240, 0.6);
}
.nav-link.active {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

/* Mobile menu — smooth slide-down + fade */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  transition:
    max-height 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease,
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.55s;
}
#mobile-menu.open {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

/* Staggered link entrance when menu opens */
#mobile-menu.open .mobile-nav-link,
#mobile-menu.open .mobile-menu-call {
  animation: menuLinkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
}
#mobile-menu li:nth-child(1) .mobile-nav-link { animation-delay: 0.05s; }
#mobile-menu li:nth-child(2) .mobile-nav-link { animation-delay: 0.1s; }
#mobile-menu li:nth-child(3) .mobile-nav-link { animation-delay: 0.15s; }
#mobile-menu li:nth-child(4) .mobile-nav-link { animation-delay: 0.2s; }
#mobile-menu li:nth-child(5) .mobile-nav-link { animation-delay: 0.25s; }
#mobile-menu li:nth-child(6) .mobile-menu-call { animation-delay: 0.3s; }

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

/* ============================================================
   HERO SCROLL INDICATOR
   ============================================================ */
@keyframes scroll-dot {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(14px); opacity: 0; }
}

/* ============================================================
   IMAGE ZOOM ON HOVER
   ============================================================ */
.img-zoom {
  transform: scale(1);
  transition: transform 0.7s var(--ease-out);
}
.group:hover .img-zoom {
  transform: scale(1.1);
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.service-card:hover::after {
  opacity: 1;
}

/* ============================================================
   TESTIMONIAL CARDS
   ============================================================ */
.testimonial-card {
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  right: 24px;
  font-size: 120px;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(37, 99, 235, 0.1);
  pointer-events: none;
}

/* ============================================================
   SWIPER PAGINATION
   ============================================================ */
.swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  opacity: 1;
  transition: all 0.4s ease;
}
.swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 6px;
  background: linear-gradient(90deg, #2563eb, #3b82f6);
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-btn[aria-expanded='true'] .faq-icon {
  background: #2563eb;
  color: #fff;
  transform: rotate(135deg);
}

/* ============================================================
   GLASSMORPHISM UTILITY
   ============================================================ */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.form-input {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.form-input:focus {
  background: #fff;
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}
.form-input.error {
  border-color: #ef4444;
  background: #fef2f2;
}
.error-msg {
  color: #ef4444;
}

/* ============================================================
   TOAST
   ============================================================ */
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0) translateY(0);
  pointer-events: auto;
}
.toast.success {
  background: #ffffff;
  border-color: #dcfce7;
}
.toast.success #toast-icon {
  background: #10b981;
}
.toast.error {
  background: #ffffff;
  border-color: #fee2e2;
}
.toast.error #toast-icon {
  background: #ef4444;
}

/* ============================================================
   FLOATING BUTTONS
   ============================================================ */
@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE FIXES
   ============================================================ */
@media (max-width: 1023px) {
  .parallax-slow {
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 80px;
  }
}

/* Mobile bottom bar safe area */
.mobile-bottom-bar {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Floating buttons above bottom bar on mobile */
@media (max-width: 1023px) {
  .floating-btns {
    bottom: 88px;
  }
}

