/*
Theme Name: Zenth
Theme URI: https://evolixor.com
Author: Evolixor
Author URI: https://evolixor.com
Description: A premium, high-performance 3D WordPress theme designed for agencies and creative portfolios. Features dynamic WebGL backgrounds, smooth scroll animations, and full Customizer integration.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: zenth
*/

/* Z-INDEX STACK
   0-10    : Section content layers
   7999    : Loader background
   8000    : Navigation
   9000    : Scroll progress bar
   9999    : Custom cursor ring
   10000   : Custom cursor dot
   99999   : Skip link (accessibility, must be on top)
*/

/* ══════════════════════════════════════════
   CSS RESET & VARIABLES
══════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --white:    #FFFFFF;
  --off:      #F8F9FA;
  --black:    #111111;
  --muted:    #6B7280;
  /* These will be overwritten dynamically by the Theme Customizer inline styles */
  --accent:   #2563EB;
  --accent-d: #1D4ED8;
  --blue-bg:  #EFF6FF;
  
  --border:   #E5E7EB;
  --radius:   14px;
  --radius-lg:24px;
}

/* ══════════════════════════════════════════
   PARTICLE LOADER
══════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0;
  background: var(--white);
  z-index: 99999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity .6s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
#loader-canvas { width: 240px; height: 240px; }
.loader-label {
  font-family: 'Clash Display', sans-serif;
  font-size: .65rem; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-top: 1.2rem;
  opacity: 0; animation: fadeIn .5s .4s forwards;
}
.loader-label span { color: var(--accent); }
.loader-bar-wrap {
  width: 100px; height: 1px;
  background: var(--border); margin-top: .8rem;
  overflow: hidden; border-radius: 2px;
}
.loader-bar {
  height: 100%; width: 0%;
  background: var(--accent);
  transition: width 1.5s cubic-bezier(.16,1,.3,1);
}

/* ══════════════════════════════════════════
   MOBILE MENU
══════════════════════════════════════════ */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--black);
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
.nav-mobile-menu {
  display: none; position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white); z-index: 7999;
  flex-direction: column; align-items: center;
  justify-content: center; gap: 2rem;
}
.nav-mobile-menu.open { display: flex; }
.nav-mobile-menu a {
  font-family: 'Clash Display', sans-serif;
  font-size: 2rem; font-weight: 600;
  color: var(--black); text-decoration: none;
  letter-spacing: -.02em;
  transition: color .2s;
}
.nav-mobile-menu a:hover { color: var(--accent); }

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--white);
  color: var(--black);
  font-family: 'Satoshi', sans-serif;
  font-weight: 400;
  overflow-x: hidden;
  cursor: none;
}

/* ══════════════════════════════════════════
   CUSTOM CURSOR
══════════════════════════════════════════ */
#cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .35s cubic-bezier(.16,1,.3,1),
              height .35s cubic-bezier(.16,1,.3,1),
              background .3s;
  mix-blend-mode: normal;
}
#cursor.hover {
  width: 48px; height: 48px;
  background: rgba(0,71,255,.12);
  border: 1.5px solid var(--accent);
}
#cursor-dot {
  position: fixed;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
}

/* ══════════════════════════════════════════
   SMOOTH SCROLL PROGRESS
══════════════════════════════════════════ */
#progress {
  position: fixed; top: 0; left: 0;
  height: 2px; background: var(--accent);
  z-index: 9000; width: 0%;
  transition: width .05s linear;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 8000;
  padding: 1.4rem 5vw;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .4s, box-shadow .4s, padding .4s;
}
nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 1rem 5vw;
}
.nav-logo {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--black);
  text-decoration: none; cursor: none;
  display: flex; align-items: center; gap: 0.5rem;
}
.nav-logo img {
  height: 48px; max-height: 60px; width: auto;
}
.nav-logo span { color: var(--accent); }
.nav-center {
  display: flex; gap: 2.5rem; list-style: none;
  position: absolute; left: 50%; transform: translateX(-50%);
}
.nav-center a {
  font-size: .8rem; font-weight: 500;
  letter-spacing: .01em; color: var(--muted);
  text-decoration: none; cursor: none;
  transition: color .2s;
  position: relative;
}
.nav-center a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .3s cubic-bezier(.16,1,.3,1);
}
.nav-center a:hover { color: var(--black); }
.nav-center a:hover::after { width: 100%; }
.nav-right { display: flex; gap: 1rem; align-items: center; }
.btn-nav {
  padding: .6rem 1.4rem;
  background: var(--black); color: var(--white);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .02em; border-radius: 100px;
  text-decoration: none; cursor: none;
  transition: background .2s, transform .2s;
  border: none;
}
.btn-nav:hover { background: var(--accent); transform: translateY(-1px); }

/* ══════════════════════════════════════════
   HERO SECTION
══════════════════════════════════════════ */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 8rem 5vw 4rem;
  position: relative;
  overflow: visible;
}

/* Subtle grid bg */
#hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .4;
  pointer-events: none;
}
/* Fade bottom */
#hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 200px;
  background: linear-gradient(transparent, var(--white));
  pointer-events: none;
}

.hero-left { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .4rem 1rem;
  background: var(--blue-bg);
  border: 1px solid rgba(0,71,255,.15);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; color: var(--accent);
  letter-spacing: .05em;
  margin-bottom: 2rem;
  opacity: 0; animation: fadeUp .7s .2s forwards;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: blink 2s infinite;
}

.hero-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(3.2rem, 6vw, 6.5rem);
  font-weight: 700; line-height: .95;
  letter-spacing: -.03em;
  margin-bottom: 1.8rem;
  opacity: 0; animation: fadeUp .9s .35s forwards;
}
.hero-title .outline {
  -webkit-text-stroke: 1.5px var(--black);
  color: transparent;
}
.hero-title .blue { color: var(--accent); }

.hero-desc {
  font-size: 1rem; line-height: 1.75;
  color: var(--muted); max-width: 420px;
  font-weight: 300; margin-bottom: 2.5rem;
  opacity: 0; animation: fadeUp .8s .5s forwards;
}

.hero-actions {
  display: flex; gap: 1rem; align-items: center;
  opacity: 0; animation: fadeUp .8s .65s forwards;
}
.btn-primary {
  padding: .9rem 2.2rem;
  background: var(--accent); color: #FFFFFF;
  font-size: .8rem; font-weight: 600;
  letter-spacing: .02em; border-radius: 100px;
  border: none; cursor: none; text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 4px 24px rgba(0,71,255,.25);
  display: inline-block;
}
.btn-primary:hover {
  background: var(--accent-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0,71,255,.35);
  color: var(--white);
}
.btn-secondary {
  display: flex; align-items: center; gap: .6rem;
  padding: .9rem 1.8rem; text-decoration: none;
  background: transparent; color: var(--black);
  font-size: .8rem; font-weight: 500;
  border: 1.5px solid var(--border); border-radius: 100px;
  cursor: none;
  transition: border-color .25s, background .25s, transform .25s;
}
.btn-secondary:hover {
  border-color: var(--black);
  background: var(--off);
  transform: translateY(-2px);
}
.btn-arrow {
  width: 20px; height: 20px;
  background: var(--black); color: var(--white);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: .7rem;
  transition: transform .3s;
}
.btn-secondary:hover .btn-arrow { transform: translateX(3px); }

.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3.5rem;
  padding-top: 2rem; border-top: 1px solid var(--border);
  opacity: 0; animation: fadeUp .8s .8s forwards;
}
.hero-stat-num {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.8rem; font-weight: 700;
  letter-spacing: -.03em; color: var(--black);
}
.hero-stat-num span { color: var(--accent); }
.hero-stat-label {
  font-size: .72rem; color: var(--muted);
  margin-top: .2rem; font-weight: 400;
}

/* Hero right — 3D canvas */
.hero-right {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  height: 800px;
  margin-right: -3vw;
  overflow: visible;
}
#hero-canvas {
  width: 100%; height: 100%;
  opacity: 0; animation: fadeIn 1.2s .4s forwards;
  filter: drop-shadow(0 0 80px rgba(37,99,235,0.45)) drop-shadow(0 0 30px rgba(37,99,235,0.3));
  overflow: visible;
}

/* Floating UI chips around canvas */
.chip {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .8rem 1.1rem;
  display: flex; align-items: center; gap: .7rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
  opacity: 0;
  animation: fadeUp .8s forwards;
  backdrop-filter: blur(10px);
}
.chip-1 { top: 12%; left: 0; animation-delay: .9s; }
.chip-2 { bottom: 22%; right: -2%; animation-delay: 1.1s; }
.chip-3 { top: 55%; left: -2%; animation-delay: 1.3s; }
.chip-icon {
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.chip-icon.blue { background: var(--blue-bg); }
.chip-icon.green { background: #EFFFEF; }
.chip-icon.orange { background: #FFF4EE; }
.chip-text-top { font-size: .65rem; color: var(--muted); }
.chip-text-bot { font-size: .8rem; font-weight: 600; color: var(--black); }

/* ══════════════════════════════════════════
   MARQUEE / CLIENTS STRIP
══════════════════════════════════════════ */
#clients {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
  position: relative; z-index: 2;
}
.marquee-track {
  display: flex; gap: 4rem;
  animation: marquee 22s linear infinite;
  width: max-content;
}
.marquee-track:hover { animation-play-state: paused; }
.client-name {
  font-family: 'Clash Display', sans-serif;
  font-size: 1rem; font-weight: 600;
  color: var(--border); letter-spacing: -.01em;
  white-space: nowrap;
  transition: color .3s;
}
.client-name:hover { color: var(--muted); }
.marquee-sep {
  color: var(--border); font-size: .5rem;
  display: flex; align-items: center;
}

/* ══════════════════════════════════════════
   SERVICES SECTION
══════════════════════════════════════════ */
#services {
  padding: 8rem 5vw;
  background: var(--white);
}
.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .65rem; color: var(--accent);
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex; align-items: center; gap: .7rem;
}
.section-label::before {
  content: '';
  display: inline-block; width: 24px; height: 1.5px;
  background: var(--accent);
}
.section-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  font-weight: 700; letter-spacing: -.03em;
  line-height: 1.05; margin-bottom: 1rem;
}
.section-subtitle {
  font-size: .95rem; color: var(--muted);
  line-height: 1.75; max-width: 460px;
  font-weight: 300;
}
.services-header {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: end; margin-bottom: 4rem;
}
.services-link {
  font-size: .8rem; font-weight: 600;
  color: var(--accent); text-decoration: none; cursor: none;
  display: flex; align-items: center; gap: .5rem;
  justify-self: end; align-self: end;
  padding-bottom: .3rem;
  border-bottom: 1.5px solid var(--accent);
  transition: gap .3s;
}
.services-link:hover { gap: 1rem; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.service-card {
  background: var(--white);
  padding: 2.5rem;
  transition: background .3s;
  cursor: none;
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 3px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.service-card:hover { background: var(--off); }
.service-card:hover::before { transform: scaleX(1); }
.service-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem; color: var(--muted);
  letter-spacing: .1em; margin-bottom: 1.5rem;
}
.service-icon {
  width: 48px; height: 48px;
  background: var(--blue-bg);
  border-radius: 12px;
  display: flex; align-items: center;
  justify-content: center; font-size: 1.3rem;
  margin-bottom: 1.5rem;
  transition: transform .3s;
}
.service-card:hover .service-icon { transform: scale(1.1) rotate(-5deg); }
.service-name {
  font-family: 'Clash Display', sans-serif;
  font-size: 1.2rem; font-weight: 600;
  letter-spacing: -.02em; margin-bottom: .8rem;
}
.service-desc {
  font-size: .82rem; color: var(--muted);
  line-height: 1.7; font-weight: 300;
}
.service-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1.5px solid var(--border); border-radius: 50%;
  font-size: .8rem; color: var(--muted);
  transition: border-color .3s, background .3s, color .3s, transform .3s;
  cursor: none; z-index: 10;
  margin-top: 1.8rem;
}
.service-card:hover .service-arrow {
  border-color: var(--accent); background: var(--accent);
  color: var(--white);
}
.service-arrow.open {
  border-color: var(--accent); background: var(--accent);
  color: var(--white); transform: rotate(90deg) !important;
}
.service-expand {
  max-height: 0; overflow: hidden;
  transition: max-height .45s cubic-bezier(.16,1,.3,1), opacity .35s ease, padding .35s ease;
  opacity: 0; padding: 0 0;
  border-top: 1px solid transparent;
  margin-top: 0;
}
.service-expand.open {
  max-height: 180px; opacity: 1;
  padding: 1rem 0 0;
  border-top-color: var(--border);
  margin-top: 1rem;
}
.service-expand-inner {
  background: var(--blue-bg);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  font-size: .78rem; line-height: 1.7;
  color: #111111; font-weight: 400;
  border-left: 3px solid var(--accent);
  animation: none;
}

/* ══════════════════════════════════════════
   ABOUT / 3D SECTION
══════════════════════════════════════════ */
#about {
  padding: 8rem 5vw;
  background: var(--off);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
/* about content area */
.about-content {}
#about-canvas { width: 100%; height: 100%; display: block; }
.about-canvas-label {
  position: absolute; bottom: 1.5rem; left: 1.5rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: .6rem; color: var(--muted);
  letter-spacing: .08em;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  padding: .4rem .9rem; border-radius: 100px;
  border: 1px solid var(--border);
  z-index: 2;
}
.about-tags {
  display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 3rem;
}
.about-tag {
  padding: .35rem .9rem;
  border: 1.5px solid var(--border); border-radius: 100px;
  font-size: .7rem; font-weight: 500; color: var(--muted);
  cursor: none; transition: border-color .25s, color .25s, background .25s;
}
.about-tag:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--blue-bg);
}
.about-list {
  display: flex; flex-direction: column; gap: 1.2rem;
  margin-top: 2.5rem;
}
.about-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem; border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: border-color .3s, background .3s;
  cursor: none;
}
.about-item:hover {
  border-color: var(--border); background: var(--white);
}
.about-item-icon {
  width: 36px; height: 36px; min-width: 36px;
  background: var(--blue-bg); border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.about-item-title {
  font-size: .85rem; font-weight: 600; margin-bottom: .3rem;
}
.about-item-text {
  font-size: .78rem; color: var(--muted); line-height: 1.6; font-weight: 300;
}

/* ══════════════════════════════════════════
   PORTFOLIO SECTION
══════════════════════════════════════════ */
#portfolio {
  padding: 8rem 5vw;
  background: var(--white);
}
.portfolio-header {
  display: flex; justify-content: space-between;
  align-items: flex-end; margin-bottom: 3rem;
}
.portfolio-filters {
  display: flex; gap: .5rem;
}
.filter-btn {
  padding: .45rem 1.1rem;
  background: transparent; border: 1.5px solid var(--border);
  border-radius: 100px; font-size: .72rem; font-weight: 500;
  color: var(--muted); cursor: none;
  transition: all .25s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--black); border-color: var(--black);
  color: var(--white);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto;
  gap: 1.5rem;
}

/* ══════════════════════════════════════════
   ZENTH POLISH & ACCESSIBILITY
══════════════════════════════════════════ */
.skip-link {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--white);
  padding: 1rem 1.5rem; font-weight: bold; text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 99999; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

html[data-theme="dark"] {
  --white: #111111 !important;
  --black: #F8F9FA !important;
  --off:   #1a1a1a !important;
  --border:#2a2a2a !important;
  --muted: #9CA3AF !important;
}

[data-theme="dark"] nav.scrolled {
  background: rgba(17, 17, 17, 0.92);
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

section[id] { scroll-margin-top: 90px; }

.nav-center a.active { color: var(--black); }
.nav-center a.active::after { width: 100%; }

@media (hover: none) {
  #cursor, #cursor-dot { display: none !important; }
  body, button, a, .service-card, .p-card, .testi-card { cursor: auto !important; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  #loader { display: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
.p-card {
  border-radius: var(--radius-lg);
  overflow: hidden; position: relative;
  cursor: none; background: var(--off);
  border: 1.5px solid var(--border);
  transition: transform .4s cubic-bezier(.16,1,.3,1), box-shadow .4s;
}
.p-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,.1);
}
.p-card-1 { grid-column: span 7; grid-row: span 1; }
.p-card-2 { grid-column: span 5; grid-row: span 1; }
.p-card-3 { grid-column: span 4; }
.p-card-4 { grid-column: span 4; }
.p-card-5 { grid-column: span 4; }

.p-card-inner {
  height: 280px; position: relative; overflow: hidden;
}
.p-card-1 .p-card-inner { height: 340px; }
.p-card-img {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 4rem; transition: transform .5s cubic-bezier(.16,1,.3,1);
}
.p-card-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.p-card:hover .p-card-img { transform: scale(1.06); }
.p-c1 { background: linear-gradient(135deg, #EEF2FF, #dde6ff); }
.p-c2 { background: linear-gradient(135deg, #F0FFF4, #d4f5df); }
.p-c3 { background: linear-gradient(135deg, #FFF4EE, #ffe5d2); }
.p-c4 { background: linear-gradient(135deg, #F5F0FF, #e8d9ff); }
.p-c5 { background: linear-gradient(135deg, #FFFBEE, #fff0c0); }

.p-card-info {
  padding: 1.4rem 1.6rem;
  display: flex; justify-content: space-between; align-items: center;
}
.p-card-title {
  font-family: 'Clash Display', sans-serif;
  font-size: 1rem; font-weight: 600; letter-spacing: -.01em;
}
.p-card-cat {
  font-size: .65rem; color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: .08em; margin-top: .2rem;
}


/* hover overlay */
.p-overlay {
  position: absolute; inset: 0;
  background: rgba(0,71,255,.0);
  transition: background .4s;
  display: flex; align-items: center; justify-content: center;
}
.p-card:hover .p-overlay { background: rgba(0,71,255,.05); }

/* Project expand popup */
.p-card-link {
  width: 34px; height: 34px;
  border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--muted);
  transition: all .3s;
  cursor: none; position: relative; flex-shrink: 0;
}
.p-card:hover .p-card-link {
  background: var(--accent); border-color: var(--accent);
  color: var(--white);
}
.p-card-link.open {
  background: var(--accent); border-color: var(--accent);
  color: var(--white); transform: rotate(90deg);
}
.p-expand-popup {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--border);
  padding: 0 1.6rem;
  max-height: 0; overflow: hidden;
  transition: max-height .45s cubic-bezier(.16,1,.3,1), padding .35s ease;
  z-index: 5;
}
.p-expand-popup.open {
  max-height: 120px;
  padding: 1rem 1.6rem 1.2rem;
}
.p-expand-popup p {
  font-size: .78rem; color: var(--muted);
  line-height: 1.65; font-weight: 300;
  border-left: 3px solid var(--accent);
  padding-left: .8rem;
}

/* ══════════════════════════════════════════
   STATS SECTION
══════════════════════════════════════════ */
#stats {
  padding: 6rem 5vw;
  background: #111111;
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 1px; position: relative; overflow: hidden;
}
#stats::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(0,71,255,.1), transparent 70%);
  pointer-events: none;
}
.stat-item {
  padding: 3rem 2.5rem;
  position: relative; z-index: 1;
  border-right: 1px solid rgba(255,255,255,.06);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 700; letter-spacing: -.04em;
  color: #FFFFFF; line-height: 1;
  margin-bottom: .5rem;
}
.stat-number span { color: var(--accent); }
.stat-label {
  font-size: .78rem; color: rgba(255,255,255,.4);
  font-weight: 300; line-height: 1.5;
}
.stat-bar {
  margin-top: 1.5rem; height: 2px;
  background: rgba(255,255,255,.08); border-radius: 2px;
  overflow: hidden;
}
.stat-bar-fill {
  height: 100%; background: var(--accent);
  width: 0%; border-radius: 2px;
  transition: width 1.5s cubic-bezier(.16,1,.3,1);
}

/* ══════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════ */
#testimonials {
  padding: 8rem 5vw;
  background: var(--white);
}
.testi-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 1.5rem; margin-top: 3.5rem;
}
.testi-card {
  padding: 2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color .3s, transform .3s, box-shadow .3s;
  cursor: none;
}
.testi-card:hover {
  border-color: rgba(0,71,255,.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,71,255,.06);
}
.testi-stars {
  display: flex; gap: .2rem; margin-bottom: 1.2rem;
}
.star { color: var(--accent); font-size: .85rem; }
.testi-text {
  font-size: .88rem; line-height: 1.75;
  color: var(--black); font-weight: 300;
  margin-bottom: 1.5rem;
}
.testi-author {
  display: flex; align-items: center; gap: .8rem;
  padding-top: 1.2rem; border-top: 1px solid var(--border);
}
.testi-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700;
  color: var(--white);
}
.testi-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.av1 { background: linear-gradient(135deg, #0047FF, #0090ff); }
.av2 { background: linear-gradient(135deg, #FF5C00, #ff9000); }
.av3 { background: linear-gradient(135deg, #00C853, #00e676); }
.testi-name {
  font-size: .82rem; font-weight: 600;
}
.testi-role {
  font-size: .7rem; color: var(--muted); margin-top: .1rem;
}

/* ══════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════ */
#cta {
  padding: 8rem 5vw;
  background: #1a1a1a;
  position: relative; overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,71,255,.08), transparent 70%);
  pointer-events: none;
}
.cta-inner {
  background: #111111;
  border-radius: var(--radius-lg);
  padding: 5rem;
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute; top: -40%; right: -5%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,71,255,.2), transparent 70%);
  pointer-events: none;
}
.cta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: .62rem; color: rgba(255,255,255,.4);
  letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 1rem;
}
.cta-title {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700; letter-spacing: -.03em;
  line-height: 1.05; color: #FFFFFF;
}
.cta-title span {
  -webkit-text-stroke: 1px rgba(255,255,255,.4);
  color: transparent;
}
.cta-sub {
  font-size: .88rem; color: rgba(255,255,255,.4);
  line-height: 1.7; font-weight: 300; margin-top: 1rem;
  max-width: 380px;
}
.cta-actions {
  display: flex; flex-direction: column; gap: .8rem;
  min-width: 220px; position: relative; z-index: 1;
}
.btn-cta-main {
  padding: 1rem 2rem;
  background: var(--accent); color: #FFFFFF;
  font-size: .8rem; font-weight: 600;
  border-radius: 100px; border: none; cursor: none;
  text-align: center; text-decoration: none;
  transition: background .25s, transform .25s, box-shadow .25s;
  box-shadow: 0 4px 24px rgba(0,71,255,.4);
  display: block;
}
.btn-cta-main:hover {
  background: var(--accent-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(0,71,255,.5);
  color: var(--white);
}
.btn-cta-ghost {
  padding: 1rem 2rem;
  background: transparent; color: rgba(255,255,255,.6);
  font-size: .8rem; font-weight: 500;
  border-radius: 100px;
  border: 1.5px solid rgba(255,255,255,.12); cursor: none;
  text-align: center; text-decoration: none;
  transition: border-color .25s, color .25s;
  display: block;
}
.btn-cta-ghost:hover {
  border-color: rgba(255,255,255,.3); color: var(--white);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 4rem 5vw 2rem;
}
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem; margin-bottom: 3rem;
}
.footer-brand .nav-logo { font-size: 1.4rem; display: block; margin-bottom: 1rem; }
.footer-brand p {
  font-size: .8rem; color: var(--muted);
  line-height: 1.7; font-weight: 300; max-width: 240px;
}
.footer-col-title {
  font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--black); margin-bottom: 1.2rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .6rem; }
.footer-links a {
  font-size: .8rem; color: var(--muted);
  text-decoration: none; cursor: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--black); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; border-top: 1px solid var(--border);
}
.footer-copy { font-size: .72rem; color: var(--muted); }
.footer-socials { display: flex; gap: .8rem; }
.social-btn {
  width: 34px; height: 34px;
  border: 1.5px solid var(--border); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; color: var(--muted); cursor: none;
  text-decoration: none;
  transition: border-color .25s, color .25s, background .25s;
}
.social-btn:hover {
  border-color: var(--accent); color: var(--accent);
  background: var(--blue-bg);
}

/* ══════════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════════ */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1),
              transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }
.reveal-delay-5 { transition-delay: .5s; }

/* ══════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes blink {
  0%,100% { opacity: 1; } 50% { opacity: .3; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-10px); }
}
@keyframes glowPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,99,235,0); }
  50%     { box-shadow: 0 0 32px 8px rgba(37,99,235,0.18); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(30px,-20px) scale(1.05); }
  66%     { transform: translate(-20px,15px) scale(0.97); }
}
@keyframes rotateSlow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes scaleIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

/* Background decorative orbs */
.bg-orb {
  position: absolute; border-radius: 50%;
  pointer-events: none; z-index: 0; filter: blur(80px);
  animation: orbFloat 12s ease-in-out infinite;
}
.bg-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(37,99,235,.07), transparent 70%);
  top: -100px; right: -150px;
  animation-duration: 14s;
}
.bg-orb-2 {
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(147,197,253,.09), transparent 70%);
  bottom: 50px; left: -100px;
  animation-duration: 10s; animation-delay: -5s;
}

/* Service card glow on open */
.service-card.expanded {
  background: var(--off);
  box-shadow: 0 8px 40px rgba(37,99,235,.08);
}

/* Magnetic tilt on service/project cards */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform .1s ease-out;
}

/* About canvas improvements */
.about-canvas-wrap {
  position: relative;
  height: 520px;
  background: linear-gradient(145deg, #f0f4ff, #e8f0fe);
  border-radius: var(--radius-lg);
  border: 1.5px solid rgba(37,99,235,.15);
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(37,99,235,.1), inset 0 1px 0 rgba(255,255,255,.8);
}
.about-canvas-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(37,99,235,.06), transparent 60%);
  pointer-events: none; z-index: 1;
}
.about-canvas-corner {
  position: absolute; top: 1.2rem; right: 1.5rem;
  display: flex; gap: .4rem; z-index: 2;
}
.about-canvas-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.acd-red   { background: #ff5f56; }
.acd-yel   { background: #febc2e; }
.acd-grn   { background: #28c840; }

/* Stat number shimmer effect */
.stat-number {
  position: relative; overflow: hidden;
}

/* Testi card shimmer border on hover */
.testi-card:hover {
  border-color: rgba(0,71,255,.2);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,71,255,.06), 0 0 0 1px rgba(37,99,235,.08);
}

/* Hero badge — no glow */
.hero-badge {
  position: relative;
}

/* Body Content Overrides for WP Default Pages */
.page-header-simple {
  padding: 10rem 5vw 4rem;
  background: var(--off);
  text-align: center;
}
.page-header-simple h1 {
  font-family: 'Clash Display', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: var(--black);
}
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 4rem 5vw;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media(max-width:900px){
  #hero { grid-template-columns:1fr; padding-top:7rem; }
  .hero-right { height:340px; }
  .nav-center { display:none; }
  .nav-hamburger { display:flex; }
  .nav-right .btn-nav { display:none; }
  #about { grid-template-columns:1fr; }
  .about-canvas-wrap { height:320px; }
  .services-grid { grid-template-columns:1fr 1fr; }
  .testi-grid { grid-template-columns:1fr; }
  #stats { grid-template-columns:1fr 1fr; }
  .portfolio-grid { grid-template-columns:1fr 1fr; }
  .p-card-1,.p-card-2,.p-card-3,.p-card-4,.p-card-5 { grid-column:span 1; }
  .footer-top { grid-template-columns:1fr 1fr; gap:2rem; }
  .cta-inner { grid-template-columns:1fr; padding:3rem; }
  .services-header { grid-template-columns:1fr; gap:1rem; }
  .chip { display:none; }
  .hero-title { font-size: clamp(2.4rem,8vw,3.5rem); }
  .hero-stats { gap:1.5rem; flex-wrap:wrap; }
}
@media(max-width:600px){
  #hero { padding: 6rem 5vw 3rem; }
  .hero-right { height:260px; }
  .services-grid { grid-template-columns:1fr; }
  #stats { grid-template-columns:1fr 1fr; }
  .portfolio-grid { grid-template-columns:1fr; }
  .p-card-1,.p-card-2,.p-card-3,.p-card-4,.p-card-5 { grid-column:span 1; }
  .footer-top { grid-template-columns:1fr; }
  .cta-inner { padding:2rem 1.5rem; }
  .cta-title { font-size:1.8rem; }
  .testi-grid { grid-template-columns:1fr; }
  .portfolio-filters { flex-wrap:wrap; }
  .portfolio-header { flex-direction:column; gap:1rem; align-items:flex-start; }
  .footer-bottom { flex-direction:column; gap:1rem; text-align:center; }
  nav { padding:1rem 5vw; }
  .hero-actions { flex-direction:column; align-items:flex-start; }
  .hero-actions .btn-secondary { width:100%; justify-content:center; }
  .hero-actions .btn-primary { width:100%; }
  #loader-canvas { width:180px; height:180px; }
  .section-title { font-size:clamp(1.8rem,6vw,2.5rem); }
}

/* ══════════════════════════════════════════
   WORDPRESS COMMENTS
══════════════════════════════════════════ */
#comments { margin-top: 4rem; margin-bottom: 2rem; color: var(--black); }
.comments-title { font-size: 1.5rem; margin-bottom: 2rem; font-family: 'Clash Display', sans-serif; }
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.5rem; background: var(--off); transition: background 0.3s, border-color 0.3s; }
.comment .children { list-style: none; padding-left: 2rem; margin-top: 1.5rem; border-left: 2px solid var(--border); }
.comment-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.comment-meta img.avatar { border-radius: 50%; width: 40px; height: 40px; }
.comment-author { font-weight: 600; color: var(--black); }
.comment-metadata a { color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.comment-content { color: var(--muted); line-height: 1.6; font-size: 0.95rem; margin-bottom: 1rem; }
.comment-reply-link { display: inline-block; padding: 0.4rem 1rem; border: 1px solid var(--border); border-radius: 20px; font-size: 0.8rem; color: var(--black); text-decoration: none; background: transparent; cursor: pointer; transition: all 0.2s; }
.comment-reply-link:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
#respond { margin-top: 3rem; background: var(--white); padding: 2rem; border-radius: var(--radius); border: 1px solid var(--border); }
#reply-title { font-size: 1.3rem; margin-bottom: 1.5rem; font-family: 'Clash Display', sans-serif; color: var(--black); }
.comment-form { display: flex; flex-direction: column; gap: 1rem; }
.comment-form label { display: block; font-size: 0.85rem; margin-bottom: 0.3rem; color: var(--muted); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 8px; background: var(--off); color: var(--black); font-family: inherit; transition: border-color 0.2s; }
.comment-form input[type="text"]:focus, .comment-form input[type="email"]:focus, .comment-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--blue-bg); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-notes, .logged-in-as { color: var(--muted); font-size: 0.85rem; margin-bottom: 1rem; }
.form-submit input[type="submit"] { background: var(--black); color: var(--white); border: none; padding: 0.8rem 1.5rem; border-radius: 30px; font-weight: 500; cursor: pointer; transition: background 0.2s; width: auto; align-self: flex-start; }
.form-submit input[type="submit"]:hover { background: var(--accent); }
.comment-form-cookies-consent { display: flex; align-items: center; gap: 0.5rem; }
.comment-form-cookies-consent label { display: inline; margin-bottom: 0; }
.comment-form-cookies-consent input[type="checkbox"] { width: auto; margin: 0; cursor: pointer; }
