/* =========================================
   AMZGO Studio — Global Styles
   Apple-inspired premium dark & light design
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ---- Dark theme (default) ---- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-card-deep: #0d0d0d;
  --bg-card-deeper: #0b0b0b;
  --accent: #FF6B2B;
  --accent-2: #FF9A5C;
  --accent-glow: rgba(255, 107, 43, 0.15);
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1a6;
  --text-muted: #6e6e73;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 107, 43, 0.3);
  --nav-bg: rgba(0, 0, 0, 0.72);
  --nav-bg-scrolled: rgba(0, 0, 0, 0.92);
  --mobile-menu-bg: rgba(0, 0, 0, 0.97);
  --grid-line: rgba(255, 255, 255, 0.03);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a1a1a6' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  --nav-height: 68px;
  --radius: 18px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- Light theme ---- */
body.light {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f5;
  --bg-card-deep: #f8f8fa;
  --bg-card-deeper: #f5f5f7;
  --accent-glow: rgba(255, 107, 43, 0.09);
  --text-primary: #1d1d1f;
  --text-secondary: #515154;
  --text-muted: #86868b;
  --border: rgba(0, 0, 0, 0.09);
  --border-hover: rgba(255, 107, 43, 0.35);
  --nav-bg: rgba(255, 255, 255, 0.78);
  --nav-bg-scrolled: rgba(255, 255, 255, 0.95);
  --mobile-menu-bg: rgba(255, 255, 255, 0.98);
  --grid-line: rgba(0, 0, 0, 0.04);
  --shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2386868b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   SCROLLBAR
   ========================================= */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav.scrolled {
  background: var(--nav-bg-scrolled);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  letter-spacing: -0.01em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 980px;
  font-size: 14px !important;
  font-weight: 600 !important;
  transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
  background: var(--accent-2) !important;
  transform: scale(1.04) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(20px);
  padding: 24px 5%;
  flex-direction: column;
  gap: 20px;
  border-bottom: 1px solid var(--border);
  z-index: 999;
}

.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 60px) 5% 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 107, 43, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255, 107, 43, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 107, 43, 0.1);
  border: 1px solid rgba(255, 107, 43, 0.25);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 980px;
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.hero h1 {
  font-size: clamp(42px, 7vw, 86px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 28px;
  color: var(--text-primary);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  font-weight: 400;
  line-height: 1.65;
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  padding: 15px 32px;
  border-radius: 980px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: -0.01em;
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(255, 107, 43, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 980px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  cursor: pointer;
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--accent-glow);
  transform: scale(1.03);
}

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 5%;
}

.stats-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item .number {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-item .label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* =========================================
   SECTIONS — SHARED
   ========================================= */
section {
  padding: 120px 5%;
}

.section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  margin-bottom: 72px;
}

.centered {
  text-align: center;
}

.centered .section-subtitle {
  margin: 0 auto;
}

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

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: var(--accent-glow);
  border: 1px solid rgba(255, 107, 43, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  font-size: 24px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin-top: 24px;
  transition: gap var(--transition);
}

.service-card:hover .learn-more {
  gap: 10px;
}

/* =========================================
   WHY US
   ========================================= */
.why-section {
  background: var(--bg-primary);
}

.why-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-text .section-subtitle {
  max-width: 100%;
  margin-bottom: 40px;
}

.why-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.why-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.why-list .icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: var(--accent-glow);
  border: 1px solid rgba(255, 107, 43, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-top: 2px;
}

.why-list .text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 4px;
}

.why-list .text span {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.why-visual {
  position: relative;
}

.why-card-stack {
  position: relative;
  height: 460px;
}

.stack-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.stack-card:nth-child(1) {
  top: 0; left: 0; right: 0;
  z-index: 3;
}

.stack-card:nth-child(2) {
  top: 140px; left: 20px; right: -20px;
  z-index: 2;
  background: var(--bg-card-deep);
}

.stack-card:nth-child(3) {
  top: 280px; left: 40px; right: -40px;
  z-index: 1;
  background: var(--bg-card-deeper);
}

.stack-card h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.stack-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.progress-bar-wrap {
  margin-top: 16px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.progress-track {
  height: 4px;
  background: rgba(255,255,255,0.07);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
  transition: width 1.5s ease;
}

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

.process-steps {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 32px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), var(--border), transparent);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  margin: 0 auto 24px;
  position: relative;
  z-index: 1;
  transition: border-color var(--transition), background var(--transition);
}

.process-step:hover .step-num {
  background: var(--accent-glow);
  border-color: rgba(255, 107, 43, 0.4);
}

.process-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.process-step p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

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

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: border-color var(--transition), transform var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.stars {
  color: var(--accent);
  font-size: 16px;
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-style: italic;
}

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

.author-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.author-info span {
  font-size: 13px;
  color: var(--text-muted);
}

/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
  background: var(--bg-secondary);
  text-align: center;
}

.cta-inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 80px 60px;
  position: relative;
  overflow: hidden;
}

.cta-inner::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 107, 43, 0.15), transparent 70%);
  pointer-events: none;
}

.cta-inner h2 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
}

.cta-inner p {
  font-size: 17px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.65;
}

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

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 72px 5% 36px;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 18px;
}

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

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

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
  transition: border-color var(--transition), color var(--transition);
}

.social-icon:hover {
  border-color: var(--border-hover);
  color: var(--accent);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-bottom .accent-link {
  color: var(--accent);
}

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
  padding: calc(var(--nav-height) + 100px) 5% 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

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

.page-hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

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

.service-pillar {
  max-width: 1200px;
  margin: 0 auto 100px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.service-pillar:last-child { margin-bottom: 0; }

.service-pillar.reverse { direction: rtl; }
.service-pillar.reverse > * { direction: ltr; }

.pillar-number {
  font-size: 100px;
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  background: linear-gradient(135deg, rgba(255,107,43,0.15), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: -20px;
}

.pillar-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.pillar-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.pillar-desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 36px;
}

.pillar-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: border-color var(--transition);
}

.feature-pill:hover { border-color: var(--border-hover); color: var(--text-primary); }

.feature-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  min-width: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.pillar-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.pillar-visual .big-icon {
  font-size: 80px;
  line-height: 1;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 30px rgba(255, 107, 43, 0.3));
}

.pillar-visual h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.pillar-visual p {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
}

/* =========================================
   ABOUT PAGE
   ========================================= */
.about-mission {
  background: var(--bg-secondary);
}

.mission-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.mission-quote {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.02em;
  border-left: 3px solid var(--accent);
  padding-left: 28px;
  color: var(--text-primary);
  margin-bottom: 28px;
}

.mission-text p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
}

.value-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.value-card .emoji { font-size: 28px; margin-bottom: 12px; }
.value-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }

.team-section {
  background: var(--bg-primary);
}

.team-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}

.team-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  margin: 0 auto 20px;
}

.team-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.team-card .role { font-size: 14px; color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.team-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.65; }

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-section {
  background: var(--bg-secondary);
}

.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
}

.contact-info h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.contact-info p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item .ci-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--accent-glow);
  border: 1px solid rgba(255,107,43,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.contact-item .ci-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.contact-item .ci-text span {
  font-size: 14px;
  color: var(--text-secondary);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
}

.contact-form h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}

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

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 15px;
  transition: border-color var(--transition), background var(--transition), color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: rgba(255, 107, 43, 0.5);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.6;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

/* =========================================
   ANIMATIONS
   ========================================= */
[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-aos].aos-animate {
  opacity: 1;
  transform: translateY(0);
}

[data-aos="fade-left"] {
  transform: translateX(-30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-right"] {
  transform: translateX(30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos-delay="500"] { transition-delay: 0.5s; }
[data-aos-delay="600"] { transition-delay: 0.6s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-inner { grid-template-columns: 1fr; gap: 60px; }
  .why-card-stack { height: 380px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-steps::before { display: none; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .service-pillar { grid-template-columns: 1fr; gap: 48px; }
  .service-pillar.reverse { direction: ltr; }
  .mission-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  section { padding: 80px 5%; }
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  .nav-hamburger { display: flex; }
  .nav-right { gap: 8px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .cta-inner { padding: 48px 28px; }
  .contact-form { padding: 32px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .pillar-features { grid-template-columns: 1fr; }
  .why-card-stack { display: none; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 36px; }
}

/* =========================================
   THEME TOGGLE BUTTON
   ========================================= */
.theme-toggle {
  width: 42px;
  height: 24px;
  border-radius: 980px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--border);
  cursor: pointer;
  position: relative;
  transition: background var(--transition), border-color var(--transition);
  flex-shrink: 0;
  outline: none;
  padding: 0;
}

.theme-toggle:hover {
  border-color: var(--border-hover);
}

.theme-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: transform var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1;
}

body.light .theme-toggle {
  background: rgba(0, 0, 0, 0.06);
}

body.light .theme-toggle-knob {
  transform: translateX(18px);
  background: var(--accent);
}

.theme-toggle-icon {
  font-size: 14px;
  line-height: 1;
  user-select: none;
  transition: opacity var(--transition);
}

.icon-sun  { display: none; }
.icon-moon { display: inline; }

body.light .icon-sun  { display: inline; }
body.light .icon-moon { display: none; }

/* ---- Logo swap per theme ---- */
.logo-dark  { display: block; }
.logo-light { display: none; }

body.light .logo-dark  { display: none; }
body.light .logo-light { display: block; }

/* Toggle sits between links and hamburger */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =========================================
   LIGHT THEME — SPECIFIC OVERRIDES
   ========================================= */

/* Smooth global transition when theme switches */
body {
  transition: background 0.4s ease, color 0.4s ease;
}

/* btn-secondary needs dark text in light mode */
body.light .btn-secondary {
  color: var(--text-primary);
}

/* Hamburger lines dark in light mode */
body.light .nav-hamburger span {
  background: var(--text-primary);
}

/* Hero gradient adjusted for light */
body.light .hero-bg {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 107, 43, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(255, 107, 43, 0.04) 0%, transparent 50%);
}

/* Cards in light mode get a soft shadow for depth */
body.light .service-card,
body.light .testimonial-card,
body.light .team-card,
body.light .value-card,
body.light .stack-card,
body.light .contact-form,
body.light .cta-inner {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

body.light .service-card:hover,
body.light .testimonial-card:hover,
body.light .team-card:hover,
body.light .value-card:hover {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

/* Mobile menu text in light mode */
body.light .mobile-menu a {
  color: var(--text-primary);
}

/* Footer in light mode needs subtle separator */
body.light .footer {
  background: var(--bg-secondary);
}

/* Inline dark-bg sections on about/contact pages */
body.light [style*="background:var(--bg-card)"],
body.light [style*="background: var(--bg-card)"] {
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

/* Select option text color for light mode */
body.light .form-group select option {
  background: #ffffff;
  color: #1d1d1f;
}

/* Progress track lighter in light mode */
body.light .progress-track {
  background: rgba(0,0,0,0.08);
}

/* CTA glow softer in light */
body.light .cta-inner::before {
  background: radial-gradient(circle, rgba(255, 107, 43, 0.08), transparent 70%);
}

/* Nav toggle label hidden on mobile (toggle moves inside hamburger area) */
@media (max-width: 768px) {
  .theme-toggle {
    width: 38px;
    height: 22px;
  }
  .theme-toggle-knob {
    width: 14px;
    height: 14px;
  }
  body.light .theme-toggle-knob {
    transform: translateX(16px);
  }
}
