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

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

/* ── Variables ── */
:root {
  --color-bg: #04111c;
  --color-text: #fff;
  --color-muted: #ffffffa6;
  --color-green: #2bffb0;
  --color-blue: #0081fc;
  --color-border: #1a2a3a;
  --font-body: "Cairo", sans-serif;
  --max-width: 960px;
  --space: 1rem;
}

/* ── Base ── */
html {
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
}

body {
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: url('/assets/img/epp_corner.png') top right no-repeat;
  background-size: 600px auto;
  pointer-events: none;
  z-index: 0;
}

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

a {
  color: var(--color-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, p, a {
  font-family: var(--font-body);
}

h2 {
  font-weight: 400;
}

h1 {
  font-size: 5.5rem;
  font-weight: 700;
}

h2 {
  font-size: 1.8rem;
}

/* ── Navigation ── */
.site-header {
  position: relative;
  z-index: 10;
  border-bottom: none;
}

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

.nav-logo {
  color: var(--color-text);
}

.nav-logo svg {
  width: 72px;
  height: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  background-color: var(--color-bg);
}

.nav-links a {
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 400;
}

.nav-links a:hover {
  color: var(--color-green);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--color-green);
}

/* ── Main ── */
main {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space) calc(var(--space) * 3);
}

main.page-content {
  padding-left: 8rem;
}

/* ── Hero ── */
.hero {
  min-height: 40vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--space) * 2) 0;
}

.hero-title {
  font-size: 5.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-title .green {
  color: var(--color-green);
}

.hero-subtitle {
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-green);
  margin-bottom: 1rem;
}

.hero-text {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-muted);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
  text-align: left;
}

.hero-highlight {
  color: var(--color-green);
}

/* Typed cursor */
.typed-cursor {
  opacity: 1;
  animation: blink 0.7s infinite;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}

/* ── Sections ── */
section {
  margin-bottom: calc(var(--space) * 3);
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

section h2 .green {
  color: var(--color-green);
}


section p {
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

section ul {
  color: var(--color-muted);
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

section li {
  margin-bottom: 0.25rem;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space);
}

.card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: var(--space);
  background: #0a1929;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--color-green);
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

/* ── Card callout (no background, centered) ── */
.card-callout {
  background: none;
  border: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
}

/* ── Horizontal card ── */
.card-horizontal {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: var(--space);
}

.card-horizontal img {
  width: 240px;
  flex-shrink: 0;
  border-radius: 4px;
}

@media (max-width: 600px) {
  .card-horizontal {
    flex-direction: column;
  }

  .card-horizontal img {
    width: 100%;
  }
}

/* ── Clickable card ── */
a.card {
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

a.card:hover {
  border-color: var(--color-green);
  text-decoration: none;
}

/* ── Case story images ── */
.case-hero-img {
  border-radius: 8px;
  margin-left: auto;
  margin-right: auto;
}
.case-hero-img.invert-light {
  filter: invert(0.85) brightness(1.2);
}

.case-image-pair {
  display: flex;
  gap: var(--space);
  justify-content: center;
  height: 400px; 
}

.case-figure {
  flex: 1;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.case-figure img {
  flex: 1;
  min-height: 0;
  object-fit: cover;
  width: 100%;
}
.case-figure figcaption {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.6;
  padding-top: 0.5rem;
}

/* ── Case story video ── */
.case-video {
  display: block;
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  margin-top: var(--space);
}

/* ── Team cards ── */
.team-card {
  text-align: center;
}

.team-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space);
}

/* ── Tech list ── */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  list-style: none;
  margin-top: 0.75rem;
  padding-left: 0;
}

.tech-list li {
  background: #1a2a3a;
  color: var(--color-text);
  font-size: 0.8rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}

.card .tech-list {
  justify-content: flex-start;
}

.card .tech-list li {
/*  background: none;
  border: 1px solid var(--color-blue);
  color: var(--color-blue); */
}

.card-horizontal .card-logo {
  height: 30px;
  width: auto;
  max-width: none;
  flex-shrink: 1;
  margin-top: 1.5rem;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: none;
  text-align: center;
  padding: var(--space);
  font-size: 0.85rem;
  color: var(--color-muted);
}

/* ── Light mode (disabled — kept for future use) ── */
/* @media (prefers-color-scheme: light) { */
@media (prefers-color-scheme: __disabled__) {
  :root {
    color-scheme: light;
    --color-bg: #f5f5f5;
    --color-text: #1a1a2e;
    --color-muted: #555;
    --color-green: #0a8f5c;
    --color-blue: #0066cc;
    --color-border: #ddd;
  }

  .card {
    background: #fff;
  }

  .tech-list li {
    background: #e0e0e0;
  }

  body::before {
    filter: invert(1) brightness(1.1);
  }

  .card-horizontal .card-logo {
    filter: invert(1);
  }
}

/* ── Responsive ── */
@media (max-width: 600px) {
  html {
    font-size: 11px;
  }

  .hero-title {
    font-size: 3.25rem;
  }

  .nav-links {
    gap: 1rem;
  }

  main.page-content {
    padding-left: var(--space);
  }
}

@media (min-width: 601px) and (max-width: 800px) {
  html {
    font-size: 12px;
  }

  .hero-title {
    font-size: 4rem;
  }
}

@media (min-width: 801px) and (max-width: 1120px) {
  html {
    font-size: 13px;
  }

  .hero-title {
    font-size: 5rem;
  }
}
