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

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

  body {
    overflow-x: hidden;
  }

  /* Scroll reveal - progressive enhancement, only active when JS runs */
  .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

  @media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
      opacity: 0;
      transform: translateY(30px);
    }
    .scroll-reveal.is-visible {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Navbar scroll state */
  .nav-scroll {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
  }

  .nav-scroll.scrolled {
    background-color: rgba(12, 12, 14, 0.95);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
  }

  /* Custom scrollbar */
  ::-webkit-scrollbar {
    width: 8px;
  }
  ::-webkit-scrollbar-track {
    background: #0c0c0e;
  }
  ::-webkit-scrollbar-thumb {
    background: #3f3f46;
    border-radius: 4px;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #ff6b5e;
  }

  /* Selection */
  ::selection {
    background: rgba(255, 107, 94, 0.3);
    color: #fff1f0;
  }

  /* Mobile menu animation */
  #mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
  }

  #mobile-menu.open {
    max-height: 500px;
    padding-top: 0;
  }

  /* Card hover glow */
  .glow-hover:hover {
    box-shadow: 0 0 40px rgba(255, 107, 94, 0.15);
  }

  /* Decorative pattern */
  .pattern-dots {
    background-image: radial-gradient(circle, rgba(255, 107, 94, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
  }
