/* =====================
   ANIMATIONS
===================== */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  will-change: transform, opacity;
}

/* =====================
   UI EFFECTS (OPTIMIZED)
===================== */
.glass-effect {
  background: rgba(17, 34, 64, 0.65);
  backdrop-filter: blur(12px); /* 20px → 12px performans */
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.text-gradient {
  background: linear-gradient(135deg, #FFF 0%, #C5A059 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-glow:hover {
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.3);
}

.hero-title-shadow {
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* =====================
   NAVBAR
===================== */
.nav-transition {
  transition: all 0.3s ease;
}

.sticky-nav {
  background-color: rgba(2, 12, 27, 0.95) !important;
  padding: 0.75rem 0 !important;
  box-shadow: 0 8px 25px rgba(2, 12, 27, 0.6);
}

/* =====================
   MOBILE MENU
===================== */
#mobile-menu {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

#mobile-menu.active {
  transform: translateY(0);
  display: flex;
}

/* =====================
   SCROLLBAR (LIGHT)
===================== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #020C1B; }
::-webkit-scrollbar-thumb {
  background: #C5A059;
  border-radius: 3px;
}

/* =====================
   PROJECT HOVER
===================== */
.project-overlay {
  opacity: 0;
  transition: opacity 0.4s ease;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.4));
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* =====================
   FILTER BUTTON
===================== */
.filter-btn.active {
  color: #C5A059;
  border-bottom-color: #C5A059;
}

/* =====================
   CAROUSEL (PERFORMANCE)
===================== */
.carousel-container {
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
}

.carousel-item {
  flex: 0 0 100%;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .carousel-item {
    flex: 0 0 33.333%;
  }
}

/* Scroll carousel */
#carouselContainer {
  scroll-behavior: smooth;
}

.carousel-card {
  width: calc((100% - 64px) / 3);
  min-width: 300px;
}

@media (max-width: 1024px) {
  .carousel-card {
    width: calc((100% - 32px) / 2);
  }
}

@media (max-width: 768px) {
  .carousel-card {
    width: 100%;
  }
}

/* =====================
   LIGHTBOX (FIXED)
===================== */
#premium-lightbox {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#premium-lightbox.active {
  display: flex;
  opacity: 1;
}

#premium-lightbox .lightbox-content {
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

#premium-lightbox.active .lightbox-content {
  transform: scale(1);
}