/* Reset & base */
* {
  box-sizing: border-box;
}
body {
  font-family: "Poppins", sans-serif;
  margin: 0;
  background: #f7fafc;
  color: #333;
  line-height: 1.6;
}
a {
  text-decoration: none;
  color: #5a8dee;
}
a:hover {
  color: #3a65d8;
}

/* Container */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem 0;
}

/* Header */
header {
  position: fixed;
  top: 0.5rem;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #f7fafc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header h1 {
  font-weight: 700;
  font-size: 1.6rem;
  color: #3a65d8;
}
header h1 a {
  color: inherit;
  text-decoration: none;
}
header h1 a:hover {
  color: #5a8dee;
}
.navbar a {
  margin-left: 1.5rem;
  font-weight: 500;
  color: #2d4367;
  transition: color 0.3s ease;
}
.navbar a:hover {
  color: #5a8dee;
}
/* Mobile menu button (hidden by default on desktop) */
#mobile-menu-button {
  display: none;
  flex-direction: column;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #2d4367;
  padding: 0.5rem;
  margin-left: auto;
}
#mobile-menu-button span {
  width: 25px;
  height: 3px;
  background-color: #2d4367;
  border-radius: 2px;
  transition: all 0.3s ease;
}
/* Mobile menu (hidden by default) */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #f7fafc;
  z-index: 2000;
  flex-direction: column;
  padding: 1.5rem;
  
  /* IMPROVEMENT: Use opacity/visibility for smooth transitions */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-menu.active { /* Class used by JS to show the menu */
  visibility: visible;
  opacity: 1;
  display: flex; /* Must be display:flex when active to display content */
}

#close-mobile-menu {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #2d4367;
  width: auto;
  padding: 0.5rem;
  margin-bottom: 1rem;
}
.mobile-menu a {
  padding: 1rem 0;
  display: block;
  border-bottom: 1px solid #cbd5e1;
  color: #2d4367;
}


/* Hero Section */
.hero {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  padding: 8rem 0 4rem; /* Adjusted top padding to clear fixed header */
  text-align: center;
}
.hero h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1e3a8a;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.15rem;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: #333;
}
/* FIX: Use Flexbox to put the buttons side-by-side */
.hero .actions {
  display: flex;
  justify-content: center;
  gap: 1rem; /* Space between buttons */
  margin-top: 2.5rem;
}
.hero .actions a {
  display: inline-block;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  transition: all 0.3s ease;
}
.hero .actions a:first-child {
  /* Primary Button: Explore Our Services */
  background-color: #5a8dee;
  color: white;
  border: 2px solid #5a8dee;
}
.hero .actions a:first-child:hover {
  background-color: #3a65d8;
  border-color: #3a65d8;
  color: white;
}
.hero .actions a:last-child {
  /* Secondary Button: Get In Touch */
  background-color: transparent;
  color: #5a8dee;
  border: 2px solid #5a8dee;
}
.hero .actions a:last-child:hover {
  background-color: #5a8dee;
  color: white;
}

/* Standard Sections (Services, About, etc.) */
section {
  padding: 3rem 0;
}
section:nth-child(even) {
  background-color: #f0f4f8;
}
h3 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e3a8a;
  text-align: center;
  margin-bottom: 2rem;
}
.about p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

/* Service Cards (used for services, FAQ, testimonials, etc.) */
.service-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}
.service-icon {
  font-size: 2rem;
  color: #5a8dee;
  margin-bottom: 1rem;
}
.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2d4367;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.service-desc {
  color: #4b5563;
  margin-bottom: 1rem;
  flex-grow: 1; /* Ensures cards are same height */
}
.service-card a {
  font-weight: 500;
  align-self: flex-start;
}

/* Footer */
footer {
  background-color: #1e3a8a;
  color: white;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.9rem;
}

/* Contact Form */
.contact {
  background-color: #e0e7ff;
}
.contact form {
  max-width: 600px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(58, 101, 216, 0.15);
}
label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #2d4367;
}
input,
textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1.25rem;
  border-radius: 5px;
  border: 1.5px solid #cbd5e1;
  font-size: 1rem;
  font-family: "Poppins", sans-serif;
  resize: vertical;
}
input:focus,
textarea:focus {
  outline: 2px solid #5a8dee; /* IMPROVEMENT: Added explicit outline for better accessibility */
  outline-offset: 2px;
  border-color: #5a8dee;
  box-shadow: 0 0 5px rgba(90, 141, 238, 0.5); /* Improved box shadow opacity */
}
button {
  background-color: #5a8dee;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}
button:hover {
  background-color: #3a65d8;
}

/* Responsive adjustments */
/* IMPROVEMENT: Changed breakpoint from 600px to 768px */
@media (max-width: 768px) {
  /* Show mobile menu button on mobile */
  #mobile-menu-button {
    display: flex;
  }
  
  /* Hide desktop navbar on mobile */
  .navbar {
    display: none !important;
  }

  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  
  /* Force buttons to stack on small screens */
  .hero .actions {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  
  .hero .actions a {
    width: 80%;
    max-width: 300px;
    text-align: center;
  }
  
  .hero h2 {
    font-size: 1.8rem;
  }
  
  .service-cards {
    gap: 1rem;
  }
}