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

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

body {
  margin: 0;
}

/* Scroll reveal — progressive enhancement, only active when JS runs */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Navbar scroll state */
nav.scrolled {
  background: rgba(37, 11, 37, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(168, 61, 168, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Geometric accent shapes */
.geo-square {
  position: absolute;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(168, 61, 168, 0.15));
  border-radius: 16px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #250b25;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a83da8, #f59e0b);
  border-radius: 4px;
}

/* Selection color */
::selection {
  background: rgba(245, 158, 11, 0.3);
  color: #faf0fb;
}

/* Mobile menu transition */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 400px;
}

/* Subtle pulse for accent dots */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

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

/* Image hover zoom container */
img {
  display: block;
  max-width: 100%;
  height: auto;
}
