/*
Theme Name: TechToday
Theme URI: https://techtoday.dev
Author: Jack Osei, TechToday Developers Ltd
Author URI: https://jackosei.com
Description: Branding & Software Development theme for TechToday. Integrates with Secure Custom Fields (SCF) for full content management.
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: techtoday
*/

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

:root {
  --deep-space: #0b0f26;
  --deep-space-80: rgba(11, 15, 38, 0.85);
  --deep-space-40: rgba(11, 15, 38, 0.4);
  --cyan: #00cfff;
  --cyan-dim: rgba(0, 207, 255, 0.12);
  --cyan-border: rgba(0, 207, 255, 0.3);
  --pure-light: #fafafa;
  --graphite: #3c3c3c;
  --white: #ffffff;
  --text: #fafafa;
  --text-muted: rgba(250, 250, 250, 0.6);
  --text-dim: rgba(250, 250, 250, 0.3);
  --border: rgba(250, 250, 250, 0.1);
  --border-light: rgba(250, 250, 250, 0.2);
  --bg: #0b0f26;
  --bg2: #0e1230;
  --bg3: #12163a;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* =============================================
   NAV
   ============================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 72px;
  border-bottom: 1px solid var(--border);
  background: var(--deep-space-80);
  backdrop-filter: blur(16px);
}

.nav-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--cyan);
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-ghost {
  padding: 9px 22px;
  border: 1px solid var(--border-light);
  color: var(--text);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  border-radius: 4px;
}

.btn-ghost:hover {
  border-color: var(--cyan-border);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.btn-cyan {
  padding: 9px 22px;
  border: 1px solid var(--cyan);
  background: var(--cyan);
  color: var(--deep-space);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-cyan:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 48px 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 75% 20%, rgba(0, 207, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 10% 90%, rgba(0, 207, 255, 0.05) 0%, transparent 60%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 207, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 207, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 70%, transparent 100%);
}

.hero-dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(0, 207, 255, 0.15) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 60% 60% at 80% 30%, black 0%, transparent 70%);
  opacity: 0.5;
}

.hero-tag {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.hero-headline {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 7.5vw, 112px);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 860px;
  margin-bottom: 14px;
  position: relative;
}

.hero-headline em {
  font-style: italic;
  color: var(--cyan);
}

.hero-sub {
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 40px;
  letter-spacing: 0.01em;
  position: relative;
}

.hero-body {
  max-width: 500px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 48px;
  position: relative;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
}

.hero-stats {
  position: absolute;
  right: 48px;
  bottom: 88px;
  display: flex;
  flex-direction: column;
  gap: 36px;
  align-items: flex-end;
}

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

.hero-stat-num {
  font-family: var(--serif);
  font-size: 44px;
  color: var(--text);
  line-height: 1;
}

.hero-stat-num span {
  color: var(--cyan);
}

.hero-stat-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 4px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  right: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-scroll-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.5;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.3);
  }
}

/* =============================================
   MARQUEE
   ============================================= */
.marquee-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
  overflow: hidden;
  background: var(--bg3);
}

.marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 28s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

.marquee-item {
  padding: 0 48px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 48px;
}

.marquee-item::after {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  opacity: 0.6;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* =============================================
   SECTIONS (shared)
   ============================================= */
section {
  padding: 120px 48px;
}

.section-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(36px, 4.5vw, 64px);
  line-height: 1.05;
  color: var(--text);
  max-width: 700px;
  margin-bottom: 20px;
}

.section-title em {
  font-style: italic;
  color: var(--cyan);
}

.section-body {
  max-width: 520px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 56px;
}

/* =============================================
   SERVICES
   ============================================= */
.services {
  background: var(--bg);
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 64px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.service-card {
  background: var(--bg2);
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.service-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover {
  background: var(--bg3);
}

.service-card:hover::after {
  transform: scaleX(1);
}

.service-num {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 28px;
  transition: color 0.3s;
}

.service-card:hover .service-num {
  color: var(--cyan-border);
}

.service-name {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}

.service-name em {
  font-style: italic;
  color: var(--cyan);
}

.service-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 340px;
}

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

.service-tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
}

.service-card:hover .service-tag {
  border-color: var(--cyan-border);
  color: var(--text-muted);
}

.service-arrow {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-dim);
  transition: border-color 0.3s, color 0.3s, background 0.3s, transform 0.3s;
}

.service-card:hover .service-arrow {
  border-color: var(--cyan);
  color: var(--deep-space);
  background: var(--cyan);
  transform: rotate(45deg);
}

/* =============================================
   WORK
   ============================================= */
.work {
  background: var(--bg2);
}

.work-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 64px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.work-card {
  background: var(--bg2);
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.work-card-bg {
  position: absolute;
  inset: 0;
  transition: transform 0.6s ease;
}

.work-card:hover .work-card-bg {
  transform: scale(1.06);
}

.work-card-bg-1 {
  background: linear-gradient(135deg, #0b1a26 0%, #0d2236 40%, #080e14 100%);
}

.work-card-bg-2 {
  background: linear-gradient(135deg, #0b0f26 0%, #111840 40%, #07090f 100%);
}

.work-card-bg-3 {
  background: linear-gradient(135deg, #0a1420 0%, #0d1e30 40%, #060c14 100%);
}

.work-card-bg-4 {
  background: linear-gradient(135deg, #081420 0%, #0a1c2e 40%, #040c12 100%);
}

.work-card-bg-5 {
  background: linear-gradient(135deg, #0b1226 0%, #0f1a38 40%, #070a14 100%);
}

.work-card-bg-6 {
  background: linear-gradient(135deg, #091624 0%, #0c1e30 40%, #050c12 100%);
}

.work-geo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.25;
  transition: opacity 0.4s;
}

.work-card:hover .work-geo {
  opacity: 0.55;
}

.work-geo svg {
  width: 55%;
  height: 55%;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 15, 38, 0.92) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
}

.work-cat {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 8px;
}

.work-title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.work-year {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* =============================================
   PROCESS
   ============================================= */
.process {
  background: var(--bg);
}

.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.process-steps {
  display: flex;
  flex-direction: column;
}

.process-step {
  border-top: 1px solid var(--border);
  padding: 36px 0;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  cursor: pointer;
  transition: border-color 0.3s;
}

.process-step:hover {
  border-color: var(--cyan-border);
}

.process-step-num {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--text-dim);
  line-height: 1;
  transition: color 0.3s;
}

.process-step:hover .process-step-num {
  color: var(--cyan);
}

.process-step-title {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text);
  margin-bottom: 10px;
}

.process-step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.3s;
  opacity: 0;
}

.process-step:hover .process-step-desc {
  max-height: 200px;
  opacity: 1;
}

.process-visual {
  position: sticky;
  top: 120px;
  border: 1px solid var(--border);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg3);
  border-radius: 8px;
}

/* =============================================
   CAPABILITIES
   ============================================= */
.capabilities {
  background: var(--bg3);
}

.cap-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 56px;
}

.cap-tabs {
  background: var(--bg2);
  display: flex;
  flex-direction: column;
}

.cap-tab {
  padding: 28px 32px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}

.cap-tab::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cyan);
  transform: scaleY(0);
  transition: transform 0.3s ease;
  transform-origin: bottom;
}

.cap-tab:hover {
  background: var(--bg3);
}

.cap-tab.active {
  background: var(--bg);
}

.cap-tab.active::after {
  transform: scaleY(1);
}

.cap-tab-num {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.cap-tab.active .cap-tab-num {
  color: var(--cyan);
}

.cap-tab-label {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.cap-tab.active .cap-tab-label {
  color: var(--text);
}

.cap-content {
  background: var(--bg);
  padding: 52px 56px;
  display: none;
}

.cap-content.active {
  display: block;
}

.cap-title {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 20px;
}

.cap-title em {
  font-style: italic;
  color: var(--cyan);
}

.cap-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 500px;
}

.cap-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cap-list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.cap-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  margin-top: 10px;
}

/* =============================================
   TEAM
   ============================================= */
.team {
  background: var(--bg2);
}

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

.team-card {
  display: flex;
  flex-direction: column;
}

.team-photo {
  aspect-ratio: 3/4;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s;
}

.team-card:hover .team-photo {
  border-color: var(--cyan-border);
}

.team-avatar {
  font-family: var(--serif);
  font-size: 60px;
  color: rgba(0, 207, 255, 0.15);
  letter-spacing: 0.02em;
}

.team-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 207, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.team-card:hover .team-photo-overlay {
  opacity: 1;
}

.team-role {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}

.team-name {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.team-bio {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials {
  background: var(--bg);
}

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

.testimonial-card {
  border: 1px solid var(--border);
  padding: 36px;
  background: var(--bg2);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color 0.3s;
}

.testimonial-card:hover {
  border-color: var(--cyan-border);
}

.testimonial-quote {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--cyan);
  line-height: 0.8;
  opacity: 0.35;
}

.testimonial-text {
  font-family: var(--serif);
  font-size: 17px;
  font-style: italic;
  color: var(--text);
  line-height: 1.65;
  flex: 1;
}

.testimonial-author {
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.testimonial-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 4px;
}

.testimonial-role {
  font-size: 12px;
  color: var(--text-dim);
}

/* =============================================
   CTA
   ============================================= */
.cta-section {
  background: var(--bg2);
  padding: 160px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0, 207, 255, 0.06) 0%, transparent 70%);
}

.cta-logo {
  margin: 0 auto 48px;
  display: block;
  height: 48px;
  width: auto;
  position: relative;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(44px, 6.5vw, 88px);
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
}

.cta-title em {
  font-style: italic;
  color: var(--cyan);
}

.cta-sub {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 52px;
  position: relative;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--deep-space);
  border-top: 1px solid var(--border);
  padding: 72px 48px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-logo {
  display: block;
  margin-bottom: 20px;
}

.footer-logo img {
  height: 26px;
  width: auto;
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 240px;
}

.footer-col-title {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-logo img {
  height: 20px;
  width: auto;
  opacity: 0.5;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-dim);
}

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

.footer-socials a {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.footer-socials a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* =============================================
   ANIMATIONS
   ============================================= */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-up:nth-child(3) {
  transition-delay: 0.2s;
}

.fade-up:nth-child(4) {
  transition-delay: 0.3s;
}

/* =============================================
   MOBILE MENU
   ============================================= */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-light);
  border-radius: 4px;
  cursor: pointer;
  z-index: 110;
  padding: 0;
}

.hamburger-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 105;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-menu-link {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu-link:hover {
  color: var(--cyan);
}

/* =============================================
   PAGE CONTENT
   ============================================= */
.page-body a {
  color: var(--cyan);
  text-decoration: underline;
  transition: opacity 0.2s;
}

.page-body a:hover {
  opacity: 0.8;
}

.page-body h2 {
  font-family: var(--serif);
  font-size: 28px;
  color: var(--text);
  margin: 40px 0 16px;
}

.page-body h3 {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--text);
  margin: 32px 0 12px;
}

.page-body p {
  margin-bottom: 20px;
}

.page-body ul,
.page-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
  color: var(--text-muted);
}

.page-body li {
  margin-bottom: 8px;
}

.page-body blockquote {
  border-left: 3px solid var(--cyan);
  padding: 16px 24px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text);
  background: var(--bg2);
  border-radius: 0 6px 6px 0;
}

.page-body img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 24px 0;
}

.page-body pre {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
  font-size: 14px;
}

.page-body code {
  background: var(--bg3);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
}

/* =============================================
   PAGINATION (WordPress)
   ============================================= */
.nav-links {
  display: flex;
  gap: 8px;
  justify-content: center;
}

nav.navigation .nav-links {
  list-style: none;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.page-numbers:hover {
  border-color: var(--cyan-border);
  color: var(--cyan);
}

.page-numbers.current {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--deep-space);
  font-weight: 700;
}

.page-numbers.prev,
.page-numbers.next {
  width: auto;
  padding: 0 16px;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 960px) {
  nav {
    padding: 0 24px;
  }

  .nav-links {
    display: none;
  }

  .nav-cta .btn-ghost {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding: 0 24px 72px;
  }

  .hero-stats {
    display: none;
  }

  section {
    padding: 80px 24px;
  }

  .services-grid,
  .process-layout {
    grid-template-columns: 1fr;
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cap-layout {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
  }

  .cta-section {
    padding: 100px 24px;
  }

  footer {
    padding: 56px 24px 32px;
  }

  .process-visual {
    display: none;
  }

  /* Contact page responsive */
  .page-contact .contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* Archive grid responsive */
  .archive-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 600px) {
  .work-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 40px;
  }
}