  /* Custom styles beyond Tailwind */

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  /* Custom selection color */
  ::selection {
    background-color: #7ED4C1;
    color: #0A2342;
  }

  /* Smooth focus outlines */
  *:focus-visible {
    outline: 2px solid #7ED4C1;
    outline-offset: 2px;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(10, 35, 66, 0.06), 0 4px 20px rgba(10, 35, 66, 0.04);
  }

  #navbar.scrolled .nav-link {
    color: rgba(10, 35, 66, 0.7);
  }

  #navbar.scrolled .nav-link:hover {
    color: #0A2342;
    background-color: rgba(126, 212, 193, 0.08);
  }

  /* Nav link underline animation */
  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #7ED4C1, #52C6B5);
    border-radius: 1px;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .nav-link:hover::after {
    width: 60%;
  }

  /* Mobile menu transitions */
  #mobile-menu {
    animation: slideDown 0.3s ease;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .mobile-link {
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
  }

  .mobile-link:nth-child(1) { animation-delay: 0.05s; }
  .mobile-link:nth-child(2) { animation-delay: 0.1s; }
  .mobile-link:nth-child(3) { animation-delay: 0.15s; }
  .mobile-link:nth-child(4) { animation-delay: 0.2s; }
  .mobile-link:nth-child(5) { animation-delay: 0.25s; }

  @keyframes fadeIn {
    to { opacity: 1; }
  }

  /* Scroll reveal animations */
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }

  /* Subtle gradient border on service cards */
  .service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(126, 212, 193, 0.3), transparent, rgba(10, 35, 66, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
  }

  /* Hero text shadow for readability */
  #top h1 {
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.15);
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #F0FAF6;
  }

  ::-webkit-scrollbar-thumb {
    background: #ABE1CC;
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #7ED4C1;
  }

  /* Back to top button visibility */
  #back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Select dropdown arrow */
  select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237ED4C1' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
  }
</style>
