/* ===================================================
   SKAVIGO LOGISTICS — Premium Design System
   Pure CSS · No Frameworks · GitHub Pages Ready
   =================================================== */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #fafafa;
  --color-white: #ffffff;
  --color-surface: #ffffff;
  --color-surface-glass: rgba(255, 255, 255, 0.7);
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-text-muted: #9ca3af;
  --color-accent: #019863;
  --color-accent-hover: #017a4f;
  --color-accent-light: rgba(1, 152, 99, 0.08);
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;
  --color-dark: #0f172a;
  --color-dark-secondary: #1e293b;

  --color-nav-bg: rgba(255, 255, 255, 0.65);
  --color-nav-scrolled: rgba(255, 255, 255, 0.95);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.06);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1200px;
  --section-padding: clamp(4rem, 8vw, 8rem);
}

[data-theme="dark"] {
  --color-bg: #0f172a;
  --color-white: #ffffff;
  /* Must stay white for text on dark backgrounds */
  --color-surface: #1e293b;
  --color-surface-glass: rgba(30, 41, 59, 0.7);
  --color-text: #f8fafc;
  --color-text-secondary: #94a3b8;
  --color-text-muted: #475569;
  --color-border: #334155;
  --color-border-light: #1e293b;
  --color-dark: #020617;
  --color-dark-secondary: #0f172a;

  --color-nav-bg: rgba(15, 23, 42, 0.65);
  --color-nav-scrolled: rgba(15, 23, 42, 0.95);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -4px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  transition: background-color var(--transition-slow), color var(--transition-slow);
}

/* --- Custom Scrollbar --- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--color-text-muted);
  border-radius: 10px;
  border: 2px solid var(--color-bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}

/* --- Reading Progress Bar --- */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--color-accent);
  z-index: 1200;
  pointer-events: none;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(1, 152, 99, 0.5);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* --- Typography --- */
.section-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--color-text-secondary);
  line-height: 1.8;
  max-width: 680px;
}

/* --- WhatsApp Floating Button --- */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  left: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0px 6px 15px rgba(37, 211, 102, 0.4);
  background-color: #1ebe57;
}

.popup-anim {
  animation: floatPopup 2s infinite ease-in-out;
}

@keyframes floatPopup {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }

  100% {
    transform: translateY(0);
  }
}

/* ===================================================
   NAVBAR
   =================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050;
  padding: 1rem 0;
  transition: all var(--transition);
  background: var(--color-nav-bg);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: var(--color-nav-scrolled);
  backdrop-filter: blur(20px) saturate(200%);
  -webkit-backdrop-filter: blur(20px) saturate(200%);
  border-bottom: 1px solid var(--color-border);
  padding: 0.6rem 0;
  box-shadow: var(--shadow-sm);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
}

.navbar-logo img {
  height: 56px;
  width: auto;
  transition: transform var(--transition), height var(--transition);
}

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.35;
  border-left: 2px solid var(--color-accent);
  padding-left: 0.85rem;
  transition: opacity var(--transition);
}

.navbar.scrolled .logo-tagline {
  opacity: 0.8;
}

.navbar-logo:hover img {
  transform: scale(1.05);
}

.navbar.scrolled .navbar-logo img {
  height: 36px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.navbar-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.navbar-links a:hover {
  color: var(--color-accent);
  background: var(--color-accent-light);
}

.navbar-cta {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  color: var(--color-white) !important;
  background: var(--color-accent) !important;
  padding: 0.55rem 1.25rem !important;
  border-radius: var(--radius-full) !important;
}

.navbar-cta:hover {
  background: var(--color-accent-hover) !important;
  color: var(--color-white) !important;
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(1, 152, 99, 0.5), 0 0 40px rgba(1, 152, 99, 0.2), 0 6px 20px rgba(1, 152, 99, 0.4);
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: all var(--transition);
  margin-left: 0.5rem;
}

.theme-toggle:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

/* --- Custom Language Selector --- */
.lang-selector {
  position: relative;
}

.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: all var(--transition);
}

.lang-toggle:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.lang-toggle svg {
  width: 20px;
  height: 20px;
}

.lang-notification {
  position: absolute;
  top: 100%;
  right: 50%;
  transform: translateX(50%);
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  animation: pulse-notification 2s infinite, hide-notification 0.5s ease 6s forwards;
  z-index: 2000;
  box-shadow: var(--shadow-md);
}

.lang-notification::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: transparent transparent var(--color-accent) transparent;
}

@keyframes pulse-notification {
  0% { transform: translateX(50%) scale(1); }
  50% { transform: translateX(50%) scale(1.05); }
  100% { transform: translateX(50%) scale(1); }
}

@keyframes hide-notification {
  to { opacity: 0; visibility: hidden; }
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  min-width: 180px;
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  max-height: 320px;
  overflow-y: auto;
}

.lang-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-dropdown-header {
  padding: 0.5rem 1rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-text-muted);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.25rem;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  transition: all var(--transition);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  line-height: 1.6; /* Increased line-height to prevent clipping of Devanagari script */
}

.lang-option:hover {
  background: var(--color-accent-light);
  color: var(--color-accent);
}

.lang-option.active {
  color: var(--color-accent);
  font-weight: 600;
}

.lang-option.active::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--color-accent);
}

.lang-flag {
  font-size: 1.15rem;
  line-height: 1;
}

/* Hide Google Translate internals */
#google_translate_element {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  height: 0;
  overflow: hidden;
}

.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame {
  display: none !important;
}

body {
  top: 0px !important;
}

/* Hide only the Google Translate top bar, not the body itself */
.skiptranslate.goog-te-gadget,
iframe.skiptranslate {
  display: none !important;
}

/* Prevent Devanagari (Hindi/Marathi) and other scripts from being clipped */
.translated-ltr, .translated-rtl {
  line-height: 1.85 !important;
}

/* Headings are the worst offenders — tight line-height clips शिरोरेखा */
.translated-ltr h1, .translated-rtl h1 {
  line-height: 1.35 !important;
  padding-top: 0.15em !important;
  overflow: visible !important;
}

.translated-ltr h2, .translated-rtl h2 {
  line-height: 1.35 !important;
  padding-top: 0.12em !important;
  overflow: visible !important;
}

.translated-ltr h3, .translated-ltr h4,
.translated-rtl h3, .translated-rtl h4 {
  line-height: 1.4 !important;
  padding-top: 0.1em !important;
  overflow: visible !important;
}

.translated-ltr p, .translated-ltr a,
.translated-ltr span, .translated-ltr li, .translated-ltr td,
.translated-ltr label, .translated-ltr button,
.translated-rtl p, .translated-rtl a,
.translated-rtl span, .translated-rtl li, .translated-rtl td,
.translated-rtl label, .translated-rtl button {
  overflow: visible !important;
  padding-top: 0.08em;
}

/* Fix hero gradient-text clipping — background-clip:text crops ascenders */
.translated-ltr .hero-content h1,
.translated-rtl .hero-content h1 {
  -webkit-text-fill-color: #ffffff !important;
  background: none !important;
  -webkit-background-clip: unset !important;
  background-clip: unset !important;
  line-height: 1.4 !important;
  padding-top: 0.2em !important;
}

/* Section titles */
.translated-ltr .section-title,
.translated-rtl .section-title {
  line-height: 1.4 !important;
  padding-top: 0.12em !important;
  overflow: visible !important;
}

/* Navbar links & buttons */
.translated-ltr .navbar-links a,
.translated-rtl .navbar-links a,
.translated-ltr .btn,
.translated-rtl .btn {
  overflow: visible !important;
  line-height: 1.5 !important;
}

/* Service cards, stat counters, footer */
.translated-ltr .service-card-body,
.translated-rtl .service-card-body,
.translated-ltr .footer,
.translated-rtl .footer {
  overflow: visible !important;
}

@media (max-width: 768px) {
  .logo-tagline {
    display: none !important;
  }

  .navbar-logo img {
    height: 40px !important;
  }

  .navbar.scrolled .navbar-logo img {
    height: 32px !important;
  }
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
  background: none;
  border: none;
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Allow zooming */
  transform: scale(1.0);
}

.hero-slide.active {
  opacity: 1;
  /* Slow zoom on active slide */
  transform: scale(1.08);
  transition: opacity 1.2s ease-in-out, transform 6s ease-out;
}

.hero-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
      rgba(0, 0, 0, 0.35) 0%,
      rgba(0, 0, 0, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
}

.hero-text {
  display: none;
}

.hero-text.active {
  display: block;
  animation: fadeInText 0.8s ease-out;
}

@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.2);
  background: linear-gradient(135deg, #ffffff 0%, #a8edce 50%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerText 4s linear infinite;
}

@keyframes shimmerText {
  0% {
    background-position: 0% center;
  }

  100% {
    background-position: 200% center;
  }
}

.hero-content p {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* --- Hero Tracking Form --- */
.hero-tracking-form {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 2;
}

.tracking-input-wrapper {
  display: flex;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50px;
  padding: 0.4rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition: all var(--transition);
}

.tracking-input-wrapper:focus-within {
  background: rgba(255, 255, 255, 0.25);
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(1, 152, 99, 0.3);
}

.tracking-icon {
  margin: auto 0.8rem auto 1.2rem;
  color: rgba(255, 255, 255, 0.8);
}

.tracking-input-wrapper input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  min-width: 0;
}

.tracking-input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.tracking-input-wrapper input:focus {
  outline: none;
}

.tracking-input-wrapper .btn {
  padding: 0.75rem 2rem;
  border-radius: 40px;
  margin-left: 0.5rem;
}

.tracking-msg {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.95rem;
  color: #a8edce;
  margin-top: 0.8rem;
  font-weight: 600;
  animation: fadeInText 0.3s ease-out;
}

.hero-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.hero-indicator {
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-indicator.active {
  width: 60px;
  background: var(--color-white);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(1, 152, 99, 0.3);
  position: relative;
}

.btn-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(1, 152, 99, 0.5), 0 0 40px rgba(1, 152, 99, 0.2), 0 6px 20px rgba(1, 152, 99, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===================================================
   SECTION SPACING
   =================================================== */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}

/* Subtle dot-grid pattern on alternating sections */
.section.alt-bg {
  background: var(--color-surface);
}

.section.alt-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(100, 100, 100, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
}

.section.alt-bg>.container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* ===================================================
   ABOUT / WHO WE ARE
   =================================================== */
.about-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: clamp(1.05rem, 1.5vw, 1.15rem);
  color: var(--color-text-secondary);
  line-height: 1.9;
}

/* ===================================================
   CARDS GRID (Specialities, Features)
   =================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  perspective: 1000px;
}

.card {
  background: var(--color-surface-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.1s linear;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.card .card-icon,
.card h3,
.card p {
  transform: translateZ(30px);
}

.card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, rgba(1, 152, 99, 0) 40%, rgba(1, 152, 99, 0.4) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(1, 152, 99, 0.15), 0 8px 16px rgba(0, 0, 0, 0.1);
  border-color: transparent;
  background: var(--color-surface);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--color-accent);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===================================================
   TIMELINE (Journey)
   =================================================== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent), var(--color-border));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -2.5rem;
  top: 0.375rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  border: 3px solid var(--color-accent);
  z-index: 1;
  box-shadow: 0 0 0 4px var(--color-accent-light);
  animation: timelinePulse 2.5s ease-in-out infinite;
}

@keyframes timelinePulse {

  0%,
  100% {
    box-shadow: 0 0 0 4px var(--color-accent-light);
  }

  50% {
    box-shadow: 0 0 0 8px rgba(1, 152, 99, 0.06), 0 0 12px rgba(1, 152, 99, 0.15);
  }
}

.timeline-item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.timeline-item p {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===================================================
   SERVICES (Image Cards)
   =================================================== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.5rem;
}

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition: all var(--transition);
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.service-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-card-img img {
  transform: scale(1.06);
}

.service-card-body {
  padding: 1.5rem;
}

.service-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.service-card-body p {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

/* ===================================================
   CLIENTS (Logo Marquee)
   =================================================== */
.clients-marquee {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  /* Fading edges */
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 4rem;
  width: max-content;
  animation: scrollMarquee 35s linear infinite;
}

.clients-track:hover {
  animation-play-state: paused;
}

.clients-track img {
  max-height: 55px;
  width: auto;
  min-width: 100px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.5);
  transition: filter var(--transition), transform var(--transition);
}

.clients-track img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.1);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }

  /* Slide 50% left to complete one loop of the duplicated set */
  100% {
    transform: translateX(calc(-50% - 2rem));
  }
}

/* ===================================================
   MISSION / VISION (Side by Side)
   =================================================== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mv-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  transition: all var(--transition);
}

.mv-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.mv-card h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mv-card h3 .icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.mv-card p {
  font-size: 0.98rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
}

/* ===================================================
   INDUSTRIES (Circle Grid)
   =================================================== */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 2.5rem;
  justify-items: center;
}

.industry-item {
  text-align: center;
  cursor: default;
}

.industry-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  border: 3px solid var(--color-border);
  transition: all var(--transition);
}

.industry-item:hover .industry-img {
  border-color: var(--color-accent);
  transform: scale(1.06);
  box-shadow: 0 0 0 4px var(--color-accent-light);
}

.industry-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-item p {
  font-size: 0.9rem;
  font-weight: 600;
    color: var(--color-text);
}

/* ===================================================
   FAQ SECTION
   =================================================== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-accent);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-accent);
  transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-item.active .faq-question {
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-border-light);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--color-surface-glass);
}

.faq-answer p {
  padding: 1.25rem 1.5rem;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===================================================
   CTA SECTION
   =================================================== */
.cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  background-size: 400% 400%;
  animation: gradientShift 8s ease infinite;
  padding: clamp(4rem, 8vw, 6rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#nodeNetwork {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.cta-section .container {
  z-index: 1;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 152, 99, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaGlow 6s ease-in-out infinite alternate;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(1, 152, 99, 0.1) 0%, transparent 70%);
  pointer-events: none;
  animation: ctaGlow 6s ease-in-out infinite alternate-reverse;
}

@keyframes ctaGlow {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  100% {
    transform: scale(1.3);
    opacity: 1;
  }
}

.cta-section h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--color-white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-section p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  max-width: 520px;
}

/* --- Contact Form Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .cta-section p {
    margin: 0 auto 2rem;
  }
}

.contact-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.875rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(1, 152, 99, 0.25);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.contact-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  display: block;
}

.footer-col a:hover {
  color: var(--color-accent);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===================================================
   BACK TO TOP
   =================================================== */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  z-index: 900;
  box-shadow: 0 4px 12px rgba(1, 152, 99, 0.3);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(1, 152, 99, 0.4);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
}

/* ===================================================
   SCROLL ANIMATIONS
   =================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* ===================================================
   PRELOADER
   =================================================== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  height: 64px;
  width: auto;
  margin: 0 auto 1.5rem;
  animation: preloaderPulse 1.5s ease-in-out infinite;
}

@keyframes preloaderPulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.96);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

.preloader-bar {
  width: 160px;
  height: 3px;
  background: var(--color-border);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto;
}

.preloader-bar-fill {
  width: 0;
  height: 100%;
  background: var(--color-accent);
  border-radius: 3px;
  animation: preloaderFill 1.2s ease-in-out forwards;
}

@keyframes preloaderFill {
  to {
    width: 100%;
  }
}

/* ===================================================
   STATS COUNTER
   =================================================== */
.stats-section {
  background: var(--color-dark);
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-item {
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-accent);
}

.stat-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.5rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ===================================================
   WHATSAPP FLOATING BUTTON
   =================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: whatsappBounce 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  animation: none;
}

@keyframes whatsappBounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .logo-tagline {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .navbar-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-surface);
    flex-direction: column;
    padding: 5rem 2rem 2rem;
    gap: 0.25rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
    transition: right var(--transition), visibility var(--transition);
    z-index: 1050;
    align-items: stretch;
    visibility: hidden;
  }

  .navbar-links.open {
    right: 0;
    visibility: visible;
  }

  .navbar-links a {
    font-size: 1rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--color-text);
  }

  .navbar-cta {
    text-align: center;
    margin-top: 0.5rem;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    z-index: 1100;
  }

  /* Mobile overlay */
  .mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1040;
    opacity: 0;
    transition: opacity var(--transition);
  }

  .mobile-overlay.active {
    display: block;
    opacity: 1;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .industry-img {
    width: 90px;
    height: 90px;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-group {
    flex-direction: column;
    align-items: center;
  }

  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}