/* ========================================
   ETERNIZE — Custom Styles
   ======================================== */

/* ---------- Gold Gradient Text ---------- */
.text-gradient {
  background: linear-gradient(135deg, #C8973E 0%, #FFD040 50%, #C8973E 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 200% center; }
}

/* ---------- Gold CTA Button ---------- */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #C8973E 0%, #FFD040 50%, #B8860B 100%);
  background-size: 200% auto;
  background-position: left center;
  color: #0D0D0D;
  transition: background-position 0.5s ease,
              transform 0.3s ease,
              box-shadow 0.3s ease;
}

.btn-gold:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(200, 151, 62, 0.35);
}

/* ---------- Navbar Scroll State ---------- */
.navbar-scrolled {
  background: rgba(13, 13, 13, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(93, 93, 93, 0.15);
}

/* ---------- Social Icons ---------- */
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(61, 61, 61, 0.3);
  color: #B0B0B0;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: rgba(200, 151, 62, 0.15);
  color: #C8973E;
  transform: translateY(-2px);
}

/* ---------- Scroll Reveal Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ---------- Service Card Hover ---------- */
.service-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  background: rgba(26, 26, 26, 0.8);
}

/* ---------- Masonry Grid ---------- */
.masonry-grid {
  columns: 1;
  column-gap: 16px;
}

@media (min-width: 640px) {
  .masonry-grid {
    columns: 2;
  }
}

@media (min-width: 1024px) {
  .masonry-grid {
    columns: 3;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 16px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.masonry-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              filter 0.7s ease;
}

.masonry-tall img {
  height: 400px;
}

.masonry-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

.masonry-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.9) 0%, transparent 100%);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.masonry-item:hover .masonry-overlay {
  transform: translateY(0);
  opacity: 1;
}

/* ---------- Testimonial Slider ---------- */
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(109, 109, 109, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  padding: 0;
}

.slider-dot.active {
  width: 32px;
  border-radius: 4px;
  background: linear-gradient(90deg, #C8973E, #B8860B);
}

.slider-dot:hover:not(.active) {
  background: rgba(200, 151, 62, 0.4);
}

/* ---------- Floating Particles ---------- */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(200, 151, 62, 0.3);
}

.particle-1 {
  top: 20%;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.particle-2 {
  top: 60%;
  left: 80%;
  width: 6px;
  height: 6px;
  animation: float 10s ease-in-out infinite reverse;
}

.particle-3 {
  top: 80%;
  left: 30%;
  width: 3px;
  height: 3px;
  animation: float 12s ease-in-out infinite;
}

.particle-4 {
  top: 30%;
  left: 70%;
  width: 5px;
  height: 5px;
  animation: float 9s ease-in-out infinite reverse;
}

.particle-5 {
  top: 50%;
  left: 50%;
  animation: float 11s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  25% {
    transform: translate(30px, -40px) scale(1.3);
    opacity: 0.6;
  }
  50% {
    transform: translate(-20px, -80px) scale(0.8);
    opacity: 0.2;
  }
  75% {
    transform: translate(40px, -30px) scale(1.1);
    opacity: 0.5;
  }
}

/* ---------- Scroll Indicator ---------- */
.scroll-indicator {
  animation: fadeInUp 1.5s ease-out 1.5s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ---------- Mobile Menu Animation ---------- */
.menu-open .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

.menu-open .hamburger-icon span:nth-child(2) {
  opacity: 0;
  transform: translateX(-10px);
}

.menu-open .hamburger-icon span:nth-child(3) {
  width: 24px;
  transform: rotate(-45deg) translate(4px, -4px);
}

/* ---------- Masonry Zoom Icon ---------- */
.masonry-zoom-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(13, 13, 13, 0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C8973E;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.masonry-item:hover .masonry-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

/* ---------- Album Badge ---------- */
.masonry-album-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(13, 13, 13, 0.65);
  backdrop-filter: blur(8px);
  color: #C8973E;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.masonry-item:hover .masonry-album-badge {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Lightbox ---------- */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(7, 7, 7, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox-backdrop.is-open {
  display: flex;
}

.lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  animation: lbFadeIn 0.35s ease forwards;
}

@keyframes lbFadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.lightbox-content.is-closing {
  animation: lbFadeOut 0.25s ease forwards;
}

@keyframes lbFadeOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(0.92); }
}

#lightbox-img {
  max-width: 88vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.8);
  display: block;
}

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-top: 14px;
  padding: 0 4px;
}

.lightbox-caption {
  color: #B0B0B0;
  font-size: 0.875rem;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.04em;
}

.lightbox-counter {
  color: #6D6D6D;
  font-size: 0.8rem;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  margin-left: 16px;
}

/* ---------- Lightbox Thumbnails ---------- */
.lightbox-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  max-width: 88vw;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: #3D3D3D transparent;
}

.lightbox-thumbs::-webkit-scrollbar {
  height: 4px;
}
.lightbox-thumbs::-webkit-scrollbar-thumb {
  background: #3D3D3D;
  border-radius: 2px;
}

.lightbox-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.5;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-thumb.active {
  border-color: #C8973E;
  opacity: 1;
}

.lightbox-thumb:hover:not(.active) {
  opacity: 0.8;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(61, 61, 61, 0.6);
  border: 1px solid rgba(109, 109, 109, 0.3);
  color: #D1D1D1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  background: rgba(200, 151, 62, 0.2);
  color: #C8973E;
  transform: rotate(90deg);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(61, 61, 61, 0.6);
  border: 1px solid rgba(109, 109, 109, 0.3);
  color: #D1D1D1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(200, 151, 62, 0.2);
  color: #C8973E;
}

.lightbox-nav--prev { left: 20px; }
.lightbox-nav--next { right: 20px; }

@media (max-width: 640px) {
  .lightbox-nav--prev { left: 8px; }
  .lightbox-nav--next { right: 8px; }
}

/* ---------- Custom Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

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

::-webkit-scrollbar-thumb {
  background: #3D3D3D;
  border-radius: 3px;
}

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

/* ---------- Selection ---------- */
::selection {
  background: rgba(200, 151, 62, 0.3);
  color: #fff;
}

/* ---------- Smooth Focus ---------- */
*:focus-visible {
  outline: 2px solid rgba(200, 151, 62, 0.5);
  outline-offset: 2px;
  border-radius: 4px;
}
