  /* Base & Reset */
  *, *::before, *::after {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: rgba(94, 234, 212, 0.3);
    color: #f0fdf9;
  }

  /* Scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0a1628;
  }
  ::-webkit-scrollbar-thumb {
    background: rgba(94, 234, 212, 0.3);
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: rgba(94, 234, 212, 0.5);
  }

  /* Nav transitions */
  .nav-link {
    position: relative;
  }
  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #5eead4, #14b8a6);
    transition: width 0.3s ease;
    border-radius: 1px;
  }
  .nav-link:hover::after {
    width: 100%;
  }
  .nav-link:hover {
    color: #5eead4;
  }

  /* Navbar scroll state */
  #navbar.scrolled {
    background: rgba(4, 10, 20, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  /* Floating card animations */
  @keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(0.5deg); }
  }
  @keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-0.5deg); }
  }
  @keyframes float3 {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
  }
  @keyframes float4 {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-6px) scale(1.02); }
  }

  .floating-card-1 {
    animation: float1 6s ease-in-out infinite;
  }
  .floating-card-2 {
    animation: float2 5s ease-in-out infinite;
    animation-delay: 1s;
  }
  .floating-card-3 {
    animation: float3 7s ease-in-out infinite;
    animation-delay: 0.5s;
  }
  .floating-card-4 {
    animation: float4 4.5s ease-in-out infinite;
    animation-delay: 2s;
  }

  /* Scroll reveal */
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }
    .scroll-reveal.revealed {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Mobile menu */
  #mobileMenu.open {
    opacity: 1;
    pointer-events: all;
  }

  .mobile-link {
    position: relative;
  }
  .mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: #5eead4;
    transition: width 0.3s ease;
  }
  .mobile-link:hover::after {
    width: 80%;
  }

  /* Select styling */
  select option {
    background: #0f1f3d;
    color: #fff;
  }

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

  /* Gradient text utility fallback */
  .text-gradient {
    background: linear-gradient(135deg, #5eead4, #14b8a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  /* Focus visible */
  :focus-visible {
    outline: 2px solid #5eead4;
    outline-offset: 2px;
  }

  /* Button ripple effect */
  button, a {
    position: relative;
    overflow: hidden;
  }

  /* Image shimmer placeholder */
  img {
    background: linear-gradient(110deg, #0f1f3d 8%, #162a52 18%, #0f1f3d 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
  }
  @keyframes shimmer {
    to { background-position: -200% 0; }
  }
  img[src] {
    animation: none;
    background: none;
  }
