  /* ========== CUSTOM STYLES ========== */

  /* Smooth scrolling */
  html {
    scroll-behavior: smooth;
  }

  /* Selection color */
  ::selection {
    background-color: rgba(30, 155, 106, 0.2);
    color: #093827;
  }

  /* ========== NAVBAR ========== */
  #navbar {
    background: transparent;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  }

  #navbar.scrolled {
    background: rgba(254, 253, 248, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(30, 155, 106, 0.08), 0 4px 24px rgba(30, 155, 106, 0.06);
  }

  #navbar.scrolled .font-display {
    color: #093827;
  }

  #navbar.scrolled a:not([class*="bg-emerald"]) {
    color: rgba(9, 56, 39, 0.7) !important;
  }

  #navbar.scrolled a:not([class*="bg-emerald"]):hover {
    color: #0f5f41 !important;
  }

  /* ========== REVEAL ANIMATIONS ========== */
  .reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal[data-reveal] {
    opacity: 0;
    transform: translateY(32px);
  }

  @media (prefers-reduced-motion: no-preference) {
    .reveal[data-reveal] {
      opacity: 0;
      transform: translateY(32px);
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .reveal[data-reveal] {
      opacity: 1;
      transform: none;
    }
  }

  /* ========== CARD TILT ========== */
  .card-tilt {
    will-change: transform;
  }

  .card-tilt > div {
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* ========== BUTTONS ========== */
  a[href="#contact"],
  button[type="submit"] {
    position: relative;
    overflow: hidden;
  }

  a[href="#contact"]::after,
  button[type="submit"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
  }

  a[href="#contact"]:hover::after,
  button[type="submit"]:hover::after {
    opacity: 1;
  }

  /* ========== SELECT STYLING ========== */
  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='%231e9b6a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='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;
    padding-right: 2.5rem;
  }

  /* ========== SCROLLBAR ========== */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #fefdf8;
  }
  ::-webkit-scrollbar-thumb {
    background: #aee5cc;
    border-radius: 999px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #6fcfaa;
  }

  /* ========== MOBILE MENU ========== */
  #mobile-menu {
    animation: slideDown 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  }

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

  /* ========== FORM FOCUS STATES ========== */
  input:focus,
  textarea:focus,
  select:focus {
    box-shadow: 0 0 0 3px rgba(30, 155, 106, 0.1);
  }

  /* ========== REDUCED MOTION ========== */
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
    .card-tilt > div {
      transition: none;
    }
    #navbar {
      transition: none;
    }
  }
