/* ═══════════════════════════════════════════
   VIKTOGRAFIE – Custom Styles
   ═══════════════════════════════════════════ */

/* ── Smooth Scroll ── */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: clip;
}

/* ── Selection Color ── */
::selection {
  background-color: rgba(200, 162, 78, 0.3);
  color: #fff;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c8a24e;
}

/* ── Navbar Glass Effect ── */
#navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

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

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

@keyframes scrollDown {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
}

.animate-scroll-down {
  animation: scrollDown 1.5s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Scroll-triggered animations */
[data-animate] {
  opacity: 0;
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
}

[data-animate="fade-up"] {
  transform: translateY(40px);
}

[data-animate="fade-right"] {
  transform: translateX(-40px);
}

[data-animate="fade-left"] {
  transform: translateX(40px);
}

[data-animate].animated {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

/* ── FAQ Accordion ── */
.faq-item.active {
  border-color: rgba(200, 162, 78, 0.3);
  background: rgba(26, 26, 26, 0.5);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  border-color: rgba(200, 162, 78, 0.5);
  background: rgba(200, 162, 78, 0.1);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease-out,
    padding 0.3s ease-out;
}

.faq-item.active .faq-content {
  max-height: 500px;
}

/* ── Line Clamp ── */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Counter Animation ── */
.counter {
  display: inline-block;
}

/* ── Form Focus Styles ── */
input:focus,
textarea:focus,
select:focus {
  box-shadow: 0 0 0 3px rgba(200, 162, 78, 0.1);
}

/* ── Image Loading Placeholder ── */
img {
  background-color: #1a1a1a;
}

/* ── Back to Top Button ── */
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ── Responsive Tweaks ── */
@media (max-width: 640px) {
  h1 {
    font-size: 2.25rem;
    line-height: 1.2;
  }

  h2 {
    font-size: 1.875rem;
  }

  .grid-cols-2 > * {
    aspect-ratio: auto;
  }
}

/* ── Testimonial Slider ── */
#testimonial-slider {
  position: relative;
}

/* ── Gold Gradient Text (optional) ── */
.text-gold-gradient {
  background: linear-gradient(135deg, #c8a24e 0%, #d4b366 50%, #c8a24e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Hover Card Lift ── */
.card-lift {
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ── Pulse Ring (for badges/status) ── */
@keyframes pulseRing {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.pulse-ring::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid #c8a24e;
  animation: pulseRing 2s ease-out infinite;
}

/* ── Mobile Optimizations ── */
@media (max-width: 640px) {
  /* Reduce section padding on mobile */
  section {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Better readability on small screens */
  .text-lg {
    font-size: 1rem;
    line-height: 1.625;
  }

  /* Portfolio: gradient fade from bottom on mobile */
  .lightbox-trigger .portfolio-overlay {
    background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.95) 0%,
      rgba(0, 0, 0, 0.8) 20%,
      rgba(0, 0, 0, 0.5) 40%,
      rgba(0, 0, 0, 0.2) 55%,
      transparent 70%
    ) !important;
  }
  .lightbox-trigger .portfolio-info {
    opacity: 1 !important;
    transform: translateY(0) !important;
  }
  /* Category label as subtle pill — fixed position bottom-left */
  .lightbox-trigger .portfolio-info p {
    display: inline-block;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 9999px;
    padding: 0.2rem 0.5rem;
    font-size: 0.6rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.85);
  }
  /* Hide photo title on mobile — pill is enough */
  .lightbox-trigger .portfolio-info h4 {
    display: none;
  }
  /* Hide expand icon on mobile — the gradient + text is enough indication */
  .lightbox-trigger > div:nth-child(3) {
    display: none !important;
  }
}

/* Service cards */
.service-card {
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.5s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(200, 162, 78, 0.15);
}
