@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,700&display=swap');

/* ========== Design Tokens ========== */
:root {
  --color-bg: #f9f8f8;
  --color-text: #011627;
  --color-primary: #d94948;
  --color-primary-strong: #c13c3b;
  --color-accent: #146a80;
  --color-surface: #ffffff;
  --color-muted: #6b7b8e;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --shadow-sm: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-lg: 0 16px 40px rgba(0,0,0,0.18);

  --scroll-offset: 110px;
}

html {
  scroll-behavior: smooth;
}

/* ========== Base Styles ========== */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
}
img, video {
  max-width: 100%;
  height: auto;
  display: block;
}
.text-justify {
  text-align: justify;
}

/* Offset anchors for fixed navbar */
section[id] {
  scroll-margin-top: var(--scroll-offset);
}

/* ========== Navbar ========== */
.custom-toggler {
  font-size: 1.5rem;
  border: none;
}
.custom-toggler {
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 12px;
  padding: 0.25rem 0.6rem;
}
.navbar-logo {
  max-width: 190px;
  max-height: 110px;
  height: auto;
  width: auto;
  transition: max-width 0.2s, max-height 0.2s;
  object-fit: contain;
}

.navbar .nav-link {
  transition: color 0.2s ease;
}
.navbar .nav-link.active,
.navbar .nav-link:focus {
  color: var(--color-primary) !important;
}
.navbar.scrolled {
  backdrop-filter: saturate(120%) blur(8px);
  background-color: rgba(1, 22, 39, 0.6) !important;
}


/* ========== Hero Section ========== */
.hero-section {
  min-height: 100vh;
  padding-top: var(--scroll-offset);
  color: #fff;
  display: flex;
  align-items: center;
  position: relative;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(rgba(1,22,39,0.55), rgba(1,22,39,0.55));
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
}

/* ========== Buttons ========== */
.animated-btn {
  transition: transform 0.2s, box-shadow 0.2s;
}
.animated-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}
.btn {
  font-weight: 500;
}
.btn-danger {
  background-color: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
}
.btn-danger:hover {
  background-color: var(--color-primary-strong) !important;
  border-color: var(--color-primary-strong) !important;
}

/* ========== Typography (clamp) ========== */
.hero-section h1 {
  font-size: clamp(1.8rem, 2.2vw + 1.2rem, 3rem);
}
section h2 {
  font-size: clamp(1.4rem, 1.2vw + 1rem, 2rem);
}
.lead {
  font-size: clamp(1rem, 0.6vw + 0.9rem, 1.25rem);
}

/* ========== Section Titles ========== */
.section-title {
  font-weight: 700;
  margin-bottom: 1rem;
}
.bg-light-alt {
  background: #f8f9fa;
}

/* ========== Content Helpers ========== */
#delivers .border {
  border-color: rgba(1, 22, 39, 0.08) !important;
  box-shadow: var(--shadow-sm);
}
#delivers .hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
#delivers .hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
#features ul li,
#benefits ul li {
  margin-bottom: 0.5rem;
}

/* Polished cards and lists for Features/Benefits */
.content-card {
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(1, 22, 39, 0.06);
}
.content-card:hover {
  box-shadow: var(--shadow-md);
}
.check-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.75rem;
  text-align: justify;
}
.check-list li::before {
  content: "\f26e"; /* bi-check2-circle */
  font-family: 'bootstrap-icons';
  position: absolute;
  left: 0;
  top: 0.05rem;
  color: var(--color-accent);
  font-size: 1.2rem;
}
.section-illustration {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
  border: 1px solid rgba(1, 22, 39, 0.06);
  padding: clamp(8px, 0.6vw, 14px);
  height: clamp(240px, 38vw, 460px);
  width: 100%;
  object-fit: contain;
}
.section-illustration:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 991.98px) {
  .section-illustration {
    height: clamp(200px, 50vw, 360px);
  }
}
@media (max-width: 575.98px) {
  .section-illustration {
    height: clamp(180px, 58vw, 300px);
  }
}

/* ========== Partners ========== */
#partners .partners-logo {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  /* filter: grayscale(100%); */
  opacity: 0.9;
  transition: filter 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}
#partners .partners-logo:hover {
  /* filter: grayscale(0%); */
  opacity: 1;
  transform: translateY(-2px);
}

#partners .carousel-control-prev-icon,
#partners .carousel-control-next-icon {
  filter: invert(1) grayscale(100%);
}

/* ========== Partners Marquee (Advanced) ========== */
#partners .partners-marquee {
  position: relative;
  overflow: hidden;
}
#partners .partners-marquee::before,
#partners .partners-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
#partners .partners-marquee::before {
  left: 0;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
}
#partners .partners-marquee::after {
  right: 0;
  background: linear-gradient(270deg, rgba(255,255,255,1), rgba(255,255,255,0));
}
#partners .marquee-track {
  display: flex;
  width: max-content;
}
#partners .marquee-group {
  display: flex;
  align-items: center;
  animation: marquee-scroll 22s linear infinite;
}
#partners .partners-marquee:hover .marquee-group {
  animation-play-state: paused;
}
#partners .marquee-item {
  flex: 0 0 auto;
}
@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  #partners .marquee-group {
    animation: none;
  }
}

/* ========== Animations ========== */
[data-anim] {
  opacity: 0;
  will-change: transform, opacity;
  transition-property: transform, opacity;
  transition-duration: 600ms;
  transition-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
[data-anim].in-view {
  opacity: 1;
  transform: none;
}
/* Variants */
[data-anim="fade-up"] {
  transform: translateY(16px);
}
[data-anim="fade-in"] {
  transform: none;
}
[data-anim="zoom-in"] {
  transform: scale(0.96);
}
[data-anim="slide-left"] {
  transform: translateX(20px);
}
[data-anim="slide-right"] {
  transform: translateX(-20px);
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .hero-bg-video {
    display: none !important;
  }
}

/* ========== Features Section ========== */
.features_section {
  background: url('../media/images/working-1.jpg') center center/cover no-repeat;
  position: relative;
  color: #fff;
  min-height: 80vh;
  display: flex;
  align-items: center;
}
.features_section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 50, 0.7); 
  z-index: 1;
}
.features_section .container {
  position: relative;
  z-index: 2;
}
.features_section h2,
.features_section h3,
.features_section p {
  color: #fff;
}
.features_section .col-lg-6 {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.features_section .left-hr {
  border: none;
  border-top: 2px solid #fff;
  width: 90%;
  margin: 2rem 0 0 0;
}


/* ========== Safety Section ========== */
.safety_section {
  position: relative;
  z-index: 1;
}
.safety_section > .container,
.safety_section .row,
.safety_section .col-12,
.safety_section h2,
.safety_section h3 {
  position: relative;
  z-index: 3;
}

/* ========== Responsive Typography ========== */

@media (max-width: 991.98px) {
  .navbar .navbar-brand,
  .navbar .nav-link {
    color: #111 !important;
  }
  .navbackground {
    background: #fff !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 32px rgba(0,0,0,0.12);
  }
  /* Let Bootstrap's default container padding manage gutters on mobile */
  .navbackground-mobile {
    background: #222f3e !important;
    z-index: 1055 !important;
    border-radius: 0 !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  }
  .features_section {
    min-height: unset;
    padding: 3rem 0;
  }
  .features_section .row {
    flex-direction: column;
  }
  .features_section .col-lg-6 {
    margin-bottom: 2rem;
  }
}



@media (max-width: 767.98px) {
  .display-4, .display-3, .display-2, .display-1 {
    font-size: 2rem !important;
  }
  .btn {
    font-size: 1rem !important;
    padding: 0.5rem 1.2rem !important;
  }
}

@media (max-width: 575.98px) {
  .navbar-logo {
    max-width: 150px;
    max-height: 90px;
  }
}

/* ========== Utilities ========== */
.bg-accent {
  background: var(--color-accent) !important;
}
