/* 
  Main Custom CSS 
  Do NOT change spacing, colors, or layout from the design.
*/

:root {
  --primary-color: #E30613;
  --bg-color: #000000;
  --text-light: #f8f9fa;
  --text-muted: #adb5bd;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color);
  color: #ffffff;
}

/* Typography Utilities */
.text-primary {
  color: var(--primary-color) !important;
}
.bg-primary {
  background-color: var(--primary-color) !important;
}
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #c40510;
  border-color: #c40510;
}

/* Image lazy loading support class */
img.lazyload {
  opacity: 0;
  transition: opacity 0.3s ease-in;
}
img.lazyloaded {
  opacity: 1;
}

/* Navbar Styling */
.custom-navbar {
  background-color: var(--bg-color);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  padding-bottom: 1rem;
  transition: all 0.3s ease;
}
.navbar-logo {
  height: 45px;
  width: auto;
}
.custom-navbar .nav-link {
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}
.custom-navbar .nav-link:hover {
  color: var(--primary-color);
}
.custom-navbar .nav-link.active {
  color: #ffffff;
  position: relative;
}
.custom-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
}
.nav-active-link {
  color: var(--primary-color, #E30613) !important;
}
.nav-active-link::after {
  content: '';
  display: block;
  width: 100%;
  height: 2px;
  background: var(--primary-color, #E30613);
  margin-top: 4px;
}

.active-products {
  color: var(--primary-color, #E30613) !important;
  position: relative;
}
.active-products::after {
  display: inline-block !important; /* Keep the caret display enabled */
}
.active-products-underline {
  /* Separating line styling */
}
.nav-item.dropdown:has(.active-products) {
  position: relative;
}
.nav-item.dropdown:has(.active-products) > a::before {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 2px;
  background-color: var(--primary-color, #E30613);
}

/* Show Dropdown Menu on Hover for Desktop/Laptop screens */
@media (min-width: 992px) {
  .custom-navbar .nav-item.dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0; /* Align correctly under the menu bar */
  }
}

.btn-demo {
  padding: 0.6rem 1.5rem;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.custom-toggler {
  border-color: rgba(255,255,255,0.5);
}
.custom-toggler .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section Styling */
.hero-section {
  background-color: #080808;
  overflow: hidden;
}
.hero-line {
  display: inline-block;
  width: 30px;
  height: 2px;
  background-color: var(--primary-color);
}
.hero-subtitle {
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: #e0e0e0;
}
.hero-title {
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero-description {
  color: #a0a0a0;
  line-height: 1.6;
}
.hero-btn {
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.hero-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.hero-btn-outline:hover {
  background-color: #ffffff;
  color: var(--bg-color);
}
.hero-btn-outline:hover svg path {
  fill: var(--bg-color);
}

/* Red Glow Effect */
.red-glow-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.15) 0%, rgba(0,0,0,0) 60%);
  z-index: 0;
  pointer-events: none;
}
.hero-img {
  mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 15%, black 100%);
}

.hero-bottom-border {
  height: 1px;
  background: linear-gradient(90deg, rgba(227,6,19,1) 0%, rgba(227,6,19,0) 100%);
}

/* Features Strip & Marquee */
.features-strip {
  background-color: #0b0b0b;
  border-color: #1a1a1a !important;
  overflow: hidden;
}

.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  position: relative;
}

.marquee-content {
  display: inline-flex;
  align-items: center;
  animation: marquee-scroll 25s linear infinite;
}

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

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

.marquee-item {
  display: inline-flex;
  align-items: center;
  padding: 0 3rem;
  border-right: 1px solid #1a1a1a;
  transition: opacity 0.3s ease;
}

.marquee-item:hover {
  opacity: 0.8;
}

.feature-icon {
  height: 36px;
  width: auto;
  transition: transform 0.3s ease;
}
.marquee-item:hover .feature-icon {
  transform: scale(1.1);
}
.feature-title {
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  color: #ffffff;
  line-height: 1.4;
}

/* Services Section */
.services-section {
  background-color: #f8f9fa !important;
}
.tracking-wider {
  letter-spacing: 2px;
  font-size: 0.85rem;
}
.text-black {
  color: #111111;
}
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-color: #e9ecef !important;
  background-color: #ffffff;
  border-radius: 8px !important; /* Based on image looks slightly rounded but wait, design might be square. The design says "border rounded-0" in html. Let's force square if we put rounded-0, but image might be slightly rounded. The prompt says "card size, typography, borders". I will stick to border rounded-0 if the design is sharp. */
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}
.service-icon {
  height: 64px;
  width: auto;
}
.card-title {
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  color: #1a1a1a;
}
.learn-more {
  font-size: 0.85rem;
  letter-spacing: 1px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-block;
}
.learn-more:hover {
  color: #b0050f !important;
  transform: translateX(3px);
}

.capability-item {
  transition: transform 0.3s ease;
}
.capability-item:hover {
  transform: translateY(-5px);
}
.capability-icon-wrapper {
  transition: background-color 0.3s ease;
}
.capability-item:hover .capability-icon-wrapper {
  background-color: rgba(227, 6, 19, 0.15) !important;
}

/* Industries Section */
.industries-section {
  background-color: #0d0d0d;
}
.industry-card {
  transition: transform 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #000;
  cursor: pointer;
}
.industry-card:hover {
  transform: scale(1.03);
  border-color: rgba(227, 6, 19, 0.5);
}
.industry-img {
  display: block;
  transition: opacity 0.3s ease;
}
.industry-card:hover .industry-img {
  opacity: 0.9;
}

/* Platform Section */
.custom-checklist li {
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  color: #2b2b2b;
}
.platform-btn {
  font-size: 0.9rem;
  letter-spacing: 1px;
}
.platform-img-col img {
  transform: scale(1.1); /* Scale up to match the overlap in design */
  transform-origin: right center;
}

/* Stats Section */
.stats-section {
  background-color: #0b0b0b;
  border-top-color: rgba(227, 6, 19, 0.3) !important;
  border-bottom-color: rgba(227, 6, 19, 0.3) !important;
  background: radial-gradient(ellipse at 15% 50%, rgba(227, 6, 19, 0.12) 0%, rgba(11, 11, 11, 1) 60%);
}
.stats-item::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.1);
}
.stats-item:last-child::after {
  display: none;
}
.cta-block {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Section */
.footer-section {
  background-color: #000000;
}
.footer-logo {
  height: 38px;
  width: auto;
}
.footer-desc {
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 90%;
}
.social-icons-img {
  opacity: 0.7;
  transition: opacity 0.3s ease;
  filter: grayscale(100%) brightness(200%);
}
.social-icons-img:hover {
  opacity: 1;
  filter: none;
}
.footer-links li {
  margin-bottom: 0.8rem;
}
.footer-links a, .footer-contact a, .footer-contact span {
  color: #8c8c8c;
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
}
.footer-links a:hover, .footer-contact a:hover {
  color: var(--primary-color);
}
.footer-contact li {
  font-size: 0.85rem;
}
.copyright-text {
  font-size: 0.75rem;
}
.hover-white:hover {
  color: #ffffff !important;
}

/* Mobile Adjustments */
@media (max-width: 991.98px) {
  .platform-img-col img {
    transform: scale(1);
    transform-origin: center center;
  }
  .cta-block {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
  }
}

@media (max-width: 767.98px) {
  .stats-item:nth-child(2)::after {
    display: none;
  }
  .stats-item:nth-child(1), .stats-item:nth-child(2) {
    margin-bottom: 1.5rem;
  }
  .features-strip .row {
    /* Allow Bootstrap grid classes to handle layout instead of forcing column */
  }
  .feature-item {
    border-right: none;
    border-bottom: none;
  }
  .feature-item:last-child {
    border-bottom: none;
  }
}

