html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', Arial, sans-serif; /* Using Inter font */
  background-color: #f8f8f8; /* Light background for professionalism */
  color: #333;
  line-height: 1.7; /* Improved readability */
  font-size: 1.4rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header Styling */
.main-header {
  background-color: #ffffff;
  color: #333;
  text-align: center;
  padding: 30px 20px;
  border-bottom: 1px solid #eee;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: relative; /* For mobile menu toggle positioning */
}

.main-header .logo {
  margin-bottom: 10px;
}

.main-header .logo img {
  max-width: 150px;
  height: auto;
}

.main-header h1 {
  font-size: 2.8rem; /* Larger heading */
  margin-top: 15px;
  margin-bottom: 10px;
  color: #2C3E50; /* Dark Grey from logo - for prominence */
}

.main-header .tagline {
  font-size: 1.3rem;
  color: #666;
  margin-bottom: 30px;
}


/* Mobile Menu Toggle Button */
.menu-toggle {
  display: none; /* Hidden by default on desktop */
  background: none;
  border: none;
  font-size: 2rem;
  color: #2C3E50; /* Dark Grey from logo */
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001; /* Ensure it's above navigation when open */
}

/* Main Navigation */
.main-nav {
  background-color: #ffffff;
  padding: 10px 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
  gap: 15px; /* Space between nav items */
  transition: max-height 0.3s ease-out; /* For smooth reveal/hide */
  
  /* Sticky Navigation for Desktop */
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 0; /* Stick to the top of the viewport */
  z-index: 999; /* Ensure it stays above other content but below mobile toggle */
  width: 100%; /* Ensure it spans full width when sticky */
  left: 0; /* Align to left edge when sticky */
  right: 0; /* Align to right edge when sticky */
  overflow: visible; /* Ensure sticky works correctly on desktop */
}

.main-nav .nav-item {
  color: #34495e; /* Darker grey from logo/palette */
  text-decoration: none;
  font-weight: 600; /* Semi-bold */
  padding: 8px 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.main-nav .nav-item:hover {
  background-color: #f2f4f7; /* Lighter grey on hover */
  color: #C1001F; /* Red accent on hover */
  transform: translateY(-2px); /* Slight lift effect */
}

.main-nav .nav-item.active {
  background-color: #C1001F; /* Red from logo for active state */
  color: #ffffff;
  box-shadow: 0 4px 8px rgba(193, 0, 31, 0.3);
}

/* Section Styling */
main {
  padding: 40px 0; /* Padding for main content */
}

.section-container {
  padding: 80px 0; /* Consistent vertical padding for sections */
  margin-bottom: 20px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.07);
  overflow: hidden; /* Clear floats */
  position: relative; /* For background patterns */
}

.section-container.bg-light {
  background-color: #f2f4f7; /* Lighter grey background for alternating sections */
  box-shadow: none; /* No shadow for alternating sections */
}

h2 {
  color: #2C3E50; /* Dark Grey from logo - Consistent heading color */
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #C1001F; /* Red accent line under headings */
  margin: 15px auto 0;
  border-radius: 2px;
}

/* Introduction text for sections */
.section-intro-text {
  text-align: center;
  max-width: 800px;
  margin: -30px auto 60px auto; /* Adjust margin to pull it up slightly under H2 */
  font-size: 1.3rem;
  color: #555;
  line-height: 1.6;
}

/* Flex Content Layout for About and Contact */
.flex-content {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.flex-content.reversed {
  flex-direction: row-reverse; /* Reverse order for contact section */
}

.content-text {
  flex: 1;
  min-width: 300px; /* Minimum width before wrapping */
}

/* Image containers for illustrations */
.content-image,
.service-image-container,
.experience-image-container,
.contact-image-container {
  flex: 1;
  min-width: 300px; /* Adjust as needed */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px; /* Add some padding around the images */
}

.content-image img,
.service-image-container img,
.experience-image-container img,
.contact-image-container img {
  width: 100%;
  height: auto;
  max-width: 400px; /* Control max size of images */
  border-radius: 10px;
  object-fit: contain; /* Ensure image content is fully visible */
}


/* Grid Layouts for Services, Experience, Team */
.grid-layout {
  display: grid;
  gap: 30px;
}

.grid-layout.two-col {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-layout.three-col {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Card Styling (Vision & Mission, Experience) */
.card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.card h3, .card h2 {
  color: #C1001F; /* Red from logo */
  font-size: 1.8rem;
  margin-bottom: 15px;
}

.card h2::after {
  display: none; /* Remove accent line for cards */
}

.card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.card ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

/* Specific styling for Values list */
.values-card {
    margin-top: 40px; /* Separate values card from vision/mission */
    text-align: left; /* Align text left within values card */
}

.values-list li {
    align-items: flex-start; /* Align icon to top of text */
}

/* Service Cards */
.service-card {
  background-color: #f2f4f7; /* Light grey from logo palette for service cards */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-card .service-icon {
  font-size: 3.5rem;
  color: #C1001F; /* Red from logo for icons */
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.6rem;
  color: #2C3E50; /* Dark Grey from logo */
  margin-bottom: 15px;
}

/* Team Section */
.team-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.team-member-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.team-member-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 4px solid #C1001F; /* Red border from logo for team images */
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.team-member-card h3 {
  font-size: 1.4rem;
  color: #2C3E50; /* Dark Grey from logo */
  margin-bottom: 5px;
}

.team-member-card p {
  color: #34495e; /* Slightly lighter dark grey */
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  margin-top: 30px;
  text-align: left;
}

.contact-form .form-group {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #2C3E50; /* Dark Grey from logo */
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  border-color: #C1001F; /* Red from logo */
  box-shadow: 0 0 0 3px rgba(193, 0, 31, 0.2);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.button {
  display: inline-block;
  background-color: #C1001F; /* Red from logo for buttons */
  color: #fff;
  padding: 12px 30px;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(193, 0, 31, 0.3);
}

.button:hover {
  background-color: #A00018; /* Darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(193, 0, 31, 0.4);
}

/* Contact Info Styling */
.contact-info {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: #555;
}

.contact-info .icon {
  color: #C1001F; /* Red from logo */
  margin-right: 10px;
  font-size: 1.4rem;
  min-width: 20px; /* Ensure icon has enough space */
}

.contact-info a {
  color: #555;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-info a:hover {
  color: #C1001F; /* Red from logo on hover */
}


/* Footer Styling */
.main-footer {
  background-color: #2C3E50; /* Dark Grey from logo */
  color: #fff;
  text-align: center;
  padding: 40px 20px;
}

.main-footer .social-links {
  margin-top: 20px;
}

.main-footer .social-links a {
  color: #fff;
  font-size: 1.5rem;
  margin: 0 10px;
  transition: color 0.3s ease, transform 0.2s ease;
}

.main-footer .social-links a:hover {
  color: #C1001F; /* Red from logo accent on hover */
  transform: translateY(-3px);
}

/* List Styling Improvements */
.styled-list {
  list-style: none;
  padding: 0;
}

.styled-list li {
  margin-bottom: 10px;
  padding-left: 0; /* Remove default padding */
  display: flex; /* Use flexbox for icon alignment */
  align-items: flex-start; /* Align icon to top of text */
}

.styled-list .list-icon {
  color: #C1001F; /* Red checkmark icon from logo */
  margin-right: 10px;
  font-size: 1.2rem;
  flex-shrink: 0; /* Prevent icon from shrinking */
  padding-top: 2px; /* Adjust vertical alignment if needed */
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {
  .flex-content {
    flex-direction: column; /* Stack columns on smaller screens */
  }

  .flex-content.reversed {
    flex-direction: column; /* Keep stacked for reversed as well */
  }

  .content-image,
  .service-image-container,
  .experience-image-container,
  .contact-image-container {
    padding: 10px; /* Adjust padding for smaller screens */
  }

  .main-header h1 {
    font-size: 2.2rem;
  }

  .main-header .tagline {
    font-size: 1rem;
  }

  .main-nav {
    padding: 10px;
    gap: 10px;
    position: static; /* Remove sticky on smaller screens */
    box-shadow: none; /* Remove shadow when not sticky */
  }

  .main-nav .nav-item {
    padding: 6px 12px;
    font-size: 0.95rem;
  }

  h2 {
    font-size: 2rem;
  }

  .section-container {
    padding: 60px 0;
  }

  .grid-layout.two-col,
  .grid-layout.three-col,
  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Adjust min-width for smaller screens */
  }
}

@media (max-width: 768px) {
  /* Mobile-specific styles for navigation */
  .menu-toggle {
    display: block; /* Show hamburger menu on mobile */
  }

  .main-nav {
    flex-direction: column; /* Stack nav items vertically */
    align-items: center;
    width: 100%;
    max-height: 0; /* Initially hidden */
    overflow: hidden; /* Hide content when collapsed */
    position: fixed; /* Fixed position for overlay */
    top: 0; /* Align to top of viewport */
    left: 0;
    right: 0;
    background-color: #ffffff; /* Solid background for overlay */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 0; /* No border-radius for full width */
    padding: 0; /* Initial padding */
    z-index: 998; /* Below toggle, above content */
  }

  .main-nav.open {
    max-height: 500px; /* Max height when open */
    padding: 15px 0; /* Base padding when open */
    padding-top: calc(120px + 15px); /* Adjusted padding-top to account for header height + buffer */
  }

  .main-nav .nav-item {
    width: 90%; /* Make nav items take more width */
    text-align: center;
    padding: 12px 15px; /* Larger tap target */
    margin: 5px 0; /* Vertical spacing */
  }


  .main-header {
    padding: 20px 15px;
  }

  .main-header .logo img {
    max-width: 100px;
  }

  .main-header h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .section-container {
    padding: 40px 0;
    margin-bottom: 15px;
  }

  .container {
    padding: 0 15px;
  }

  .service-card, .card, .team-member-card {
    padding: 20px;
  }

  .service-card .service-icon {
    font-size: 3rem;
  }

  .team-member-card img {
    width: 100px;
    height: 100px;
  }

  .contact-info {
    font-size: 1rem;
  }

  .button {
    padding: 10px 25px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .grid-layout.two-col,
  .grid-layout.three-col,
  .team-grid {
    grid-template-columns: 1fr; /* Single column on very small screens */
  }

  .main-header h1 {
    font-size: 1.5rem;
  }

  .main-header .tagline {
    font-size: 0.9rem;
  }

  h2 {
    font-size: 1.6rem;
  }
}