/* ═══════════════════ BASE & RESET ═══════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ═══════════════════ SCROLL REVEAL (progressive enhancement) ═══════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal-left {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .reveal-right {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* ═══════════════════ NAVBAR SCROLL STATE ═══════════════════ */
#nav.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

#nav.scrolled .menu-line {
  background: #fff;
}

/* ═══════════════════ MOBILE MENU ═══════════════════ */
#mobileMenu.open {
  transform: translateX(0);
}

#mobileMenu.closed {
  transform: translateX(100%);
}

.menu-line {
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ═══════════════════ SELECTION ═══════════════════ */
::selection {
  background: rgba(232, 100, 90, 0.3);
  color: #f5f5f5;
}

/* ═══════════════════ FOCUS STYLES ═══════════════════ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #E8645A;
  outline-offset: 2px;
}

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

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

::-webkit-scrollbar-thumb {
  background: #2E2E2E;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #E8645A;
}

/* ═══════════════════ ANIMATED BACKGROUND BLOBS ═══════════════════ */
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ═══════════════════ INPUT AUTOFILL STYLING ═══════════════════ */
input:-webkit-autofill,
textarea:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #2E2E2E inset !important;
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
}
