/*
Theme Name: CX Digital Agency
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: Modern digital agency theme with advanced animations and dark theme
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cx-digital-agency
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.4
*/

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  color: #FAFAFA;
  background: #0A0A0A;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', 'Source Sans 3', system-ui, sans-serif;
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  margin: 0;
}

a { 
  color: inherit; 
  text-decoration: none; 
}

a:hover { 
  color: #FFD400; 
}

p { 
  margin: 0; 
}

.container { 
  max-width: 1240px; 
  margin: 0 auto; 
  padding: 0 40px; 
}

.body-font { 
  font-family: 'Source Sans 3', system-ui, sans-serif; 
}

.eyebrow {
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

:focus-visible { 
  outline: 3px solid #FFD400; 
  outline-offset: 3px; 
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { 
    animation-duration: 0.001ms !important; 
    animation-iteration-count: 1 !important; 
    transition-duration: 0.001ms !important; 
  }
}

/* ---------- scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}

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

/* ---------- buttons (square, high-contrast) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 30px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: #FFD400;
  color: #0A0A0A;
  border-color: #FFD400;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease-out;
}

.btn-primary:hover { 
  background: #0A0A0A; 
  color: #FFD400; 
  border-color: #FFD400; 
}

.btn-inverse {
  background: #FAFAFA;
  color: #0A0A0A;
  border-color: #FAFAFA;
  transition: background 0.2s ease, color 0.2s ease, transform 0.12s ease-out;
}

.btn-inverse:hover { 
  background: transparent; 
  color: #FAFAFA; 
}

.btn-outline-dark {
  background: transparent;
  color: #0A0A0A;
  border-color: #0A0A0A;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-outline-dark:hover { 
  background: #0A0A0A; 
  color: #FAFAFA; 
}

/* ---------- nav ---------- */
.nav-link { 
  position: relative; 
  padding-bottom: 4px; 
  opacity: 0.85; 
  transition: opacity 0.2s ease; 
  cursor: pointer; 
}

.nav-link::after {
  content: '';
  position: absolute; 
  left: 0; 
  bottom: 0;
  width: 100%; 
  height: 2px;
  background: #FFD400;
  transform: scaleX(0); 
  transform-origin: left;
  transition: transform 0.28s ease;
}

.nav-link:hover { 
  opacity: 1; 
}

.nav-link:hover::after { 
  transform: scaleX(1); 
}

/* ---------- cards ---------- */
.card-elevated {
  background: #141414;
  border: 2px solid #2A2A2A;
  border-radius: 0;
}

.card-dark {
  background: #121212;
  border: 1px solid #2A2A2A;
  border-radius: 0;
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
}

.card-dark:hover { 
  transform: translateY(-6px); 
  border-color: #FFD400; 
}

.service-card {
  background: #141414;
  border: 2px solid #2A2A2A;
  border-radius: 0;
  transition: transform 0.28s ease, border-color 0.28s ease;
  cursor: pointer;
}

.service-card:hover { 
  transform: translateY(-6px); 
  border-color: #FFD400; 
}

.service-card:hover .svc-icon { 
  stroke: #FFD400 !important; 
}

/* ---------- ambient sheen ---------- */
.ambient-sheen { 
  position: relative; 
  overflow: hidden; 
}

.ambient-sheen::after {
  content: '';
  position: absolute; 
  top: 0; 
  left: -60%; 
  width: 38%; 
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,212,0,0.25), transparent);
  transform: skewX(-18deg);
  animation: sheen 6.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes sheen {
  0%   { left: -60%; opacity: 0; }
  9%   { opacity: 0.9; }
  24%  { left: 130%; opacity: 0; }
  100% { left: 130%; opacity: 0; }
}

.pulse-accent { 
  animation: pulseGlow 2.6s ease-in-out infinite; 
}

.pulse-dot { 
  animation: pulseDot 1.6s ease-in-out infinite; 
  box-shadow: 0 0 0 0 rgba(255,212,0,0.6); 
}

@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(255,212,0,0.55); }
  70%  { box-shadow: 0 0 0 6px rgba(255,212,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,212,0,0); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.08); opacity: 0.85; }
}

@keyframes wordCycle {
  0%   { opacity: 0; transform: translateY(8px); }
  3%   { opacity: 1; transform: translateY(0); }
  22%  { opacity: 1; transform: translateY(0); }
  25%  { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 0; }
}

.rot-word {
  position: absolute;
  left: 0; 
  top: 0;
  white-space: nowrap;
  animation: wordCycle 8s infinite;
  opacity: 0;
}

/* ---------- chart bars / line draw ---------- */
.bar-grow {
  transform: scaleY(0);
  transform-box: fill-box;
  transform-origin: bottom;
  transition: transform 0.9s cubic-bezier(.22,.8,.25,1);
}

.bar-grow.grown { 
  transform: scaleY(1); 
}

.line-draw { 
  transition: stroke-dashoffset 1.3s cubic-bezier(.2,.7,.2,1); 
}

/* ---------- parallax layers ---------- */
.parallax { 
  will-change: transform; 
}

.parallax-spin { 
  animation: driftSpin 22s linear infinite; 
}

@keyframes driftSpin {
  0%   { transform: rotate(0deg) scale(1); }
  50%  { transform: rotate(180deg) scale(1.12); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ---------- scroll progress bar ---------- */
#scroll-progress {
  position: fixed; 
  top: 0; 
  left: 0; 
  height: 3px; 
  width: 0%;
  background: #FFD400; 
  z-index: 50; 
  transform-origin: left;
  box-shadow: 0 0 10px rgba(255,212,0,0.6);
  pointer-events: none;
}

/* ---------- reveal variants ---------- */
.reveal-scale { 
  opacity: 0; 
  transform: translateY(24px) scale(0.92); 
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1); 
}

.reveal-scale.revealed { 
  opacity: 1; 
  transform: translateY(0) scale(1); 
}

/* ---------- service card enhancements ---------- */
.tilt-card { 
  position: relative; 
  transform-style: preserve-3d; 
  will-change: transform; 
  overflow: hidden; 
}

.tilt-card::before {
  content: '';
  position: absolute; 
  top: 0; 
  left: 0; 
  right: 0; 
  height: 3px;
  background: #FFD400;
  transform: scaleX(0); 
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(.2,.7,.2,1);
}

.tilt-card:hover::before { 
  transform: scaleX(1); 
}

.svc-badge {
  width: 52px; 
  height: 52px; 
  display: flex; 
  align-items: center; 
  justify-content: center;
  border: 2px solid #2A2A2A; 
  background: #1A1A1A;
  transition: transform 0.4s cubic-bezier(.2,.7,.2,1), background 0.28s ease, border-color 0.28s ease;
}

.tilt-card:hover .svc-badge { 
  transform: rotate(-10deg) scale(1.1); 
  background: #FFD400; 
  border-color: #FFD400; 
}

/* Contact Form Styling */
.cx-form input,
.cx-form select,
.cx-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Source Sans 3', system-ui, sans-serif;
  transition: border-color 0.2s ease;
}

.cx-form input:focus,
.cx-form select:focus,
.cx-form textarea:focus {
  outline: none;
  border-color: #FFD400;
  box-shadow: 0 0 0 3px rgba(255, 212, 0, 0.1);
}

.cx-form button {
  width: 100%;
  justify-content: center;
}

/* Hero Grid Responsive */
.hero-grid {
  padding-top: 132px;
  padding-bottom: 120px;
}

/* Service Cards */
.service-card {
  position: relative;
}

.svc-badge {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #2A2A2A;
  background: #1A1A1A;
}

.svc-icon {
  stroke: #FFD400;
}

.svc-index {
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  color: #2A2A2A;
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
  
  h1, h2, h3 {
    font-size: 1.5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr !important;
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }

  #dot-nav {
    display: none;
  }

  .service-card {
    margin-bottom: 20px;
  }
}

/* WordPress Admin Bar Fix */
html {
  margin-top: 0 !important;
}

/* Accessibility */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
