/*
  Global Theme Variables
  Primary: Emerald (#10B981), Mint (#A7F3D0)
  Neutrals: Charcoal (#1F2937), Off-white (#F9FAFB)
*/
:root {
  --emerald: #10B981;
  --mint: #A7F3D0;
  --charcoal: #1F2937;
  --offwhite: #F9FAFB;
  --cream: #f3f2ed;
  --shadow: 0 20px 45px rgba(16, 24, 40, 0.12);
  --radius: 18px;
  --transition: 280ms ease;
  --max-width: 1200px;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: linear-gradient(160deg, #ffffff 0%, var(--offwhite) 60%, #eef2f0 100%);
  line-height: 1.6;
}

/* Animated Background Slider */
.bg-slider {
  position: fixed;
  inset: -6%;
  z-index: -2;
  overflow: hidden;
}

.bg-slider img {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 110%;
  object-fit: cover;
  opacity: 0;
  animation: bgFade 30s infinite;
  transform: scale(1.05) rotate(0.5deg);
}

.bg-slider img:nth-child(2) {
  animation-delay: 6s;
}

.bg-slider img:nth-child(3) {
  animation-delay: 12s;
}

.bg-slider img:nth-child(4) {
  animation-delay: 18s;
}

.bg-slider img:nth-child(5) {
  animation-delay: 24s;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(249, 250, 251, 0.72) 0%, rgba(249, 250, 251, 0.62) 60%, rgba(239, 246, 245, 0.68) 100%);
  backdrop-filter: blur(2px);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(90%, var(--max-width));
  margin: 0 auto;
}

/* Sticky Header / Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(249, 250, 251, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px min(6vw, 50px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: white;
  box-shadow: 0 10px 18px rgba(16, 24, 40, 0.12);
  border: 2px solid rgba(16, 185, 129, 0.6);
  display: grid;
  place-items: center;
  color: var(--emerald);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  font-style: italic;
}

.nav-links {
  display: flex;
  gap: 28px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--emerald);
  transition: width var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  border: none;
  background: none;
  gap: 6px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 999px;
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
}

.hero-inner {
  width: min(calc(100% - 8cm), 1480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 24px;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}

.hero-kicker {
  font-weight: 600;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4rem);
  line-height: 1.08;
  max-width: 11ch;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1rem;
  line-height: 1.65;
  color: #4b5563;
  max-width: 68ch;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: var(--emerald);
  color: white;
  box-shadow: 0 12px 24px rgba(16, 185, 129, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background: #0fa874;
}

.btn-ghost {
  border: 1px solid rgba(31, 41, 55, 0.2);
  color: var(--charcoal);
  background: white;
}

.btn-ghost:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(31, 41, 55, 0.08);
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: #374151;
}

.hero-badges span {
  background: rgba(167, 243, 208, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
}

.hero-visual {
  position: relative;
  min-height: 360px;
  display: grid;
  place-items: center;
}

.device-card {
  width: min(320px, 90%);
  background: white;
  border-radius: 26px;
  padding: 30px;
  box-shadow: var(--shadow);
  position: relative;
}

.device-screen {
  height: 200px;
  border-radius: 18px;
  background: linear-gradient(130deg, rgba(16, 185, 129, 0.2), rgba(167, 243, 208, 0.4));
  position: relative;
  overflow: hidden;
  padding: 0;
}

.hero-slider {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 700ms ease;
}

.screen-img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.device-base {
  width: 60%;
  height: 12px;
  margin: 18px auto 0;
  background: #d1d5db;
  border-radius: 999px;
}

.float-titles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.float-chip {
  position: absolute;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 18px rgba(16, 24, 40, 0.12);
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}

.float-chip:nth-child(1) {
  top: 10%;
  left: 8%;
}

.float-chip:nth-child(2) {
  top: 20%;
  right: 5%;
  animation-delay: 0.8s;
}

.float-chip:nth-child(3) {
  bottom: 18%;
  left: 0;
  animation-delay: 1.4s;
}

.float-chip:nth-child(4) {
  bottom: 8%;
  right: 12%;
  animation-delay: 2s;
}

.hero-glow {
  position: absolute;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35), transparent 70%);
  top: -120px;
  right: -90px;
  filter: blur(10px);
  z-index: -1;
}

/* Section Layout */
.section {
  padding: 90px 0;
}

.section.alt {
  background: var(--cream);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 50px;
}

.section-kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
}

.section-sub {
  color: #4b5563;
  max-width: 600px;
}

/* Services Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 22px;
}

.service-card {
  background: white;
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card ul {
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
  color: #4b5563;
}

.service-card li::before {
  content: "✓";
  color: var(--emerald);
  margin-right: 8px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 40px rgba(16, 24, 40, 0.15);
}

/* Process Section */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.process-step {
  background: rgba(255, 255, 255, 0.75);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}

.step-number {
  font-weight: 700;
  color: var(--emerald);
  font-size: 1.4rem;
}

/* Testimonials Carousel */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 20px;
  transition: transform 500ms ease;
}

.testimonial-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
  color: #374151;
}

.carousel-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--charcoal);
  transition: transform var(--transition);
}

.carousel-btn:hover {
  transform: translateY(-2px);
}

/* Contact Section */
.contact-card {
  background: white;
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  padding: 12px 18px;
  background: var(--emerald);
  color: white;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 20px 30px rgba(16, 185, 129, 0.3);
  z-index: 999;
  animation: pulse 3s ease-in-out infinite;
}

/* Footer */
.footer {
  padding: 30px 0 50px;
  background: #0f172a;
  color: white;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.footer-center {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-weight: 600;
}

/* Reveal on Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Keyframes */
@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes bgFade {
  0% {
    opacity: 0;
    transform: scale(1.06) rotate(-0.4deg);
  }
  8% {
    opacity: 0.75;
  }
  25% {
    opacity: 0.95;
    transform: scale(1.02) rotate(0.3deg);
  }
  33% {
    opacity: 0.35;
  }
  100% {
    opacity: 0;
    transform: scale(1.08) rotate(0.6deg);
  }
}

/* Responsive Navigation */
@media (max-width: 860px) {
  .hero-inner {
    width: min(92%, var(--max-width));
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    max-width: none;
    text-wrap: pretty;
  }

  .hero-sub {
    max-width: none;
  }

  .nav-links {
    position: absolute;
    top: 64px;
    right: 16px;
    flex-direction: column;
    padding: 18px;
    background: white;
    border-radius: 14px;
    box-shadow: var(--shadow);
    display: none;
    min-width: 180px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* Small Screens */
@media (max-width: 600px) {
  .hero {
    padding-top: 90px;
  }

  .hero-inner {
    width: min(94%, var(--max-width));
  }

  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 3rem);
    line-height: 1.05;
  }

  .hero-visual {
    min-height: 300px;
  }

  .contact-card {
    padding: 24px;
  }
}
