/* ===== Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

/* ===== Loader ===== */
.loader-pulse {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2563eb;
  animation: pulse 1s ease infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.8); opacity: 0.5; }
  50% { transform: scale(1.2); opacity: 1; }
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollBounce 1.5s ease infinite;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(12px); opacity: 0.3; }
}

/* GSAP handles all scroll animations — no CSS animation classes needed */

/* ===== Background Grid ===== */
.section-grid {
  position: relative;
}

.section-grid::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

.section-grid > * {
  position: relative;
  z-index: 1;
}

/* Dark sections get lighter grid */
.section-grid-dark::after {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
}

/* CTA banner: grid must sit above the dark overlay (::before z-index:1) */
.cta-banner.section-grid::after {
  z-index: 2;
}

/* ===== Section Label ===== */
.section-label {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #2563eb;
}

/* ===== Navbar ===== */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.06);
}

.nav-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #ffffff;
}

#navbar.scrolled .nav-link {
  color: #4b5563;
}

#navbar.scrolled .nav-link:hover {
  color: #2563eb;
}



#navbar.scrolled #mobile-toggle {
  color: #111827;
}

#navbar.scrolled #nav-facebook {
  background: rgba(37, 99, 235, 0.08);
  color: #2563eb;
}

#navbar.scrolled #nav-facebook:hover {
  background: #2563eb;
  color: #ffffff;
}

.mobile-link {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: #374151;
  text-decoration: none;
  padding: 10px 0;
  transition: color 0.3s ease;
  display: block;
}

.mobile-link:hover {
  color: #2563eb;
}

/* ===== Service Tabs ===== */
.service-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 10px;
  border: 2px solid #e5e7eb;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
}

.service-tab:hover {
  border-color: #2563eb;
  color: #2563eb;
}

.service-tab.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
}

/* ===== Service Cards (in tabs) ===== */
.tab-card {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.tab-card:hover {
  border-color: #2563eb;
  transform: translateY(-3px) rotate(0);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}

.tab-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin-bottom: 14px;
}

/* ===== Gallery ===== */
.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0);
  transition: background 0.3s ease;
}

.gallery-item:hover::after {
  background: rgba(17, 24, 39, 0.15);
}

.gallery-placeholder-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(37, 99, 235, 0.25);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0;
}

.gallery-placeholder .gallery-placeholder-content {
  opacity: 1;
}

.gallery-placeholder img {
  display: none;
}

/* ===== CTA Banner ===== */
.cta-banner {
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.85);
  z-index: 1;
}

/* ===== Feature Dark Cards ===== */
.feature-dark-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.feature-dark-card:hover {
  border-color: rgba(37, 99, 235, 0.4);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-4px);
}

.feature-dark-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  margin-bottom: 18px;
}

/* ===== Contact Cards ===== */
.contact-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.contact-card:hover {
  border-color: #2563eb;
  transform: translateY(-3px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin: 0 auto 12px;
}

/* ===== Form ===== */
.form-input {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem;
  color: #111827;
  background: #f8fafc;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: #ffffff;
}

.form-input::placeholder {
  color: #9ca3af;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #2563eb;
}

/* ===== Scroll Top ===== */
#scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
}

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

  .hero-anim, .section-label, .tab-card, .stagger-item,
  .gallery-item, .feature-dark-card, .contact-card {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
