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

:root {
  --bg: #050813;
  --bg-soft: #0b1224;
  --card: #0f162d;
  --text: #e9ecf7;
  --muted: #b6c0d9;
  --accent: #9b7bff;
  --accent-2: #33b0ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 70px rgba(4, 8, 20, 0.65);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Sora', system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(155, 123, 255, 0.16), transparent 30%),
    radial-gradient(circle at 82% 8%, rgba(51, 176, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #050813 0%, #070b18 50%, #0a1022 100%);
  color: var(--text);
  line-height: 1.6;
}

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px clamp(18px, 5vw, 32px) 64px;
}

header, .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(15,22,45,0.92), rgba(11,17,33,0.9));
  backdrop-filter: blur(10px);
  position: sticky;
  top: 18px;
  z-index: 10;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}

.topbar { position: static; top: auto; }

.brand {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 34px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  flex-wrap: wrap;
}

nav a {
  color: inherit;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

nav a:hover { color: var(--text); background: rgba(155,123,255,0.12); }

.ghost-btn, .solid-btn {
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ghost-btn:hover { background: rgba(155,123,255,0.12); transform: translateY(-1px); }

.solid-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #0a0d14;
  border-color: transparent;
  box-shadow: 0 15px 35px rgba(51, 176, 255, 0.35);
}

.solid-btn:hover { transform: translateY(-1px); }

.hero {
  margin: 52px 0 48px;
  padding: clamp(24px, 6vw, 46px);
  border-radius: 28px;
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(5, 8, 19, 0.78), rgba(10, 16, 34, 0.92)), url('../assets/62958f4ec29f5c7017c53e23_essonight.png');
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(155,123,255,0.22), transparent 60%);
  top: -60px;
  right: -40px;
  filter: blur(10px);
}

.hero::before {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(51,176,255,0.16), transparent 60%);
  bottom: -80px;
  left: -60px;
  filter: blur(14px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(155, 123, 255, 0.15);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

h1 {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  margin: 18px 0 14px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}

.lede {
  max-width: 720px;
  color: var(--muted);
  font-size: 16px;
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 28px;
}

.hero-actions--spaced { margin-top: 18px; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.metric {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(155,123,255,0.06));
}

.metric strong {
  display: block;
  font-size: 22px;
  color: var(--text);
}

.section { margin: 56px 0; }

.section h2 {
  margin: 0 0 12px;
  font-size: 26px;
  letter-spacing: -0.01em;
}

.section p.lede { margin: 0 0 24px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(170deg, rgba(15,22,45,0.86), rgba(12,18,36,0.92));
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(245,165,36,0.3);
  box-shadow: var(--shadow);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(155,123,255,0.22);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  width: fit-content;
}

.card .tag {
  background: rgba(245, 165, 36, 0.12);
  color: var(--accent-2);
  font-weight: 600;
  margin-bottom: 10px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}

.service-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 12px;
  margin: 0 0 12px;
  border: 1px solid var(--border);
  background: #0b1224;
}

.list {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}

.list li::before {
  content: '•';
  color: var(--accent);
  margin-right: 8px;
}

.work-card { background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(12,18,36,0.92)); }

.work-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
}

.process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.step {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed var(--border);
  background: rgba(255,255,255,0.02);
}

.step strong {
  display: block;
  margin-bottom: 6px;
}

.quote {
  margin: 28px 0;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(155,123,255,0.14), rgba(51,176,255,0.12));
  box-shadow: var(--shadow);
}

.quote p {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 17px;
}

.quote small { color: var(--muted); }

.cta {
  text-align: center;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(155,123,255,0.22), rgba(51,176,255,0.22));
  box-shadow: var(--shadow);
  margin-top: 32px;
}

.cta h3 { margin: 0 0 10px; font-size: 22px; }
.cta p { margin: 0 0 18px; color: var(--text); }

.contact {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact a {
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(155, 123, 255, 0.12);
  color: var(--text);
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.12);
}

.page-content {
  margin-top: 32px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  background: rgba(11,18,36,0.8);
  box-shadow: 0 12px 35px rgba(0,0,0,0.35);
}

.page-body { margin-top: 12px; color: var(--muted); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.project-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
  min-height: 240px;
  box-shadow: var(--shadow);
  isolation: isolate;
  cursor: pointer;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(1.05);
  transition: transform 0.6s ease, filter 0.3s ease;
  z-index: 0;
  background: var(--bg, #050813);
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,8,19,0.1), rgba(5,8,19,0.55), rgba(5,8,19,0.85));
  z-index: 1;
  transition: background 0.3s ease;
}

.project-card:hover::before {
  transform: scale(1.04);
  filter: saturate(1.15);
}

.project-card:hover::after {
  background: linear-gradient(180deg, rgba(5,8,19,0.18), rgba(5,8,19,0.6), rgba(5,8,19,0.92));
}

.project-meta {
  position: absolute;
  inset: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  z-index: 2;
  gap: 6px;
}

.project-meta h3 {
  margin: 0;
  font-size: 18px;
}

.project-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

footer {
  margin-top: 64px;
  color: var(--muted);
  font-size: 13px;
  background: linear-gradient(180deg, rgba(15,22,45,0.8), rgba(9,13,27,0.95));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px clamp(18px, 5vw, 32px);
  box-shadow: var(--shadow);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-brand img {
  height: 30px;
  width: auto;
  display: block;
}

.footer-title {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.footer-links {
  display: grid;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

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

.footer-ack {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
}

.footer-contact {
  display: grid;
  gap: 6px;
  color: var(--muted);
  margin-top: 10px;
}

.client-marquee {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  padding: 10px;
  position: relative;
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 90%, transparent);
}

.client-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 18s linear infinite;
  align-items: center;
}

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.logo-tile {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,0.03);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
}

.logo-tile img {
  max-width: 120px;
  max-height: 60px;
  width: auto;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.35));
}

.flags {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin-top: 12px;
}

.flags img {
  height: 30px;
  width: auto;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 19, 0.82);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-dialog {
  width: min(980px, 96vw);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(15,22,45,0.96), rgba(9,13,27,0.98));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  overflow: hidden;
  position: relative;
}

.lightbox-media { background: #000; }
.lightbox-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.lightbox-body { padding: 18px; display: grid; gap: 10px; }
.lightbox-body h3 { margin: 0; font-size: 20px; }
.lightbox-body p { margin: 0; color: var(--muted); font-size: 14px; }

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid var(--border);
  background: rgba(155,123,255,0.18);
  color: var(--text);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

@media (max-width: 900px) {
  .lightbox-dialog { grid-template-columns: 1fr; }
  .lightbox-media { max-height: 52vh; }
}

@media (max-width: 760px) {
  header { position: static; top: auto; flex-direction: column; align-items: flex-start; }
  .topbar { flex-direction: column; align-items: flex-start; }
  nav { flex-wrap: wrap; }
  .hero { margin-top: 32px; }
}
