/* ============================================================
   OPTIMAL TECH — Global Stylesheet
   Design System: Clean Professional × Trusted B2B
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700;800&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300&family=Roboto+Mono:wght@400;500&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:            #ffffff;
  --bg-2:          #f5f7fb;
  --bg-3:          #edf2f8;
  --border:        #dde3ea;
  --border-light:  #cdd5e0;

  --text:          #1c2230;
  --text-muted:    #5a6478;
  --text-dim:      #9aa3b2;

  --accent:        #25abe2;
  --accent-light:  #4ec1f0;
  --accent-dim:    rgba(37, 171, 226, 0.15);
  --accent-subtle: rgba(37, 171, 226, 0.07);
  --accent-dark:   #1a96cc;

  --white:         #ffffff;
  --dark:          #1c2230;
  --success:       #22c55e;
  --error:         #ef4444;

  /* Typography */
  --font-display:  'Rubik', sans-serif;
  --font-body:     'Roboto', sans-serif;
  --font-mono:     'Roboto Mono', monospace;

  /* Sizing */
  --nav-h:         72px;
  --max-w:         1320px;
  --radius:        6px;
  --radius-lg:     12px;
  --radius-card:   8px;

  /* Transitions */
  --ease:          cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:        0.18s;
  --t-base:        0.32s;
  --t-slow:        0.55s;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

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

.text-hero    { font-size: clamp(2.75rem, 7vw, 6rem); line-height: 1.0; letter-spacing: -0.03em; }
.text-display { font-size: clamp(2rem, 5vw, 4rem); }
.text-h2      { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
.text-h3      { font-size: clamp(1.25rem, 2vw, 1.75rem); }
.text-h4      { font-size: 1.125rem; font-weight: 600; }

.text-body-lg { font-size: 1.125rem; line-height: 1.7; }
.text-body    { font-size: 1rem; line-height: 1.7; }
.text-sm      { font-size: 0.875rem; line-height: 1.6; }
.text-xs      { font-size: 0.75rem; line-height: 1.5; }
.text-mono    { font-family: var(--font-mono); font-size: 0.8125rem; }

.text-muted   { color: var(--text-muted); }
.text-accent  { color: var(--accent); }
.text-white   { color: var(--white); }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px)  { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 60px; } }

.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-sm { padding: clamp(48px, 6vw, 80px) 0; }
.section-alt { background: var(--bg-2); }

/* ── Grid Helpers ──────────────────────────────────────────── */
.grid-2 { display: grid; gap: 24px; }
.grid-3 { display: grid; gap: 24px; }
.grid-4 { display: grid; gap: 24px; }
@media (min-width: 640px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ── Label / Tag ───────────────────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 171, 226, 0.3);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--accent); }

.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--t-fast) var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* WhatsApp Button */
.btn-wa {
  background: #25D366;
  color: #fff;
  font-weight: 600;
}
.btn-wa:hover {
  background: #20bd5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.25);
  color: #fff;
}
.btn-wa svg { width: 20px; height: 20px; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(28, 34, 48, 0.06);
}

/* On hero pages, nav starts transparent with white text */
.nav-transparent .nav-link { color: rgba(255,255,255,0.8); }
.nav-transparent .nav-logo-text { color: #fff; }
.nav-transparent.scrolled .nav-link { color: var(--text-muted); }
.nav-transparent.scrolled .nav-logo-text { color: var(--text); }

.nav > .container {
  height: 100%;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: opacity var(--t-fast);
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo img {
  height: 44px;
  width: auto;
  display: block;
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--text);
  transition: color var(--t-fast);
}

/* Desktop Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
}
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-link {
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color var(--t-fast);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--t-base) var(--ease);
  border-radius: 1px;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  display: none;
  gap: 12px;
  align-items: center;
}
@media (min-width: 1024px) { .nav-cta { display: flex; } }

/* Mobile menu */
.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  margin-right: -8px;
}
@media (min-width: 1024px) { .nav-toggle { display: none; } }

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--t-fast) var(--ease);
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Drawer */
.nav-drawer {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--bg);
  z-index: 999;
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform var(--t-base) var(--ease);
  border-top: 1px solid var(--border);
}
.nav-drawer.open { transform: translateX(0); }
@media (min-width: 1024px) { .nav-drawer { display: none !important; } }

.nav-drawer .nav-link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.nav-drawer .nav-link::after { display: none; }
.nav-drawer .nav-link:hover { color: var(--accent); }
.nav-drawer-cta { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 8vh, 100px);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(20, 28, 50, 0.5) 0%,
    rgba(20, 28, 50, 0.35) 40%,
    rgba(20, 28, 50, 0.88) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 24px;
  opacity: 0;
}
.hero-eyebrow span { opacity: 0.6; }

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 28px;
  opacity: 0;
  max-width: 900px;
}
.hero-title em {
  font-style: normal;
  color: var(--accent-light);
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: rgba(255, 255, 255, 0.72);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 44px;
  opacity: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  z-index: 1;
}
.hero-scroll span {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(37, 171, 226, 0.7), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ── Section Header ────────────────────────────────────────── */
.section-header { margin-bottom: clamp(48px, 6vw, 72px); }
.section-header.center { text-align: center; }
.section-header.center .label { justify-content: center; }
.section-header.center .label::before { display: none; }

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  color: var(--text);
}

.section-sub {
  margin-top: 16px;
  color: var(--text-muted);
  max-width: 540px;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.section-header.center .section-sub { margin: 16px auto 0; }

/* ── Service Cards ─────────────────────────────────────────── */
.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--t-base) var(--ease), transform var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
}
.service-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(37, 171, 226, 0.1);
}
.service-card:hover::before { opacity: 1; }

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--accent-subtle);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.service-icon svg { width: 26px; height: 26px; color: var(--accent); }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.service-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-bottom: 28px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  transition: gap var(--t-fast) var(--ease);
}
.service-link:hover { gap: 12px; }
.service-link svg { width: 14px; height: 14px; }

/* ── Portfolio / Project Grid ──────────────────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}
@media (min-width: 640px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-3);
  cursor: pointer;
}
.portfolio-item.tall { aspect-ratio: 3/4; }
.portfolio-item.wide {
  grid-column: span 2;
  aspect-ratio: 16/7;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.portfolio-item:hover img { transform: scale(1.06); }

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,28,50,0.88) 0%, transparent 55%);
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.portfolio-item:hover .portfolio-overlay { opacity: 1; }

.portfolio-cat {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 6px;
}
.portfolio-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  color: #fff;
  letter-spacing: -0.02em;
}

/* ── Brands / Trust Bar ────────────────────────────────────── */
.brands-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-2);
}

.brands-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  justify-content: center;
}
@media (min-width: 768px) {
  .brands-inner { justify-content: space-between; }
}

.brand-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.brand-item {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text-dim);
  letter-spacing: -0.02em;
  transition: color var(--t-fast);
}
.brand-item:hover { color: var(--accent); }
.brand-item sup {
  font-size: 0.5em;
  vertical-align: super;
  font-weight: 400;
}

/* ── Stats ─────────────────────────────────────────────────── */
.stat-item { text-align: center; padding: 32px; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-num span { color: var(--accent); }
.stat-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-mono);
}

/* ── CTA Banner ────────────────────────────────────────────── */
.cta-banner {
  background: var(--accent);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 6vw, 80px) clamp(32px, 5vw, 80px);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .cta-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.cta-text { max-width: 520px; }
.cta-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  color: #fff;
}
.cta-sub { color: rgba(255,255,255,0.82); font-size: 1.0625rem; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: clamp(64px, 8vw, 100px) 0 0;
}

.footer-grid {
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  margin-bottom: 64px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; } }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img { height: 40px; width: auto; }
.footer-desc {
  color: rgba(255,255,255,0.5);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 28px;
}
.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 0.9375rem;
  margin-bottom: 10px;
  transition: color var(--t-fast);
}
.footer-contact-item:hover { color: rgba(255,255,255,0.85); }
.footer-contact-item svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--t-fast);
}
.footer-link:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
}
@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

/* ── WhatsApp Sticky ───────────────────────────────────────── */
.wa-sticky {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #25D366;
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 14px 20px;
  border-radius: 50px;
  box-shadow: 0 4px 24px rgba(37, 211, 102, 0.35);
  transition: all var(--t-base) var(--ease);
  text-decoration: none;
}
.wa-sticky:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.45);
  color: #fff;
}
.wa-sticky svg { width: 22px; height: 22px; flex-shrink: 0; }
.wa-label { white-space: nowrap; }
@media (max-width: 639px) { .wa-label { display: none; } }

/* Mobile sticky bar */
.wa-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 990;
  background: #25D366;
  padding: 0;
  display: none;
}
@media (max-width: 639px) {
  .wa-bar { display: block; }
  .wa-sticky { display: none; }
}
.wa-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  width: 100%;
}
.wa-bar svg { width: 22px; height: 22px; }

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.page-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.page-hero-sub {
  color: var(--text-muted);
  font-size: 1.0625rem;
  max-width: 540px;
  line-height: 1.7;
}

/* ── About Page ────────────────────────────────────────────── */
.about-split {
  display: grid;
  gap: 60px;
  align-items: center;
}
@media (min-width: 1024px) {
  .about-split { grid-template-columns: 1fr 1fr; gap: 100px; }
}

.about-img-wrap { position: relative; }
.about-img-main {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-img-accent {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 45%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 4px solid var(--bg);
  box-shadow: 0 20px 60px rgba(37, 171, 226, 0.15);
}
@media (max-width: 639px) { .about-img-accent { display: none; } }

.about-text .label { margin-bottom: 20px; }
.about-body {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.75;
  margin-bottom: 36px;
}
.about-body + .about-body { margin-top: -20px; }

.about-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 36px;
}
.material-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-subtle);
  border: 1px solid var(--accent-dim);
  padding: 6px 14px;
  border-radius: var(--radius);
}

/* ── Services Page ─────────────────────────────────────────── */
.service-detail {
  padding: clamp(60px, 8vw, 100px) 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }

.service-detail-inner {
  display: grid;
  gap: 60px;
  align-items: center;
}
@media (min-width: 1024px) {
  .service-detail-inner { grid-template-columns: 1fr 1fr; gap: 100px; }
  .service-detail:nth-child(even) .service-detail-inner { direction: rtl; }
  .service-detail:nth-child(even) .service-detail-inner > * { direction: ltr; }
}

.service-detail-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
}
.service-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}
.service-detail-item::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── Portfolio Page ────────────────────────────────────────── */
.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border: 1.5px solid var(--border);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all var(--t-fast);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}

/* Portfolio full grid */
.portfolio-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
}
@media (min-width: 640px) {
  .portfolio-full { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .portfolio-full { grid-template-columns: repeat(3, 1fr); }
}

/* ── Contact Page ──────────────────────────────────────────── */
.contact-split {
  display: grid;
  gap: 60px;
}
@media (min-width: 1024px) {
  .contact-split { grid-template-columns: 1fr 1fr; gap: 80px; }
}

.contact-info { display: flex; flex-direction: column; gap: 32px; }

.contact-block-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.contact-block-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text);
  transition: color var(--t-fast);
}
.contact-block-value:hover { color: var(--accent); }

/* Form */
.form { display: flex; flex-direction: column; gap: 20px; }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input, .form-textarea, .form-select {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 14px 16px;
  font-size: 0.9375rem;
  width: 100%;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  -webkit-appearance: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-dim); }
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-textarea { min-height: 140px; resize: vertical; }

.form-row { display: grid; gap: 20px; }
@media (min-width: 480px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ── Divider ───────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ── Reveal Animations ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── Utilities ─────────────────────────────────────────────── */
.mt-auto { margin-top: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Upload Page ───────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 80px 40px;
  text-align: center;
  transition: border-color var(--t-fast), background var(--t-fast);
  cursor: pointer;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}
.upload-icon { font-size: 3rem; margin-bottom: 16px; }
.upload-list { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.upload-item {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.875rem;
}
.upload-progress {
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 8px;
}
.upload-progress-bar {
  height: 100%;
  background: var(--accent);
  width: 0%;
  transition: width 0.3s;
}
