@import url('fonts/fonts.css');

:root {
  --bg: #060b12;
  --bg-soft: #0d1622;
  --panel: rgba(20, 34, 49, 0.68);
  --line: rgba(130, 180, 220, 0.28);
  --text: #e7f0f9;
  --muted: #a8bdd0;
  --accent: #39d7ff;
  --accent-warm: #f4b942;
  --radius: 22px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(90% 60% at 0% 0%, rgba(57, 215, 255, 0.2), transparent 45%),
    radial-gradient(70% 50% at 100% 20%, rgba(244, 185, 66, 0.16), transparent 48%),
    linear-gradient(170deg, #060b12 0%, #0d1622 45%, #0c1118 100%);
  line-height: 1.5;
}

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

.noise-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 4vw 0.7rem;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 18, 0.82);
  border-bottom: 1px solid rgba(157, 194, 224, 0.18);
}

/* Top row: empty spacer | logo | lang switcher */
.header-top {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.header-top-spacer {
  /* mirrors lang-switcher width so logo stays centred */
}

.brand-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-wrap a {
  text-decoration: none;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.brand-tagline {
  font-family: "Oxanium", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--accent);
  opacity: 0.75;
  white-space: nowrap;
}

.brand-logo {
  width: auto;
  height: 54px;
  max-width: min(280px, 45vw);
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(83, 227, 255, 0.28)) drop-shadow(0 0 30px rgba(255,255,255,0.08));
}

.lang-switcher-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.3rem;
}

.main-nav a {
  font-family: "Oxanium", "Segoe UI", sans-serif;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 180ms ease;
  white-space: nowrap;
}

.main-nav a:hover {
  border-color: var(--line);
  background: rgba(57, 215, 255, 0.12);
}

.section {
  width: min(1160px, 92vw);
  margin: 5rem auto;
}

.hero {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.1fr 1fr;
  margin-top: 3rem;
}

.hero-content h1 {
  font-family: "Oxanium", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.02;
  margin: 0.2rem 0 1rem;
  text-transform: uppercase;
}

.hero-content h1 span {
  display: block;
  color: var(--accent);
}

.hero-content p {
  max-width: 58ch;
  color: var(--muted);
}

.hero-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateY(0);
  animation: riseIn 900ms ease both;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.kicker {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.17em;
  color: var(--accent-warm);
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.75rem 1.4rem;
  font-weight: 600;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn-primary {
  background: linear-gradient(95deg, #19c8ec, #46ebff);
  color: #02141c;
  box-shadow: 0 10px 25px rgba(57, 215, 255, 0.35);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.section-heading h2 {
  font-family: "Oxanium", "Segoe UI", sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.5rem, 3.4vw, 2.8rem);
  margin: 0.35rem 0;
}

.section-heading p {
  color: var(--muted);
  max-width: 66ch;
}

.split-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.glass-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.glass-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.glass-card div {
  padding: 1rem 1.1rem 1.3rem;
}

.glass-card h3 {
  margin: 0;
  font-family: "Oxanium", "Segoe UI", sans-serif;
}

.glass-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.industry-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.industry-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(14, 24, 35, 0.72);
  min-height: 240px;
  position: relative;
}

.industry-card img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
  filter: saturate(0.94) contrast(1.03);
}

.industry-card h3 {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  margin: 0;
  font-family: "Oxanium", "Segoe UI", sans-serif;
  background: rgba(3, 11, 18, 0.75);
  border: 1px solid rgba(153, 204, 242, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.9rem;
}

.capability-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.capability-group {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(12, 23, 34, 0.72);
}

.capability-group h3 {
  margin-top: 0;
  font-family: "Oxanium", "Segoe UI", sans-serif;
  color: #d6f7ff;
}

.capability-group ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.capability-group li + li {
  margin-top: 0.45rem;
}

.portrait-strip {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.portrait-strip img {
  border-radius: 14px;
  border: 1px solid var(--line);
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.timeline {
  margin-top: 1.7rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.timeline article {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(16, 28, 41, 0.85), rgba(7, 15, 24, 0.85));
  padding: 1rem;
}

.timeline h3 {
  margin-top: 0;
  font-family: "Oxanium", "Segoe UI", sans-serif;
}

.timeline p {
  margin-bottom: 0;
  color: var(--muted);
}

.process-band {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.process-band span {
  border: 1px solid rgba(244, 185, 66, 0.4);
  color: #ffe2ad;
  border-radius: 999px;
  padding: 0.4rem 0.75rem;
  background: rgba(244, 185, 66, 0.08);
}

.contact {
  padding-bottom: 2rem;
}

.contact-panel {
  border-radius: 28px;
  border: 1px solid rgba(120, 207, 255, 0.5);
  background:
    linear-gradient(120deg, rgba(6, 18, 27, 0.94), rgba(15, 34, 49, 0.92)),
    radial-gradient(circle at 92% 10%, rgba(57, 215, 255, 0.25), transparent 38%);
  padding: clamp(1.2rem, 4vw, 2.3rem);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
}

.contact-panel h2 {
  font-family: "Oxanium", "Segoe UI", sans-serif;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.5rem, 4vw, 3rem);
}

.contact-panel p {
  color: var(--muted);
  max-width: 60ch;
}

.contact-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.contact-grid > div {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  background: rgba(12, 23, 34, 0.62);
}

.contact-grid .label {
  margin: 0;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
}

.contact-grid p {
  margin: 0.35rem 0 0;
  color: var(--text);
}

.contact-grid a {
  color: #9df4ff;
}

.contact-btn {
  margin-top: 1.4rem;
}

.site-footer {
  width: min(1160px, 92vw);
  margin: 0 auto 1.4rem;
  border-top: 1px solid rgba(157, 194, 224, 0.22);
  padding-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  color: var(--muted);
}

.site-footer a {
  color: #9bdff1;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.lang-btn {
  font-size: 1.4rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity 180ms ease, transform 180ms ease;
  border-radius: 6px;
  padding: 0.1rem 0.2rem;
  border: 1px solid transparent;
  cursor: default;
  user-select: none;
}

a.lang-btn {
  cursor: pointer;
}

.lang-btn:hover {
  opacity: 0.85;
  transform: scale(1.12);
}

.lang-btn.lang-active {
  opacity: 1;
  border-color: rgba(57, 215, 255, 0.35);
  background: rgba(57, 215, 255, 0.1);
}

/* ─── Animations ─── */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ─── Responsive: tablet (≤ 1050px) ─── */
@media (max-width: 1050px) {
  .section {
    margin: 3.5rem auto;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    max-height: 340px;
    overflow: hidden;
  }

  .hero-media img {
    width: 100%;
    height: 340px;
    object-fit: cover;
  }

  .split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .capability-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ─── Responsive: large phone (≤ 768px) ─── */
@media (max-width: 768px) {
  .brand-logo {
    height: 44px;
  }

  .main-nav a {
    font-size: 0.82rem;
    padding: 0.4rem 0.65rem;
  }

  .hero-content h1 {
    font-size: clamp(1.7rem, 7vw, 2.6rem);
  }

  .split-grid {
    grid-template-columns: 1fr;
  }

  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .glass-card img {
    height: 200px;
  }

  .section-heading h2 {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }

  .process-band {
    gap: 0.4rem;
  }

  .process-band span {
    font-size: 0.82rem;
    padding: 0.35rem 0.6rem;
  }
}

/* ─── Responsive: phone (≤ 480px) ─── */
@media (max-width: 480px) {
  .site-header {
    padding: 0.5rem 3vw 0.6rem;
    gap: 0.4rem;
  }

  .brand-logo {
    height: 36px;
    max-width: 52vw;
  }

  .lang-btn {
    font-size: 1.2rem;
  }

  .main-nav {
    gap: 0.2rem;
  }

  .main-nav a {
    font-size: 0.78rem;
    padding: 0.35rem 0.55rem;
    letter-spacing: 0;
  }

  .section {
    margin: 2.5rem auto;
    width: 94vw;
  }

  .hero-content h1 {
    font-size: clamp(1.5rem, 8vw, 2rem);
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .contact-panel h2 {
    font-size: clamp(1.2rem, 6vw, 1.8rem);
  }

  .site-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
  }

  /* legal pages */
  .legal-page h1 {
    font-size: clamp(1.4rem, 7vw, 2rem);
  }

  .legal-page h2 {
    font-size: 0.95rem;
  }
}
