@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #f4f6f9; /* Light Gray Background */
  --secondary-color: #ffffff; /* White for Cards/Sections */
  --accent-color: #007bff; /* Corporate Blue */
  --accent-hover: #0056b3;
  --text-color: #333333;
  --text-muted: #6c757d;
  --heading-color: #1a1a1a;
  --white: #ffffff;
  --transition: all 0.3s ease-in-out;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
}

.contact-info p {
  margin-bottom: 15px;
}
.contact-info a {
  color: #a0aec0 !important;
  text-decoration: none !important;
  transition: var(--transition);
  display: inline-block;
}
.contact-info a:hover {
  color: var(--accent-color) !important;
  padding-left: 5px;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-hover);
  text-decoration: none;
}

/* Navbar */
.navbar {
  background-color: rgba(5, 8, 12, 0.95) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem 0;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

.navbar-brand img {
  height: 65px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 500;
  margin: 0 10px;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-color) !important;
}

/* Dropdown styling */
.dropdown-menu {
  background-color: #05080c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.5);
}

.dropdown-item {
  color: rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.dropdown-item:hover {
  background-color: rgba(0, 123, 255, 0.1);
  color: var(--accent-color);
}

/* Hero Slider */
.carousel-item {
  height: 60vh;
  min-height: 400px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(11, 17, 26, 0.9) 0%, rgba(11, 17, 26, 0.4) 100%);
}

.carousel-caption {
  bottom: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  padding-left: 5%;
}

.carousel-caption h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--white);
  animation: fadeInUp 1s ease;
}

.carousel-caption p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  animation: fadeInUp 1.2s ease;
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 12px 30px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-anthracite {
  background-color: #2c3338;
  border-color: #2c3338;
  color: var(--white);
  padding: 8px 20px;
  border-radius: 4px;
  transition: var(--transition);
}

.btn-anthracite:hover {
  background-color: #1a1e24;
  border-color: #1a1e24;
  color: var(--white);
}

/* Sections */
.section-padding {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: var(--accent-color);
}

/* Service Cards */
.service-card {
  background-color: var(--secondary-color);
  padding: 15px 10px;
  border-radius: 8px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  border: 1px solid #4a5568; /* Dark Anthracite/Gray border */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 123, 255, 0.3);
}

.service-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.service-card h4 {
  margin-bottom: 15px;
}

/* Footer */
footer {
  background-color: #05080c;
  padding: 60px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-widget h5 {
  color: var(--white);
  margin-bottom: 20px;
  font-weight: 600;
}

.footer-widget ul {
  list-style: none;
  padding: 0;
}

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

.footer-widget ul li a {
  color: var(--text-muted);
}

.footer-widget ul li a:hover {
  color: var(--accent-color);
}

.footer-widget p {
  color: var(--text-muted);
}

.footer-widget .contact-info i {
  color: var(--accent-color);
  margin-right: 10px;
  width: 20px;
  text-align: center;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: var(--text-muted);
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile Fixes */
@media (max-width: 768px) {
  .carousel-caption h1 { font-size: 1.8rem !important; }
  .carousel-caption p { font-size: 0.9rem !important; margin-bottom: 1rem !important; }
}

/* Brand Partners Slider */
.partners-section {
  background-color: var(--secondary-color);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 80px 0;
}

.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 40px 0;
  display: flex;
  align-items: center;
}

/* Linear gradients on left and right for fade out effect */
.logo-slider::before,
.logo-slider::after {
  background: linear-gradient(to right, var(--secondary-color) 0%, rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 100%;
  position: absolute;
  width: 200px;
  z-index: 2;
  pointer-events: none;
}

.logo-slider::before {
  left: 0;
  top: 0;
}

.logo-slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.logo-slide-track {
  display: flex;
  width: calc(250px * 48); /* (224px width + 13px margin left + 13px margin right) * 48 logos */
  animation: scrollMarquee 50s linear infinite;
}

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

.logo-slide {
  height: 130px;
  width: 224px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 15px 20px;
  margin: 0 13px; /* Margin to separate the framed cards */
  text-align: center;
  transition: var(--transition);
  flex-shrink: 0;
  position: relative; /* Essential for z-index layering on hover */
  
  /* Stylish card frame */
  background: var(--primary-color);
  border: 2px solid rgba(0, 0, 0, 0.04);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.logo-slide img {
  max-height: 75px;
  max-width: 175px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: var(--transition);
}

.logo-slide span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 8px;
  opacity: 0;
  transform: translateY(5px);
  transition: var(--transition);
}

/* Hover effects */
.logo-slide:hover {
  transform: translateY(-8px) scale(1.1); /* Lifts up and grows by 10% */
  background: var(--white);
  border-color: var(--accent-color);
  box-shadow: 0 12px 30px rgba(0, 123, 255, 0.2);
  z-index: 10; /* Lays card on top of neighbors */
}

.logo-slide:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.03);
}

.logo-slide:hover span {
  opacity: 1;
  transform: translateY(0);
  color: var(--accent-color);
}

@keyframes scrollMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-250px * 24)); /* scroll 24 items */
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .partners-section {
    padding: 50px 0;
  }
  .logo-slider {
    padding: 25px 0;
  }
  .logo-slider::before,
  .logo-slider::after {
    width: 80px;
  }
  .logo-slide {
    width: 154px;
    height: 90px;
    padding: 10px 12px;
    margin: 0 8px;
    border-radius: 8px;
  }
  .logo-slide img {
    max-height: 50px;  /* Proportional mobile double sizing scaled down */
    max-width: 120px;
  }
  .logo-slide-track {
    width: calc(170px * 48); /* (154px width + 8px margin left + 8px margin right) * 48 logos */
  }
  @keyframes scrollMarquee {
    0% {
      transform: translateX(0);
    }
    100% {
      transform: translateX(calc(-170px * 24));
    }
  }
}
