/* ===== Reset & Base ===== */
*, *::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;
}

::selection {
  background: rgba(201, 168, 76, 0.3);
  color: #F5F0E8;
}

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

/* ===== Scrollbar ===== */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #072419;
}
::-webkit-scrollbar-thumb {
  background: rgba(201, 168, 76, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(201, 168, 76, 0.5);
}

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.4; }
  50% { transform: translateY(-20px) rotate(5deg); opacity: 0.8; }
}

@keyframes scroll {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ===== Particle effects ===== */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
}

.particle span {
  display: block;
  animation: float 6s ease-in-out infinite;
}

.float-1 { top: 20%; left: 10%; animation-delay: 0s; }
.float-2 { top: 60%; left: 85%; animation-delay: 1.5s; }
.float-3 { top: 80%; left: 20%; animation-delay: 3s; }
.float-4 { top: 15%; left: 80%; animation-delay: 4.5s; }
.float-5 { top: 45%; left: 5%; animation-delay: 2s; }

/* ===== Scroll indicator ===== */
.scroll-dot {
  animation: scroll 1.5s ease-in-out infinite;
}

/* ===== Reveal animations ===== */
.reveal-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.reveal-left {
  opacity: 0;
  animation: fadeInLeft 0.8s ease forwards;
}

.reveal-right {
  opacity: 0;
  animation: fadeInRight 0.8s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* Intersection observer will add .visible class */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
}

.reveal-up.visible {
  animation: fadeInUp 0.8s ease forwards;
}

.reveal-left.visible {
  animation: fadeInLeft 0.8s ease forwards;
}

.reveal-right.visible {
  animation: fadeInRight 0.8s ease forwards;
}

/* ===== Header ===== */
#header {
  background: transparent;
  transition: background 0.5s ease, box-shadow 0.5s ease;
}

#header.scrolled {
  background: rgba(3, 18, 12, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(201, 168, 76, 0.1);
}

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

#mobileMenu:not(.open) {
  opacity: 0;
  pointer-events: none;
}

.mobile-link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#mobileMenu.open .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ===== Menu items hover ===== */
.menu-item-hover:hover .menu-item-name {
  color: #C9A84C;
}

/* ===== Button ripple effect ===== */
button, a {
  cursor: pointer;
}

/* ===== Focus styles ===== */
:focus-visible {
  outline: 2px solid rgba(201, 168, 76, 0.6);
  outline-offset: 2px;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
  .particle { display: none; }
}

/* ===== Print styles ===== */
@media print {
  body { background: white; color: black; }
  #header, .particle, .scroll-indicator { display: none; }
}
