/*
Theme Name: Moonbird Advertisement
Theme URI: https://moonbirdadvertisement.com
Author: Moonbird Advertisement
Description: Digital marketing agency landing page theme for Moonbird Advertisement. Converted from a React/Vite/Tailwind design into a WordPress theme.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: moonbird
*/

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  background-color: #051124;
  color: #fff;
  font-family: 'Inter', sans-serif;
}

::selection {
  background: rgba(212, 175, 55, 0.3);
  color: #d4af37;
}

.font-serif {
  font-family: 'Playfair Display', serif;
}

/* ---------- Glassmorphism ---------- */
.glass-panel {
  background: rgba(8, 27, 58, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.gold-gradient-text {
  background: linear-gradient(to right, #ebd575, #D4AF37, #a8872b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-gradient-bg {
  background: linear-gradient(135deg, #ebd575, #D4AF37, #a8872b);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #051124;
}
::-webkit-scrollbar-thumb {
  background: rgba(212, 175, 55, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 175, 55, 0.6);
}

/* ---------- Scroll reveal (replaces framer-motion whileInView) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-scale.in-view {
  opacity: 1;
  transform: scale(1);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Marquee (Trusted Brands strip) ---------- */
@keyframes marquee-x {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.marquee-track {
  animation: marquee-x 20s linear infinite;
}

/* ---------- Vertical auto-scroll gallery columns ---------- */
@keyframes scroll-up {
  from { transform: translateY(0); }
  to { transform: translateY(-50%); }
}
@keyframes scroll-down {
  from { transform: translateY(-50%); }
  to { transform: translateY(0); }
}
.gallery-col-up {
  animation: scroll-up 25s linear infinite;
}
.gallery-col-down {
  animation: scroll-down 30s linear infinite;
}
.gallery-col-up-slow {
  animation: scroll-up 20s linear infinite;
}
.gallery-mask {
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 10%, black 90%, transparent);
}

/* ---------- Floating logo (Hero) ---------- */
@keyframes float-logo {
  0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
  50% { transform: translateY(-15px) rotateX(5deg) rotateY(-10deg); }
}
.float-logo {
  animation: float-logo 6s ease-in-out infinite;
}

/* ---------- FAQ answer collapse ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-item.open .faq-answer {
  max-height: 400px;
}
.faq-item.open .faq-icon-plus {
  display: none;
}
.faq-icon-minus {
  display: none;
}
.faq-item.open .faq-icon-minus {
  display: inline-flex;
}

/* ---------- Header transition ---------- */
#site-header {
  transition: all 0.5s ease;
}

/* ---------- Buttons: pressed effect ---------- */
.btn-gold {
  transition: all 0.15s ease;
}
.btn-gold:hover { transform: translateY(2px); }
.btn-gold:active { transform: translateY(4px); }

.btn-outline-gold {
  transition: all 0.15s ease;
}
.btn-outline-gold:hover { transform: translateY(2px); }
.btn-outline-gold:active { transform: translateY(4px); }

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