/*
 * Common Bootstrap Styles - Shared across all pages
 * Brand colors and typography from style.html
 */

/* ========================================
   TYPOGRAPHY
   ======================================== */

body {
  font-family: 'Outfit', sans-serif;
  color: #2D3F7F;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
  line-height: 125%;
  color: #2D3F7F;
}

h1 { font-weight: 700; }
h2 { font-weight: 600; }
h3 { font-weight: 600; }
h5 { font-weight: 600; }
h6 { font-weight: 400; }

/* ========================================
   BRAND COLORS
   ======================================== */

:root {
  /* Primary Colors */
  --primary-light: #C7D2FE;
  --primary-dark: #2D3F7F;
  --primary-btn: #3146A3;
  --primary-hover: #4766E5;

  /* Accent Colors */
  --accent-50: #EFF1FE;
  --accent-100: #E0E6FE;
  --accent-200: #C7D2FF;
  --accent-300: #A6B4FD;
  --accent-400: #8299F7;
  --accent-500: #647FF2;
  --accent-600: #4766E5;
  --accent-700: #3756CB;
  --accent-800: #3146A3;
  --accent-900: #2D3F7F;
  --accent-950: #1B244B;

  /* Utility Colors */
  --error-red: #A50000;
  --light-grey: #f0f0f0;
  --medium-grey: #666666;
}

/* Bootstrap overrides */
.text-primary { color: var(--primary-dark) !important; }
.bg-primary { background-color: var(--primary-btn) !important; }
.text-muted { color: var(--medium-grey) !important; }
.bg-light { background-color: var(--accent-50) !important; }

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary {
  background-color: var(--primary-btn);
  border-color: var(--primary-btn);
  color: #FFFFFF;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(71, 102, 229, 0.3);
}

.btn-secondary {
  background-color: var(--accent-50);
  border-color: var(--accent-100);
  color: var(--primary-dark);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-secondary:hover,
.btn-secondary:focus {
  background-color: var(--accent-100);
  filter: drop-shadow(0px 0px 1rem var(--accent-400));
}

/* ========================================
   NAVIGATION
   ======================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #FFFFFF !important;
  padding: 0.75rem 0;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--accent-100);
}

.navbar.scrolled {
  box-shadow: 0 2px 8px rgba(45, 63, 127, 0.1);
}

.navbar-brand img {
  height: auto;
  transition: transform 0.3s ease;
}

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

.navbar-nav .nav-link {
  font-family: 'Raleway', sans-serif;
  font-weight: 500;
  color: var(--primary-dark);
  padding: 0.5rem 0.75rem;
  font-size: 1.2rem;
  transition: color 0.2s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--primary-hover);
}

.nav-divider {
  width: 1px;
  height: 16px;
  background-color: var(--accent-200);
  display: inline-block;
  margin: 0 0.25rem;
}

.language-dropdown .flag-icon {
  font-size: 1.25rem;
}

.dropdown-menu {
  border: 1px solid var(--accent-100);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(45, 63, 127, 0.1);
  margin-top: 0.5rem;
}

.dropdown-item {
  font-family: 'Outfit', sans-serif;
  color: var(--primary-dark);
  font-weight: 400;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--accent-50);
  color: var(--primary-hover);
}

.navbar-toggler {
  border-color: var(--accent-200);
}

.btn-demo {
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 0.5rem 1.25rem;
}

/* Mobile dropdown styles - Always show expanded */
@media (max-width: 991px) {
  .nav-divider {
    display: none;
  }

  /* Hide dropdown toggle arrow in mobile */
  .navbar-collapse .dropdown-toggle::after {
    display: none;
  }

  /* Make dropdown toggles look like regular nav items */
  .navbar-collapse .dropdown-toggle {
    pointer-events: none;
    cursor: default;
  }

  /* Always show dropdown menus in mobile */
  .navbar-collapse .dropdown-menu {
    position: static !important;
    transform: none !important;
    border: none;
    box-shadow: none;
    background-color: transparent;
    margin-top: 0;
    margin-left: 1.5rem;
    border-radius: 0;
    display: block !important;
    padding-left: 0;
  }

  /* Style dropdown items to look hierarchical */
  .navbar-collapse .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    color: var(--primary-dark);
    border-left: 2px solid var(--accent-200);
    margin-left: 0.5rem;
  }

  .navbar-collapse .dropdown-item:hover {
    background-color: var(--accent-50);
    border-left-color: var(--primary-hover);
  }

  /* Add spacing between dropdown sections */
  .navbar-collapse .dropdown {
    margin-bottom: 0.5rem;
  }
}

/* ========================================
   DARK SECTION
   ======================================== */

.dark-section {
  background-color: var(--primary-dark) !important;
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4,
.dark-section h5,
.dark-section h6,
.dark-section p {
  color: #FFFFFF !important;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(91, 84, 84, 0.15) !important;
  
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15) !important;
}

.card-title {
  color: var(--primary-dark);
}

.card-text {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================
   HERO SECTION (SHARED)
   ======================================== */

.hero-section {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  max-height: 500px;
  overflow: hidden;
  background-color: #000;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 1s ease-in;
}

.hero-video.loaded {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 50%;
  left: 8%;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 50%;
}

.hero-overlay-right {
  position: absolute;
  top: 50%;
  right: 8%;
  left: auto;
  transform: translateY(-50%);
  z-index: 10;
  max-width: 50%;
}

.hero-title {
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 20px 25px;
  border-radius: 8px;
  line-height: 1.5;
  font-size: 1.75rem;
  font-weight: 400;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 0;
}

@media (max-width: 992px) {
  .hero-section {
    aspect-ratio: 16 / 9;
    max-height: 400px;
  }

  .hero-overlay,
  .hero-overlay-right {
    left: 50%;
    right: auto;
    transform: translate(-50%, -50%);
    max-width: 85%;
    text-align: center;
  }

  .hero-title {
    font-size: 1.35rem;
    padding: 18px 22px;
  }
}

@media (max-width: 576px) {
  .hero-section {
    aspect-ratio: 4 / 3;
    max-height: 300px;
  }

  .hero-title {
    font-size: 1.1rem;
    padding: 15px 18px;
  }
}

/* ========================================
   FOOTER
   ======================================== */

.footer-section {
  background-color: var(--accent-50);
}

.footer-section a {
  transition: color 0.2s ease;
}

.footer-section a:hover {
  color: var(--primary-hover) !important;
}

footer a {
  color: var(--primary-dark);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--primary-hover);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.fade-in-element {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-element.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   PARALLAX BACKGROUND
   ======================================== */

.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.parallax-overlay::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.parallax-overlay .container,
.parallax-overlay .container-fluid {
  position: relative;
  z-index: 2;
}

/* ========================================
   RESPONSIVE ADJUSTMENTS
   ======================================== */

@media (max-width: 768px) {
  h3 {
    font-size: 1.5rem;
  }

  h5 {
    font-size: 1.25rem;
  }

  h6 {
    font-size: 1rem;
  }
}

/* ========================================
   TESTIMONIALS
   ======================================== */

.testimonial-card {
  transition: all 0.3s ease;
  background-color: #FFFFFF;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(45, 63, 127, 0.15) !important;
}

.testimonial-card .card-title {
  color: var(--primary-dark);
  font-size: 1.25rem;
}

.testimonial-card .card-text {
  color: var(--medium-grey);
  font-style: italic;
  line-height: 1.6;
}

/* ========================================
   LOGO CAROUSEL
   ======================================== */

.logo-carousel-container {
  position: relative;
  overflow: hidden;
  padding: 2rem 0;
  width: 100%;
}

.logo-carousel-track {
  display: flex;
  gap: 3rem;
  animation: scroll 30s linear infinite;
  width: fit-content;
}

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 80px;
}

.logo-item img,
.partner-logo {
  max-width: 150px;
  max-height: 80px;
  height: 60px;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.logo-item:hover img,
.partner-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
}

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

/* Pause on hover */
.logo-carousel-track:hover {
  animation-play-state: paused;
}

@media (max-width: 768px) {
  .partner-logo {
    height: 40px;
    margin: 0 2rem;
  }
}

/* ========================================
   BUTTON VARIANTS
   ======================================== */

.btn-outline-primary {
  border: 2px solid var(--primary-hover);
  color: var(--primary-hover);
  background-color: transparent;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--primary-hover);
  color: #FFFFFF;
}

/* ========================================
   SECTION TITLES
   ======================================== */

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--medium-grey);
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .section-title {
    font-size: 1.75rem;
  }
}

/* ========================================
   SOLUTION CARDS
   ======================================== */

.solution-card {
  transition: all 0.3s ease;
  background-color: #FFFFFF;
  overflow: hidden;
}

.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(45, 63, 127, 0.15) !important;
}

.solution-card .card-title {
  color: var(--primary-dark);
  font-size: 1.5rem;
}

.solution-card .card-text {
  color: var(--medium-grey);
}

.solution-card a {
  color: inherit;
}

/* ========================================
   PERFORMANCE BARS
   ======================================== */

.performance-bar {
  margin-bottom: 2rem;
}

.performance-bar .bar-row {
  display: grid;
  grid-template-columns: minmax(200px, 250px) 1px 1fr;
  gap: 1rem;
  align-items: center;
}

.bar-label {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  color: var(--primary-dark);
  text-align: right;
}

.bar-divider {
  width: 1px;
  height: 40px;
  background-color: #dee2e6;
}

.bar-container {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-600), var(--accent-400));
  border-radius: 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  width: 0%;
  transition: width 2s ease-out;
}

.bar-fill.bar-fill-2 {
  background: linear-gradient(90deg, var(--accent-700), var(--accent-500));
}

.bar-fill.bar-fill-3 {
  background: linear-gradient(90deg, var(--accent-800), var(--accent-600));
}

.bar-value {
  color: #FFFFFF;
  font-family: 'Raleway', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}

@media (max-width: 768px) {
  .performance-bar .bar-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .bar-label {
    text-align: left;
  }

  .bar-divider {
    display: none;
  }
}

/* ========================================
   FEATURE ITEMS
   ======================================== */

.feature-item {
  text-align: center;
  padding: 2rem 1rem;
}

.feature-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin: 0 auto;
}

.feature-item h5 {
  color: var(--primary-dark);
  font-weight: 600;
  margin-bottom: 1rem;
}

.feature-item p {
  color: var(--medium-grey);
  line-height: 1.6;
}

@media (max-width: 991px) {
  .feature-item {
    margin-bottom: 2rem;
  }
}

@media (max-width: 768px) {
  .feature-icon {
    width: 60px;
    height: 60px;
  }
}

/* ========================================
   REPORT FEATURES
   ======================================== */

.report-feature {
  text-align: left;
  padding: 0;
}

.report-icon {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.report-feature h5 {
  color: var(--primary-dark);
  font-weight: 600;
}

.report-feature p {
  color: var(--medium-grey);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 45ch;
}

@media (max-width: 768px) {
  .report-icon {
    width: 60px;
    height: 60px;
  }
}

/* ========================================
   STAT ITEMS
   ======================================== */

.stat-item {
  padding: 2rem;
}

.stat-number {
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-number h1 {
  font-size: 5rem;
  line-height: 1;
}

.stat-number h3 {
  font-size: 2.5rem;
  line-height: 1;
}

@media (max-width: 768px) {
  .stat-number h1 {
    font-size: 3rem;
  }

  .stat-number h3 {
    font-size: 1.5rem;
  }
}

/* ========================================
   INTEGRATION MARQUEE
   ======================================== */

.marquee-container {
  overflow: hidden;
  padding: 1rem 0;
}

.marquee-track {
  display: flex;
  gap: 4rem;
  animation: marquee 40s linear infinite;
}

.marquee-reverse {
  animation-direction: reverse;
}

.integration-logo {
  height: 50px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.integration-logo:hover {
  opacity: 1;
}

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