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

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

  /* Selection color */
  ::selection {
    background-color: #065f46;
    color: #f5f0e8;
  }

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

  #navbar.scrolled {
    background-color: rgba(254, 253, 248, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 30px rgba(6, 95, 70, 0.08);
  }

  .nav-logo-text {
    transition: color 0.4s ease;
  }

  #navbar:not(.scrolled) .nav-logo-text {
    color: #f5f0e8;
  }

  #navbar.scrolled .nav-logo-text {
    color: #065f46;
  }

  .nav-link {
    color: rgba(245, 240, 232, 0.85);
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  #navbar.scrolled .nav-link {
    color: #5c4033;
  }

  .nav-link:hover {
    color: #f5f0e8;
    background-color: rgba(255, 255, 255, 0.1);
  }

  #navbar.scrolled .nav-link:hover {
    color: #065f46;
    background-color: rgba(6, 95, 70, 0.08);
  }

  /* ========== MOBILE MENU ========== */
  #mobile-menu {
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
  }

  #mobile-menu.open {
    max-height: 400px;
    opacity: 1;
  }

  .mobile-link {
    display: block;
  }

  /* ========== SCROLL ANIMATIONS ========== */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .reveal.visible {
    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; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  /* ========== FLOATING ANIMATION ========== */
  @keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
  }

  .animate-float {
    animation: float 4s ease-in-out infinite;
  }

  /* ========== SCROLL DOT ========== */
  @keyframes scrollDot {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(16px); opacity: 0; }
  }

  .scroll-dot {
    animation: scrollDot 1.5s ease-in-out infinite;
  }

  /* ========== INPUT FOCUS ========== */
  input:focus, select:focus, textarea:focus {
    box-shadow: 0 0 0 3px rgba(6, 95, 70, 0.1);
  }

  /* ========== IMAGE HOVER ========== */
  img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* ========== ACCESSIBILITY ========== */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
  }

  /* ========== RESPONSIVE TWEAKS ========== */
  @media (max-width: 640px) {
    .font-serif {
      font-size: clamp(1.5rem, 5vw, 2.25rem);
    }
  }
