/* ═══════════════════════════════════════════════════
   ATHERA — Spatial UI / Ambient Interface
   Depth through layering. Background = atmosphere.
   Foreground = clear, readable, intentional.
   ═══════════════════════════════════════════════════ */

:root {
  /* Background layer */
  --bg-deep:   #080D1B;

  /* Surface layer — cards & panels float above background */
  --surface:       rgba(13, 19, 42, 0.78);
  --surface-light: rgba(18, 26, 52, 0.65);
  --surface-border: rgba(255, 255, 255, 0.06);
  --surface-border-h: rgba(255, 255, 255, 0.12);
  --surface-shadow:
    0 1px 2px rgba(0, 0, 0, 0.12),
    0 4px 16px rgba(0, 0, 0, 0.16),
    0 12px 40px rgba(0, 0, 0, 0.1);
  --surface-shadow-lg:
    0 2px 4px rgba(0, 0, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.18),
    0 20px 60px rgba(0, 0, 0, 0.12);

  /* Text */
  --text:   #E2E8F0;
  --text-2: #7C8BA1;

  /* Accent — one blue, used sparingly */
  --blue:    #3B82F6;
  --blue-h:  #60A5FA;
  --blue-bg: rgba(59, 130, 246, 0.1);

  /* Typography */
  --font:  'Inter', system-ui, -apple-system, sans-serif;
  --max-w: 1120px;
  --nav-h: 4rem;
  --ease:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Reset ─────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ═══════════════════════════════════════════════════
   AMBIENT BACKGROUND
   Fixed gradient mesh. Slowly drifts via CSS animation.
   Shifts vertically on scroll via JS (parallax).
   ═══════════════════════════════════════════════════ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

.bg__shift {
  position: absolute;
  inset: -15%;
  will-change: transform;
}

.bg__mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 50% at 25% 25%, rgba(37, 99, 235, 0.11), transparent 70%),
    radial-gradient(ellipse 50% 55% at 72% 68%, rgba(56, 140, 248, 0.07), transparent 65%),
    radial-gradient(ellipse 55% 45% at 48% 45%, rgba(30, 64, 175, 0.06), transparent 60%);
  animation: meshDrift 35s ease-in-out infinite alternate;
}

@keyframes meshDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(2.5%, -1.5%) scale(1.04); }
}

/* ── Reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* All content sits above the fixed background */
.nav, .hero, .services, .careers, .contact, .footer, .page-hero, .svc-section {
  position: relative;
  z-index: 1;
}

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.2);
}
.btn--primary:hover {
  background: var(--blue-h);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}
.btn--primary:active { transform: translateY(0); }

.btn--outline {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--surface-border-h);
}
.btn--outline:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.btn--nav {
  padding: 0.5rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
}
.btn--nav:hover { background: var(--blue-h); }

/* ── Section headings ──────────────────────────────── */
.section-head { margin-bottom: 3rem; }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-2);
  font-size: 1.0625rem;
  max-width: 520px;
}

/* ── Shared surface ────────────────────────────────── */
.surface {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: var(--surface-shadow-lg);
}

/* ═══════════════════════════════════════════════════
   NAV
   ═══════════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s, box-shadow 0.35s;
}

.nav.scrolled {
  background: rgba(8, 13, 27, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--surface-border);
}

.nav__container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text);
}
.nav__logo img {
  display: block;
  margin-top: 4px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.15s;
}
.nav__link:hover,
.nav__link.active { color: var(--text); }

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 10;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
.nav__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ═══════════════════════════════════════════════════
   HERO
   Content floats directly on the ambient background.
   No panel — maximum atmospheric presence.
   ═══════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--nav-h) 1.5rem 4rem;
}

.hero__wrap {
  max-width: 740px;
}

.hero__title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}

.hero__accent {
  color: var(--blue);
}

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.25rem;
}

.hero__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════
   SERVICES
   Cards are individual floating surfaces.
   Grid gaps reveal the background beneath.
   ═══════════════════════════════════════════════════ */
.services {
  padding: 8rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.services > .container {
  width: 100%;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.services__cta {
  text-align: center;
  margin-top: 2.5rem;
}

.card {
  position: relative;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  box-shadow: var(--surface-shadow);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(59, 130, 246, 0.15);
  box-shadow: var(--surface-shadow-lg);
  transform: translateY(-2px);
}

.card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--blue-bg);
  border-radius: 10px;
  color: var(--blue);
  margin-bottom: 1.25rem;
}

.card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.card__tags li {
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-bg);
  border-radius: 6px;
}

/* ═══════════════════════════════════════════════════
   CAREERS
   Card grid matching Services layout for visual
   consistency. Reuses .card styles from Services.
   ═══════════════════════════════════════════════════ */
.careers {
  padding: 8rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.careers > .container {
  width: 100%;
}

.careers__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.careers__cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* ═══════════════════════════════════════════════════
   CONTACT
   Individual floating cards. Centered, vertical.
   ═══════════════════════════════════════════════════ */
.contact-footer {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.contact {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 4rem 0;
}
.contact > .container {
  width: 100%;
}

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  box-shadow: var(--surface-shadow);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
  cursor: pointer;
}

.contact-card:hover {
  border-color: var(--surface-border-h);
  box-shadow: var(--surface-shadow-lg);
  transform: translateY(-2px);
}

.contact-card--primary {
  border-color: rgba(59, 130, 246, 0.12);
}
.contact-card--primary:hover {
  border-color: rgba(59, 130, 246, 0.25);
}

.contact-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--blue-bg);
  border-radius: 12px;
  color: var(--blue);
  margin-bottom: 1rem;
}

.contact-card strong {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.125rem;
}

.contact-card__detail {
  font-size: 0.8125rem;
  color: var(--text-2);
}

/* ═══════════════════════════════════════════════════
   FOOTER
   Subtle surface at the bottom of the page.
   ═══════════════════════════════════════════════════ */
.footer {
  padding: 2.5rem 0 2rem;
  background: rgba(8, 13, 27, 0.6);
  border-top: 1px solid var(--surface-border);
}

.footer__inner {
  display: flex;
  align-items: start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__left {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__logo img {
  display: block;
}

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-2);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer__links a {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.15s;
}
.footer__links a:hover { color: var(--text); }

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer__heading {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.footer__contact a {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-2);
  transition: color 0.15s;
  cursor: pointer;
}
.footer__contact a:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .services__grid { grid-template-columns: 1fr; }

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

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

  /* Services page */
  .svc-grid--2 { grid-template-columns: 1fr; }
  .catalogue-grid { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail__cards { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .experience__body { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --nav-h: 3.5rem; }

  .nav__hamburger { display: flex; }

  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background: rgba(8, 13, 27, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
  }
  .nav__links.open { opacity: 1; visibility: visible; }
  .nav__link { font-size: 1.25rem; color: var(--text); }
  .btn--nav { padding: 0.65rem 1.5rem; font-size: 0.9375rem; }

  .hero { min-height: 100svh; padding-bottom: 3rem; }
  .hero__title { font-size: 2.25rem; }
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .section-title { font-size: 1.5rem; }

  .services, .contact { padding: 4rem 0; }
  .careers { padding: 0 0 4rem; }

  .card { padding: 1.5rem; }
  .card__text { margin-bottom: 1rem; }

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

  /* Services page */
  .detail__cards { grid-template-columns: 1fr; }
  .split { padding: 1.5rem; }
  .experience { padding: 1.5rem; }

  .contact-card { padding: 1.5rem 1.25rem; }

  .footer__inner { flex-direction: column; gap: 1rem; }
  .footer__links { flex-wrap: wrap; gap: 1rem; }
}

/* ═══════════════════════════════════════════════════
   SERVICES PAGE
   Inner page layout for the full service catalogue.
   ═══════════════════════════════════════════════════ */

/* Page hero — smaller than main hero */
.page-hero {
  padding: calc(var(--nav-h) + 4rem) 0 3rem;
  text-align: center;
}

.page-hero__label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
  margin-bottom: 0.75rem;
}

.page-hero__title {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.page-hero__sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
.svc-section {
  padding: 4rem 0;
}

.svc-section--cta {
  padding: 3rem 0 5rem;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 0.5rem;
}

/* 2-col grid for Business Directions */
.svc-grid--2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

/* Catalogue overview cards */
.catalogue-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.catalogue-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 14px;
  box-shadow: var(--surface-shadow);
  transition: border-color 0.25s, transform 0.25s;
}

.catalogue-card:hover {
  border-color: rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.catalogue-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.catalogue-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.catalogue-card li {
  font-size: 0.9375rem;
  color: var(--text-2);
  padding-left: 1rem;
  position: relative;
}

.catalogue-card li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* About detail — intro + value cards */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.detail__intro p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.detail__intro strong {
  color: var(--text);
}

.detail__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.detail-card {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 12px;
}

.detail-card .card__icon {
  margin-bottom: 0.75rem;
}

.detail-card h3 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.detail-card p {
  font-size: 0.8125rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* Split layout — description + details */
.split {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
  box-shadow: var(--surface-shadow-lg);
  margin-bottom: 1.5rem;
}

.split__subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text);
}

.split__desc p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.split__details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.split__item {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--surface-border);
}

.split__item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.split__item h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}

.split__item p {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

.split__list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.split__list li {
  font-size: 0.875rem;
  color: var(--text-2);
  padding-left: 1rem;
  position: relative;
}

.split__list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--blue);
}

/* Experience panels */
.experience {
  padding: 2.5rem;
  margin-bottom: 1.5rem;
}

.experience__header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--surface-border);
}

.experience__title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.experience__body {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.experience__block h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.experience__block ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.experience__block li {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
  padding-left: 1rem;
  position: relative;
}

.experience__block li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--blue);
}

.experience__block li strong {
  color: var(--text);
}

/* ── Reduced motion ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .bg__mesh { animation: none; }
}
