/*
Theme Name: Bixily Custom Theme
Theme URI: https://bixily.studio/
Author: Antigravity AI
Author URI: https://bixily.studio/
Description: A modern, premium dark-themed custom WordPress theme for the Bixily agency. Features vibrant greens, radial glows, grid textures, and smooth animations.
Version: 1.0.0
Text Domain: bixily
*/

/* Custom global styles for Bixily Theme */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body {
  background:
    radial-gradient(1200px 600px at 50% -5%, rgba(183, 229, 0, 0.06), transparent 60%),
    radial-gradient(900px 700px at 100% 15%, rgba(183, 229, 0, 0.025), transparent 55%),
    radial-gradient(900px 700px at 0% 45%, rgba(120, 160, 0, 0.02), transparent 55%),
    radial-gradient(1000px 800px at 50% 100%, rgba(183, 229, 0, 0.04), transparent 60%),
    linear-gradient(180deg, #0c0c0c 0%, #080808 40%, #0a0a0a 70%, #060606 100%);
  background-attachment: fixed;
  background-repeat: no-repeat;
}

/* Header — TWO states.
   Default (top of page): the plain soft liquid-glass pill.
   Scrolled (sticky): the frosted dark gradient glass (approved design). */
.site-nav {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: background 0.35s var(--ease-out), backdrop-filter 0.35s var(--ease-out),
              border-color 0.35s ease, box-shadow 0.35s var(--ease-out);
}
#site-header.scrolled .site-nav {
  background:
    linear-gradient(90deg, rgba(28,28,28,0.78) 0%, rgba(14,14,14,0.66) 45%, rgba(20,20,20,0.74) 100%);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 14px 36px -18px rgba(0,0,0,0.85);
}
/* Mobile menu panel — solid frosted backdrop for readability. */
#mobile-menu {
  background: rgba(12, 12, 12, 0.92);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

/* Raised panel that floats on the canvas — soft, no hard edges, no popping border. */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 50px -30px rgba(0,0,0,0.7);
  position: relative;
}
.liquid-glass, .glass-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.012));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 20px 50px -30px rgba(0,0,0,0.7);
  position: relative;
}

/* Gradient text */
.text-gradient {
  background: linear-gradient(to bottom right, #ffffff, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
.measure { max-width: 68ch; }
.display-tight { letter-spacing: -0.03em; }

/* Section rhythm */
.section-pad { padding-top: 50px; padding-bottom: 50px; }
@media (min-width: 768px)  { .section-pad { padding-top: 88px;  padding-bottom: 88px; } }
@media (min-width: 1024px) { .section-pad { padding-top: 120px; padding-bottom: 120px; } }
.section-pad-b { padding-bottom: 50px; }
@media (min-width: 768px)  { .section-pad-b { padding-bottom: 88px; } }
@media (min-width: 1024px) { .section-pad-b { padding-bottom: 120px; } }

/* Grid Texture */
.grid-bg {
  background-size: 46px 46px;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black, transparent 75%);
}
.grid-lines {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black, transparent 78%);
}
.soft-seam { position: relative; }
.soft-seam::before {
  content: ''; position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent);
}

/* Buttons */
.btn-primary { background: #B7E500; color: #050505; font-weight: 600; transition: background 0.15s ease, transform 0.15s var(--ease-out), box-shadow 0.15s var(--ease-out); }
.btn-primary:active { transform: scale(0.97); }
.btn-secondary { background: #1c1c1e; color: #fff; border: 1px solid rgba(255,255,255,0.12); transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s var(--ease-out); }
.btn-secondary:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #C8FF1A; transform: translateY(-2px); box-shadow: 0 8px 20px -6px rgba(183, 229, 0, 0.3); }
  .btn-secondary:hover { border-color: rgba(183, 229, 0, 0.5); background: #232325; transform: translateY(-2px); }
}

/* Service card */
.service-card { transition: transform 0.4s var(--ease-out), border-color 0.4s ease, background 0.4s ease; }
.service-card .bg-icon { opacity: 0.06; transition: opacity 0.4s ease, transform 0.6s var(--ease-out); }
.service-card .icon-chip { transition: transform 0.4s var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .service-card:hover { transform: translateY(-4px); border-color: rgba(183, 229, 0, 0.35) !important; background: linear-gradient(180deg, rgba(183,229,0,0.05), rgba(255,255,255,0.012)); }
  .service-card:hover .bg-icon { opacity: 0.14; }
  .service-card:hover .icon-chip { transform: scale(1.1); }
}

/* Process card */
.process-card { transition: transform 0.4s var(--ease-out), border-color 0.4s ease, background 0.4s ease; }
@media (hover: hover) and (pointer: fine) {
  .process-card:hover { transform: translateY(-4px); border-color: rgba(183, 229, 0, 0.35) !important; background: linear-gradient(180deg, rgba(183,229,0,0.05), rgba(255,255,255,0.012)); }
}

/* Icon hover animations */
@media (hover: hover) and (pointer: fine) {
  .group:hover .icon-bounce { animation: bounce-subtle 2s infinite; }
  .group:hover .icon-spin   { animation: spin-slow 4s linear infinite; }
  .group:hover .icon-pulse  { animation: pulse-subtle 2s infinite; }
}
@keyframes bounce-subtle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulse-subtle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.8; transform: scale(0.95); } }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-track { animation: marquee 28s linear infinite; }

/* FAQ accordion */
details.faq-item { transition: border-color 0.25s ease, background 0.25s ease; }
details.faq-item[open] { border-color: rgba(183, 229, 0, 0.3); background: linear-gradient(180deg, rgba(183,229,0,0.04), rgba(255,255,255,0.012)); }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item p { animation: faq-fade 0.3s var(--ease-out); }
@keyframes faq-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

/* Reviews marquee */
.reviews-marquee { overflow: visible; }
.reviews-marquee-track { animation: reviews-scroll 45s linear infinite; }
@media (hover: hover) and (pointer: fine) {
  .reviews-marquee:hover .reviews-marquee-track { animation-play-state: paused; }
}
@keyframes reviews-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.review-card { transition: transform 0.3s var(--ease-out), border-color 0.3s ease; }
@media (hover: hover) and (pointer: fine) {
  .review-card:hover { transform: translateY(-4px); border-color: rgba(183, 229, 0, 0.3) !important; }
}

/* Work cards */
.work-card { transition: transform 0.35s var(--ease-out), border-color 0.35s ease; }
.work-card img { transition: opacity 0.5s ease; }
@media (hover: hover) and (pointer: fine) {
  .work-card:hover { transform: translateY(-4px); border-color: rgba(183, 229, 0, 0.3); }
  .work-card:hover img { opacity: 0.85; }
}

/* Noise overlay and backgrounds */
.noise-overlay {
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.22;
}
.bg-noise {
  background-image: url("data:image/svg+xml;utf8,%3Csvg viewBox='0 0 200 200' 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)'/%3E%3C/svg%3E");
  opacity: 0.025;
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track, .reviews-marquee-track, .icon-bounce, .icon-spin, .icon-pulse { animation: none !important; }
}

/* Services mega menu */
#site-header .mega-wrap { position: static; }
.mega-panel {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  top: calc(100% + 12px);
  width: min(1040px, calc(100vw - 40px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  z-index: 60;
}
.mega-inner {
  background: linear-gradient(180deg, rgba(18,18,18,0.97), rgba(9,9,9,0.98));
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 36px 90px -34px rgba(0,0,0,0.92), inset 0 1px 0 rgba(255,255,255,0.05);
  border-radius: 22px;
  overflow: hidden;
}
.mega-wrap:hover .mega-panel,
.mega-wrap.is-open .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.mega-rail {
  position: relative;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(183,229,0,0.10), transparent 60%),
    linear-gradient(180deg, rgba(183,229,0,0.05), rgba(255,255,255,0.012));
  border-right: 1px solid rgba(255,255,255,0.08);
}
.mega-rail::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 0% 0%, #000, transparent 75%);
  mask-image: radial-gradient(120% 90% at 0% 0%, #000, transparent 75%);
  pointer-events: none;
}
.mega-cat-icon {
  width: 38px; height: 38px;
  border-radius: 11px;
  border: 1px solid rgba(183,229,0,0.22);
  background: rgba(183,229,0,0.06);
  color: #B7E500;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}
.mega-col:hover .mega-cat-icon { background: rgba(183,229,0,0.12); transform: translateY(-1px); }
.mega-link {
  position: relative;
  display: flex; align-items: center; gap: 7px;
  color: #b9b9b9;
  font-size: 0.84rem;
  line-height: 1.15;
  padding: 0.34rem 0;
  transition: color 0.2s ease, padding-left 0.22s var(--ease-out);
}
.mega-link::before {
  content: "";
  width: 4px; height: 4px; border-radius: 9999px;
  background: currentColor; opacity: 0;
  transition: opacity 0.2s ease;
  flex: 0 0 auto;
  margin-left: -11px;
}
@media (hover: hover) and (pointer: fine) {
  .mega-link:hover { color: #B7E500; padding-left: 11px; }
  .mega-link:hover::before { opacity: 1; }
}
.mega-caret { transition: transform 0.28s var(--ease-out); }
.mega-wrap:hover .mega-caret,
.mega-wrap.is-open .mega-caret { transform: rotate(180deg); color: #B7E500; }

/* Mobile services accordion */
.m-acc-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.m-acc-panel.show {
  max-height: 380px;
  overflow-y: auto;
}
.m-acc-panel::-webkit-scrollbar {
  width: 4px;
}
.m-acc-panel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 99px;
}
.m-acc-panel::-webkit-scrollbar-thumb {
  background: rgba(183, 229, 0, 0.3);
  border-radius: 99px;
}
.m-acc-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(183, 229, 0, 0.5);
}
.m-acc.is-open .m-acc-panel {
  max-height: 380px;
}
.m-acc.is-open .m-acc-caret { transform: rotate(180deg); }
.m-acc-caret { transition: transform 0.3s var(--ease-out); }
