/*
Theme Name: BIXILY
Theme URI: https://bixily.studio
Author: Nithin M — Bixily Digital
Author URI: https://bixily.com
Description: A fully dynamic, dark-themed agency theme for BIXILY. Tailwind (CDN) + Iconify + AOS, with custom post types (Services, Projects, Team, Testimonials, Clients), a customizer-driven homepage, a Services mega menu, and a full set of page templates under /templates. Hyphen-based class naming, lime accent #B7E500.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bixily
*/

/* ============================================================
   The functional Tailwind/utility styling is loaded from the
   CDN config in header.php. This file holds the bespoke design
   system that the static site shipped with — kept verbatim so
   the dynamic theme looks pixel-identical to the approved design.
   ============================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  /* Emil Kowalski easing set — strong curves, not the weak CSS built-ins */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --bx-lime: #B7E500;
  --bx-lime-hover: #C8FF1A;
}
html { scroll-behavior: smooth; background-color: #0a0a0a; }
body {
  font-family: 'Inter', sans-serif;
  color: #fff;
  -webkit-font-smoothing: antialiased;
  position: relative;
  background-color: #0a0a0a;
  background-image:
    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 */
.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 {
  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);
}

.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;
}

.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-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-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);
}

.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 { 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 { 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)); }
}

@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; }

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 { 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-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 {
  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 (v2 — feature rail + categories) ===== */
#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; }

.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); }

/* ===== WordPress core / editor content ===== */
.bx-prose { color: #9ca3af; line-height: 1.75; }
.bx-prose h2 { color:#fff; font-size:1.75rem; font-weight:500; margin:2.25rem 0 1rem; letter-spacing:-0.02em; }
.bx-prose h3 { color:#fff; font-size:1.35rem; font-weight:500; margin:1.75rem 0 .75rem; }
.bx-prose p { margin-bottom:1.15rem; }
.bx-prose a { color:#B7E500; text-decoration:underline; text-underline-offset:3px; }
.bx-prose ul, .bx-prose ol { margin:0 0 1.15rem 1.25rem; }
.bx-prose ul { list-style:disc; }
.bx-prose ol { list-style:decimal; }
.bx-prose li { margin-bottom:.5rem; padding-left:.25rem; }
.bx-prose li::marker { color:#B7E500; }
.bx-prose blockquote { border-left:2px solid rgba(183,229,0,.5); padding-left:1.25rem; margin:1.5rem 0; color:#d1d5db; font-style:italic; }
.bx-prose img { border-radius:1rem; margin:1.5rem 0; }
.bx-prose pre { background:#111; border:1px solid rgba(255,255,255,.08); border-radius:.75rem; padding:1rem; overflow:auto; margin:1.25rem 0; }
.bx-prose code { background:rgba(255,255,255,.06); padding:.15em .4em; border-radius:.35rem; font-size:.9em; }
.bx-prose pre code { background:none; padding:0; }

/* WP alignments / captions */
.aligncenter { display:block; margin-left:auto; margin-right:auto; }
.alignright { float:right; margin:0 0 1rem 1.5rem; }
.alignleft { float:left; margin:0 1.5rem 1rem 0; }
.wp-caption-text { font-size:.8rem; color:#6b7280; text-align:center; }
.screen-reader-text { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(1px,1px,1px,1px); }

/* Comments / pagination basics */
.bx-pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:40px; height:40px; padding:0 .5rem; border-radius:.6rem; border:1px solid rgba(255,255,255,.1); color:#cbd5e1; margin:0 .2rem; transition:all .2s ease; }
.bx-pagination .page-numbers.current { background:#B7E500; color:#050505; border-color:#B7E500; font-weight:600; }
.bx-pagination a.page-numbers:hover { border-color:rgba(183,229,0,.5); color:#B7E500; }
