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

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

  body {
    overflow-x: hidden;
  }

  ::selection {
    background: rgba(212, 160, 23, 0.3);
    color: #f5f0ff;
  }

  /* NAV */
  #navbar {
    background: transparent;
  }

  #navbar.scrolled {
    background: rgba(15, 6, 24, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 160, 23, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-link {
    position: relative;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #fbbf24, #d4a017);
    transition: width 0.3s ease;
    border-radius: 1px;
  }

  .nav-link:hover::after {
    width: 100%;
  }

  /* MOBILE MENU */
  #mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
  }

  .mobile-link {
    position: relative;
  }

  /* FLOAT ANIMATIONS */
  @keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
  }

  @keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(-1deg); }
  }

  @keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-16px); }
  }

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

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

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

  /* SCROLL ANIMATIONS */
  .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.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; }

  /* GALLERY */
  .grid img {
    cursor: pointer;
  }

  /* FORM */
  input:focus, textarea:focus {
    background: rgba(255, 255, 255, 0.08) !important;
  }

  /* CUSTOM SCROLLBAR */
  ::-webkit-scrollbar {
    width: 8px;
  }

  ::-webkit-scrollbar-track {
    background: #0a0412;
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4a017, #8b3aff);
    border-radius: 4px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #fbbf24, #a76dff);
  }

  /* RESPONSIVE */
  @media (max-width: 768px) {
    html {
      scroll-padding-top: 70px;
    }

    #inicio h1 {
      font-size: 2.75rem !important;
    }

    .reveal {
      transform: translateY(24px);
    }
  }

  @media (max-width: 360px) {
    #inicio h1 {
      font-size: 2.25rem !important;
    }

    .font-display {
      font-size: 1.125rem;
    }
  }
