/* ========================================
   ADDITIONAL ENHANCEMENTS - style.extra.css
   ======================================== */

/* ---- Particle animation in hero ---- */
.particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(201, 168, 76, 0.6);
  border-radius: 50%;
  animation: float-particle linear infinite;
}

@keyframes float-particle {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

/* ---- Loading states ---- */
.btn-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}
.btn-loading::after {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px; height: 20px;
  border: 2px solid transparent;
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Nav overlay (mobile) ---- */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.4s;
}
.nav-overlay.visible {
  display: block;
  opacity: 1;
}

/* ---- Image lazy load placeholder ---- */
img[loading="lazy"] {
  background: linear-gradient(135deg, #f0ede4, #e8e4d8);
  min-height: 100px;
}

/* ---- Custom Scrollbar ---- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-light); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold), var(--gold-dark));
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---- Selection ---- */
::selection {
  background: rgba(201, 168, 76, 0.3);
  color: var(--black);
}

/* ---- Focus visible ---- */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Form error state ---- */
.form-group input.error,
.form-group textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.field-error {
  color: #ef4444;
  font-size: 0.78rem;
  margin-top: 5px;
  display: block;
}

/* ---- Hamburger animation ---- */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Active nav section highlight ---- */
.nav-link.active {
  color: var(--gold) !important;
}

/* ---- Project card filter animation ---- */
.project-card {
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.35s ease;
}
.project-card.fade-out {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* ---- Hero content delay classes ---- */
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
