:root {
    --blue-primary: #1e3a8a;
    --blue-accent: #3b82f6;
    --blue-light: #dbeafe;
    --blue-hover: #2563eb;
    --blue-dark: #1e40af;
    --white: #ffffff;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    background-color: var(--blue-light);
    color: #1f2937;
  }

  body,
  html {
    font-family: 'Segoe UI', sans-serif;
    scroll-behavior: smooth;
  }

  header {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1603712725038-e9334ae8f39f?q=80&w=2071&auto=format&fit=crop&ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
  }

  header h1,
  header p {
    color: var(--white);
  }

  .button {
    background-color: var(--blue-accent);
  }

  .button:hover {
    background-color: var(--blue-hover);
  }

  .icon {
    font-size: 2.5rem;
    color: #1e3a8a;
    margin-bottom: 1rem;
  }

  .services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
  }

  .service-card {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.2s ease;
    cursor: pointer;
  }

  .service-card:hover {
    transform: translateY(-5px);
  }

  .service-card h4 {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #1e3a8a;
  }

  .gray-bg {
    background-color: #f3f4f6;
  }

  .modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 1rem;
  }

  .modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    position: relative;
  }

  .modal-content h3 {
    color: #1e3a8a;
    margin-bottom: 1rem;
  }

  .modal-content p {
    color: #333;
    font-size: 1rem;
    line-height: 1.4;
  }

  .close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
  }

  .filter {
    text-align: center;
    padding: 2rem;
  }

  .filter input {
    padding: 0.5rem 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    width: 250px;
  }

  .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 50, 0.4);
    z-index: 1;
  }

  header>div {
    position: relative;
    z-index: 2;
  }

  nav {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: transparent;
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
    flex-wrap: wrap;
  }

  nav.scrolled {
    background-color: #cecece;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  }

  .logo {
    font-weight: bold;
  }

  .nav-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
  }

  .nav-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
  }

  .nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
  }

  #navbar.scrolled {
    transition: background-color 0.4s ease;
  }
  #navbar .logo img {
    transition: opacity 0.4s ease;
  }

  .button {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #1e3a8a;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
  }

  section {
    padding: 4rem 2rem;
  }

  .white-bg {
    background-color: white;
  }

  .gray-bg {
    background-color: #f3f4f6;
  }

  .section-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .section-content img {
    width: 100%;
    max-width: 500px;
    border-radius: 10px;
  }

  .text {
    flex: 1;
  }

  footer {
    background-color: var(--blue-dark);
    color: var(--white);
    text-align: center;
    padding: 2rem;
  }

  footer p {
    margin: 0.5rem 0;
  }

  #back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1e3a8a;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 0.75rem 1rem;
    font-size: 1.25rem;
    cursor: pointer;
    display: none;
    z-index: 999;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }

  #testimonials {
    padding: 4rem 2rem;
  }

  .testimonial-slider {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    position: relative;
  }

  .testimonial p {
    color: #374151;
  }

  input:invalid, textarea:invalid {
    border-color: #ef4444 !important;
    background-color: #fef2f2;
  }
  input:focus:invalid, textarea:focus:invalid {
    outline: none;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
  }
  input:valid, textarea:valid {
    border-color: #10b981;
    background-color: #ecfdf5;
  }

  @media (max-width: 768px) {
    .nav-toggle {
      display: block;
    }

    .nav-links {
      display: none;
      flex-direction: column;
      width: 100%;
      padding-top: 1rem;
    }

    .nav-links.active {
      display: flex;
    }

    .section-content {
      flex-direction: column;
      text-align: center;
    }
  }