/* 
   Ripple Template Clone Styles
*/

:root {
  --bg-color: #F8F9FC;
  --text-color: #1A1A2E;
  --text-muted: #6B7280;
  --primary-blue: #2563EB;
  --primary-blue-hover: #1D4ED8;
  --accent-green: #ECFDF5;
  --accent-blue-dark: #EFF6FF;
  --card-bg: #FFFFFF;
  --border-color: #E5E7EB;
  --font-main: "DM Sans", sans-serif;

  --container-width: 1200px;
  --section-spacing: 120px;
  --radius-lg: 24px;
  --radius-md: 12px;
  --font-mono: "DM Mono", monospace;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  height: 100%;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: var(--font-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.page-wrapper > .footer {
  margin-top: auto;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s ease;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
}

.section-heading {
  font-size: 3rem;
  margin-bottom: 20px;
}

.section-heading-center {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 60px;
}

.section-subheading {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 60px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 100px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.button-primary {
  background-color: var(--primary-blue);
  color: white;
}

.button-primary:hover {
  background-color: var(--primary-blue-hover);
  transform: translateY(-2px);
}

.button-secondary {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  margin-left: 16px;
}

.button-secondary:hover {
  border-color: var(--text-color);
}

.button-white {
  background-color: white;
  color: var(--primary-blue);
}

.button-white:hover {
  background-color: #f0f0f0;
}

.button-transparent {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid var(--border-color);
  margin-left: 16px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px 0;
  z-index: 1000;
  background-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  padding: 12px 0;
  background-color: #2D2D2D;
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

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

.nav-logo {
  position: relative;
  display: inline-block;
}

.logo-img {
  display: block;
  transition: opacity 0.3s ease;
}

.logo-card {
  height: 10px;
  width: auto;
}

.logo-white {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.navbar.scrolled .logo-default {
  opacity: 0;
}

.navbar.scrolled .logo-white {
  opacity: 1;
}

.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu-toggle {
  display: none;
  color: #FFFFFF;
  cursor: pointer;
}

/* Hero Section */
/* Hero Section */
.hero-wrapper {
  position: relative;
  height: auto; /* Static height */
  z-index: 1;
  background: #ffffff;
}

.hero-section {
  position: relative;
  height: 100vh;
  min-height: 800px;
  overflow: hidden;
  padding: 0;
  width: 100%;
  background: #ffffff;
}

.hero-section.sticky-hero {
  position: relative;
}

.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0px;
  will-change: inset, border-radius, box-shadow;
}

/* Background Video Styles */
.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Glow effect moved to inner so it scales */
.hero-inner::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, rgba(0,0,0,0) 70%);
    z-index: 2;
    pointer-events: none;
}

.hero-video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  z-index: 2;
}

/* ── Hero Slider ─────────────────────────────── */
.hero-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero slide background video (YouTube) */
.hero-slide-video-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide-video-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw; /* 16:9 */
  min-height: 100%;
  min-width: 177.78vh; /* 16:9 */
  transform: translate(-50%, -50%);
  border: 0;
}

.hero-video-mute-btn {
  position: absolute;
  bottom: 96px;
  right: 32px;
  z-index: 11;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.hero-video-mute-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  transform: scale(1.05);
}

.hero-video-mute-btn i {
  width: 20px;
  height: 20px;
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.42);
}

/* Text block — centered */
.hero-slide-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 clamp(24px, 8vw, 160px) 80px;
  gap: 20px;
}

.hero-slide-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-slide-eyebrow::before,
.hero-slide-eyebrow::after {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: rgba(255,255,255,0.45);
}

.hero-slide-text {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  margin: 0;
  max-width: 780px;
}

/* Buttons */
.hero-slide-actions {
  display: flex;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.hero-btn-primary {
  background: #ffffff;
  color: #111111;
  border: 2px solid #ffffff;
}

.hero-btn-primary:hover {
  background: rgba(255,255,255,0.88);
}

.hero-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255,255,255,0.6);
}

.hero-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: #ffffff;
}

/* ── Bottom bar ──────────────────────────────── */
.hero-slider-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 6vw, 100px) 28px;
  gap: 20px;
}

.hero-slider-arrows {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Prev / Next buttons */
.hero-slider-btn {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
  flex-shrink: 0;
}

.hero-slider-btn:hover {
  background: rgba(255,255,255,0.28);
}

.hero-slider-btn svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

/* Progress line */
.hero-slider-progress {
  flex: 1;
  height: 2px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}

.hero-slider-progress-fill {
  height: 100%;
  width: 25%;
  background: #fff;
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* Counter */
.hero-slider-counter {
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}

.hero-counter-current {
  font-size: 1.4rem;
  font-weight: 500;
  color: #fff;
  line-height: 1;
}

.hero-counter-sep {
  opacity: 0.4;
  margin: 0 2px;
}

.hero-container {
  position: relative;
  z-index: 3;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-heading {
  font-size: 4rem;
  max-width: 900px;
  margin-bottom: 24px;
  line-height: 1.1;
  background: linear-gradient(
    180deg,
    #1A1A2E 0%,
    rgba(26, 26, 46, 0.85) 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

.hero-subheading {
  font-size: 1.25rem;
  max-width: 600px;
  margin-bottom: 40px;
  text-shadow: none;
  color: var(--text-muted);
}

.hero-logo {
  max-width: 300px;
  height: auto;
  margin-bottom: 32px;
}

/* Hero Visual - removed 'margin-top' since we are centering vertically,
   or we preserve it if we want the visual to be part of the flow */
.hero-visual {
  margin-top: 40px;
  /* Keeping the rest similar */
  position: relative;
  width: 100%;
  max-width: 900px;
  height: 400px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
  /* Hiding the old hero visual since we have a video now, or keep it if desired. 
       User didn't explicitly say remove it, but it might clutter. I'll hide it for now to match the clear video look. */
  display: none;
}

/* Logos Marquee */
.logos-marquee-section {
  padding: 48px 0;
  overflow: hidden;
  background: var(--bg-color);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.logos-marquee-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: marquee-scroll 22s linear infinite;
}

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

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-marquee-item {
  flex-shrink: 0;
  cursor: pointer;
  padding: 8px 16px;
}

.logo-marquee-item img {
  height: 90px;
  width: auto;
  display: block;
  filter: brightness(1);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-marquee-item:hover img {
  transform: scale(1.12);
  opacity: 1;
}

/* Mission, Vision & Objectives Section */
.mv-section {
  background: #251f61;
  padding: 100px 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.mv-section .section-heading-center {
  color: #ffffff;
}

.mv-section-mision {
  padding: 100px 0;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
}
.mv-section .section-heading-center {
  color: #ffffff;
}

.mv-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 56px;
}

/* Col 1: Texto */
.mv-text-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mv-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-blue);
}

.mv-eyebrow-bar {
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--primary-blue);
  border-radius: 2px;
  flex-shrink: 0;
}

.mv-main-heading {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-color);
  line-height: 1.1;
}

.mv-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mv-block-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-blue);
}

.mv-block-body {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.mv-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-blue);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap 0.25s ease;
  align-self: flex-start;
}

.mv-cta:hover {
  gap: 14px;
}

/* Col 2: Imágenes con clip-path */
.mv-image-col {
  position: relative;
  height: 460px;
}

.mv-img-top,
.mv-img-bottom {
  position: absolute;
  width: 75%;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.mv-img-top {
  top: 0;
  right: 0;
  height: 55%;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
}

.mv-img-bottom {
  bottom: 0;
  left: 0;
  height: 55%;
  clip-path: polygon(0 0, 85% 0, 100% 100%, 0 100%);
}

.mv-img-top img,
.mv-img-bottom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fila de tarjetas inferior */
.mv-cards-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mv-obj-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: #2C9FEE;
  border-radius: var(--radius-md);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.mv-obj-card:hover {
  box-shadow: 0 4px 20px rgba(37,99,235,0.1);
  transform: translateY(-2px);
}

.mv-obj-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.mv-obj-icon svg {
  width: 22px;
  height: 22px;
  color: #ffffff;
}

.mv-obj-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.mv-obj-body {
  font-size: 0.82rem;
  color: #ffffff;
  line-height: 1.6;
}

@media (max-width: 1024px) {
  .mv-image-col {
    display: none;
  }
  .mv-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .mv-cards-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mv-main-heading {
    font-size: 2rem;
  }
  .mv-cards-row {
    grid-template-columns: 1fr;
  }
}

/* Infinite Slider Section */
.slider-section {
  padding: 0;
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--bg-color);
}

.slider-container {
  position: relative;
  width: 100%;
  /* Aspect ratio or fixed height */
  height: 500px;
}

.slider-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 33.333%; /* Show 3 slides at a time */
  height: 100%;
  position: relative;
  overflow: hidden;
  border-right: 1px solid var(--border-color);
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.slide:hover img {
  transform: scale(1.05);
}

.slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: white;
  z-index: 2;
}

.slide-content h3 {
  font-size: 2rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.slide-content p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 90%;
}

/* Slider Controls */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color);
  z-index: 10;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.slider-btn:hover {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}

.prev-btn {
  left: 20px;
}
.next-btn {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

/* Slider Dots */
.dot {
  width: 10px;
  height: 10px;
  background: rgba(26, 26, 46, 0.25);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: var(--primary-blue);
  transform: scale(1.2);
}

.red {
  background: #ff5f56;
}
.yellow {
  background: #ffbd2e;
}
.green {
  background: #27c93f;
}

.skeleton-line {
  background: #ddd;
  height: 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.full {
  width: 100%;
}
.half {
  width: 60%;
}

.chart-mockup {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 100px;
  margin-top: 20px;
}

.bar {
  width: 15%;
  background: var(--primary-blue);
  border-radius: 4px 4px 0 0;
  opacity: 0.8;
}

.h-40 {
  height: 40%;
}
.h-70 {
  height: 70%;
}
.h-50 {
  height: 50%;
}
.h-90 {
  height: 90%;
}
.h-60 {
  height: 60%;
}

/* Sections */
.section {
  padding: var(--section-spacing) 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 60px;
}

/* Features Section */
.features-section {
  overflow: hidden;
}

.features-inner {
  display: flex;
  align-items: center;
  gap: 60px;
}

.features-text {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.features-logo {
  margin-bottom: 24px;
}

.features-heading {
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.fh-small {
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-muted);
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 4px;
}

.fh-large {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-color);
  display: block;
}

.fh-accent {
  font-size: 4rem;
  font-weight: 900;
  color: var(--primary-blue);
  display: block;
  line-height: 1.05;
}

.fh-accent-mid {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-blue);
  display: inline;
  line-height: 1.05;
}

.fh-mid {
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-color);
  display: inline;
  margin-right: 8px;
}

.features-subheading {
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.features-btn {
  font-size: 1rem;
  padding: 14px 32px;
}

.features-image {
  flex: 1 1 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.features-globe {
  width: 100%;
  max-width: 680px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
  position: relative;
  z-index: 1;
}

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

@media (max-width: 900px) {
  .features-inner {
    flex-direction: column;
    gap: 40px;
  }
  .features-image {
    width: 100%;
  }
  .fh-large  { font-size: 2.8rem; }
  .fh-accent { font-size: 3.4rem; }
  .fh-mid    { font-size: 1.8rem; }
}

/* Bento Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 400px;
  gap: 24px;
}

.bento-item {
  background-color: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.bento-item:hover {
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.item-content {
  position: relative;
  z-index: 2;
}

.item-content h3 {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.item-content p {
  font-size: 1rem;
  line-height: 1.6;
}

/* Grid Spans */
.item-large-dark {
  grid-column: span 2;
  background: linear-gradient(135deg, #F0F4FF 0%, #E8ECFB 100%);
  color: var(--text-color);
}

.item-large-dark h3 {
  color: var(--text-color);
}

.item-large-dark p {
  color: var(--text-muted);
}

.item-green {
  grid-column: span 1;
  background: radial-gradient(circle at top right, #D1FAE5 0%, #ECFDF5 100%);
  color: #065F46;
}

.item-green p {
  color: #047857;
}

.item-blue {
  grid-column: span 1;
  background: radial-gradient(circle at bottom left, #DBEAFE 0%, #EFF6FF 100%);
  color: #1E3A5F;
}

.item-blue p {
  color: #2563EB;
}

.item-small-dark {
  grid-column: span 2;
  background: #F3F4F6;
  color: var(--text-color);
}

/* Bento Visuals */
.item-visual {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.flow-visual {
  justify-content: flex-start;
  gap: 20px;
}

.flow-node {
  padding: 10px 20px;
  background: #F3F4F6;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.9rem;
}

.flow-node.success {
  background: rgba(39, 201, 63, 0.1);
  color: #27c93f;
  border-color: rgba(39, 201, 63, 0.3);
}

.stats-visual {
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
}

.stat-row .val {
  font-weight: 700;
}

.globe-circle {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 0, 0, 0.15);
  position: relative;
}

.globe-circle::after {
  content: "●";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--primary-blue);
  font-size: 20px;
}

.virtual-card {
  width: 200px;
  height: 120px;
  background: linear-gradient(135deg, #E5E7EB 0%, #F3F4F6 100%);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.virtual-card::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 20px;
  width: 30px;
  height: 20px;
  background: #CBD5E1;
  border-radius: 4px;
}

/* Marquee */
.marquee-section {
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.marquee-label {
  text-align: center;
  margin-bottom: 40px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.marquee-track-container {
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  gap: 80px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.brand-logo {
  font-weight: 800;
  font-size: 1.5rem;
  color: #C4C8D0;
  user-select: none;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Customers */
.customers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.customer-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.customer-card:hover {
  transform: translateY(-5px);
}

.customer-image {
  height: 200px;
  background-color: #F3F4F6;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CSS Placeholders for Images */
.placeholder-img-1 {
  background: url("https://images.unsplash.com/photo-1556761175-5973dc0f32e7?q=80&w=800&auto=format&fit=crop")
    center/cover;
}
.placeholder-img-2 {
  background: url("https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=800&auto=format&fit=crop")
    center/cover;
}
.placeholder-img-3 {
  background: url("https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=800&auto=format&fit=crop")
    center/cover;
}

.customer-content {
  padding: 32px;
}

.customer-content h4 {
  margin-bottom: 12px;
  color: var(--text-color);
}

.customer-content p {
  font-size: 1.1rem;
  margin-bottom: 24px;
  font-style: italic;
}

.read-story {
  color: var(--primary-blue);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* CTA Section */
.cta-section {
  background: var(--primary-blue);
  margin: 60px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  padding: 100px 24px;
  color: white;
}

.cta-container h2 {
  font-size: 3.5rem;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Footer */
.footer {
  background: #111111;
  padding: 60px 24px 40px;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
}

.footer-nav a {
  color: #aaaaaa;
  font-size: 0.95rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #222222;
  color: #ffffff !important;
  text-decoration: none;
  transition: background 0.2s;
}

.footer-social-icon:hover {
  background: #333333;
}

.footer-social-icon svg {
  width: 20px;
  height: 20px;
  stroke: #ffffff !important;
}

.footer-copy {
  color: #666666;
  font-size: 0.85rem;
  text-align: center;
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .item-large-dark,
  .item-small-dark {
    grid-column: span 2;
  }
  .hero-heading {
    font-size: 3rem;
  }
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #FFFFFF;
  z-index: 2000;
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transform: translateY(-100%);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active {
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.menu-close {
  color: var(--text-color);
  cursor: pointer;
  padding: 8px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0; /* Removing gap, using padding instead */
  width: 100%;
}

.mobile-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-color);
}

.link-icon {
  width: 20px;
  height: 20px;
  color: var(--text-color);
}

.mobile-nav-buttons {
  margin-top: auto;
  display: flex;
  gap: 16px;
  width: 100%;
}

.mobile-btn-login {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  border-radius: 99px;
  height: 50px;
}

.mobile-btn-start {
  flex: 1;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 99px;
  height: 50px;
}

@media (max-width: 768px) {
  .nav-links,
  .nav-buttons {
    display: none;
  }
  .menu-toggle {
    display: block;
    z-index: 1001; /* Above mobile menu */
  }

  .bento-grid {
    display: flex;
    flex-direction: column;
  }

  .customers-grid,
  .related-articles-grid {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    gap: 12px 24px;
  }

  .cta-container h2 {
    font-size: 2.5rem;
  }

  .section-heading,
  .section-heading-center {
    font-size: 2.25rem;
  }

  .hero-heading {
    font-size: 2.5rem;
    padding: 0 10px;
  }

  .slide {
    min-width: 100%;
  }
  .hero-section {
    min-height: 100vh;
  }

  /* Adjust Bento items for mobile */
  .bento-item {
    padding: 24px;
    min-height: 300px;
  }

  .slider-container {
    height: 60vh; /* Better for mobile portrait */
  }
}

/* Company Modal Styles */
.company-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.company-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}

.modal-card {
  position: relative;
  background: #FFFFFF;
  padding: 0;
  border-radius: 20px;
  width: 90%;
  max-width: 900px;
  z-index: 2001;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
  transform: translateY(20px);
  transition: transform 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.modal-card.is-light {
  color: #111;
  border-color: rgba(0, 0, 0, 0.1);
}

.modal-card.is-light .modal-close {
  color: #111;
}

.modal-card.is-light .modal-right h2 {
  background: none;
  -webkit-text-fill-color: initial;
  color: #000;
}

.modal-card.is-light .modal-right p {
  color: #333;
}

.company-modal.active .modal-card {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: transform 0.2s;
}

.modal-close:hover {
  transform: scale(1.1);
}

.modal-body h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #1A1A2E, #4B5563);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.modal-body p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.modal-body .button {
  width: auto;
  display: inline-flex;
}

/* Modal Grid Layout */
.modal-grid {
  display: flex;
  width: 100%;
  min-height: 400px; /* Minimum height for the modal */
}

.modal-left {
  width: 50%;
  position: relative;
  background-color: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.modal-feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-right {
  width: 50%;
  padding: 40px 40px 40px 40px; /* Padding inside the content area */
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

.modal-logo-container {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.modal-logo-container img {
  max-width: 180px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  /* Filter: brightness(0) invert(1); Default white logo if transparent PNG, handled by JS theme */
}

.modal-right {
  flex-grow: 1;
}

.modal-right h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #1A1A2E, #4B5563);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: 0;
}

.modal-right p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Specific background styles handled by JS or inline styles */

@media (max-width: 768px) {
  .modal-grid {
      flex-direction: column;
  }
  .modal-left {
      width: 100%;
      height: 200px;
      margin-bottom: 0;
  }
  .modal-right {
      width: 100%;
      padding: 24px;
      text-align: center;
      align-items: center;
  }
  .modal-logo-container {
      justify-content: center;
  }
}

/* Slider Button Outline Styles */
.slide-info-btn {
  /* Inherits .button styles */
  padding: 10px 24px;
  background: transparent;
  border-width: 2px;
  border-style: solid;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.btn-outline-dark {
  color: #000000;
  border-color: #000000;
}

.btn-outline-dark:hover {
  background-color: #000000;
  color: #ffffff;
}

.btn-outline-light {
  color: #ffffff;
  border-color: #ffffff;
}

.btn-outline-light:hover {
  background-color: #ffffff;
  color: #000000;
}

/* Modal Outline Button */
.btn-modal-outline {
  background: transparent;
  border: 1px solid var(--text-color);
  color: var(--text-color);
  margin-top: 10px;
}

.btn-modal-outline:hover {
  background: var(--text-color);
  color: white;
}

/* Light Theme Modal Button Override */
.modal-card.is-light .btn-modal-outline {
  border-color: var(--text-color);
  color: var(--text-color);
}

.modal-card.is-light .btn-modal-outline:hover {
  background: var(--text-color);
  color: white;
}

/* Contact Section */
.contact-section {
  background-color: var(--bg-color);
  padding: 100px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* Left: Form card */
.contact-form-wrapper {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 32px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-row--full {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-color);
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  background: #F9FAFB;
  border: 1px solid var(--border-color);
  padding: 14px 16px;
  border-radius: var(--radius-md);
  color: var(--text-color);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: all 0.3s ease;
  width: 100%;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: #FFFFFF;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.contact-form textarea {
  resize: vertical;
  min-height: 130px;
}

.contact-submit-btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  justify-content: center;
}

/* Right: Info card */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info-card {
  background: var(--primary-blue);
  border-radius: var(--radius-lg);
  padding: 36px;
  color: white;
}

.contact-info-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 28px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon-wrap {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-wrap i {
  width: 18px;
  height: 18px;
  color: white;
}

.contact-info-item > div:not(.contact-icon-wrap) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 2px;
}

.info-label {
  font-size: 0.72rem;
  opacity: 0.65;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
}

.contact-info-item span:last-child {
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Map */
.contact-map iframe {
  width: 100%;
  height: 220px;
  border-radius: var(--radius-lg);
  border: none;
  display: block;
}

/* Mobile */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 32px 24px;
  }
}

/* Dropdown Styles */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #2D2D2D;
  min-width: 220px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  z-index: 1000;
  padding: 8px 0;
  margin-top: 10px;
}

/* Invisible bridge so hover doesn't drop */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 10px;
}

.nav-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-item {
  position: relative;
}

.dropdown-item a {
  color: rgba(255, 255, 255, 0.85);
  padding: 12px 20px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.dropdown-item a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.submenu-icon {
  width: 14px;
  height: 14px;
}

.submenu-content {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: #2D2D2D;
  min-width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  padding: 8px 0;
}

.dropdown-item.has-submenu:hover .submenu-content {
  display: block;
}

/* Invisible bridge for submenu */
.dropdown-item.has-submenu::after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 10px;
  height: 100%;
}

/* Minimalist Video Player */
.video-section {
  padding: 40px 0 80px 0;
  background-color: var(--bg-color);
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,0.12);
  background-color: #000;
  cursor: pointer;
  /* Let the video dictate the aspect ratio naturally to fit perfectly */
}

.minimal-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  display: block;
  border-radius: var(--radius-lg); /* explicitly apply round corners */
  overflow: hidden;
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-container:hover .video-overlay {
  opacity: 1;
}

.video-control-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.3s ease;
}

.video-control-btn:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.3);
}

.video-control-btn i {
  width: 32px;
  height: 32px;
}
