/* --- Color Variables --- */
:root {
  --primary-color: #000089; /* Dark blue */
  --secondary-color: #f8f8f8; /* Off-white (for backgrounds) */
  --accent-color-1: #52DF63; /* Bright green */
  --accent-color-2: #190044; /* Darker shade of primary color */
  --text-color: #333; /* Dark gray (for body text) */
  --text-color-light: #eee; /* Light gray (for footer text) */
  --heading-color: #000089; /* Use primary color for headings */
  --link-color: #52DF63; /* Use accent color for links */
  --link-hover-color: #190044; /* Darker shade of primary color on hover */
  --button-bg-color: #000089; /* Primary color for buttons */
  --button-text-color: #fff; /* White text for buttons */
  --button-hover-bg-color: #52DF63; /* Accent color for button hover */
  --button-hover-text-color: #fff; /* White text for button hover */
  --footer-bg-color: #000089;
  --footer-text-color: #fff;
  --footer-link-color: #52DF63;
  --footer-link-hover-color: #190044;
  --footer-bottom-bg-color: #000089;
  --footer-bottom-text-color: #ccc;
  --form-input-bg-color: #fff;
  --form-input-border-color: #ccc;
  --form-input-focus-border-color: #000089;
  --form-input-focus-box-shadow-color: rgba(0, 0, 137, 0.5);
  --form-label-color: #333;
  --form-button-bg-color: #000089;
  --form-button-text-color: #fff;
  --form-button-hover-bg-color: #190044;
  --form-message-color: #000089;
  --border-color: #ddd; /* Light gray for borders */
  --box-shadow-color: rgba(0, 0, 0, 0.1); /* Light shadow */
  --box-shadow-hover-color: rgba(0, 0, 0, 0.15); /* Darker shadow on hover */
}

/* --- General styles --- */
body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--secondary-color);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  color: var(--heading-color);
  font-weight: 700;
}

.section-description {
  text-align: center;
  font-size: 1.2rem;
  margin-bottom: 4rem;
  color: var(--text-color-light);
  line-height: 1.8;
}

/* --- Header --- */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  background-color: #fff;
  box-shadow: 0 2px 5px var(--box-shadow-color);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  height: 80px;
}

/* Hide hamburger on larger screens */
.hamburger-menu {
  display: none;
}

/* Main Navigation for Larger Screens */
.main-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav > li {
  margin-left: 0.5rem;
  white-space: nowrap; /* Prevent text wrapping */
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  padding: 10px 15px;
  border-radius: 5px;
}

.nav-link.active {
  color: #000089; /* Your primary color */
  background-color: rgba(0, 0, 137, 0.1); /* A light background shade, adjust as needed */
  font-weight: 700; /* Make it slightly bolder */
}

.nav-link:hover,
.nav-link:focus {
  color: var(--heading-color);
  background-color: rgba(0, 0, 137, 0.1);
}

/* Dropdown Styling */
.dropdown .dropbtn {
  font-size: 1rem;
  border: none;
  outline: none;
  color: var(--text-color);
  padding: 10px 15px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  font-weight: 600;
  border-radius: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 280px;
  box-shadow: 0px 8px 16px 0px var(--box-shadow-color);
  z-index: 1;
  border-radius: 5px;
}

.dropdown-link {
  color: var(--text-color);
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-link:hover,
.dropdown-link:focus {
  background-color: var(--heading-color);
  color: #fff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Style for the dropdown button on hover and focus */
.dropdown .dropbtn:hover,
.dropdown .dropbtn:focus {
  color: var(--heading-color);
  background-color: rgba(0, 0, 137, 0.1);
}

/* Email Button */
.email-button {
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px var(--box-shadow-color);
}

.email-button:hover,
.email-button:focus {
  background-color: var(--accent-color-1);
  box-shadow: 0 2px 4px var(--box-shadow-hover-color);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 180px 20px;
  background-color: var(--primary-color);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(40%);
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.6);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.cta-button {
  background-color: var(--accent-color-1);
  color: #fff;
  padding: 18px 35px;
  border: none;
  border-radius: 8px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.cta-button:hover,
.cta-button:focus {
  background-color: var(--accent-color-2);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* --- Companies Section --- */
.company-icon {
  height: 90px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.company-title {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
  font-weight: 600;
}

.company-description {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.7;
}

.learn-more-link {
  display: inline-block;
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.learn-more-link:hover,
.learn-more-link:focus {
  background-color: var(--button-hover-bg-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* --- Carousel --- */
.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-wrapper {
  overflow-x: scroll;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-scroll {
  display: flex;
  width: fit-content;
}

.item {
  flex: 0 0 320px;
  margin: 20px;
  padding: 25px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  text-align: center;
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px var(--box-shadow-color);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover,
.item:focus {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px var(--box-shadow-hover-color);
}

.scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: var(--button-bg-color);
  color: var(--button-text-color);
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  z-index: 2;
  opacity: 0.8;
  transition: opacity 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.scroll-btn:hover,
.scroll-btn:focus {
  opacity: 1;
  background-color: var(--accent-color-2);
}

.scroll-btn.left {
  left: 20px;
}

.scroll-btn.right {
  right: 20px;
}

/* --- Testimonials Section --- */
.testimonial-text {
  font-size: 1.3rem;
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.8;
  color: #444;
}

.testimonial-author {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--heading-color);
  text-align: right;
}

/* --- Contact Section --- */
.contact-info {
  margin-bottom: 4rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.contact-details {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px var(--box-shadow-color);
}

.contact-communication {
  background-color: #fff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 8px var(--box-shadow-color);
}

.contact-subtitle {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--heading-color);
  font-weight: 600;
}

.contact-text {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.contact-link {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-link:hover,
.contact-link:focus {
  color: var(--link-hover-color);
  text-decoration: underline;
}

.contact-form {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 8px var(--box-shadow-color);
  max-width: 600px;
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 600;
  color: var(--form-label-color);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 12px 18px;
  border: 1px solid var(--form-input-border-color);
  border-radius: 8px;
  font-size: 1.1rem;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--form-input-focus-border-color);
  box-shadow: 0 0 5px var(--form-input-focus-box-shadow-color);
}

.form-textarea {
  min-height: 180px;
}

.submit-button {
  background-color: var(--form-button-bg-color);
  color: var(--form-button-text-color);
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.submit-button:hover,
.submit-button:focus {
  background-color: var(--form-button-hover-bg-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.form-message {
  margin-top: 1.5rem;
  font-weight: 600;
  color: var(--form-message-color);
}

/* --- Footer --- */
.footer {
  background-color: var(--footer-bg-color);
  color: var(--footer-text-color);
  padding: 50px 0; /* Adjust padding as needed */
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap; /* Allow columns to wrap on smaller screens */
}

.footer-logo,
.footer-contact,
.footer-links,
.footer-subscribe-follow-container {
  margin-bottom: 30px;
  flex-basis: 250px;
  
}

/* Footer Logo */
.footer-logo-img {
  height: 70px;
  margin-bottom: 1.5rem;
  filter: brightness(0) invert(1); /* Makes the logo white */
}

/* ASAIK Group Info */
.footer-contact-info {
  color: var(--text-color-light);
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 1rem;
}

.footer-contact-link {
  color: var(--footer-link-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-link:hover,
.footer-contact-link:focus {
  color: var(--footer-link-hover-color);
  text-decoration: underline;
}

/* Quick Links */
.footer-links {
  margin-bottom: 2rem;
}

.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-item {
  margin-bottom: 1rem;
}

.footer-nav-link {
  color: var(--footer-text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.footer-nav-link:hover,
.footer-nav-link:focus {
  color: var(--footer-link-color);
  text-decoration: underline;
}

/* Subscribe and Follow Us */

.footer-subscribe-follow-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-subscribe {
  margin-bottom: 2rem;
}

.footer-section-title {
  color: var(--footer-text-color);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.subscribe-text {
  color: var(--text-color-light);
  margin-bottom: 1rem;
  line-height: 1.5;
  font-size: 0.9rem;
}

.newsletter-form .form-group {
  display: flex;
  margin-bottom: 1rem;
}

.newsletter-form .form-input {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 5px 0 0 5px; /* Round only the left corners */
  font-size: 1rem;
  flex-grow: 1; /* Allow input to take available space */
}

.newsletter-form .subscribe-button {
  background-color: var(--accent-color-1);
  color: var(--button-text-color);
  border: none;
  padding: 10px 20px;
  border-radius: 0 5px 5px 0; /* Round only the right corners */
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 1rem;
}

.newsletter-form .subscribe-button:hover {
  background-color: var(--accent-color-2);
}

.newsletter-form .form-message {
  font-size: 0.9rem;
  color: var(--text-color-light);
}

.footer-social-link {
  display: inline-block;
  margin-right: 15px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.9;
}

.footer-social-link:hover,
.footer-social-link:focus {
  transform: translateY(-5px); /* Move up on hover */
  opacity: 1;
}

.footer-social-icon {
  height: 35px;
  fill: #fff; /* For SVG icons */
}

/* Footer Bottom */
.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid var(--border-color); /* Separator line */
  padding-top: 20px;
}

.footer-copyright {
  font-size: 0.9rem;
  color: var(--text-color-light);
}