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

:root {
  --primary: #014EFE;
  --primary-dark: #0038c7;
  --dark: #1C1C1C;
  --muted: #F3F3F3;
  --separator: #3D3E42;
  --font: 'Grandis Extended', 'Barlow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  overflow-x: hidden;
  background: #fff;
}

/* ─── SCROLL ANIMATIONS ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ─── TOPBAR ─── */
#topbar {
  background: var(--primary);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
#topbar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  animation: shimmer 3s infinite;
}
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ─── NAVBAR ─── */
#navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
  padding: 12px 0;
}
#navbar.scrolled {
  border-color: rgba(0,0,0,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.nav-link {
  position: relative;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}
.nav-link:hover { color: var(--primary); }
.nav-link:hover::after { width: 100%; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  height: 52px;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(1,78,254,0.35);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:active { transform: translateY(0); }

.btn-dark {
  background: var(--dark);
  box-shadow: none;
}
.btn-dark:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 24px rgba(1,78,254,0.35);
}

/* ─── MOBILE MENU ─── */
#mobile-menu {
  display: none;
  flex-direction: column;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding: 12px 0 16px;
}
#mobile-menu.open { display: flex; }

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── HERO ─── */
.hero-section {
  background: var(--muted);
  position: relative;
  overflow: hidden;
  min-height: 640px;
}
.hero-bg-shape {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: var(--primary);
  clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.04;
}

/* ─── SLIDER ─── */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  min-height: 640px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slider-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 4px;
  background: rgba(1,78,254,0.25);
  border: none;
  cursor: pointer;
  transition: width 0.3s, background 0.3s;
}
.slider-dot.active {
  width: 24px;
  background: var(--primary);
}

/* ─── HERO IMAGE ─── */
.hero-image-wrap {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
}
.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-image-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--muted) 0%, transparent 30%);
  z-index: 1;
}

/* ─── SECTION TITLES ─── */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

/* ─── DIFERENTIAL CARDS ─── */
.diff-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 32px;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.diff-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: rgba(1,78,254,0.2);
}
.diff-icon-box {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(1,78,254,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.diff-icon-box img { width: 32px; height: 32px; object-fit: contain; }

/* ─── SERVICE CARDS ─── */
.service-card {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}
.service-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: rgba(1,78,254,0.15);
}
.service-card:hover::after { transform: scaleX(1); }

.svc-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(1,78,254,0.12), rgba(1,78,254,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
}
.svc-icon-box img { width: 28px; height: 28px; object-fit: contain; }

/* ─── CLIENTS MARQUEE ─── */
.marquee-wrapper {
  overflow: hidden;
  position: relative;
}
.marquee-wrapper::before,
.marquee-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
}
.marquee-wrapper::before {
  left: 0;
  background: linear-gradient(to right, #fff, transparent);
}
.marquee-wrapper::after {
  right: 0;
  background: linear-gradient(to left, #fff, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 20s linear infinite;
  width: max-content;
  align-items: center;
  padding: 16px 0;
}
.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.client-logo {
  height: 48px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter 0.3s, transform 0.3s;
  flex-shrink: 0;
}
.client-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

/* ─── IMAGES SECTION ─── */
.images-section {
  background: var(--primary);
}
.images-section .img-col {
  overflow: hidden;
  position: relative;
}
.images-section .img-col img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.images-section .img-col:hover img { transform: scale(1.05); }
.images-section .img-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(1,78,254,0.2);
  transition: opacity 0.3s;
}
.images-section .img-col:hover::after { opacity: 0; }

/* ─── CTA BANNER ─── */
.cta-banner {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  right: -100px;
  top: -100px;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  left: -80px;
  bottom: -80px;
}

/* ─── ACCORDION ─── */
.accordion-item {
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.accordion-item.open {
  border-color: var(--primary);
  box-shadow: 0 4px 24px rgba(1,78,254,0.1);
}
.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  cursor: pointer;
  user-select: none;
  gap: 16px;
}
.accordion-q {
  font-weight: 600;
  font-size: 17px;
  color: var(--dark);
  line-height: 1.4;
}
.accordion-item.open .accordion-q { color: var(--primary); }
.accordion-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--dark);
  transition: transform 0.3s, color 0.3s;
}
.accordion-item.open .accordion-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}
.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  padding: 0 28px;
}
.accordion-item.open .accordion-body {
  max-height: 400px;
  padding: 0 28px 24px;
}
.accordion-body p {
  font-weight: 300;
  font-size: 15px;
  line-height: 1.7;
  color: #555;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 16px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark);
}
.footer-link {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  transition: color 0.2s;
  display: inline-block;
}
.footer-link:hover { color: #fff; }
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.social-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ─── BACK TO TOP ─── */
#back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
  z-index: 99;
  box-shadow: 0 4px 16px rgba(1,78,254,0.4);
}
#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}
#back-to-top:hover {
  box-shadow: 0 8px 24px rgba(1,78,254,0.5);
  transform: translateY(-2px);
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .hero-image-wrap { display: none; }
  .slider-wrapper, .slide { min-height: 480px; }
}
@media (max-width: 768px) {
  .slider-wrapper, .slide { min-height: 420px; }
  .images-section .img-col img { height: 200px; }
  #back-to-top { bottom: 20px; right: 20px; }
}
