  /* Custom styles — beyond Tailwind */

  /* Smooth scroll offset for fixed nav */
  section[id] {
    scroll-margin-top: 80px;
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #08172d;
  }
  ::-webkit-scrollbar-thumb {
    background: #285f8d;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #3fb078;
  }

  /* Selection color */
  ::selection {
    background: rgba(63, 176, 120, 0.3);
    color: #f0f4f8;
  }

  /* Reveal animation base */
  .reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Stagger children */
  .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; }

  /* Navbar glass effect when scrolled */
  #navbar.scrolled {
    background: rgba(4, 13, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  /* Mobile link animation */
  .mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.2s ease;
  }
  #mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
  }
  #mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
  #mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
  #mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
  #mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
  #mobile-menu.open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

  /* Subtle image hover zoom */
  img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  /* Nav link underline on hover */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3fb078;
    border-radius: 1px;
    transition: width 0.3s ease;
  }
  .nav-link:hover::after {
    width: 100%;
  }
  .nav-link:hover {
    color: #9ae0bc !important;
  }

  /* Pulse animation for the dot */
  @keyframes soft-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
  }
  .animate-pulse-dot {
    animation: soft-pulse 2s ease-in-out infinite;
  }
</script>
