/* OntoGraph — Custom Styles & Animations */

:root {
  --gold: #c9a962;
  --gold-light: #e8d5a3;
  --dark: #0a0a0f;
  --dark-card: #12121a;
  --accent: #e8b4b8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--dark);
  color: #f5f5f5;
  overflow-x: hidden;
}

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

/* Grain overlay */
.grain::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* Hero gradient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}

.hero-orb-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.25) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-orb-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232, 180, 184, 0.2) 0%, transparent 70%);
  bottom: 20%;
  left: -80px;
  animation-delay: -3s;
}

.hero-orb-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(201, 169, 98, 0.15) 0%, transparent 70%);
  top: 50%;
  right: 20%;
  animation-delay: -5s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -20px) scale(1.05); }
  66% { transform: translate(-15px, 15px) scale(0.95); }
}

/* Fade up on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero text animation */
@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-animate {
  animation: heroFadeUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
}

.hero-animate-1 { animation-delay: 0.2s; }
.hero-animate-2 { animation-delay: 0.4s; }
.hero-animate-3 { animation-delay: 0.6s; }
.hero-animate-4 { animation-delay: 0.8s; }

/* Gold line accent */
.gold-line {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
}

/* Card hover */
.spot-card {
  background: var(--dark-card);
  border: 1px solid rgba(201, 169, 98, 0.12);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.spot-card:hover {
  transform: translateY(-8px);
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(201, 169, 98, 0.08);
}

.spot-card .icon-wrap {
  transition: transform 0.4s ease, background 0.4s ease;
}

.spot-card:hover .icon-wrap {
  transform: scale(1.1);
  background: rgba(201, 169, 98, 0.2);
}

/* Navbar */
.nav-scrolled {
  background: rgba(10, 10, 15, 0.92) !important;
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 98, 0.1);
}

/* CTA button shimmer */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--gold) 0%, #a88b4a 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-gold::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    transparent,
    rgba(255, 255, 255, 0.15),
    transparent
  );
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(201, 169, 98, 0.35);
}

/* Social icons */
.social-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(201, 169, 98, 0.25);
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--gold-light);
}

.social-icon:hover {
  background: var(--gold);
  color: var(--dark);
  border-color: var(--gold);
  transform: translateY(-4px);
}

/* Gallery grid */
.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  min-height: 160px;
}

@media (min-width: 768px) {
  .gallery-item {
    min-height: 200px;
  }

  .gallery-item-featured {
    min-height: 416px;
  }
}

.gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Logo */
.logo-ontograph {
  height: 40px;
  width: auto;
  object-fit: contain;
}

.logo-ontograph-lg {
  height: clamp(120px, 22vw, 200px);
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.logo-bias {
  height: 28px;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.biasmedia-link:hover .logo-bias {
  opacity: 1;
}

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Scroll indicator */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.scroll-indicator {
  animation: bounce 2s ease-in-out infinite;
}

/* Feature number */
.feature-num {
  font-family: 'Playfair Display', serif;
  font-size: 4rem;
  line-height: 1;
  color: rgba(201, 169, 98, 0.15);
  font-weight: 700;
}

/* BiasMedia link */
.biasmedia-link {
  transition: color 0.3s ease, opacity 0.3s ease;
}

.biasmedia-link:hover {
  color: var(--gold);
}

/* WhatsApp float button */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: pulse-wa 2s infinite;
}

/* Scroll to top button */
.scroll-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  z-index: 100;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(201, 169, 98, 0.35);
  border-radius: 50%;
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(12px);
  color: var(--gold-light);
  font-size: 1.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
              background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.scroll-top-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  transform: translateY(-2px);
}

.scroll-top-visible:hover {
  transform: translateY(-2px);
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* Section divider */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201, 169, 98, 0.3), transparent);
}

/* FAQ accordion */
#faq details summary::-webkit-details-marker {
  display: none;
}

#faq details[open] summary {
  color: #e8d5a3;
}
