/* ========== Design Tokens ========== */

:root {
  --bg-main: #05060b;
  --bg-alt: #0d0e11;
  --text-main: #ffffff;
  --text-muted: #b6b8be;
  --border-subtle: #1a1b1d;

  --grad-blue: #2f6fff;
  --grad-cyan: #2fe8d1;
  --grad-green: #00e676;

  --container-width: 1100px;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-pill: 999px;

  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 20px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 80px;
}

/* ========== Reset ========== */

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-main);
  background-color: var(--bg-main);

}

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

/* ========== Language visibility ========== */

.lang {
  display: none;
}

.lang-block {
  display: none;
}

body[data-lang="de"] .lang-de {
  display: inline;
}

body[data-lang="en"] .lang-en {
  display: inline;
}

body[data-lang="de"] .lang-de.lang-block {
  display: block;
}

body[data-lang="en"] .lang-en.lang-block {
  display: block;
}

/* ========== Layout ========== */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Sections (backgrounds are defined per section type) */

.section {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--border-subtle);
}

.section:first-of-type {
  border-top: none;
}

/* HERO – aurora-style background */

.section--hero {
  padding-top: 120px;
  padding-bottom: 80px;
  border-top: none;
  background:
    radial-gradient(circle at 10% 0%,
      rgba(0, 230, 118, 0.32),
      rgba(0, 0, 0, 0) 55%),
    radial-gradient(circle at 90% 0%,
      rgba(47, 111, 255, 0.38),
      rgba(0, 0, 0, 0) 60%),
    radial-gradient(circle at 0% 100%,
      rgba(0, 40, 90, 0.95),
      rgba(0, 0, 0, 0.9) 60%),
    #05060b;
}

.section--light {
  background: linear-gradient(
    to bottom,
    #070910,
    #05060b
  );
}

/* ========== Typography ========== */

.heading-xl {
  font-size: 2.8rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  font-weight: 800;
  margin: var(--space-md) 0 var(--space-md);
}

.heading-lg {
  font-size: 1.8rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 var(--space-sm);
}

.heading-md {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 var(--space-sm);
}

.heading-sm {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 var(--space-xs);
}

.body {
  font-size: 0.95rem;
}

.body-lg {
  font-size: 1rem;
}

.body-muted {
  color: var(--text-muted);
}

.max-600 {
  max-width: 600px;
}

/* ========== Links & Buttons ========== */

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--grad-blue);
  outline-offset: 2px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(5, 6, 11, 0.7);
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  margin-top: var(--space-md);
  transition: border-color 0.18s ease, background-color 0.18s ease,
    transform 0.12s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.btn-ghost:hover {
  border-color: var(--grad-blue);
  background: radial-gradient(circle at 20% -20%,
      rgba(47, 111, 255, 0.45),
      rgba(5, 6, 11, 0.98));
  transform: translateY(-1px);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.8),
    0 0 16px rgba(47, 111, 255, 0.35);
}

.link-accent {
  color: var(--grad-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.link-accent:hover {
  color: var(--grad-green);
}

/* ========== Header ========== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(
    to bottom,
    rgba(5, 6, 11, 0.96),
    rgba(5, 6, 11, 0.80),
    rgba(5, 6, 11, 0)
  );
  border-bottom: 1px solid rgba(26, 27, 29, 0.7);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 126px;
  width: auto;
  display: block;
}

/* Language switcher */

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px;
  border-radius: 999px;
  background-color: rgba(18, 19, 22, 0.9);
  border: 1px solid rgba(26, 27, 29, 0.9);
}

.lang-switch__btn {
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8rem;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.lang-switch__btn:hover {
  background-color: rgba(47, 111, 255, 0.12);
  color: var(--text-main);
}

.lang-switch__btn.is-active {
  background: linear-gradient(135deg, var(--grad-blue), var(--grad-green));
  color: #ffffff;
}

/* ========== Hero ========== */

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  max-width: 640px;
}

.hero-subtitle {
  margin: 0 0 var(--space-sm);
}

.pill-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-line {
  width: 100%;
  height: 80px;
  opacity: 0.98;
}

.hero-line-glow {
  position: absolute;
  width: 70%;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(
    ellipse at center,
    rgba(47, 111, 255, 0.32),
    rgba(0, 0, 0, 0)
  );
  filter: blur(16px);
  transform: translateY(26px);
}

/* subtle float animation for hero line */

.hero-line {
  transform-origin: center;
  animation: lineFloat 8s ease-in-out infinite alternate;
}

@keyframes lineFloat {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-4px);
  }
}

/* ========== Cards (What I do) ========== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-lg);
}

.card {
  position: relative;
  border-radius: 16px;
  padding: var(--space-lg);
  background:
    radial-gradient(circle at top left,
      rgba(0, 230, 118, 0.20),
      rgba(47, 232, 209, 0.14),
      rgba(47, 111, 255, 0.06),
      rgba(5, 6, 12, 1) 65%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.80),
    0 0 18px rgba(0, 230, 118, 0.18);
  overflow: hidden;
}

.card-intro {
  margin: 0 0 var(--space-sm);
}

.card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.card-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--grad-green);
}

/* ========== How I work ========== */

.hiw-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
}

.hiw-item {
  padding-right: var(--space-lg);
}

/* ========== Two-column sections (Who I work with / Product data) ========== */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-xl);
}

.two-col-block {
  max-width: 480px;
}

.bullet-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

/* ========== Footer ========== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
  background-color: #040509;
  margin-top: auto;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ========== Responsive ========== */

@media (max-width: 960px) {
  .section {
    padding: 56px 0;
  }

  .section--hero {
 position: relative;
  z-index: 0;       /* define stacking context */
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 60px;
  border-top: none;
  background-color: #05060b; /* base */
}  
    
 @media (max-width: 960px) {
  .section--hero::before {
    content: "";
    position: absolute;
    inset: -20% -40% -5%; /* was 15%; extend background below content */
    background:
      radial-gradient(140% 180% at 10% 120%,
        rgba(3, 22, 70, 1),
        rgba(5, 6, 11, 0.4) 55%,
        transparent 75%),
      radial-gradient(140% 200% at 100% 120%,
        rgba(47, 232, 209, 0.85),
        rgba(0, 230, 118, 0.75),
        transparent 70%),
      radial-gradient(120% 180% at 80% 0%,
        rgba(47, 111, 255, 0.40),
        transparent 60%);
    opacity: 1;
    pointer-events: none;
    z-index: -1;
  }
}
    
/* 
  .section--hero {
    padding-top: 96px;
    padding-bottom: 56px;
  }*/

  .hero-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .hero-visual {
    justify-content: center;
    height: 110px;
  }

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

  .hiw-list {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  .heading-xl {
    font-size: 2.2rem;
  }

  .section {
    padding: 44px 0;
  }

  .section--hero {
    padding-top: 80px;
    padding-bottom: 44px;
  }

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

  .two-col {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }

  .hiw-item {
    padding-right: 0;
  }

  .header-container {
    padding-inline: 20px;
  }

  .hero-visual {
    height: 90px;
  }

  .footer-container {
    flex-direction: column;
    align-items: flex-start;
  }
}