/*
Theme Name: AI Agency
Theme URI: https://youragency.com
Author: AI Agency
Author URI: https://youragency.com
Description: A premium AI-focused agency WordPress theme with parallax fold-by-fold scrolling, animated sections, and full CMS-editable portfolio. Built for modern AI agencies with dark aesthetic, yellow accents, and stunning scroll effects.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ai-agency
Tags: dark, portfolio, parallax, one-page, custom-colors, custom-logo, custom-menu, full-width-template, threaded-comments, translation-ready
*/

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
  --yellow: #e9df50;
  --yellow-dark: #c8be35;
  --yellow-light: #f5ef7a;
  --yellow-alpha-10: rgba(233, 223, 80, 0.10);
  --yellow-alpha-20: rgba(233, 223, 80, 0.20);
  --yellow-alpha-30: rgba(233, 223, 80, 0.30);
  --yellow-alpha-60: rgba(233, 223, 80, 0.60);
  --black: #000000;
  --black-soft: #0a0a0a;
  --black-card: #111111;
  --black-hover: #1a1a1a;
  --white: #ffffff;
  --gray-100: #f5f5f5;
  --gray-300: #cccccc;
  --gray-400: #aaaaaa;
  --gray-600: #666666;
  --gray-800: #333333;
  --font-display: 'Space Grotesk', 'Syne', sans-serif;
  --font-body: 'DM Sans', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
  --shadow-glow: 0 0 60px rgba(233, 223, 80, 0.15);
  --shadow-card: 0 8px 40px rgba(0, 0, 0, 0.6);
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  --section-pad: clamp(80px, 10vw, 140px);
  --container-max: 1280px;
  --container-pad: clamp(20px, 5vw, 80px);
  --nav-height: 80px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 7rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p { line-height: 1.7; }

/* ============================================
   UTILITY CLASSES
   ============================================ */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.text-yellow { color: var(--yellow); }
.text-gray { color: var(--gray-400); }
.text-center { text-align: center; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.grid { display: grid; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ============================================
   NAVIGATION
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background var(--transition-normal), border-color var(--transition-normal);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--yellow-alpha-20);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--white);
  transition: color var(--transition-fast);
}

.site-logo .logo-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.site-logo img { height: 44px; width: auto; }

.site-logo:hover { color: var(--yellow); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.main-nav a {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--gray-400);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.main-nav a.current-menu-item,
.main-nav a.current_page_item {
  color: var(--yellow);
  background: var(--yellow-alpha-10);
}

.nav-cta {
  padding: 10px 24px !important;
  background: var(--yellow) !important;
  color: var(--black) !important;
  font-weight: 700 !important;
  border-radius: var(--radius-full) !important;
  font-size: 0.875rem !important;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(233, 223, 80, 0.4) !important;
  background: var(--yellow) !important;
  color: var(--black) !important;
}

/* Mobile Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 40px;
}

.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--white);
  opacity: 0.7;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}
.mobile-nav a:hover { opacity: 1; color: var(--yellow); }

/* ============================================
   FOLD-BY-FOLD PARALLAX SECTIONS
   ============================================ */
.fold-wrapper {
  position: relative;
}

/* Each fold section stacks with z-index */
.fold-section {
  position: relative;
  z-index: 1;
  will-change: transform;
}

.fold-section.sticky-fold {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Parallax inner element */
.parallax-bg {
  position: absolute;
  inset: -20%;
  will-change: transform;
  pointer-events: none;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233,223,80,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233,223,80,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: grid-drift 30s linear infinite;
}

.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(233,223,80,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--container-pad);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--yellow-alpha-10);
  border: 1px solid var(--yellow-alpha-30);
  border-radius: var(--radius-full);
  margin-bottom: 32px;
  animation: fade-in-up 0.8s ease both;
}

.hero-badge svg { color: var(--yellow); flex-shrink: 0; }
.hero-badge span { color: var(--yellow); font-size: 0.875rem; font-weight: 500; }

.hero-title {
  margin-bottom: 24px;
  animation: fade-in-up 0.8s 0.2s ease both;
}

.hero-title .line-yellow { color: var(--yellow); display: block; }

.hero-subtitle {
  color: var(--gray-400);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin: 0 auto 48px;
  animation: fade-in-up 0.8s 0.4s ease both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  animation: fade-in-up 0.8s 0.6s ease both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
  font-size: 1rem;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(233,223,80,0.4);
  color: var(--black);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--yellow);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--yellow-alpha-60);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), background var(--transition-fast), transform var(--transition-fast);
}
.btn-outline:hover {
  border-color: var(--yellow);
  background: var(--yellow-alpha-10);
  transform: translateY(-2px);
  color: var(--yellow);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--gray-600);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fade-in 1s 1s ease both;
}

.scroll-mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--yellow-alpha-30);
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6px;
}

.scroll-dot {
  width: 4px;
  height: 4px;
  background: var(--yellow);
  border-radius: 50%;
  animation: scroll-bounce 2s ease infinite;
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--yellow);
  border-radius: 50%;
  animation: float-particle var(--duration, 4s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

/* Stats ticker */
.hero-stats {
  position: absolute;
  bottom: 100px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: clamp(24px, 5vw, 80px);
  padding: 0 var(--container-pad);
  animation: fade-in-up 1s 0.8s ease both;
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--yellow);
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   SECTION STYLES (FOLD-BY-FOLD)
   ============================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--yellow);
  flex-shrink: 0;
}

.section-title {
  margin-bottom: 20px;
}

.section-subtitle {
  color: var(--gray-400);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  max-width: 600px;
}

/* ============================================
   ABOUT / VALUE SECTION (Fold 2)
   ============================================ */
.about-fold {
  background: var(--black-soft);
  padding: var(--section-pad) 0;
}

.about-fold-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-card-stack {
  position: relative;
  height: 480px;
}

.stack-card {
  position: absolute;
  width: 100%;
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--yellow-alpha-20);
}

.stack-card:nth-child(1) {
  top: 0; left: 0;
  background: linear-gradient(135deg, #1a1a1a, #0d0d0d);
  transform: rotate(-3deg);
  z-index: 1;
}

.stack-card:nth-child(2) {
  top: 20px; left: 20px;
  background: linear-gradient(135deg, #151515, #0a0a0a);
  transform: rotate(-1deg);
  z-index: 2;
}

.stack-card:nth-child(3) {
  top: 40px; left: 40px;
  background: var(--black-card);
  transform: rotate(1deg);
  z-index: 3;
  border-color: var(--yellow-alpha-30);
}

.stack-card-icon {
  width: 64px;
  height: 64px;
  background: var(--yellow-alpha-10);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--yellow-alpha-20);
}

.stack-card-icon svg { color: var(--yellow); }
.stack-card h4 { margin-bottom: 8px; }
.stack-card p { color: var(--gray-400); font-size: 0.9rem; }

.about-text .section-label { margin-bottom: 16px; }

.value-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.value-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background: var(--yellow-alpha-10);
  border: 1px solid var(--yellow-alpha-20);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.value-item:hover {
  border-color: var(--yellow-alpha-60);
  background: var(--yellow-alpha-20);
}

.value-icon {
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-icon svg { color: var(--black); }
.value-item h4 { font-size: 1rem; margin-bottom: 2px; }
.value-item p { font-size: 0.85rem; color: var(--gray-400); }

/* ============================================
   SERVICES SECTION (Fold 3)
   ============================================ */
.services-fold {
  background: var(--black);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.services-fold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow-alpha-30), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.service-card {
  position: relative;
  padding: 36px 28px;
  background: var(--black-soft);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--yellow-alpha-10), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
  border-radius: inherit;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--yellow-alpha-30);
  box-shadow: var(--shadow-glow);
}

.service-card:hover::before { opacity: 1; }

.service-number {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  transition: color var(--transition-normal);
}

.service-card:hover .service-number { color: var(--yellow-alpha-10); }

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--yellow-alpha-10);
  border: 1px solid var(--yellow-alpha-20);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover .service-icon {
  background: var(--yellow-alpha-20);
  border-color: var(--yellow-alpha-60);
}

.service-icon svg { color: var(--yellow); }

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--gray-400);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--gray-400);
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover .service-tag {
  color: var(--yellow);
  border-color: var(--yellow-alpha-30);
}

/* ============================================
   PROCESS / HOW WE WORK SECTION (Fold 4)
   ============================================ */
.process-fold {
  background: var(--black-soft);
  padding: var(--section-pad) 0;
  position: relative;
}

.process-timeline {
  position: relative;
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 52px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--yellow-alpha-30), var(--yellow), var(--yellow-alpha-30));
}

.process-step {
  padding: 0 20px;
  text-align: center;
  position: relative;
}

.process-step-num {
  width: 52px;
  height: 52px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--black);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.process-step:hover .process-step-num {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(233,223,80,0.5);
}

.process-step h4 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.process-step p {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ============================================
   STATS SECTION (Fold 5)
   ============================================ */
.stats-fold {
  background: var(--yellow);
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}

.stats-fold::before {
  content: 'AI';
  position: absolute;
  font-family: var(--font-display);
  font-size: 30vw;
  font-weight: 900;
  color: rgba(0,0,0,0.04);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  position: relative;
  z-index: 1;
}

.stat-item {
  text-align: center;
}

.stat-item .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  color: var(--black);
  line-height: 1;
  display: block;
}

.stat-item .label {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(0,0,0,0.6);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   TESTIMONIALS SECTION (Fold 6)
   ============================================ */
.testimonials-fold {
  background: var(--black);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.testimonials-slider {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  padding: 36px;
  background: var(--black-soft);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-normal), transform var(--transition-normal);
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--yellow-alpha-30);
  transform: translateY(-4px);
}

.testimonial-card::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 6rem;
  color: var(--yellow-alpha-20);
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
}

.testimonial-stars span {
  color: var(--yellow);
  font-size: 1.1rem;
}

.testimonial-text {
  color: var(--gray-300);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 28px;
  font-style: italic;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--yellow-alpha-20);
  border: 2px solid var(--yellow-alpha-30);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--yellow);
  flex-shrink: 0;
}

.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }

.testimonial-author-info strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ============================================
   TECH STACK MARQUEE (Fold 7)
   ============================================ */
.marquee-fold {
  background: var(--black-soft);
  padding: 60px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.marquee-track {
  display: flex;
  gap: 60px;
  animation: marquee-scroll 20s linear infinite;
  white-space: nowrap;
  width: max-content;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray-600);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.marquee-item:hover { color: var(--yellow); }

.marquee-separator {
  color: var(--yellow-alpha-30);
  font-size: 1.2rem;
}

/* ============================================
   CTA SECTION (Fold 8)
   ============================================ */
.cta-fold {
  background: var(--black);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}

.cta-fold-inner {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(233,223,80,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-fold h2 { margin-bottom: 24px; }
.cta-fold p { color: var(--gray-400); font-size: 1.2rem; margin-bottom: 48px; }

/* ============================================
   PORTFOLIO PAGE
   ============================================ */
.portfolio-page {
  min-height: 100vh;
  padding-top: var(--nav-height);
}

.portfolio-hero {
  padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 5vw, 60px);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.portfolio-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow-alpha-20), transparent);
}

/* Filter Bar */
.portfolio-filters {
  padding: 32px 0;
  position: sticky;
  top: calc(var(--nav-height));
  z-index: 40;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--yellow-alpha-10);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.875rem;
  background: var(--black-soft);
  color: var(--gray-400);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}

.filter-btn.active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

/* Portfolio Grid */
.portfolio-grid {
  padding: clamp(40px, 6vw, 80px) 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.portfolio-card {
  background: var(--black-soft);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  border-color: var(--yellow-alpha-30);
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.portfolio-card-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.portfolio-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-image img {
  transform: scale(1.08);
}

.portfolio-card-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 900;
  color: var(--yellow-alpha-20);
  background: var(--gradient, linear-gradient(135deg, #1a1a1a, #0d0d0d));
}

.portfolio-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.portfolio-card:hover .portfolio-card-overlay { opacity: 1; }

.overlay-btn {
  width: 64px;
  height: 64px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.6);
  transition: transform var(--transition-normal);
}

.portfolio-card:hover .overlay-btn { transform: scale(1); }
.overlay-btn svg { color: var(--black); }

.portfolio-card-body {
  padding: 28px;
}

.portfolio-card-category {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
}

.portfolio-card-body h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.portfolio-card-body p {
  color: var(--gray-400);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.portfolio-result-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--yellow-alpha-10);
  border: 1px solid var(--yellow-alpha-30);
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.portfolio-result-badge span {
  font-size: 0.8rem;
  color: var(--yellow);
  font-weight: 600;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tag {
  padding: 4px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  color: var(--gray-600);
  transition: color var(--transition-fast);
}

.portfolio-card:hover .portfolio-tag { color: var(--gray-400); }

/* Featured Project - Large Card */
.portfolio-card.featured {
  grid-column: span 2;
}

.portfolio-card.featured .portfolio-card-image {
  height: 340px;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: var(--black-soft);
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 64px;
}

.footer-brand .site-logo {
  margin-bottom: 20px;
}

.footer-brand p {
  color: var(--gray-600);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: var(--yellow-alpha-10);
  border-color: var(--yellow-alpha-30);
  color: var(--yellow);
}

.footer-col h5 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: 20px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }

.footer-col ul li a {
  color: var(--gray-600);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-col ul li a:hover { color: var(--yellow); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.04);
  color: var(--gray-800);
  font-size: 0.85rem;
}

.footer-bottom a { color: var(--gray-600); transition: color var(--transition-fast); }
.footer-bottom a:hover { color: var(--yellow); }

/* ============================================
   FLOATING AI WIDGET
   ============================================ */
.ai-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
}

.ai-widget-trigger {
  width: 60px;
  height: 60px;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 30px rgba(233,223,80,0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  animation: pulse-shadow 2.5s ease infinite;
}

.ai-widget-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 40px rgba(233,223,80,0.6);
}

.ai-widget-trigger svg { color: var(--black); }

.ai-widget-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #ef4444;
  border-radius: 50%;
  border: 2px solid var(--black);
  animation: pulse-dot 2s ease infinite;
}

/* ============================================
   SINGLE PAGE / INNER PAGES
   ============================================ */
.page-hero {
  padding: calc(var(--nav-height) + 60px) 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--yellow-alpha-20), transparent);
}

.page-content {
  padding: 80px 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact-info { }

.contact-info h2 { margin-bottom: 24px; }
.contact-info p { color: var(--gray-400); margin-bottom: 40px; }

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-detail-icon {
  width: 44px;
  height: 44px;
  background: var(--yellow-alpha-10);
  border: 1px solid var(--yellow-alpha-20);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg { color: var(--yellow); }
.contact-detail strong { display: block; font-size: 0.85rem; color: var(--gray-600); margin-bottom: 2px; }
.contact-detail span { font-size: 0.95rem; }

/* Contact Form */
.contact-form { }

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  background: var(--black-soft);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
  -webkit-appearance: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--yellow-alpha-60);
  box-shadow: 0 0 0 3px var(--yellow-alpha-10);
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group select option { background: var(--black-card); }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(14px); opacity: 0; }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

@keyframes pulse-shadow {
  0%, 100% { box-shadow: 0 4px 30px rgba(233,223,80,0.4); }
  50% { box-shadow: 0 4px 50px rgba(233,223,80,0.7); }
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes float-particle {
  0% { opacity: 0; transform: translateY(0) scale(1); }
  20% { opacity: 0.8; }
  80% { opacity: 0.8; }
  100% { opacity: 0; transform: translateY(-80px) scale(0.5); }
}

@keyframes counter-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   WORDPRESS SPECIFIC
   ============================================ */
.wp-block-image { margin: 32px 0; }
.wp-block-image img { border-radius: var(--radius-md); }
.entry-content h2, .entry-content h3 { margin: 40px 0 16px; }
.entry-content p { margin-bottom: 20px; color: var(--gray-300); }
.entry-content a { color: var(--yellow); }
.entry-content ul, .entry-content ol { padding-left: 24px; color: var(--gray-300); }
.entry-content li { margin-bottom: 8px; }
.alignleft { float: left; margin: 0 24px 24px 0; }
.alignright { float: right; margin: 0 0 24px 24px; }
.aligncenter { text-align: center; margin: 0 auto; display: block; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .about-fold-inner { grid-template-columns: 1fr; gap: 60px; }
  .about-card-stack { height: 300px; }
  .stack-card { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-timeline { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-timeline::before { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-slider { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-card.featured { grid-column: span 1; }
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
}

@media (max-width: 768px) {
  :root { --section-pad: clamp(60px, 8vw, 80px); }
  .main-nav { display: none; }
  .menu-toggle { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .process-timeline { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .testimonials-slider { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   PRINT
   ============================================ */
@media print {
  .site-header, .ai-widget, .hero-scroll-indicator { display: none; }
  body { background: white; color: black; }
}
