/* Color Scheme Variables */
:root {
  --primary-color: #4a90e2; /* Vibrant Blue */
  --secondary-color: #50e3c2; /* Soft Teal */
  --accent-color: #ff6b6b; /* Warm Red */
  --background-color: #f4f7f9; /* Light Grey */
  --text-color: #2d2d2d; /* Dark Grey */
  --neutral-color: #b0bec5; /* Muted Grey */
  --background-light: #ffffff; /* Pure White */
  --background-dark: #1e1e2f; /* Deep Navy Blue */
  --text-light: #fafafa; /* Off-White */
  --text-dark: #333333; /* Almost Black */
  --input-background: #e3e6ea; /* Soft Grey */
}

/* General Styling */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
}
.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
  color: white !important;
}

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

/* Home Section */
#home {
  background: url("banner5.png") no-repeat center center/cover;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  padding: 50px 20px;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--primary-color); /* Primary color for background */
}
.scroll-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

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

.home-logo {
  height: 2.5rem;
}

@media (min-width: 768px) {
  .home-logo {
    height: 3.5rem; /* match h1 size on larger screens */
  }
}

/* General Section Styling */
section {
  width: 100%;
  max-width: none;
  margin: 0 auto;

  text-align: center;
}

#services {
  background-color: var(--background-color);
  padding: 80px 20px;
}

/* Services Container */
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

/* Service Card */
.service-card {
  flex: 1 1 calc(33.333% - 20px); /* Ensures three cards per row */
  margin-bottom: 20px;
  box-sizing: border-box;
  text-align: center;
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--neutral-color);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-card h4 {
  margin-bottom: 15px;
  color: var(--primary-color); /* Primary color for heading text */
}

.service-card p {
  color: var(--text-color); /* Use text color for description */
}

/* Team Section */
#team {
  background-color: var(--background-color);
  padding: 80px 20px;
}

/* Team Container */
.team-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

/* Team Member Card */
.col-md-4 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32%; /* 3 cards per row */
  margin: 10px;
  box-sizing: border-box;
}

/* Team Member Box */
#team .text-center {
  border: 1px solid var(--neutral-color); /* Neutral color for borders */
  padding: 20px;
  border-radius: 10px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  background-color: white;
  min-height: 300px;
  margin-top: 10px;
}

/* Team Member Image */
#team .text-center img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease-in-out;
}

/* Hover Effects */
#team .text-center:hover {
  transform: translateY(-10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#team .text-center:hover img {
  transform: scale(1.05);
}

/* Buttons */
button {
  background-color: var(--primary-color); /* Primary color for buttons */
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: var(
    --secondary-color
  ); /* Hover effect using secondary color */
}

/* Links */
a {
  color: var(--primary-color); /* Primary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-color); /* Accent color on hover */
}
/* About Section */
#about {
  padding: 80px 20px;
}

/* About Container */
.about-container {
  display: flex;
  flex-wrap: wrap; /* Ensure responsive layout */
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* About Content */
.about-content {
  flex: 1;
  max-width: 600px; /* Limit content width for better readability */
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.about-content h4 {
  font-size: 1.5rem;
  margin-top: 20px;
}

.about-content p {
  font-size: 1rem;
  color: #555;
}

/* About Image */
.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px; /* Optional: adds rounded corners to the image */
}

/* Contact Section */
#contact {
  padding: 50px 0;
  background-color: var(--background-color);
}

/* Contact Container */
.contact-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Contact Content */
.contact-content {
  text-align: center;
  padding: 20px;
}

/* Adjust contact form width for smaller screens */
.contact-content form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

/* Inputs and Textarea Styling */
.contact-content input,
.contact-content textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  margin: 5px 0;
  border-radius: 5px;
  border: 1px solid #ddd;
}

/* Submit Button Styling */
.contact-content button {
  padding: 10px 20px;
  font-size: 1.1rem;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Mobile Responsive - Adjust for smaller screens */
@media (max-width: 767px) {
  /* Services Container */
  .services-container {
    padding: 0;
    display: block; /* Stack items vertically */
  }

  /* Make Service Cards Full Width on Mobile */
  .service-card {
    width: 100%; /* Full width on mobile */
    margin: 10px 0; /* Margin between cards */
  }

  /* Team Container */
  .team-container {
    padding: 0;
    display: block; /* Stack items vertically */
  }

  /* Make Team Member Cards Full Width on Mobile */
  .col-md-4 {
    width: 100%; /* Full width on mobile */
    margin: 10px 0; /* Margin between cards */
  }

  /* Show the carousel on mobile, hide the grid */
  .d-md-none {
    display: block !important;
  }

  .d-md-flex {
    display: none !important;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-content,
  .about-image {
    max-width: 100%;
  }
}
.contact-content form {
  max-width: 90%; /* Increases width to 90% of screen on smaller screens */
}

.contact-content input,
.contact-content textarea {
  font-size: 1.2rem; /* Larger font size for easier readability */
}

/* Ensure images and text are responsive */
@media (max-width: 576px) {
  /* For extra small screens, adjust the image size even more */
  #team .text-center img {
    width: 80px;
    height: 80px;
  }

  /* Adjust service card image size on smaller screens */
  .service-card img {
    width: 60px;
    height: 60px;
  }
}

/* Desktop - Show grid, hide carousel */
@media (min-width: 768px) {
  /* Hide the carousel on larger screens */
  .d-md-none {
    display: none !important;
  }

  /* Show the grid on desktop */
  .d-md-flex {
    display: flex !important;
  }

  /* Ensure that team and services grid are aligned in 3 columns */
  .services-container,
  .team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
  }

  .service-card,
  .col-md-4 {
    flex: 1 1 calc(33.333% - 20px); /* 3 items per row on desktop */
  }
}
