/* ==========================================================================
   ACENERGY - Modern CSS with Performance & Accessibility Focus
   ========================================================================== */

/* CSS Custom Properties for Design System */
:root {
  /* Color Palette - ACENERGY Black & White */
  --primary-color: #000000;
  --primary-dark: #1a1a1a;
  --secondary-color: #333333;
  --accent-color: #666666;
  --dark-color: #000000;
  --light-color: #f8f9fa;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-medium: #999999;
  --gray-dark: #333333;

  /* Text Colors */
  --text-color: #333333;
  --text-secondary: #666666;

  /* Additional Gray Shades */
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-300: #dee2e6;
  --gray-400: #ced4da;
  --gray-500: #adb5bd;
  --gray-600: #6c757d;
  --gray-700: #495057;
  --gray-800: #343a40;
  --gray-900: #212529;

  /* Shadows */
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-large: 0 10px 40px rgba(0, 0, 0, 0.25);

  /* Spacing */
  --border-radius: 12px;
  --border-radius-sm: 8px;
  --border-radius-lg: 25px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;

  /* Typography */
  --font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --line-height: 1.7;
  --line-height-tight: 1.2;

  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */

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

/* Focus Management */
:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 6px;
  background: var(--primary-color);
  color: var(--white);
  padding: 8px;
  text-decoration: none;
  border-radius: var(--border-radius-sm);
  z-index: var(--z-fixed);
  transition: var(--transition);
}

.skip-link:focus {
  top: 6px;
}

/* Base Typography */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  line-height: var(--line-height);
}

body {
  font-family: var(--font-family);
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container System */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   Typography System
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: var(--line-height-tight);
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}
h4 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
}
h5 {
  font-size: clamp(1.125rem, 2vw, 1.75rem);
}
h6 {
  font-size: clamp(1rem, 1.5vw, 1.5rem);
}

p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  line-height: var(--line-height);
  color: var(--gray-dark);
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.navbar {
  background: var(--primary-color);
  color: var(--white);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-fixed);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

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

/* Logo */
.navbar .logo h1 {
  margin-bottom: 0.25rem;
}

.navbar .logo h1 a {
  color: var(--white);
  text-decoration: none;
  letter-spacing: 2px;
  transition: var(--transition);
  font-weight: 700;
}

.navbar .logo h1 a:hover {
  filter: brightness(1.1);
}

.navbar .logo p {
  font-size: 0.85rem;
  color: var(--gray-medium);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}

/* Navigation Menu */
.navbar nav.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.navbar nav.nav-menu ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.875rem 1.5rem;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 44px;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  box-sizing: border-box;
  text-overflow: ellipsis;
}

.navbar nav.nav-menu ul li a:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
  background: rgba(255, 255, 255, 0.15);
}

.navbar nav.nav-menu ul li a:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  background: rgba(255, 255, 255, 0.2);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  background: none;
  border: none;
  z-index: var(--z-fixed);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 3px 0;
  transition: var(--transition);
  border-radius: 2px;
}

.nav-menu ul li {
  margin-bottom: 0px;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  margin-top: 80px; /* Account for fixed navbar */
  overflow: hidden;
  width: 100%;
  height: 100vh;
  min-height: 600px;

  .container {
    padding: 0;
    width: 100% !important;
    max-width: 100% !important;
    height: 100%;
    position: relative;

    #carousel-content {
      height: 100%;
      position: relative;

      .carousel-inner {
        height: 100%;
      }

      .carousel-item {
        height: 100%;
        position: relative;

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
          filter: brightness(0.4) contrast(1.1);
        }
      }

      .carousel-item.active img {
        filter: brightness(0.5) contrast(1.2);
      }
    }

    .carousel-description {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      color: var(--white);
      z-index: 1000;
      width: 100%;
      padding: 0 2rem;
      max-width: 90%;

      h2 {
        font-size: clamp(2rem, 3vw, 3.5rem);
        font-weight: 700;
        margin-bottom: 1.5rem;
        line-height: 1.2;
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
        color: var(--white);
      }

      p {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        margin-bottom: 2rem;
        line-height: 1.6;
        text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
        color: rgba(255, 255, 255, 0.95);
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
      }

      .btn {
        font-size: clamp(0.9rem, 2vw, 1.2rem);
        padding: clamp(0.875rem, 2vw, 1.25rem) clamp(2rem, 4vw, 3rem);
        border-radius: var(--border-radius-lg);
        background: var(--primary-color);
        color: var(--white);
        border: 2px solid var(--white);
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        font-weight: 600;
      }

      .btn:hover {
        background: var(--white);
        color: var(--primary-color);
        transform: translateY(-3px);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
      }
    }
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 2.5rem;
  text-decoration: none;
  border-radius: var(--border-radius-lg);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1.2s ease-out 0.9s both;
  border: 2px solid var(--primary-color);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  color: var(--white);
}

.btn:focus {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section-padding {
  padding: 2rem 0;
}

.bg-light {
  background: var(--gray-100);
}

/* Section Headers */
h3 {
  text-align: center;
  position: relative;
  color: var(--primary-color);
  margin-bottom: 3rem;
}

h3::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 1.25rem auto 0;
  border-radius: 2px;
}

h4 {
  position: relative;
  margin-bottom: 1.5rem;
}

/* ==========================================================================
   Lists
   ========================================================================== */

ul {
  list-style: none;
  margin-bottom: 1.5rem;
}

ul li {
  margin-bottom: 1rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1.1rem;
  line-height: var(--line-height);
}

/* ==========================================================================
   Cards & Components
   ========================================================================== */

/* Service Items */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.service-item {
  background: var(--white);
  padding: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

.service-header {
  background: var(--primary-color);
  width: 100%;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-header-logo {
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.service-image {
  width: 100%;
  height: 0;
  padding-bottom: 60%; /* Proporção 5:3 para melhor visualização */
  overflow: hidden;
  position: relative;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
}

.service-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.service-item:hover .service-image img {
  transform: scale(1.05);
}

.service-item h4 {
  color: var(--primary-color);
  margin: 1.5rem 1.5rem 1rem;
  font-weight: 600;
}

.service-item p {
  margin: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
}

/* Technology Items */
.tech-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.tech-item {
  background: var(--white);
  padding: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.tech-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.tech-item h4 {
  color: var(--secondary-color);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

/* Feature Highlight Section */
.feature-highlight {
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--gray-200);
  padding: 3rem;
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.feature-highlight::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary-color);
}

.feature-content h4 {
  color: var(--primary-color);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.feature-content p {
  color: var(--gray-dark);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.feature-list li {
  padding-left: 2rem;
  position: relative;
  font-weight: 500;
  color: var(--secondary-color);
  margin-bottom: 0;
}

.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-color);
  font-weight: 800;
  font-size: 1.2rem;
  line-height: 1.5;
}

.feature-image {
  position: relative;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  height: 100%;
  min-height: 350px;
}

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

.feature-highlight:hover .feature-image img {
  transform: scale(1.03);
}

@media (max-width: 992px) {
  .feature-highlight {
    grid-template-columns: 1fr;
    padding: 2rem;
    gap: 2rem;
  }

  .feature-image {
    min-height: 300px;
    order: -1; /* Image on top on mobile */
  }
}

/* Audience Section */
.audience-section ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.audience-section ul li {
  background: var(--white);
  padding: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--gray-200);
  font-weight: 600;
  color: var(--dark-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin: 0;
  text-align: center;
}

.audience-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}

.audience-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.audience-section ul li:hover .audience-image img {
  transform: scale(1.05);
}

.audience-section ul li h4 {
  padding: 1.5rem 1.5rem 1rem;
  margin: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
  font-weight: 600;
}

.audience-section ul li:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  background: var(--gray-100);
}

/* ==========================================================================
   Contact Section
   ========================================================================== */

.contact-section {
  background: var(--gray-100);
  border-radius: var(--border-radius);
  padding: 4rem 2.5rem;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.contact-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-color);
}

.contact-section::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.02) 0%, transparent 70%);
  pointer-events: none;
}

.contact-section h3 {
  margin-bottom: 2rem;
  position: relative;
}

.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
  color: var(--gray-dark);
  font-size: 1.1rem;
  line-height: 1.6;
}

.contact-section h3::after {
  width: 120px;
  height: 3px;
  background: var(--primary-color);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact-row {
  display: grid;
  gap: 2rem;
  width: 100%;
}

.contact-row-top {
  grid-template-columns: repeat(3, 1fr);
}

.contact-row-bottom {
  grid-template-columns: repeat(2, 1fr);
  max-width: calc(2 * ((100% - 2rem) / 3) + 2rem);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 992px) {
  .contact-row-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-row-bottom {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

.contact-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.contact-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
  border-color: var(--primary-color);
}

.contact-item:hover::before {
  transform: scaleX(1);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-icon::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.contact-item:hover .contact-icon::before {
  left: 100%;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--white);
  transition: var(--transition);
}

.contact-item:hover .contact-icon {
  transform: scale(1.1) rotate(5deg);
}

.contact-item h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 1.2rem;
}

.contact-item p {
  color: var(--gray-dark);
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  background: rgba(0, 0, 0, 0.05);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.contact-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  transition: left 0.3s ease;
  z-index: -1;
}

.contact-link:hover {
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-light);
  border-color: var(--primary-color);
}

.contact-link:hover::before {
  left: 0;
}

.contact-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition);
}

.contact-link:hover svg {
  transform: translateX(3px);
}

.contact-section address {
  font-style: normal;
}

.location-info {
  background: rgba(0, 0, 0, 0.05);
  padding: 1rem;
  border-radius: var(--border-radius-sm);
  margin-top: 1rem;
  text-align: center;
  border-left: 3px solid var(--primary-color);
}

.location-info strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* Contact CTA */
.contact-cta {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem;
  background: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-light);
  border: 2px solid rgba(0, 0, 0, 0.05);
}

.contact-cta h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.contact-cta p {
  color: var(--gray-dark);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: var(--border-radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
  box-shadow: var(--shadow-light);
  border: 2px solid var(--primary-color);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
  color: var(--white);
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  transition: var(--transition);
}

.cta-button:hover svg {
  transform: translateX(5px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  background: var(--primary-color);
  color: var(--white);
  text-align: center;
  padding: 2.5rem 0;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
}

footer p {
  color: var(--white);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Animations
   ========================================================================== */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ==========================================================================
   Mobile Menu Styles
   ========================================================================== */

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .navbar nav.nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--primary-color);
    backdrop-filter: blur(15px);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
  }

  /* Overlay for mobile menu */
  .navbar nav.nav-menu::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  .navbar nav.nav-menu.active::before {
    opacity: 1;
  }

  .navbar nav.nav-menu.active {
    right: 0;
  }

  .navbar nav.nav-menu ul {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    width: 100%;
    justify-content: center;
  }

  .navbar nav.nav-menu ul li {
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    display: flex;
    align-items: center;
  }

  .navbar nav.nav-menu.active ul li {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar nav.nav-menu ul li:nth-child(1) {
    transition-delay: 0.1s;
  }
  .navbar nav.nav-menu ul li:nth-child(2) {
    transition-delay: 0.2s;
  }
  .navbar nav.nav-menu ul li:nth-child(3) {
    transition-delay: 0.3s;
  }
  .navbar nav.nav-menu ul li:nth-child(4) {
    transition-delay: 0.4s;
  }

  .navbar nav.nav-menu ul li a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border-radius: var(--border-radius-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 160px;
    height: 50px;
    text-align: center;
    white-space: nowrap;
    box-sizing: border-box;
  }

  .navbar nav.nav-menu ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }

  .navbar nav.nav-menu ul li a:focus {
    outline: 2px solid var(--white);
    outline-offset: 2px;
    background: rgba(255, 255, 255, 0.25);
  }

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

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

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

  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }

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

  /* Responsive adjustments */
  .hero-section {
    height: 80vh;
    min-height: 500px;
    margin-top: 100px;

    .container {
      padding: 0;
      .carousel-description {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        text-align: center;
        width: 100%;
        padding: 0 1.5rem;
        max-width: 95%;

        h2 {
          font-size: clamp(1.8rem, 4vw, 2.5rem);
          margin-bottom: 1rem;
          line-height: 1.2;
        }

        p {
          font-size: clamp(0.9rem, 2.5vw, 1.1rem);
          margin-bottom: 1.5rem;
          max-width: 100%;
          line-height: 1.5;
        }

        .btn {
          font-size: clamp(0.8rem, 2vw, 1rem);
          padding: clamp(0.75rem, 2vw, 1rem) clamp(1.5rem, 4vw, 2rem);
        }
      }
    }
  }

  .section-padding {
    padding: 2rem 0;
  }

  .service-list,
  .tech-highlights {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .service-header {
    padding: 1.25rem;
  }

  .service-header-logo {
    max-width: 150px;
  }

  .service-image,
  .tech-image,
  .audience-image {
    height: 180px;
  }

  .audience-section ul,
  .commitment-section ul {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 2.5rem;
  }

  .contact-info {
    gap: 1.5rem;
    max-width: none;
  }

  .contact-row-top,
  .contact-row-bottom {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .contact-row-bottom {
    max-width: 100%;
  }

  .contact-item {
    padding: 1.5rem;
  }

  .contact-icon {
    width: 50px;
    height: 50px;
  }

  .contact-icon svg {
    width: 20px;
    height: 20px;
  }

  .contact-link {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }

  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }

  .cta-button svg {
    width: 18px;
    height: 18px;
  }

  .hero-section {
    height: 70vh;
    min-height: 400px;

    .container {
      .carousel-description {
        padding: 0 1rem;
        max-width: 100%;

        h2 {
          font-size: clamp(1.5rem, 5vw, 2rem);
          margin-bottom: 0.75rem;
        }

        p {
          font-size: clamp(0.8rem, 3vw, 1rem);
          margin-bottom: 1rem;
          line-height: 1.4;
        }

        .btn {
          font-size: clamp(0.75rem, 2.5vw, 0.9rem);
          padding: clamp(0.625rem, 2vw, 0.875rem) clamp(1.25rem, 3vw, 1.75rem);
        }
      }
    }
  }

  /* Touch optimization for mobile */
  .carousel-control-prev,
  .carousel-control-next {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ==========================================================================
   Small Screen Optimizations
   ========================================================================== */

@media (max-width: 480px) {
  .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }

  .service-item,
  .tech-item {
    padding: 0;
  }

  .service-header {
    padding: 1rem;
  }

  .service-header-logo {
    max-width: 120px;
  }

  .service-image,
  .tech-image,
  .audience-image {
    height: 150px;
  }

  .contact-section {
    padding: 2rem 1rem;
  }

  .contact-info {
    gap: 1rem;
  }

  .contact-row-top,
  .contact-row-bottom {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .contact-item {
    padding: 1.25rem;
  }

  .contact-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 1rem;
  }

  .contact-icon svg {
    width: 18px;
    height: 18px;
  }

  .contact-item h4 {
    font-size: 1.1rem;
  }

  .contact-item p {
    font-size: 0.9rem;
  }

  .contact-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
  }

  .contact-cta {
    padding: 1.5rem;
    margin-top: 2rem;
  }

  .cta-button {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .cta-button svg {
    width: 18px;
    height: 18px;
  }

  .hero-section {
    height: 70vh;
    min-height: 400px;

    .container {
      .carousel-description {
        padding: 0 1rem;
        max-width: 100%;

        h2 {
          font-size: clamp(1.5rem, 5vw, 2rem);
          margin-bottom: 0.75rem;
        }

        p {
          font-size: clamp(0.8rem, 3vw, 1rem);
          margin-bottom: 1rem;
          line-height: 1.4;
        }

        .btn {
          font-size: clamp(0.75rem, 2.5vw, 0.9rem);
          padding: clamp(0.625rem, 2vw, 0.875rem) clamp(1.25rem, 3vw, 1.75rem);
        }
      }
    }
  }

  /* Touch optimization for mobile */
  .carousel-control-prev,
  .carousel-control-next {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
  .navbar,
  .mobile-menu-toggle,
  .btn {
    display: none !important;
  }

  .hero-section {
    min-height: auto;
    padding: 2rem 0;
  }

  .section-padding {
    padding: 2rem 0;
  }

  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   High Contrast Mode Support
   ========================================================================== */

@media (prefers-contrast: high) {
  :root {
    --primary-color: #000000;
    --secondary-color: #333333;
    --accent-color: #666666;
  }
}

/* ==========================================================================
   Enhanced Section Transitions
   ========================================================================== */

/* Section entrance animations */
.section-padding {
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-padding.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Section divider line */
.section-padding::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--primary-color),
    transparent
  );
  opacity: 0;
  transform: scaleX(0);
  transition: all 0.6s ease;
}

.section-padding.animate-in::before {
  opacity: 1;
  transform: scaleX(1);
}

/* Staggered animations for section children */
.section-padding.animate-in > * {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-padding.animate-in > *:nth-child(1) {
  transition-delay: 0.1s;
}
.section-padding.animate-in > *:nth-child(2) {
  transition-delay: 0.2s;
}
.section-padding.animate-in > *:nth-child(3) {
  transition-delay: 0.3s;
}
.section-padding.animate-in > *:nth-child(4) {
  transition-delay: 0.4s;
}
.section-padding.animate-in > *:nth-child(5) {
  transition-delay: 0.5s;
}
.section-padding.animate-in > *:nth-child(6) {
  transition-delay: 0.6s;
}

.section-padding.animate-in > *.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced card animations */
.service-item,
.tech-item,
.audience-section ul li,
.commitment-section ul li {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-item.animate-in,
.tech-item.animate-in,
.audience-section ul li.animate-in,
.commitment-section ul li.animate-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Staggered card animations */
.service-list .service-item:nth-child(1) {
  transition-delay: 0.1s;
}
.service-list .service-item:nth-child(2) {
  transition-delay: 0.2s;
}
.service-list .service-item:nth-child(3) {
  transition-delay: 0.3s;
}
.service-list .service-item:nth-child(4) {
  transition-delay: 0.4s;
}
.service-list .service-item:nth-child(5) {
  transition-delay: 0.5s;
}
.service-list .service-item:nth-child(6) {
  transition-delay: 0.6s;
}

.tech-highlights .tech-item:nth-child(1) {
  transition-delay: 0.1s;
}
.tech-highlights .tech-item:nth-child(2) {
  transition-delay: 0.2s;
}

.audience-section ul li:nth-child(1) {
  transition-delay: 0.1s;
}
.audience-section ul li:nth-child(2) {
  transition-delay: 0.2s;
}
.audience-section ul li:nth-child(3) {
  transition-delay: 0.3s;
}
.audience-section ul li:nth-child(4) {
  transition-delay: 0.4s;
}

.commitment-section ul li:nth-child(1) {
  transition-delay: 0.1s;
}
.commitment-section ul li:nth-child(2) {
  transition-delay: 0.2s;
}
.commitment-section ul li:nth-child(3) {
  transition-delay: 0.3s;
}
.commitment-section ul li:nth-child(4) {
  transition-delay: 0.4s;
}
.commitment-section ul li:nth-child(5) {
  transition-delay: 0.5s;
}
.commitment-section ul li:nth-child(6) {
  transition-delay: 0.6s;
}

/* Smooth scroll behavior enhancement */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Account for fixed navbar */
}

/* Background transition effects */
.bg-light {
  background: var(--gray-100);
  position: relative;
  overflow: hidden;
}

.bg-light::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
  transition: left 0.8s ease;
}

.bg-light.animate-in::before {
  left: 100%;
}

/* ==========================================================================
   Reduced Motion Support
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Performance and Accessibility Optimizations */
@media (prefers-reduced-motion: reduce) {
  .carousel-item {
    transition: none !important;
  }

  .carousel-control-prev:hover,
  .carousel-control-next:hover {
    transform: translateY(-50%) !important;
  }

  .carousel-description .btn:hover {
    transform: translateY(0) !important;
  }
}

/* Landscape orientation optimization for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-section {
    height: 60vh;
    min-height: 300px;
  }

  .carousel-description {
    top: 45%;

    h2 {
      font-size: clamp(1.2rem, 3vw, 1.8rem);
      margin-bottom: 0.5rem;
    }

    p {
      font-size: clamp(0.7rem, 2vw, 0.9rem);
      margin-bottom: 0.75rem;
    }

    .btn {
      font-size: clamp(0.7rem, 1.8vw, 0.8rem);
      padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(1rem, 2.5vw, 1.5rem);
    }
  }
}

/* ==========================================================================
   Technology Section
   ========================================================================== */

.technology-section {
  background: var(--white);
  color: var(--text-color);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  position: relative;
}

.technology-section h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.tech-intro {
  margin-bottom: 1rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.tech-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0 3rem 0;
}

/* Single tech item layout */
.tech-highlights-single {
  display: flex;
  justify-content: center;
  max-width: 800px;
  margin: 3rem auto;
}

.tech-item-featured {
  width: 100%;
  max-width: 700px;
  text-align: center;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-large);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.tech-item-featured:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-heavy);
}

.tech-item-featured .tech-image {
  height: 300px;
  position: relative;
  overflow: hidden;
}

.tech-item-featured .tech-content {
  padding: 2.5rem;
}

.tech-item-featured h4 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
}

.tech-item-featured p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.tech-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.tech-feature {
  background: var(--gray-100);
  color: var(--text-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-lg);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.tech-feature:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.tech-item {
  background: var(--white);
  padding: 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
}

.tech-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.tech-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  position: relative;
}

.tech-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.tech-item:hover .tech-image img {
  transform: scale(1.05);
}

.tech-item h4 {
  color: var(--primary-color);
  margin: 1.5rem 1.5rem 1rem;
  font-size: 1.25rem;
}

.tech-item p {
  color: var(--text-primary);
  margin: 0 1.5rem 1.5rem;
  line-height: 1.6;
}

/* ==========================================================================
   KPI Section
   ========================================================================== */

.kpi-section {
  margin-top: 3rem;
  padding: 3rem 2rem;
  background: var(--white);
  border-radius: var(--border-radius-lg);
  color: var(--text-color);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.kpi-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gray-300), transparent);
}

.kpi-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--primary-color),
    var(--secondary-color),
    var(--primary-color)
  );
  background-size: 200% 100%;
  animation: gradientShift 3s ease infinite;
}

.kpi-title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.kpi-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  text-align: center;
  color: var(--text-primary) !important;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* ==========================================================================
   KPI Section Styles
   ========================================================================== */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.kpi-card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.kpi-card:hover::before {
  transform: scaleX(1);
}

.kpi-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-large);
  border-color: var(--primary-color);
}

.kpi-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 1rem;
  line-height: 1;
}

.kpi-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.kpi-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  text-align: center;
}

/* Responsive design for KPI section */
@media (max-width: 768px) {
  .tech-highlights-single {
    margin: 2rem 1rem;
  }

  .tech-item-featured .tech-content {
    padding: 2rem 1.5rem;
  }

  .tech-item-featured h4 {
    font-size: 1.5rem;
  }

  .tech-item-featured p {
    font-size: 1rem;
  }

  .tech-features {
    gap: 0.75rem;
  }

  .tech-feature {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
  }

  .kpi-card {
    padding: 1.5rem;
  }

  .kpi-number {
    font-size: 2.5rem;
  }

  .kpi-label {
    font-size: 1.1rem;
  }

  .kpi-description {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .tech-highlights-single {
    margin: 1.5rem 0.5rem;
  }

  .tech-item-featured .tech-content {
    padding: 1.5rem 1rem;
  }

  .tech-item-featured h4 {
    font-size: 1.3rem;
  }

  .tech-item-featured p {
    font-size: 0.95rem;
  }

  .tech-features {
    flex-direction: column;
    align-items: center;
  }

  .tech-feature {
    width: 100%;
    max-width: 200px;
    text-align: center;
  }

  .kpi-card {
    padding: 1.25rem;
  }

  .kpi-number {
    font-size: 2.25rem;
  }

  .kpi-label {
    font-size: 1rem;
  }

  .kpi-description {
    font-size: 0.9rem;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .kpi-card {
    transition: none;
  }

  .kpi-card::before {
    display: none;
  }

  .kpi-card:hover {
    transform: none;
  }
}

/* ==========================================================================
   About Section Styles
   ========================================================================== */

.about-section {
  background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
  position: relative;
  overflow: hidden;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 3rem;
}

.about-text h3 {
  color: var(--primary-color);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-align: center;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: justify;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-image-carousel {
  position: relative;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-large);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 800px;
  margin: 0 auto 3rem auto;
}

.about-image-carousel:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.about-image-carousel .carousel {
  position: relative;
  width: 100%;
}

.about-image-carousel .carousel-inner {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.about-image-carousel .carousel-item {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.about-image-carousel .carousel-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.about-image-carousel:hover .carousel-item.active img {
  transform: scale(1.05);
}

.about-image-carousel .carousel-control-prev,
.about-image-carousel .carousel-control-next {
  width: 50px;
  height: 50px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.about-image-carousel:hover .carousel-control-prev,
.about-image-carousel:hover .carousel-control-next {
  opacity: 1;
}

.about-image-carousel .carousel-control-prev {
  left: 20px;
}

.about-image-carousel .carousel-control-next {
  right: 20px;
}

.about-image-carousel .carousel-control-prev-icon,
.about-image-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
  background-size: 100% 100%;
}

.about-image-carousel .carousel-indicators {
  margin-bottom: 20px;
}

.about-image-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  border: 2px solid var(--white);
  opacity: 0.7;
  transition: all 0.3s ease;
}

.about-image-carousel .carousel-indicators button.active {
  background-color: var(--white);
  opacity: 1;
  transform: scale(1.2);
}

.about-image-carousel .carousel-indicators button:hover {
  opacity: 1;
}

/* About Section Pillars Styles */
.about-pillars {
  margin-top: 0;
  padding-top: 2rem;
  border-top: 2px solid var(--gray-200);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.about-pillars h4 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-align: center;
}

.pillars-intro {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;

  b {
    font-style: italic;
  }
}

.pillars-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pillars-list li {
  padding: 0;
  line-height: 1.6;
  color: var(--text-primary);
}

.pillars-list strong {
  color: var(--primary-color);
  font-weight: 600;
  display: block;
  margin-bottom: 0.5rem;
}

/* Responsive design for about section */
@media (max-width: 768px) {
  .about-content {
    margin-bottom: 2rem;
  }

  .about-text h3 {
    font-size: 2rem;
  }

  .about-text p {
    text-align: center;
    font-size: 1rem;
  }

  .about-image-carousel {
    margin-bottom: 2rem;
  }

  .about-image-carousel .carousel-control-prev,
  .about-image-carousel .carousel-control-next {
    width: 40px;
    height: 40px;
    opacity: 0.8;
  }

  .about-image-carousel .carousel-control-prev {
    left: 10px;
  }

  .about-image-carousel .carousel-control-next {
    right: 10px;
  }

  .about-image-carousel .carousel-indicators {
    margin-bottom: 15px;
  }

  .about-image-carousel .carousel-indicators button {
    width: 10px;
    height: 10px;
  }

  .about-pillars {
    margin-top: 0;
    padding-top: 1.5rem;
  }

  .about-pillars h4 {
    font-size: 1.6rem;
  }

  .pillars-intro {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .pillars-list {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .about-text h3 {
    font-size: 1.8rem;
  }

  .about-text p {
    font-size: 0.95rem;
  }

  .about-pillars h4 {
    font-size: 1.5rem;
  }

  .pillars-intro {
    font-size: 0.95rem;
  }

  .pillars-list {
    gap: 1rem;
  }

  .pillars-list li {
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   Video Highlight Section
   ========================================================================== */
.video-highlight {
  margin-top: 3rem;
  margin-bottom: 3rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.video-highlight video {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
  display: block;
  max-height: 600px;
  object-fit: cover;
}

.video-container-vertical {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
}

.video-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: var(--border-radius-sm);
}

.video-caption {
  margin-top: 1.5rem;
  margin-bottom: 0;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  .video-container-vertical {
    max-width: 100%;
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .video-container-vertical {
    max-width: 100%;
    max-width: 300px;
  }

  .video-caption {
    font-size: 0.85rem;
    margin-top: 1rem;
  }
}
