/* ============================================================
   Bluemark Consulting — Professional Redesign 2026
   Premium layout · Motion · Responsive
   ============================================================ */

:root {
  --navy: #061525;
  --navy-2: #0B243D;
  --navy-3: #123456;
  --sky: #0BA5E9;
  --sky-2: #38BDF8;
  --sky-deep: #0284C7;
  --gold: #D4A017;
  --gold-2: #F5C542;
  --ink: #0F172A;
  --ink-2: #1E293B;
  --muted: #64748B;
  --line: #E2E8F0;
  --soft: #F8FAFC;
  --white: #FFFFFF;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 4px 24px rgba(6, 21, 37, 0.06);
  --shadow-lg: 0 24px 60px rgba(6, 21, 37, 0.12);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--sky-deep); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--sky); }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- Type ---- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.35rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin-bottom: .85rem;
}
.section-label::before {
  content: '';
  width: 22px; height: 2px;
  background: linear-gradient(90deg, var(--sky), transparent);
  border-radius: 2px;
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 540px; line-height: 1.7; }
.text-muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .9rem 1.7rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: 999px;
  transition: all .3s var(--ease);
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(11, 165, 233, 0.35);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(11, 165, 233, 0.45);
  color: #fff;
}
.btn-ghost {
  background: rgba(255,255,255,.08);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}
.btn-block { width: 100%; }

/* ---- Header ---- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.78);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all .35s var(--ease);
}
.header.scrolled {
  background: rgba(255,255,255,.94);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px rgba(6,21,37,.04);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  color: var(--navy); letter-spacing: -.03em; text-decoration: none;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--sky), var(--navy-2));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: .95rem;
  box-shadow: 0 4px 14px rgba(11,165,233,.3);
  transition: transform .3s var(--ease);
}
.logo:hover .logo-icon { transform: rotate(-8deg) scale(1.06); }

.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-links a {
  color: var(--ink-2); font-weight: 500; font-size: .9rem;
  padding: .45rem .85rem; border-radius: 8px; transition: all .2s;
}
.nav-links a:not(.nav-cta):hover { color: var(--sky-deep); background: rgba(11,165,233,.07); }
.nav-links a.active:not(.nav-cta) { color: var(--sky-deep); font-weight: 600; }
.nav-cta {
  margin-left: .6rem !important;
  padding: .55rem 1.25rem !important;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep)) !important;
  color: #fff !important; border-radius: 999px !important;
  box-shadow: 0 4px 14px rgba(11,165,233,.3);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(11,165,233,.4); color: #fff !important; }

.mobile-toggle {
  display: none; width: 40px; height: 40px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border-radius: 8px;
}
.mobile-toggle span {
  display: block; width: 20px; height: 2px; background: var(--navy);
  border-radius: 2px; transition: all .3s var(--ease);
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Hero (split) ---- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100dvh;
  display: flex; align-items: center;
  background: linear-gradient(155deg, #061525 0%, #0B243D 45%, #0E3A5C 100%);
  color: #fff;
  overflow: hidden;
  padding: 110px 0 90px;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 40%, black, transparent 75%);
  animation: gridFade 10s ease-in-out infinite;
  pointer-events: none;
}
@keyframes gridFade { 0%,100%{opacity:.5} 50%{opacity:.85} }

.hero-orbs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(70px);
  animation: orbFloat 16s ease-in-out infinite;
}
.o1 { width: 380px; height: 380px; background: var(--sky); top: -5%; right: 5%; opacity: .35; }
.o2 { width: 260px; height: 260px; background: var(--gold); bottom: 10%; right: 25%; opacity: .2; animation-delay: -6s; }
.o3 { width: 180px; height: 180px; background: var(--sky-2); top: 40%; right: -2%; opacity: .25; animation-delay: -10s; }
@keyframes orbFloat {
  0%,100%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(18px,-28px) scale(1.06); }
  66%{ transform: translate(-14px,12px) scale(.96); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3.5rem;
  align-items: center;
  position: relative; z-index: 2;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .55rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: .4rem 1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 500; margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #34D399;
  box-shadow: 0 0 0 3px rgba(52,211,153,.3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100%{ box-shadow: 0 0 0 3px rgba(52,211,153,.3); }
  50%{ box-shadow: 0 0 0 7px rgba(52,211,153,.08); }
}

.hero h1 { color: #fff; margin-bottom: 1.2rem; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #38BDF8, #F5C542);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-lead {
  color: rgba(255,255,255,.75); font-size: 1.12rem;
  margin-bottom: 2rem; max-width: 480px; line-height: 1.7;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 2.75rem; }

.hero-trust {
  display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  padding-top: 1.75rem; border-top: 1px solid rgba(255,255,255,.1);
}
.trust-item { display: flex; flex-direction: column; }
.trust-item strong {
  font-family: var(--display); font-size: 1.85rem; font-weight: 800;
  background: linear-gradient(135deg, #F5C542, #38BDF8);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.1;
}
.trust-item span { font-size: .8rem; color: rgba(255,255,255,.55); margin-top: .2rem; }
.trust-divider { width: 1px; height: 36px; background: rgba(255,255,255,.15); }

/* Hero right panel */
.hero-panel {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 1.75rem;
  backdrop-filter: blur(16px);
  overflow: hidden;
}
.panel-glow {
  position: absolute; top: -40%; right: -20%;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(11,165,233,.25), transparent 70%);
  pointer-events: none;
}
.panel-header { margin-bottom: 1.35rem; }
.panel-tag {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--sky-2); margin-bottom: .4rem;
}
.panel-header h3 { color: #fff; font-size: 1.2rem; }

.panel-list li {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: .9rem 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.panel-list li:last-child { border-bottom: none; }
.pi {
  flex-shrink: 0; width: 32px; height: 32px;
  background: rgba(11,165,233,.15); color: var(--sky-2);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; font-family: var(--display);
}
.panel-list strong { display: block; color: #fff; font-size: .92rem; margin-bottom: .15rem; }
.panel-list p { font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.45; margin: 0; }
.panel-footer {
  margin-top: 1.1rem; padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: .78rem; color: rgba(255,255,255,.45); letter-spacing: .02em;
}

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 3;
}
.hero-scroll a {
  display: flex; width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,.3); border-radius: 14px;
  align-items: flex-start; justify-content: center; padding-top: 8px;
}
.hero-scroll span {
  width: 4px; height: 8px; background: rgba(255,255,255,.6); border-radius: 2px;
  animation: scrollBounce 1.8s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%,100%{ transform: translateY(0); opacity: 1; }
  50%{ transform: translateY(10px); opacity: .3; }
}

/* ---- Sections ---- */
.section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--soft); }
.section-header { margin-bottom: 3.25rem; }
.section-header.center { text-align: center; }
.section-header.center .lead { margin: .7rem auto 0; }

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .75s var(--ease), transform .75s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }

/* ---- About ---- */
.about-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

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

.stack-card {
  background: #fff; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .4s var(--ease);
}
.stack-card.main {
  position: relative; z-index: 2;
  padding: 2rem; display: flex; align-items: center; gap: 1.25rem;
  max-width: 340px;
}
.stack-initial {
  width: 72px; height: 72px; border-radius: 18px;
  background: linear-gradient(145deg, var(--sky), var(--navy-2));
  color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 28px rgba(11,165,233,.3);
  flex-shrink: 0;
}
.stack-info strong { display: block; font-size: 1rem; color: var(--navy); }
.stack-info span { font-size: .85rem; color: var(--muted); }

.stack-card.side {
  position: absolute; z-index: 1;
  padding: .85rem 1.1rem; display: flex; align-items: center; gap: .7rem;
  font-size: .85rem;
}
.stack-card.side strong { display: block; color: var(--navy); font-size: .88rem; }
.stack-card.side small { color: var(--muted); font-size: .75rem; }
.side-icon { font-size: 1.25rem; }
.s1 { top: 0; right: 0; animation: floatCard 5s ease-in-out infinite; }
.s2 { bottom: 20%; left: -10%; animation: floatCard 6s ease-in-out infinite .8s; }
.s3 { bottom: 0; right: 8%; animation: floatCard 5.5s ease-in-out infinite 1.4s; }
@keyframes floatCard {
  0%,100%{ transform: translateY(0); }
  50%{ transform: translateY(-10px); }
}

.about-content h2 { margin-bottom: 1.1rem; }
.about-content p { margin-bottom: 1rem; color: var(--ink-2); }
.about-highlights {
  display: flex; gap: 2rem; margin-top: 1.75rem;
  padding-top: 1.5rem; border-top: 1px solid var(--line);
}
.ah-item { display: flex; flex-direction: column; }
.ah-num {
  font-family: var(--display); font-size: 1.75rem; font-weight: 800;
  color: var(--sky-deep); line-height: 1.1;
}
.ah-item span { font-size: .85rem; color: var(--muted); margin-top: .2rem; }

/* VMV strip */
.vmv-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.vmv-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
  transition: all .35s var(--ease);
  position: relative; overflow: hidden;
}
.vmv-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--gold));
  opacity: 0; transition: opacity .3s;
}
.vmv-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.vmv-card:hover::before { opacity: 1; }
.vmv-icon {
  font-size: 1.4rem; color: var(--sky-deep); margin-bottom: .75rem;
  font-weight: 700;
}
.vmv-card h3 { margin-bottom: .6rem; font-size: 1.15rem; }
.vmv-card p { font-size: .92rem; color: var(--muted); line-height: 1.6; }
.value-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .5rem; }
.value-chips span {
  background: rgba(11,165,233,.08); color: var(--sky-deep);
  padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600;
}

/* ---- Services Bento ---- */
.services-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.25rem;
}
.svc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.85rem; box-shadow: var(--shadow);
  transition: all .4s var(--ease);
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.svc:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.svc-lg { grid-row: span 2; }
.svc-wide { grid-column: span 2; }

.svc-num {
  font-family: var(--display); font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, rgba(11,165,233,.15), rgba(11,165,233,.05));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1; margin-bottom: 1rem;
  letter-spacing: -.03em;
}
.svc h3 { margin-bottom: .55rem; }
.svc p { font-size: .92rem; color: var(--muted); margin-bottom: 1rem; }
.svc ul { margin-top: auto; }
.svc li {
  position: relative; padding-left: 1.1rem; margin-bottom: .4rem;
  font-size: .88rem; color: var(--ink-2);
}
.svc li::before {
  content: ''; position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--sky);
}
.inline-list { display: flex; flex-wrap: wrap; gap: .5rem .85rem; }
.inline-list li { padding-left: 0; }
.inline-list li::before { display: none; }
.inline-list li {
  background: var(--soft); padding: .35rem .8rem; border-radius: 999px;
  font-size: .82rem; font-weight: 500;
}

/* ---- Serve tags ---- */
.serve-layout {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 3rem;
  align-items: start;
}
.serve-tags { display: flex; flex-wrap: wrap; gap: .65rem; }
.stag {
  background: #fff; border: 1px solid var(--line);
  padding: .7rem 1.15rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  box-shadow: var(--shadow);
  transition: all .3s var(--ease);
}
.stag:hover {
  border-color: var(--sky); color: var(--sky-deep);
  transform: translateY(-3px); box-shadow: 0 8px 20px rgba(11,165,233,.12);
}

/* ---- Why ---- */
.why-section { background: var(--navy); color: #fff; }
.why-section h2 { color: #fff; }
.why-section .section-label { color: var(--sky-2); }
.why-section .section-label::before { background: linear-gradient(90deg, var(--sky-2), transparent); }
.why-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}
.why-box {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.75rem 1.4rem;
  transition: all .35s var(--ease);
}
.why-box:hover {
  background: rgba(255,255,255,.09);
  transform: translateY(-5px);
  border-color: rgba(11,165,233,.3);
}
.wb-icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; margin-bottom: 1rem;
  box-shadow: 0 6px 16px rgba(11,165,233,.3);
}
.why-box h4 { color: #fff; font-size: 1rem; margin-bottom: .45rem; }
.why-box p { font-size: .88rem; color: rgba(255,255,255,.6); line-height: 1.55; }

/* ---- Timeline projects ---- */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding-left: 2rem;
}
.timeline::before {
  content: '';
  position: absolute; left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--sky), var(--line));
}
.tl-item {
  position: relative;
  padding-bottom: 2rem;
  padding-left: 1.75rem;
}
.tl-item:last-child { padding-bottom: 0; }
.tl-marker {
  position: absolute; left: -2rem; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--sky);
  box-shadow: 0 0 0 4px rgba(11,165,233,.15);
  z-index: 1;
}
.tl-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 1.35rem 1.5rem; box-shadow: var(--shadow);
  transition: all .35s var(--ease);
}
.tl-card:hover {
  transform: translateX(6px); box-shadow: var(--shadow-lg);
  border-color: rgba(11,165,233,.25);
}
.tl-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .55rem; }
.tl-cat {
  background: rgba(11,165,233,.1); color: var(--sky-deep);
  padding: .2rem .65rem; border-radius: 999px;
  font-size: .75rem; font-weight: 650;
}
.tl-date { font-size: .8rem; color: var(--muted); font-weight: 500; }
.tl-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.tl-client { font-size: .88rem; color: var(--muted); margin-bottom: .5rem; font-weight: 500; }
.tl-card p { font-size: .9rem; color: var(--ink-2); }

/* ---- Team ---- */
.team-featured { max-width: 820px; margin: 0 auto; }
.team-lead {
  display: flex; gap: 2.5rem; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--shadow-lg);
}
.tl-photo {
  width: 140px; height: 140px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(145deg, var(--sky), var(--navy-2));
  color: #fff; font-size: 3rem; font-weight: 700; font-family: var(--display);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 36px rgba(11,165,233,.28);
  border: 4px solid #fff; outline: 3px solid rgba(11,165,233,.2);
  overflow: hidden;
}
.tl-photo img { width: 100%; height: 100%; object-fit: cover; }
.tl-role { color: var(--sky-deep); font-weight: 600; font-size: .95rem; margin: .3rem 0 1rem; }
.tl-text p { color: var(--muted); font-size: .95rem; line-height: 1.7; }

/* ---- Testimonials ---- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}
.testi-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.85rem; box-shadow: var(--shadow);
  transition: all .35s var(--ease);
  position: relative;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.testi-card::before {
  content: '"'; position: absolute; top: .7rem; left: 1.2rem;
  font-size: 4rem; color: rgba(11,165,233,.1); font-family: Georgia, serif; line-height: 1;
}
.testi-card p {
  position: relative; z-index: 1; font-style: italic;
  color: var(--ink-2); margin-bottom: 1.2rem; line-height: 1.7;
}
.testi-card footer strong { display: block; color: var(--navy); font-size: .95rem; }
.testi-card footer span { font-size: .82rem; color: var(--muted); }

/* ---- Contact ---- */
.contact-section {
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(11,165,233,.06), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(11,165,233,.05), transparent 50%),
    var(--soft);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  align-items: start;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cd-item {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: all .35s var(--ease);
}
.cd-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11,165,233,.08), transparent 60%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.cd-item:hover {
  transform: translateY(-4px) translateX(4px);
  border-color: rgba(11,165,233,.35);
  box-shadow: 0 16px 40px rgba(11,165,233,.12), var(--shadow);
}
.cd-item:hover::before { opacity: 1; }
.cd-item-static { cursor: default; }
.cd-item-static:hover { transform: translateY(-2px); }

.cd-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(11,165,233,.14), rgba(11,165,233,.05));
  color: var(--sky-deep);
  position: relative;
  z-index: 1;
  transition: all .4s var(--ease);
}
.cd-icon svg {
  width: 22px;
  height: 22px;
  transition: transform .4s var(--ease);
}
.cd-item:hover .cd-icon {
  background: linear-gradient(145deg, var(--sky), var(--sky-deep));
  color: #fff;
  box-shadow: 0 10px 24px rgba(11,165,233,.35);
  transform: scale(1.08) rotate(-4deg);
}
.cd-item:hover .cd-icon svg {
  transform: scale(1.08);
}

.cd-body {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.cd-body strong {
  display: block;
  color: var(--navy);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.cd-body span {
  display: block;
  font-size: .95rem;
  color: var(--ink-2);
  font-weight: 500;
  line-height: 1.45;
}
.cd-body span + span {
  color: var(--muted);
  font-weight: 400;
  font-size: .88rem;
}

.cd-arrow {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--sky-deep);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateX(-8px);
  transition: all .35s var(--ease);
}
.cd-arrow svg { width: 14px; height: 14px; }
.cd-item:hover .cd-arrow {
  opacity: 1;
  transform: translateX(0);
  background: rgba(11,165,233,.12);
}

.contact-note {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  margin-top: 1.5rem;
  padding: 1.1rem 1.25rem;
  background: rgba(11,165,233,.06);
  border: 1px dashed rgba(11,165,233,.25);
  border-radius: 14px;
}
.cn-icon {
  font-size: 1.25rem;
  line-height: 1;
}
.contact-note strong {
  display: block;
  color: var(--navy);
  font-size: .9rem;
  margin-bottom: .15rem;
}
.contact-note p {
  margin: 0;
  font-size: .85rem;
  color: var(--muted);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 20px 50px rgba(6,21,37,.08);
  position: relative;
  overflow: hidden;
}
.contact-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--sky-deep), var(--gold));
}
.form-header {
  margin-bottom: 1.5rem;
}
.form-header h3 {
  font-size: 1.25rem;
  margin-bottom: .35rem;
}
.form-header p {
  margin: 0;
  font-size: .9rem;
  color: var(--muted);
}
.form-group { margin-bottom: 1.15rem; }
.form-group label {
  display: block;
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: .4rem;
  color: var(--navy);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: .95rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--soft);
  color: var(--ink);
  transition: all .3s var(--ease);
}
.form-group input:hover,
.form-group textarea:hover {
  border-color: #cbd5e1;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sky);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(11,165,233,.14);
  transform: translateY(-1px);
}
.form-group textarea { min-height: 130px; resize: vertical; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.btn-send {
  margin-top: .35rem;
  padding: 1rem 1.75rem;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}
.btn-send span,
.btn-send svg {
  position: relative;
  z-index: 1;
  transition: transform .3s var(--ease);
}
.btn-send::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.2), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.btn-send:hover::after { opacity: 1; }
.btn-send:hover span { transform: translateX(-2px); }
.btn-send:hover svg { transform: translateX(4px); }

.alert {
  padding: .95rem 1.15rem;
  border-radius: 12px;
  margin-bottom: 1.15rem;
  font-size: .9rem;
  font-weight: 500;
  animation: alertIn .4s var(--ease);
}
@keyframes alertIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.alert-success { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert-error { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }

/* Enhanced global buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--sky) 0%, var(--sky-deep) 100%);
  color: #fff;
  box-shadow: 0 6px 24px rgba(11, 165, 233, 0.35);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transition: left .55s var(--ease);
}
.btn-primary:hover::before { left: 120%; }
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(11, 165, 233, 0.45);
  color: #fff;
}
.btn-primary:active { transform: translateY(-1px); }

/* Enhanced cards */
.card, .svc, .vmv-card, .team-member, .testi-card, .tl-card, .why-box {
  transition: all .4s var(--ease);
}
.card:hover, .svc:hover, .vmv-card:hover, .team-member:hover {
  transform: translateY(-8px);
}

/* ---- Footer ---- */
.footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  padding: 4rem 0 1.75rem; position: relative;
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(11,165,233,.35), transparent);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.25rem; margin-bottom: 3rem;
}
.footer h4 { color: #fff; margin-bottom: 1.15rem; font-size: .95rem; }
.footer p { font-size: .88rem; line-height: 1.7; }
.footer-links a {
  display: block; color: rgba(255,255,255,.6); margin-bottom: .55rem;
  font-size: .88rem; transition: all .2s;
}
.footer-links a:hover { color: var(--sky-2); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: .82rem; color: rgba(255,255,255,.4);
}

/* ---- Admin (kept) ---- */

















/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-right { max-width: 480px; }
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .services-bento { grid-template-columns: 1fr 1fr; }
  .svc-lg { grid-row: auto; }
  .svc-wide { grid-column: span 2; }
  .why-row { grid-template-columns: 1fr 1fr; }
  .serve-layout { grid-template-columns: 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .cd-arrow { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .vmv-strip { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(255,255,255,.98); backdrop-filter: blur(16px);
    flex-direction: column; padding: 1rem 1.25rem 1.5rem; gap: .1rem;
    box-shadow: var(--shadow-lg);
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: all .35s var(--ease); border-bottom: 1px solid var(--line);
  }
  .nav-links.open {
    transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto;
  }
  .nav-links a { padding: .85rem 1rem; width: 100%; border-radius: 10px; }
  .nav-cta { margin: .6rem 0 0 !important; width: 100%; justify-content: center; }
  .mobile-toggle { display: flex; }

  .hero { padding: 100px 0 70px; min-height: auto; }
  .hero-right { display: none; }
  .hero-scroll { display: none; }
  .services-bento { grid-template-columns: 1fr; }
  .svc-wide { grid-column: auto; }
  .why-row { grid-template-columns: 1fr; }
  .team-lead { flex-direction: column; text-align: center; padding: 2rem 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 4.25rem 0; }
  
  
  .stack-card.side { display: none; }
  .about-card-stack { min-height: auto; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; }
  .hero-trust { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .trust-divider { display: none; }
  .contact-form { padding: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Logo image ---- */
.logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 40px;
  width: auto;
  max-width: 200px;
  display: block;
  object-fit: contain;
  transition: opacity 0.25s ease;
}
.logo:hover .logo-img {
  opacity: 0.88;
}
.footer-logo .logo-img {
  height: 44px;
  max-width: 220px;
  /* Logo is dark blue on transparent — invert for dark footer */
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-logo:hover .logo-img {
  opacity: 1;
}

.stack-photo {
  padding: 0 !important;
  overflow: hidden;
}
.stack-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- Full team grid ---- */
.team-grid-full {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.team-member {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.35s var(--ease);
}
.team-member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(11, 165, 233, 0.25);
}
.tm-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--sky), var(--navy-2));
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 20px rgba(11, 165, 233, 0.25);
}
.team-member h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--navy);
}
.tm-role {
  font-size: 0.82rem;
  color: var(--sky-deep);
  font-weight: 600;
}

.team-featured { margin-bottom: 0.5rem; }

@media (max-width: 768px) {
  .logo-img { height: 34px; max-width: 160px; }
}

.tm-photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 24px rgba(11, 165, 233, 0.2);
  border: 3px solid #fff;
  outline: 2px solid rgba(11, 165, 233, 0.25);
  transition: all 0.35s var(--ease);
}
.tm-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-member:hover .tm-photo {
  transform: scale(1.06);
  outline-color: var(--sky);
  box-shadow: 0 12px 28px rgba(11, 165, 233, 0.3);
}

/* ========== ADMIN CMS ========== */
.admin-body {
  background: #F1F5F9;
  min-height: 100vh;
  font-family: var(--font);
}
.admin-sidebar {
  position: fixed;
  left: 0; top: 0; bottom: 0;
  width: 260px;
  background: linear-gradient(180deg, #0B1F33 0%, #0f2a45 100%);
  color: #fff;
  padding: 1.5rem 1.1rem;
  display: flex;
  flex-direction: column;
  z-index: 100;
  box-shadow: 8px 0 32px rgba(6,21,37,.15);
}
.admin-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.75rem;
  padding: 0 .35rem;
}
.admin-logo { display: block; text-decoration: none; }
.admin-logo-img {
  height: 36px;
  width: auto;
  max-width: 160px;
  filter: brightness(0) invert(1);
  display: block;
}
.admin-badge {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .08em;
  background: rgba(11,165,233,.25);
  color: #7dd3fc;
  padding: .2rem .45rem;
  border-radius: 6px;
  border: 1px solid rgba(11,165,233,.35);
}
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  flex: 1;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem .9rem;
  border-radius: 10px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: all .25s var(--ease);
}
.admin-nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .85;
}
.admin-nav a:hover {
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: translateX(3px);
}
.admin-nav a.active {
  background: linear-gradient(135deg, rgba(11,165,233,.35), rgba(11,165,233,.15));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(11,165,233,.3);
}
.admin-sidebar-foot {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  gap: .85rem;
}
.admin-home-btn {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: rgba(11,165,233,.15);
  color: #7dd3fc;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: all .25s var(--ease);
}
.admin-home-btn svg { width: 16px; height: 16px; }
.admin-home-btn:hover {
  background: rgba(11,165,233,.28);
  color: #fff;
  transform: translateY(-2px);
}
.admin-user-chip {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .5rem .35rem;
}
.admin-user-avatar {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--sky), var(--sky-deep));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}
.admin-user-chip strong {
  display: block;
  font-size: .85rem;
  color: #fff;
}
.admin-user-chip a {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
  text-decoration: none;
}
.admin-user-chip a:hover { color: #f87171; }

.admin-main {
  margin-left: 260px;
  padding: 2rem 2.25rem 3rem;
  min-height: 100vh;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.admin-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--sky-deep);
  margin: 0 0 .25rem;
}
.admin-header h1 {
  font-size: 1.65rem;
  margin: 0;
  color: var(--navy);
}
.admin-header-actions {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn-ghost-admin {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .65rem 1.1rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  transition: all .25s var(--ease);
}
.btn-ghost-admin:hover {
  border-color: var(--sky);
  color: var(--sky-deep);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-outline-admin {
  display: inline-flex;
  align-items: center;
  padding: .65rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: .875rem;
  text-decoration: none;
  transition: all .25s var(--ease);
}
.btn-outline-admin:hover {
  border-color: var(--sky);
  color: var(--sky-deep);
}

/* Animated stat cards */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: all .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(6,21,37,.1);
}
.stat-card:hover::after { transform: scaleX(1); }
.stat-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform .35s var(--ease);
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-card:hover .stat-icon { transform: scale(1.1) rotate(-4deg); }
.stat-value {
  display: block;
  font-family: var(--display);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: .15rem;
}
.stat-card--messages .stat-icon { background: #FEF3C7; color: #B45309; }
.stat-card--messages::after { background: #F59E0B; }
.stat-card--projects .stat-icon { background: #E0F2FE; color: #0369A1; }
.stat-card--projects::after { background: var(--sky); }
.stat-card--team .stat-icon { background: #EDE9FE; color: #6D28D9; }
.stat-card--team::after { background: #8B5CF6; }
.stat-card--testimonials .stat-icon { background: #D1FAE5; color: #047857; }
.stat-card--testimonials::after { background: #10B981; }
.stat-card--users .stat-icon { background: #FCE7F3; color: #BE185D; }
.stat-card--users::after { background: #EC4899; }

.admin-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.admin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
}
.admin-panel-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy);
}
.link-more {
  font-size: .875rem;
  font-weight: 600;
  color: var(--sky-deep);
  text-decoration: none;
}
.link-more:hover { text-decoration: underline; }
.admin-empty { color: var(--muted); margin: 0; }
.table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td {
  padding: .85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .9rem;
}
.admin-table th {
  background: var(--soft);
  font-weight: 600;
  color: var(--navy);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.admin-table tr { transition: background .2s; }
.admin-table tbody tr:hover { background: rgba(11,165,233,.04); }
.admin-actions { display: flex; gap: .75rem; }
.admin-actions a {
  font-size: .82rem;
  font-weight: 600;
  color: var(--sky-deep);
  text-decoration: none;
}
.admin-actions a:hover { text-decoration: underline; }
.admin-actions .text-danger { color: #DC2626; }

.badge {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-success { background: #D1FAE5; color: #065F46; }
.badge-warning { background: #FEF3C7; color: #92400E; }

.admin-quick {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: all .35s var(--ease);
}
.quick-card:hover {
  transform: translateY(-5px);
  border-color: rgba(11,165,233,.35);
  box-shadow: 0 14px 36px rgba(11,165,233,.12);
}
.quick-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(11,165,233,.15), rgba(11,165,233,.05));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--sky-deep);
  flex-shrink: 0;
}
.quick-card strong {
  display: block;
  color: var(--navy);
  font-size: .95rem;
  margin-bottom: .15rem;
}
.quick-card span {
  font-size: .8rem;
  color: var(--muted);
}

.admin-form .form-group select {
  width: 100%;
  padding: .95rem 1.1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  font-family: inherit;
  font-size: .95rem;
  background: var(--soft);
}

.reveal-admin {
  opacity: 0;
  transform: translateY(16px);
  animation: adminIn .5s var(--ease) forwards;
}
.reveal-admin.is-visible { opacity: 1; }
@keyframes adminIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Login */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background:
    radial-gradient(ellipse 60% 50% at 20% 20%, rgba(11,165,233,.12), transparent 50%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(11,165,233,.08), transparent 50%),
    #F1F5F9;
}
.login-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 24px 60px rgba(6,21,37,.12);
  border: 1px solid var(--line);
  animation: adminIn .5s var(--ease);
}
.login-brand {
  text-align: center;
  margin-bottom: 1.75rem;
}
.login-logo {
  height: 48px;
  width: auto;
  max-width: 240px;
  margin: 0 auto 1rem;
  display: block;
}
.login-brand p {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
}
.login-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.login-footer a {
  color: var(--sky-deep);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.login-footer a:hover { text-decoration: underline; }


/* ========== ADMIN MOBILE RESPONSIVE ========== */
.admin-topbar {
  display: none;
  position: sticky;
  top: 0;
  z-index: 200;
  height: 56px;
  padding: 0 1rem;
  background: #0B1F33;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  box-shadow: 0 4px 20px rgba(6,21,37,.2);
}
.admin-menu-btn {
  width: 42px;
  height: 42px;
  border: 0;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}
.admin-menu-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.admin-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-menu-btn.active span:nth-child(2) { opacity: 0; }
.admin-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.admin-topbar-brand { flex: 1; display: flex; justify-content: center; }
.admin-topbar-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  filter: brightness(0) invert(1);
}
.admin-topbar-home {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  text-decoration: none;
  font-size: 1.1rem;
}
.admin-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,21,37,.55);
  z-index: 250;
  opacity: 0;
  transition: opacity .25s ease;
  backdrop-filter: blur(2px);
}
.admin-overlay.is-visible { opacity: 1; }
.admin-sidebar-close {
  display: none;
  margin-left: auto;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

body.admin-menu-open { overflow: hidden; }

@media (max-width: 1100px) {
  .admin-stats { grid-template-columns: repeat(3, 1fr); }
  .admin-quick { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .admin-topbar { display: flex; }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 86vw);
    max-width: 300px;
    transform: translateX(-105%);
    transition: transform .3s cubic-bezier(.22,1,.36,1);
    z-index: 300;
    height: 100%;
    height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: 12px 0 40px rgba(0,0,0,.25);
  }
  .admin-sidebar.is-open {
    transform: translateX(0);
  }
  .admin-sidebar-close { display: flex; align-items: center; justify-content: center; }
  .admin-brand { flex-wrap: nowrap; }

  .admin-main {
    margin-left: 0;
    padding: 1rem 1rem 2.5rem;
    padding-top: .75rem;
  }

  .admin-header {
    flex-direction: column;
    align-items: stretch;
    gap: .85rem;
    margin-bottom: 1.25rem;
  }
  .admin-header h1 { font-size: 1.35rem; }
  .admin-header-actions {
    width: 100%;
  }
  .admin-header-actions .btn,
  .admin-header-actions .btn-ghost-admin,
  .admin-header-actions .btn-outline-admin,
  .admin-header-actions .btn-primary {
    flex: 1;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }

  .admin-stats {
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
  }
  .stat-card {
    padding: 1rem .85rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
  .stat-value { font-size: 1.4rem; }
  .stat-label { font-size: .72rem; }

  .admin-quick {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .admin-panel {
    padding: 1rem;
    border-radius: 14px;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -.25rem;
    padding-bottom: .25rem;
  }
  .admin-table {
    min-width: 560px;
  }
  .admin-table th, .admin-table td {
    padding: .7rem .65rem;
    font-size: .82rem;
  }

  .admin-form .form-row {
    grid-template-columns: 1fr !important;
  }
  .form-row {
    grid-template-columns: 1fr !important;
  }

  .admin-actions {
    flex-wrap: wrap;
    gap: .5rem;
  }
  .admin-actions a {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    padding: .25rem .4rem;
  }

  .btn-block, .btn-send {
    min-height: 48px;
  }
}

@media (max-width: 640px) {
  .admin-stats {
    grid-template-columns: 1fr;
  }
  .stat-card {
    flex-direction: row;
    align-items: center;
  }
  .admin-header-actions {
    flex-direction: column;
  }
  .admin-header-actions > * {
    width: 100%;
  }
  .login-card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
    margin: .5rem;
  }
  .login-logo {
    height: 40px;
  }
  .admin-panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
}

@media (max-width: 400px) {
  .admin-main { padding: .85rem .75rem 2rem; }
  .stat-icon { width: 42px; height: 42px; }
  .admin-table { min-width: 480px; }
}

/* Touch-friendly nav items */
@media (hover: none) and (pointer: coarse) {
  .admin-nav a {
    min-height: 48px;
    padding: .9rem 1rem;
  }
  .stat-card:hover { transform: none; }
  .quick-card:hover { transform: none; }
  .stat-card:active { transform: scale(0.98); }
  .quick-card:active { transform: scale(0.98); }
}

