/* Variables and General Styles (Sass-inspired) */
:root {
  --primary-color: #007bff; /* Primary Blue */
  --secondary-color: #6c757d; /* Secondary Gray */
  --dark-color: #2c3e50; /* Dark Blue for text/backgrounds */
  --light-color: #f8f9fa; /* Light Gray for backgrounds */
  --white-color: #ffffff;
  --success-color: #28a745;
  --info-color: #17a2b8;
  --spacing-md: 20px;
  --spacing-lg: 40px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  color: var(--dark-color);
}

.navbar {
  background-color: var(--dark-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
}
.navbar-brand,
.nav-link {
  color: var(--white-color) !important;
  font-weight: 700;
}
.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");
}
.navbar-nav .nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url('https://placehold.co/1920x1080/34495E/FFFFFF?text=Leadership+and+Efficiency')
      no-repeat center center;
  background-size: cover;
  color: var(--white-color);
  padding: 120px 0;
  text-align: center;
  border-bottom-left-radius: 50px;
  border-bottom-right-radius: 50px;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 80vh; /* Ensures it takes up a good portion of the screen */
}
.hero-section h1 {
  font-size: 4.5rem;
  font-weight: 900;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
  color: var(--white-color);
}
.hero-section p {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-lg);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
.hero-section .btn {
  padding: 15px 45px;
  font-size: 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
}
.hero-section .btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}
.hero-section .btn-primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
}

/* Sections Styling */
.section-padding {
  padding: 80px 0;
}
.section-title {
  font-size: 3.2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
  padding-bottom: 10px;
  color: var(--dark-color);
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 5px;
  background-color: var(--primary-color);
  border-radius: 5px;
}

/* Card Styles for Services */
.service-card {
  background-color: var(--white-color);
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  padding: var(--spacing-lg);
  text-align: center;
  transition: all 0.3s ease;
  height: 100%; /* Ensures all cards have the same height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}
.service-card .icon {
  font-size: 3.5rem;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
}
.service-card h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--dark-color);
}
.service-card p {
  font-size: 1.1rem;
  color: var(--secondary-color);
}

/* Technologies Marquee Section */
.technologies-marquee-section {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: 60px 0;
  overflow: hidden; /* Important for marquee effect */
  border-radius: 50px;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.technologies-marquee-section .section-title {
  color: var(--white-color);
  margin-bottom: var(--spacing-lg);
}
.technologies-marquee-section .section-title::after {
  background-color: var(--primary-color);
}
.marquee-container {
  width: 100%;
  overflow: hidden;
  white-space: nowrap; /* Keep all items on one line */
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3); /* Inner shadow for effect */
  border-radius: 10px;
  background-color: rgba(0, 0, 0, 0.2);
  padding: 15px 0;
}
.marquee-content {
  display: inline-block; /* Essential for animation */
  padding-left: 100%; /* Start off-screen to the right */
  animation: marquee-scroll 60s linear infinite; /* Adjust duration for speed */
}
.tech-item {
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white-color);
  background-color: var(--primary-color);
  padding: 10px 25px;
  border-radius: 30px;
  margin: 0 15px; /* Spacing between items */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease;
}
.tech-item:hover {
  background-color: #0056b3;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%); /* Move left until the content repeats */
  }
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: var(--spacing-lg) 0;
  border-radius: 50px;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.testimonial-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  padding: var(--spacing-md);
  text-align: center;
  margin: var(--spacing-md) auto;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.testimonial-card p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  font-style: italic;
}
.testimonial-card .author {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-color);
}
.testimonial-card .rating {
  color: gold; /* Or a color for the stars */
  font-size: 1.2rem;
  margin-top: 5px;
}

/* Call to Action (CTA) Section & Contact Form */
.cta-section {
  background-color: var(--primary-color);
  color: var(--white-color);
  padding: 80px 0;
  text-align: center;
  border-radius: 25px;
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}
.cta-section h2 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--white-color);
}
.cta-section p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn {
  background-color: var(--white-color);
  color: var(--primary-color);
  border: none;
  padding: 15px 45px;
  font-size: 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
}
.cta-section .btn:hover {
  background-color: #e2e6ea;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 255, 255, 0.3);
}

/* Styling for form elements */
.contact-form .form-control {
  border-radius: 10px; /* Rounded corners for form fields */
  padding: 12px 15px;
  border: 1px solid #ced4da;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  background-color: var(--white-color); /* White background for fields */
  color: var(--dark-color); /* Dark text in fields */
}
.contact-form .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
  background-color: var(--white-color); /* Maintain white background on focus */
  color: var(--dark-color); /* Maintain dark text on focus */
}
.contact-form textarea.form-control {
  min-height: 150px; /* Make textarea taller */
  resize: vertical; /* Allow vertical resizing */
}
.contact-form ::placeholder {
  /* For the gray placeholder text */
  color: #a0a0a0;
  opacity: 1; /* Firefox default opacity is lower */
}
.contact-form .btn-light {
  /* Style for the form submit button */
  background-color: var(--white-color);
  color: var(--primary-color);
  border: none;
  padding: 15px 45px;
  font-size: 1.2rem;
  border-radius: 50px;
  font-weight: 700;
  transition: all 0.3s ease;
  width: 100%; /* Full width */
  max-width: 300px; /* Max width so it's not too long on desktop */
  margin-top: var(--spacing-md);
}
.contact-form .btn-light:hover {
  background-color: #e2e6ea;
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(255, 255, 255, 0.3);
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: var(--white-color);
  padding: var(--spacing-lg) 0;
  text-align: center;
}
.footer p {
  margin-bottom: 0;
  font-size: 0.9rem;
}
.footer a {
  color: var(--primary-color);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Language Switcher Styling */
#language-switcher {
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.2); /* Slightly transparent white */
  color: var(--white-color);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 2.5rem 5px 1rem; /* Increased right padding to prevent overlap */
  cursor: pointer;
  font-weight: 400;
  appearance: none; /* Remove default arrow */
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center; /* Adjusted arrow position */
  background-size: 16px 12px;
}
#language-switcher option {
  background-color: var(--dark-color); /* Background for options */
  color: var(--white-color);
}
#language-switcher:focus {
  box-shadow: 0 0 0 0.25rem rgba(0, 123, 255, 0.25);
  border-color: var(--primary-color);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .hero-section h1 {
    font-size: 3.8rem;
  }
  .hero-section p {
    font-size: 1.3rem;
  }
  .section-title {
    font-size: 2.8rem;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0;
    min-height: 60vh;
  }
  .hero-section h1 {
    font-size: 2.8rem;
  }
  .hero-section p {
    font-size: 1.1rem;
  }
  .hero-section .btn {
    padding: 10px 30px;
    font-size: 1rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  .service-card {
    margin-bottom: var(--spacing-md);
  }
  .testimonials-section,
  .cta-section,
  .technologies-marquee-section {
    border-radius: 25px; /* Less rounded on mobile */
    margin-left: var(--spacing-md);
    margin-right: var(--spacing-md);
  }
  .cta-section h2 {
    font-size: 2.2rem;
  }
  .cta-section p {
    font-size: 1.1rem;
  }
  .contact-form .btn-light {
    max-width: 100%; /* Full width on smaller screens */
  }
  /* Language switcher in collapsed navbar */
  .navbar-collapse .ms-auto {
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
    text-align: center;
    padding-top: 15px;
  }
  #language-switcher {
    width: 80%; /* Adjust width for mobile dropdown */
    max-width: 180px; /* Increased max-width for mobile dropdown */
    padding: 5px 2.5rem 5px 1rem; /* Apply consistent padding on mobile */
  }
}

@media (max-width: 576px) {
  .hero-section h1 {
    font-size: 2.2rem;
  }
  .hero-section p {
    font-size: 0.95rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .service-card h3 {
    font-size: 1.5rem;
  }
  .testimonial-card p {
    font-size: 0.95rem;
  }
  .cta-section h2 {
    font-size: 1.8rem;
  }
  .tech-item {
    font-size: 1.4rem; /* Smaller font for tech items on small screens */
    padding: 8px 20px;
  }
}
