@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@500;700;800;900&display=swap');

:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #141414;
  --bg-card: #1A1A1A;
  --accent: #00D4FF;
  --accent-hover: #00B8D9;
  --text-primary: #FFFFFF;
  --text-secondary: #9CA3AF;
  --border: #2A2A2A;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .font-heading {
  font-family: 'Montserrat', sans-serif;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Cinematic Background */
.bg-cinematic {
  background: radial-gradient(circle at center, rgba(0,212,255,0.08) 0%, rgba(10,10,10,1) 70%),
              repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.2) 2px, rgba(0,0,0,0.2) 4px);
  background-color: var(--bg-primary);
}

/* Film Grain */
.film-grain {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  z-index: 10;
}

/* Scroll-in animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-right.revealed {
  opacity: 1;
  transform: translateX(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-scale.revealed {
  opacity: 1;
  transform: scale(1);
}

/* Staggered delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Scroll indicator bounce */
@keyframes bounce-scroll {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}
.scroll-bounce {
  animation: bounce-scroll 1.5s ease-in-out infinite;
}

/* Hero word animation */
@keyframes word-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-word {
  display: inline-block;
  margin-right: 0.75rem;
  opacity: 0;
  animation: word-in 0.6s ease forwards;
}
.hero-word:last-child { margin-right: 0; }

/* WhatsApp button */
@keyframes scale-in {
  from { transform: scale(0); }
  to   { transform: scale(1); }
}
.whatsapp-btn {
  animation: scale-in 0.4s cubic-bezier(0.34,1.56,0.64,1) 1s both;
}

/* Mobile menu slide */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
#mobile-menu.open {
  max-height: 500px;
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}
.faq-answer.open {
  opacity: 1;
}
.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-chevron.open {
  transform: rotate(180deg);
}

/* Portfolio filter */
.portfolio-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.portfolio-item.hidden {
  display: none;
}

/* Accent glow shadows */
.shadow-accent-glow { box-shadow: 0 0 20px rgba(0,212,255,0.3); }
.shadow-accent-glow-strong { box-shadow: 0 0 30px rgba(0,212,255,0.5); }

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

/* Scroll-to-top */
#scroll-top {
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
#scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Payment method toggle */
.payment-section, .hp-payment-section { display: none; }
.payment-section.active, .hp-payment-section.active { display: block; }

/* Form states */
.form-success {
  position: absolute; inset: 0;
  background: var(--bg-card);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem; text-align: center;
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.form-success.show {
  opacity: 1;
  pointer-events: auto;
}

/* Form field validation */
.field-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px #ef4444 !important;
}
.field-error-msg {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: #f87171;
  font-size: 0.75rem;
  margin-top: 0.35rem;
  line-height: 1.4;
}
.form-general-error {
  color: #f87171;
  font-size: 0.875rem;
  padding: 0.75rem 1rem;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 0.5rem;
  margin-bottom: 0.5rem;
}

/* Upload drag area */
.upload-area {
  border: 2px dashed var(--border);
  transition: border-color 0.2s, background-color 0.2s;
}
.upload-area:hover, .upload-area.drag-over {
  border-color: rgba(0,212,255,0.5);
  background-color: var(--bg-card);
}

/* Navbar scroll state */
#site-navbar.scrolled {
  padding-top: 1rem;
  padding-bottom: 1rem;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

/* WordPress admin bar adjustment */
.admin-bar .fixed-navbar {
  top: 32px;
}
@media (max-width: 782px) {
  .admin-bar .fixed-navbar {
    top: 46px;
  }
}

/* WP pagination */
.wp-pagenavi, .pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 3rem;
}
.wp-pagenavi a, .wp-pagenavi span,
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.875rem;
  transition: all 0.2s;
  text-decoration: none;
}
.wp-pagenavi a:hover, .pagination .page-numbers:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.wp-pagenavi .current, .pagination .page-numbers.current {
  background: var(--accent);
  color: #0A0A0A;
  border-color: var(--accent);
}
