/* ===================================
   KERS CONTROL - COMPANY PAGE STYLES
   =================================== */

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

:root {
  --primary-blue: #1a4fff;
  --orange: #ff7f2a;
  --dark-gray: #3a3d4a;
  --white: #ffffff;
  --light-gray: #f5f5f7;
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

body {
  font-family: var(--font-primary);
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===================================
   CANVAS LIGHTNING CURSOR TRAIL
   =================================== */
.lightning-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 1;
}

@media screen and (max-width: 768px) {
  .lightning-canvas {
    display: none;
  }
}

/* ===================================
   NAVIGATION BAR
   ================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
  background-color: transparent;
}

.navbar.scrolled {
  background-color: #0053c5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar.navbar-solid {
  background-color: #0053c5;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  flex-shrink: 0;
  text-decoration: none;
  display: block;
  transition: opacity 0.3s ease;
}

.nav-logo:hover {
  opacity: 0.8;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3.5rem;
  align-items: center;
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: var(--orange);
}

.nav-link.active {
  color: var(--orange);
}

.dropdown-arrow {
  transition: transform 0.3s ease;
}

.has-dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border-radius: 12px;
  padding: 12px 0;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 20px;
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--light-gray);
  color: var(--primary-blue);
  padding-left: 24px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.hamburger-icon {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: all 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background: var(--white);
  left: 0;
  transition: all 0.3s ease;
}

.hamburger-icon::before {
  top: -8px;
}

.hamburger-icon::after {
  bottom: -8px;
}

/* Mobile Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100vh;
  background: var(--dark-gray);
  z-index: 1002;
  transition: right 0.4s ease;
  overflow-y: auto;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo .logo-img {
  height: 36px;
}

.mobile-menu-close {
  background: none;
  border: none;
  color: var(--white);
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-content {
  padding: 1rem 0;
}

.mobile-nav-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-nav-link,
.mobile-nav-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 1.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.mobile-nav-trigger .mobile-arrow {
  transition: transform 0.3s ease;
}

.mobile-nav-trigger.active .mobile-arrow {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0;
}

.mobile-submenu.active {
  display: block;
}

.mobile-submenu a {
  display: block;
  padding: 0.75rem 2rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
}

.mobile-submenu a:hover {
  color: var(--orange);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

/* ===================================
   COMPANY HERO BANNER
   =================================== */
.company-main {
  min-height: 100vh;
}

.company-hero-banner {
  position: relative;
  padding: 160px 60px 80px;
  overflow: hidden;
}

.company-hero-banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, 
    #0a1628 0%, 
    #0d2847 20%, 
    #1a4fff 50%, 
    #0d3a7a 80%, 
    #0a1628 100%);
  z-index: 1;
}

.company-hero-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    radial-gradient(circle at 20% 50%, rgba(26, 79, 255, 0.4) 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(26, 79, 255, 0.2) 0%, transparent 35%);
  z-index: 2;
}

.company-hero-banner-content {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
}

.company-hero-banner-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -1px;
}

/* ===================================
   COMPANY ABOUT SECTION - WHITE BACKGROUND
   With premium blue slogan & highlights area
   =================================== */
.company-about-blue {
  background: var(--white);
  position: relative;
}

.company-about-blue::before {
  display: none;
}

.company-about-blue .about-container {
  position: relative;
  z-index: 2;
}

/* Title Override - Dark for white background */
.company-about-blue .about-main-title {
  color: var(--primary-blue);
}

/* Text Content Override - Dark colors for readability */
.company-about-blue .about-text-block p {
  color: #4b5563;
  line-height: 1.8;
}

/* Premium Blue Slogan Area */
.company-about-blue .about-slogan {
  background: linear-gradient(135deg, #0a1a3a 0%, #0d2a5a 40%, #1a4fff 100%);
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 30px 35px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.company-about-blue .about-slogan::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(26, 79, 255, 0.3) 0%, transparent 60%);
  pointer-events: none;
}

.company-about-blue .about-slogan .slogan-connect {
  color: #6db3ff;
  text-shadow: 0 0 20px rgba(109, 179, 255, 0.5);
}

.company-about-blue .about-slogan .slogan-protect {
  color: var(--orange);
  text-shadow: 0 0 20px rgba(255, 127, 42, 0.5);
}

.company-about-blue .about-slogan .slogan-power {
  color: var(--white);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

.company-about-blue .about-slogan .slogan-text {
  color: rgba(255, 255, 255, 0.85);
}

/* Premium Blue Highlights Area */
.company-about-blue .about-highlights {
  background: linear-gradient(135deg, #0a1a3a 0%, #0d2a5a 40%, #1a4fff 100%);
  border-radius: 16px;
  padding: 40px;
  margin-top: 20px;
  position: relative;
  overflow: hidden;
}

.company-about-blue .about-highlights::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(26, 79, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.company-about-blue .about-highlight-item {
  background: rgba(10, 26, 58, 0.6);
  border: 1px solid rgba(109, 179, 255, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.company-about-blue .about-highlight-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-blue), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.company-about-blue .about-highlight-item:hover::before {
  transform: scaleX(1);
}

.company-about-blue .about-highlight-item:nth-child(2)::before {
  background: linear-gradient(90deg, var(--primary-blue), var(--orange), transparent);
}

.company-about-blue .about-highlight-item:nth-child(3)::before {
  background: linear-gradient(90deg, var(--orange), transparent);
}

.company-about-blue .about-highlight-item:hover {
  background: rgba(10, 26, 58, 0.8);
  border-color: rgba(109, 179, 255, 0.5);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.company-about-blue .about-highlight-item .highlight-label {
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.75rem;
}

.company-about-blue .about-highlight-item .highlight-value {
  color: var(--white);
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* First card - Blue accent */
.company-about-blue .about-highlight-item:nth-child(1) .highlight-value {
  color: #6db3ff;
}

/* Second card - Orange accent */
.company-about-blue .about-highlight-item:nth-child(2) .highlight-value {
  color: var(--orange);
}

/* Third card - Gradient accent */
.company-about-blue .about-highlight-item:nth-child(3) .highlight-value {
  background: linear-gradient(135deg, var(--orange) 0%, #ff9f5a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Image column adjustments for white bg */
.company-about-blue .about-image-wrapper {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.company-about-blue .about-image-overlay {
  background: linear-gradient(135deg, rgba(26, 79, 255, 0.1) 0%, rgba(0, 0, 0, 0.2) 100%);
}

/* ===================================
   REFERENCES SECTION
   =================================== */
.references-section {
  background: #f8f9fc;
  padding: 100px 60px;
}

.references-container {
  max-width: 1200px;
  margin: 0 auto;
}

.references-header {
  text-align: center;
  margin-bottom: 60px;
}

.references-label {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.references-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--dark-gray);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.references-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
}

/* References Grid */
.references-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.reference-card {
  background: var(--white);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reference-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(26, 79, 255, 0.12);
}

.reference-card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fc 100%);
}

.reference-logo-wrap {
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.reference-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(0%);
  transition: filter 0.3s ease;
}

.reference-card:hover .reference-logo {
  filter: grayscale(0%) brightness(1.05);
}

.reference-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-gray);
  text-align: center;
}

/* ===================================
   FOOTER
   =================================== */
.footer-section {
  background: var(--dark-gray);
  padding: 60px 0 30px;
  color: var(--white);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo-img {
  height: 40px;
  margin-bottom: 16px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media screen and (max-width: 992px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .nav-container {
    padding: 1rem 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

@media screen and (max-width: 768px) {
  .company-hero-banner {
    padding: 140px 24px 60px;
  }

  .company-hero-banner-title {
    font-size: 2.5rem;
  }

  .references-section {
    padding: 60px 24px;
  }

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

  .references-title {
    font-size: 2rem;
  }

  .footer-container {
    padding: 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media screen and (max-width: 480px) {
  .company-hero-banner {
    padding: 120px 16px 50px;
  }

  .company-hero-banner-title {
    font-size: 2rem;
  }

  .references-section {
    padding: 50px 16px;
  }

  .references-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .reference-card-inner {
    padding: 20px 15px;
  }

  .reference-logo-wrap {
    width: 80px;
    height: 60px;
  }

  .reference-name {
    font-size: 0.85rem;
  }
}
