/* THEME COLORS */
:root {
  --primary: #ff3131;
  --primary-hover: #d90404;
  --dark: #000000;
  --white: #ffffff;
  --glow-color: rgba(255, 49, 49, 0.8);
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #000 !important;
  color: white;
}

/* 
   STRICT Hero Gradient 
   Black -> Vibrant Red -> Black
*/
#home {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 100vh !important;
  width: 100% !important;
  background: linear-gradient(180deg, 
    #000000 0%, 
    #ff0000 50%, 
    #000000 100%
  ) !important;
  background-size: cover !important;
  padding-top: 100px;
  position: relative; /* Needed for absolute positioning */
  overflow: hidden; /* Hide overflowing content */
}

/* Transparent Navbar */
.navbar {
  background: transparent !important;
  border-bottom: none !important;
  padding: 25px 0;
  transition: all 0.4s ease;
}

/* Add a subtle background only when scrolling */
.navbar.scrolled {
  background: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(10px);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Mobile menu background when expanded */
.navbar-collapse.show {
  background-color: var(--dark) !important; /* Black background when menu is open */
  padding: 15px; /* Add some padding */
  border-radius: 8px; /* Slightly rounded corners */
  margin-top: 10px; /* Space from toggler */
}

.navbar-brand {
  color: white !important;
  letter-spacing: 2px;
  font-size: 1.5rem;
}

.navbar-logo {
  height: 40px; /* Base height */
  width: auto;
  vertical-align: middle;
}

/* Increase logo size for desktop views */
@media (min-width: 992px) { /* Bootstrap's 'lg' breakpoint */
  .navbar-logo {
    height: 50px; /* Slightly bigger for desktop */
  }
}

.nav-link {
  color: white !important;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s;
  letter-spacing: 1px;
}

.nav-link:hover {
  color: var(--primary) !important;
}

.text-gradient {
  background: linear-gradient(90deg, #ffffff, #ff3131);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Glowing Edge Button Style */
.btn-primary {
  position: relative;
  background-color: var(--primary) !important;
  border: none !important;
  color: white !important;
  padding: 12px 30px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

/* The Animated Glow Edge */
.btn-primary::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, 
    transparent, 
    transparent, 
    var(--white), 
    var(--primary), 
    transparent, 
    transparent
  );
  background-size: 200% 200%;
  z-index: -1;
  border-radius: 50px;
  animation: glowMove 3s linear infinite;
  opacity: 1;
}

/* Inner overlay to keep button solid */
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--primary);
  border-radius: 48px;
  z-index: -1;
  transition: background 0.3s;
}

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

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 20px var(--glow-color);
}

.btn-primary:hover::after {
  background: var(--primary-hover);
}

.display-1 {
  text-shadow: 0 0 20px rgba(0,0,0,0.5);
}

/* Services Section Styling */
#services {
  background-color: var(--dark) !important;
  color: var(--white);
}

.service-card {
  background-color: #1a1a1a; /* Slightly lighter dark for card background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(255, 49, 49, 0.3); /* Red glow on hover */
}

.service-card .card-title {
  color: var(--white);
}

.service-card .card-text,
.service-card .list-unstyled li { /* Target list items inside service cards */
  color: var(--white) !important; /* Ensure text is fully white for readability */
  opacity: 0.9; /* Slightly reduce opacity for a softer look, but still visible */
}

.service-card .card-subtitle {
  color: var(--primary) !important; /* Company name in red */
}

/* General text-primary class to ensure theme color */
.text-primary {
  color: var(--primary) !important; 
}

/* Animated Text Section */
#animated-text-section {
  background-color: var(--dark) !important;
  padding: 40px 0; /* Decreased padding from 80px to 40px */
}

.scrolling-text-wrapper {
  width: 100%;
  overflow: hidden;
  white-space: nowrap; /* Keep text on a single line */
  box-sizing: border-box;
  margin: 0 auto; /* Center the wrapper if it has a max-width */
}

.scrolling-text-content {
  display: inline-block; /* Allow it to be wider than its container */
  white-space: nowrap; /* Ensure text stays on one line */
  font-size: 6rem; /* Increased font size */
  line-height: 1.2;
  font-weight: 800; /* fw-extrabold */
  text-shadow: 0 0 15px rgba(255, 49, 49, 0.5); /* Subtle glow for readability */
  opacity: 0.1; /* Decreased opacity for background effect */
  text-transform: uppercase; /* All text uppercase */
}

.scrolling-text-content span {
  display: inline-block; /* Each duplicated text segment */
  padding-right: 80px; /* Increased space between duplicated texts */
}

.scrolling-text-right-to-left {
  animation: scrollRightToLeft 30s linear infinite;
}

.scrolling-text-left-to-right {
  animation: scrollLeftToRight 30s linear infinite;
}

@keyframes scrollRightToLeft {
  0% { transform: translateX(0%); }
  50% { transform: translateX(-50%); } /* Moves the content by half its total width (which is one full text string) */
  100% { transform: translateX(0%); } /* Reset to loop */
}

@keyframes scrollLeftToRight {
  0% { transform: translateX(-50%); } /* Start with the second copy visible */
  100% { transform: translateX(0%); } /* Move back to show the first copy */
}

/* Responsive adjustments for scrolling text */
@media (max-width: 1200px) {
  .scrolling-text-content {
    font-size: 4rem; /* Adjust for larger tablets/small desktops */
  }
  .scrolling-text-content span {
    padding-right: 60px;
  }
}

@media (max-width: 768px) {
  .scrolling-text-content {
    font-size: 2.5rem; /* Smaller font size on smaller screens */
  }
  .scrolling-text-content span {
    padding-right: 30px; /* Less space between duplicated texts */
  }
  .scrolling-text-right-to-left {
    animation-duration: 20s; /* Faster scroll on smaller screens */
  }
  .scrolling-text-left-to-right {
    animation-duration: 20s; /* Faster scroll on smaller screens */
  }
}

/* Testimonials Section */
#testimonials {
  background-color: var(--dark) !important;
  color: var(--white); /* Ensure all text in testimonials defaults to white */
}

/* Section Divider */
.section-divider {
  background-color: var(--dark) !important; /* Ensure consistent background */
  padding: 30px 0; /* Add some vertical padding */
}

.thin-line {
  border: none;
  border-top: 2px solid rgba(255, 255, 255, 0.5); /* Increased thickness and opacity for better visibility */
  width: 80%; /* Adjust width as needed */
  margin: 0 auto; /* Center the line */
}

/* FOOTER */
.footer-logo {
  height: 50px; /* Adjust logo size in footer */
  width: auto;
}

.footer-brand {
  display: inline-block; /* To allow margin-bottom on logo */
}

footer h5 {
  color: var(--white); /* Ensure footer titles are white */
}

.list-unstyled li {
  margin-bottom: 8px; /* Spacing for list items */
}

.list-unstyled li i {
  color: var(--primary) !important; /* Ensure icons are primary red */
}

.footer-links .list-inline-item a,
.list-unstyled li a,
.hover-primary { /* Target new policy links and general hover */
  color: rgba(255, 255, 255, 0.7) !important; /* Lighter white for links */
  transition: color 0.3s ease;
}

.footer-links .list-inline-item a:hover,
.list-unstyled li a:hover,
.hover-primary:hover { /* Primary red on hover */
  color: var(--primary) !important; 
}

/* Animation for "Why Choose Us" checklist */
.animated-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Animation for Contact Us cards */
.animated-contact-item {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-contact-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}