/* ============================================================
   OPENAPEX LABS — SHARED STYLESHEET
   ============================================================ */

:root {
  --blue: #3A7D1E;
  --blue-light: #5AAD2F;
  --blue-dark: #2A5C14;
  --cyan: #A0C820;
  --cyan-light: #C8D400;
  --navy: #111111;
  --navy-mid: #1C1C1C;
  --navy-light: #2E2E2E;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --bg: #ffffff;
  --bg-secondary: #F5F7F2;
  --bg-card: #ffffff;
  --border: #DDE5D4;
  --text: #111111;
  --text-secondary: #4A5240;
  --text-muted: #8A9880;
  --shadow: 0 4px 24px rgba(17,17,17,0.08);
  --shadow-lg: 0 12px 48px rgba(17,17,17,0.14);
  --radius: 16px;
  --radius-sm: 10px;
}
html.dark {
  --bg: #0D110A;
  --bg-secondary: #111611;
  --bg-card: #1A2016;
  --border: #1E2A18;
  --text: #EDF2E8;
  --text-secondary: #8FA882;
  --text-muted: #536048;
  --shadow: 0 4px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  transition: background 0.3s, color 0.3s;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ===== TYPOGRAPHY ===== */
.display { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.headline { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 700; line-height: 1.2; letter-spacing: -0.015em; }
.subheadline { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 400; color: var(--text-secondary); line-height: 1.7; }
.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-light); }
.gradient-text { background: linear-gradient(135deg, var(--blue-light), var(--cyan)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ===== LAYOUT ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header .label { margin-bottom: 12px; display: block; }
.page-hero { padding: 160px 0 64px; background: var(--bg-secondary); }
.page-hero .section-header { margin-bottom: 0; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 10px; font-size: 0.95rem; font-weight: 600;
  transition: all 0.2s ease; position: relative; overflow: hidden;
}
.btn::after { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.1); opacity: 0; transition: opacity 0.2s; }
.btn:hover::after { opacity: 1; }
.btn-primary { background: linear-gradient(135deg, var(--blue-light), var(--blue-dark)); color: #fff; box-shadow: 0 4px 16px rgba(58,125,30,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(58,125,30,0.5); }
.btn-secondary { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-cyan { background: linear-gradient(135deg, var(--cyan), #7A9A10); color: #111; box-shadow: 0 4px 16px rgba(160,200,32,0.35); }
.btn-cyan:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(160,200,32,0.5); }
.btn-white { background: #fff; color: var(--blue-dark); font-weight: 700; }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== NAVBAR ===== */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 24px; transition: all 0.3s ease; background: var(--bg); border-bottom: 1px solid transparent; }
#navbar.scrolled { box-shadow: var(--shadow); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; }
.logo-chip { background: #ffffff; padding: 6px 12px; border-radius: 10px; display: inline-flex; align-items: center; box-shadow: 0 1px 4px rgba(0,0,0,0.08); }
.logo-chip img { height: 40px; width: auto; display: block; }
.logo-chip .nav-logo-text { color: #111111 !important; }
.logo-chip .nav-logo-text span { color: var(--blue) !important; }
.nav-logo img { height: 40px; width: auto; display: block; }
.nav-logo .nav-logo-text { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; }
.nav-logo .nav-logo-text span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; color: var(--text-secondary); transition: color 0.2s; padding-bottom: 4px; border-bottom: 2px solid transparent; }
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); border-bottom-color: var(--blue-light); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); white-space: nowrap; }
.mode-toggle { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: var(--bg-secondary); border: 1.5px solid var(--border); color: var(--text-secondary); font-size: 1rem; transition: all 0.2s; }
.mode-toggle:hover { color: var(--blue); border-color: var(--blue); }
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; border-radius: 8px; background: var(--bg-secondary); border: 1.5px solid var(--border); }
.hamburger span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.mobile-menu { display: none; position: fixed; top: 72px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 24px; flex-direction: column; gap: 16px; z-index: 999; box-shadow: var(--shadow); }
.mobile-menu a { font-size: 1rem; font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-menu.open { display: flex; }

/* ===== HERO (home) ===== */
#hero { min-height: 100vh; display: flex; align-items: center; padding-top: 72px; overflow: hidden; position: relative; background: var(--bg); }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(58,125,30,0.1); border: 1px solid rgba(58,125,30,0.25); color: var(--blue-light); padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; margin-bottom: 24px; }
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--blue-light); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
.hero-title { margin-bottom: 20px; }
.hero-sub { margin-bottom: 36px; max-width: 520px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 40px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 500; color: var(--text-secondary); }
.trust-dot { width: 8px; height: 8px; background: var(--cyan); border-radius: 50%; }

/* Hero Orbit SVG */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; height: 480px; }
.orbit-container { position: relative; width: 400px; height: 400px; }
.orbit-ring { position: absolute; top: 50%; left: 50%; border-radius: 50%; border: 1px solid rgba(58,125,30,0.2); transform: translate(-50%, -50%); }
.orbit-ring-1 { width: 120px; height: 120px; border-color: rgba(160,200,32,0.4); animation: rotateOrbit 8s linear infinite; }
.orbit-ring-2 { width: 220px; height: 220px; border-color: rgba(58,125,30,0.3); animation: rotateOrbit 14s linear infinite reverse; }
.orbit-ring-3 { width: 320px; height: 320px; border-color: rgba(58,125,30,0.15); animation: rotateOrbit 22s linear infinite; }
.orbit-ring-4 { width: 400px; height: 400px; border-color: rgba(160,200,32,0.08); animation: rotateOrbit 30s linear infinite reverse; }
@keyframes rotateOrbit { from{transform:translate(-50%,-50%) rotate(0)} to{transform:translate(-50%,-50%) rotate(360deg)} }
.orbit-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; background: linear-gradient(135deg, var(--blue-light), var(--cyan)); border-radius: 18px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(58,125,30,0.5), 0 0 80px rgba(160,200,32,0.2); z-index: 2; }
.orbit-node { position: absolute; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #fff; box-shadow: 0 4px 16px rgba(0,0,0,0.3); }
.node-a { background: linear-gradient(135deg,#3A7D1E,#2A5C14); top: 0; left: 50%; transform: translateX(-50%); }
.node-b { background: linear-gradient(135deg,#A0C820,#7A9A10); right: 0; top: 50%; transform: translateY(-50%); color:#111; }
.node-c { background: linear-gradient(135deg,#5AAD2F,#3A7D1E); bottom: 0; left: 50%; transform: translateX(-50%); }
.node-d { background: linear-gradient(135deg,#C8D400,#A0C820); left: 0; top: 50%; transform: translateY(-50%); color:#111; }
.node-e { background: linear-gradient(135deg,#2A5C14,#1a3a0a); top: 14%; right: 14%; }
.node-f { background: linear-gradient(135deg,#8DC63F,#5AAD2F); bottom: 14%; left: 14%; }
.glow-circle { position: absolute; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(58,125,30,0.12) 0%, transparent 70%); top: 50%; left: 50%; transform: translate(-50%,-50%); }

/* ===== DASHBOARD MOCKUP (about/services hero cards) ===== */
.mock-wrap { position: relative; }
.dashboard-mock { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 28px; position: relative; }
.dashboard-mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.dashboard-mock-head h4 { font-size: 1.05rem; font-weight: 700; }
.demo-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--text-muted); font-weight: 600; }
.demo-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-light); }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 24px; }
.mock-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; transition: all 0.2s; }
.mock-card.active { border-color: var(--blue-light); box-shadow: 0 0 0 1px var(--blue-light) inset; }
.mock-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; font-size: 1rem; }
.mock-card h5 { font-size: 0.92rem; font-weight: 700; margin-bottom: 2px; }
.mock-card span { font-size: 0.78rem; color: var(--text-muted); }
.mock-progress-label { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.mock-progress-label em { color: var(--blue-light); font-style: normal; }
.mock-bar { height: 8px; border-radius: 6px; background: var(--border); overflow: hidden; margin-bottom: 24px; }
.mock-bar-fill { height: 100%; background: linear-gradient(90deg, var(--blue-light), var(--cyan)); border-radius: 6px; }
.mock-stats { display: flex; justify-content: space-between; text-align: center; }
.mock-stats div strong { display: block; font-size: 1.3rem; font-weight: 800; color: var(--blue-light); }
.mock-stats div span { font-size: 0.75rem; color: var(--text-muted); }
.float-card { position: absolute; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 12px 16px; display: flex; align-items: center; gap: 12px; z-index: 3; }
.float-card .mock-icon { margin-bottom: 0; }
.float-card strong { display: block; font-size: 0.85rem; font-weight: 700; }
.float-card span { font-size: 0.72rem; color: var(--text-muted); }
.float-card-1 { top: -24px; left: -20px; }
.float-card-2 { bottom: -24px; right: -20px; }
.eye-btn { position: absolute; top: -14px; right: -14px; width: 34px; height: 34px; border-radius: 50%; background: var(--blue-light); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow); z-index: 4; }

/* ===== ABOUT ===== */
#about { background: var(--bg-secondary); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.about-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px; }
.about-stat .number { font-size: 2rem; font-weight: 800; color: var(--blue-light); }
.about-stat .stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
.about-text p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.about-badge { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; background: rgba(58,125,30,0.1); border: 1px solid rgba(58,125,30,0.25); color: var(--blue-light); padding: 6px 14px; border-radius: 100px; font-size: 0.8rem; font-weight: 600; }

/* ===== STATS DARK BAR ===== */
#stats-dark { background: linear-gradient(160deg, var(--navy) 0%, #16321c 100%); color: #fff; }
.stats-dark-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 32px; }
.stat-dark-card { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 28px 24px; }
.stat-dark-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.1rem; }
.stat-dark-card .number { font-size: 2.2rem; font-weight: 800; }
.stat-dark-card .stat-label { font-size: 0.95rem; font-weight: 600; margin-top: 4px; }
.stat-dark-card .stat-sub { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
.chip-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.chip { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-sm); padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
.chip .mock-icon { margin-bottom: 0; }
.chip strong { display: block; font-size: 0.92rem; }
.chip span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.stats-dark-cta { text-align: center; }
.stats-dark-cta p { color: rgba(255,255,255,0.75); margin-bottom: 20px; font-size: 1.05rem; }

/* ===== SERVICE TABS / EXPLORER ===== */
.tab-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 100px; padding: 6px; margin: 0 auto 48px; max-width: fit-content; }
html.dark .tab-pills { background: var(--bg-card); }
.tab-pill { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 100px; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); transition: all 0.2s; white-space: nowrap; }
.tab-pill .pill-icon { width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; flex-shrink: 0; }
.tab-pill.active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow); }
.tab-pill:hover:not(.active) { color: var(--blue-light); }

.split-panel { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); min-height: 520px; }
.split-left { background: var(--bg-card); padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.split-left .service-icon-lg { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 1.5rem; }
.split-left h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 14px; }
.split-left > p { color: var(--text-secondary); margin-bottom: 24px; line-height: 1.7; }
.split-checklist { display: flex; flex-direction: column; gap: 14px; }
.split-checklist li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; }
.split-checklist svg { flex-shrink: 0; margin-top: 3px; color: var(--blue-light); }
.split-right { background: linear-gradient(160deg, var(--blue-light) 0%, var(--blue-dark) 100%); color: #fff; padding: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.split-right .split-icon-circle { width: 100px; height: 100px; border-radius: 24px; background: rgba(255,255,255,0.15); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.split-right h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 12px; }
.split-right p { color: rgba(255,255,255,0.85); margin-bottom: 28px; max-width: 340px; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ===== SERVICES GRID (services page overview + portfolio tech tags) ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.service-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--blue-light), var(--cyan)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(58,125,30,0.35); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.service-card p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.65; }
.icon-blue { background: rgba(58,125,30,0.12); }
.icon-cyan { background: rgba(160,200,32,0.14); }
.icon-purple { background: rgba(90,173,47,0.12); }
.icon-green { background: rgba(42,92,20,0.12); }

/* ===== WHY CHOOSE ===== */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.why-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; gap: 20px; align-items: flex-start; transition: all 0.3s ease; }
.why-card:hover { border-color: rgba(58,125,30,0.3); transform: translateY(-2px); box-shadow: var(--shadow); }
.why-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: linear-gradient(135deg, var(--blue-light), var(--cyan)); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; box-shadow: 0 4px 12px rgba(58,125,30,0.35); }
.why-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.why-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ===== PROCESS ===== */
.process-steps { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; position: relative; }
.process-step { text-align: center; position: relative; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-light), var(--cyan)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 14px; box-shadow: 0 4px 14px rgba(58,125,30,0.35); }
.process-step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.process-step p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

/* ===== PORTFOLIO ===== */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.portfolio-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.3s ease; }
.portfolio-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.portfolio-img { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.portfolio-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.portfolio-card:hover .portfolio-img img { transform: scale(1.05); }
.portfolio-overlay { position: absolute; top: 14px; left: 14px; }
.portfolio-tag { background: rgba(17,17,17,0.75); color: #fff; font-size: 0.72rem; font-weight: 700; padding: 6px 12px; border-radius: 100px; backdrop-filter: blur(4px); }
.portfolio-body { padding: 24px; }
.portfolio-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.portfolio-body p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.portfolio-tech { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tech-tag { font-size: 0.72rem; font-weight: 600; padding: 4px 10px; border-radius: 100px; background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-secondary); }
.portfolio-link { font-size: 0.88rem; font-weight: 700; color: var(--blue-light); }

/* ===== TESTIMONIALS ===== */
#testimonials { background: var(--bg-secondary); }
.testimonials-wrapper { max-width: 720px; margin: 0 auto; position: relative; }
.testimonials-viewport { overflow: hidden; border-radius: var(--radius); width: 100%; }
.testimonials-track { display: flex; width: 100%; transition: transform 0.4s ease; }
.testimonial-card { flex: 0 0 100%; width: 100%; max-width: 100%; box-sizing: border-box; }
.testimonial-inner { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 40px; text-align: center; }
.testimonial-stars { color: var(--cyan); font-size: 1.1rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-text { font-size: 1.05rem; line-height: 1.8; color: var(--text); margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-light), var(--cyan)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; }
.author-name { font-weight: 700; font-size: 0.92rem; }
.author-role { font-size: 0.8rem; color: var(--text-secondary); }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
.carousel-btn { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-secondary); transition: all 0.2s; }
.carousel-btn:hover { border-color: var(--blue); color: var(--blue); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); transition: all 0.2s; }
.carousel-dot.active { background: var(--blue-light); width: 24px; border-radius: 4px; }

/* ===== LOGOS ===== */
.logos-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.logo-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 22px 16px; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.05rem; color: var(--text-secondary); text-align: center; transition: all 0.2s; }
.logo-card:hover { border-color: var(--blue-light); color: var(--blue-light); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-question { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; font-size: 0.98rem; font-weight: 600; text-align: left; color: var(--text); }
.faq-icon { width: 26px; height: 26px; border-radius: 50%; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--blue-light); flex-shrink: 0; margin-left: 16px; transition: transform 0.3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 400px; }
.faq-answer-inner { padding: 0 24px 22px; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.7; }

/* ===== CASE STUDY ===== */
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 24px; transition: color 0.2s; }
.back-link:hover { color: var(--blue-light); }
.case-meta { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.case-meta-item span { display: block; font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.case-meta-item strong { font-size: 1rem; }
.case-hero-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); margin-top: 40px; }
.case-hero-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.case-grid h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.case-grid h3 .case-num { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-light), var(--cyan)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; flex-shrink: 0; }
.case-grid p { color: var(--text-secondary); line-height: 1.8; }
.case-results { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.case-result-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; text-align: center; }
.case-result-card .number { font-size: 2rem; font-weight: 800; color: var(--blue-light); }
.case-result-card .stat-label { font-size: 0.85rem; color: var(--text-secondary); margin-top: 6px; }
.case-gallery-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.case-gallery-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.more-projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1024px) {
  .case-grid { grid-template-columns: 1fr; gap: 32px; }
  .case-results { grid-template-columns: 1fr 1fr; }
  .more-projects-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .case-meta { gap: 20px; }
}

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.contact-detail { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.contact-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--bg-secondary); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-detail strong { display: block; font-size: 0.85rem; }
.contact-detail span { font-size: 0.9rem; }
.social-row { display: flex; gap: 12px; margin-top: 8px; }
.social-btn { width: 42px; height: 42px; border-radius: 12px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; transition: all 0.2s; }
.social-btn:hover { border-color: var(--blue); transform: translateY(-2px); }
.form-tabs { display: flex; gap: 8px; margin-bottom: 24px; background: var(--bg-secondary); padding: 6px; border-radius: 12px; }
.form-tab { flex: 1; padding: 12px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; color: var(--text-secondary); transition: all 0.2s; }
.form-tab.active { background: var(--bg-card); color: var(--text); box-shadow: var(--shadow); }
.form-panel { display: none; }
.form-panel.active { display: block; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; }
.form-control { width: 100%; padding: 12px 16px; border-radius: 10px; border: 1.5px solid var(--border); background: var(--bg-card); color: var(--text); font-size: 0.92rem; font-family: inherit; transition: all 0.2s; }
.form-control:focus { outline: none; border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(58,125,30,0.12); }
textarea.form-control { resize: vertical; }

/* ===== NEWSLETTER ===== */
#newsletter { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; text-align: center; padding: 64px 0; }
#newsletter h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
#newsletter p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.newsletter-form { display: flex; gap: 12px; max-width: 460px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 14px 18px; border-radius: 10px; border: none; font-size: 0.92rem; font-family: inherit; }
.newsletter-form input:focus { outline: none; }

/* ===== CTA ===== */
#cta { text-align: center; background: var(--bg-secondary); }
#cta h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
#cta p { color: var(--text-secondary); max-width: 560px; margin: 0 auto 32px; font-size: 1.05rem; }

/* ===== FOOTER ===== */
footer { background: var(--navy); color: rgba(255,255,255,0.65); padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { margin-top: 16px; font-size: 0.88rem; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; }
footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--cyan); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; justify-content: space-between; font-size: 0.82rem; }

/* ===== SCROLL REVEAL ===== */
.reveal, .reveal-left, .reveal-right { opacity: 0; transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal { transform: translateY(24px); }
.reveal-left { transform: translateX(-32px); }
.reveal-right { transform: translateX(32px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: opacity 0.5s ease, transform 0.5s ease; }
.stagger.visible > *:nth-child(1) { opacity:1; transform:none; transition-delay:0ms; }
.stagger.visible > *:nth-child(2) { opacity:1; transform:none; transition-delay:70ms; }
.stagger.visible > *:nth-child(3) { opacity:1; transform:none; transition-delay:140ms; }
.stagger.visible > *:nth-child(4) { opacity:1; transform:none; transition-delay:210ms; }
.stagger.visible > *:nth-child(5) { opacity:1; transform:none; transition-delay:280ms; }
.stagger.visible > *:nth-child(6) { opacity:1; transform:none; transition-delay:350ms; }
.stagger.visible > *:nth-child(7) { opacity:1; transform:none; transition-delay:420ms; }
.stagger.visible > *:nth-child(8) { opacity:1; transform:none; transition-delay:490ms; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-visual { height: 320px; }
  .orbit-container { width: 300px; height: 300px; }
  .orbit-ring-4 { width: 300px; height: 300px; }
  .orbit-ring-3 { width: 240px; height: 240px; }
  .orbit-ring-2 { width: 170px; height: 170px; }
  .hero-sub { margin: 0 auto 36px; }
  .btn-group { justify-content: center; }
  .hero-trust { justify-content: center; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-dark-grid { grid-template-columns: 1fr 1fr; }
  .chip-row { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .process-step:nth-child(n+5) { display: none; }
  .split-panel { grid-template-columns: 1fr; }
  .mock-wrap { margin-top: 48px; }
}
@media (max-width: 768px) {
  section { padding: 64px 0; }
  .page-hero { padding: 130px 0 48px; }
  .nav-links, .nav-actions .btn, .nav-phone { display: none; }
  .hamburger { display: flex; }
  .hero-grid { padding-top: 24px; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .testimonial-inner { padding: 28px 24px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(n+5) { display: block; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .newsletter-form { flex-direction: column; }
  .tab-pills { max-width: 100%; }
  .float-card { display: none; }
}
@media (max-width: 480px) {
  .display { font-size: 2rem; }
  .about-stat-grid { grid-template-columns: 1fr 1fr; }
  .portfolio-grid, .services-grid, .why-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .stats-dark-grid { grid-template-columns: 1fr; }
}
