/* ========================
   style.css — Mobile-first
   Variables, spacing, typography
   ======================== */

/* Root / Theme */
:root {
  --bg-main: #212529; /* main site background under hero */
  --accent: #00aaff; /* your blue */
  --muted: #9aa3ad;
  --card-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.04);

  /* spacing scale */
  --space-xs: 0.4rem;
  --space-sm: 0.8rem;
  --space-md: 1.6rem;
  --space-lg: 2.8rem;
  --space-xl: 4.4rem;

  --max-width: 1100px;
  --radius: 12px;
  --transition: 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Reset / base */
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial;
  color: #f6f7f8;
  background: var(--bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Utility: container */
.container {
  width: 100%;
  padding-inline: 1rem;
  margin-inline: auto;
  max-width: var(--max-width);
}

/* Links & buttons */
a {
  color: inherit;
  text-decoration: none;
}
.btn {
  display: inline-flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
}
.btn--primary {
  background: linear-gradient(
    180deg,
    rgba(0, 170, 255, 0.12),
    rgba(0, 170, 255, 0.06)
  );
  border-color: rgba(0, 170, 255, 0.18);
  color: var(--accent);
  box-shadow: 0 6px 20px rgba(0, 170, 255, 0.06);
}
.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 170, 255, 0.12);
  background: linear-gradient(
    180deg,
    rgba(0, 170, 255, 0.18),
    rgba(0, 170, 255, 0.08)
  );
}
.btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e6eef7;
}
.btn--outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--accent);
}

/* muted helper */
.muted {
  color: var(--muted);
}

/* Pills / tags */
.pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.4rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  margin-right: 0.6rem;
}

/* =========================
   NAV Grundstruktur
   ========================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 40;
  padding: 0.6rem 0;
  backdrop-filter: blur(6px);
  background: linear-gradient(
    180deg,
    rgba(10, 12, 14, 0.6),
    rgba(10, 12, 14, 0.12)
  );
  border-bottom: 1px solid var(--glass-border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  font-weight: 800;
  letter-spacing: 0.6px;
  font-size: 1.05rem;
  color: #eaf6ff;
}
.brand__dot {
  color: var(--accent);
}

.brand__logo {
  height: 50px; /* passt in etwa zur bisherigen Textgröße */
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand__logo:hover {
  transform: scale(1.05);
}

/* =========================
   Mobile Nav (default)
   ========================= */
.nav__links {
  display: flex;
  flex-direction: column;
  position: absolute;
  text-align: center;
  top: 100%;
  left: 0;
  right: 0;
  border-top: 1px solid var(--glass-border);
  overflow: hidden;
  max-height: 0;
  background: #212529db;
  transition: max-height 0.36s ease, padding 0.36s ease;
  padding: 0 1rem;
  z-index: 30;
}
.nav__links.is-open {
  max-height: 400px; /* genug Platz für alle Links */
  padding: 0.8rem 1rem;
}
.nav__link {
  text-decoration: none;
  padding: 0.8rem 0;
  font-size: 1.05rem;
  color: #dfe9ef;
  font-weight: 600;
  border-radius: 8px;
}
.nav__link:hover,
.nav__link.is-active {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 170, 255, 0.12);
}

/* Burger */
.nav__burger {
  display: inline-grid;
  grid-auto-rows: min-content;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 6px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #e8f4ff;
  border-radius: 2px;
}

/* =========================
   Desktop Nav
   ========================= */
@media (min-width: 880px) {
  .nav__links {
    display: flex; /* sichtbar */
    position: static; /* nicht mehr absolut */
    flex-direction: row; /* horizontal */
    max-height: none; /* keine Einschränkung */
    padding: 0; /* keine mobile padding */
    border-top: none; /* kein border */
    gap: 1.2rem; /* horizontaler Abstand */
    background: none;
  }

  .nav__burger {
    display: none; /* Burger verstecken */
  }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 6vh, 6rem) 0;
  overflow: hidden;
}

/* background image element (cover) */
/*.hero__bg {
  position:absolute;
  inset:0;
  background-image: url('../assets/img/bg-main.png');
  background-size: cover;
  background-position: center center;
  filter: saturate(0.95) contrast(0.92);
  transform-origin: center;
  z-index: 1;
  transition: transform 20s linear;
}*/

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero__bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95) contrast(0.92);
  transition: transform 20s linear;
}

/* subtle slow zoom for depth (prefers-reduced-motion respects) 
@media (prefers-reduced-motion: no-preference) {
  .hero__bg { animation: hero-zoom 40s linear infinite; }
}
@keyframes hero-zoom {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}*/

/* fade overlay bottom (to blend into --bg-main) */
.hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  height: 36vh;
  bottom: -2px; /* slight overlap */
  z-index: 3;
  background: linear-gradient(
    180deg,
    rgba(10, 12, 14, 0) 0%,
    rgba(33, 37, 41, 0.6) 30%,
    var(--bg-main) 100%
  );
  pointer-events: none;
}

/* hero content (on top) */
.hero__content {
  z-index: 6;
  position: relative;
  text-align: center;
  color: #ffffff;
  width: min(92%, 980px);
  padding: 2.2rem;
  border-radius: 14px;
  backdrop-filter: blur(6px);
  background: linear-gradient(
    180deg,
    rgba(10, 12, 14, 0.6),
    rgba(10, 12, 14, 0.44)
  );
  /*background: linear-gradient(180deg, rgba(6,8,10,0.14), rgba(6,8,10,0.06));*/
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 8px 40px rgba(2, 6, 12, 0.6);
}

/* hero text */
.hero__title {
  font-size: clamp(2.2rem, 6.6vw, 4.2rem);
  margin: 0 0 0.6rem 0;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}
.hero__title .accent {
  color: var(--accent);
  text-shadow: 0 8px 32px rgba(0, 170, 255, 0.08);
}

.hero__lead {
  margin: 0 0 1.2rem 0;
  color: #dcecf8;
  font-size: 1rem;
}

/* CTA group */
.hero__ctas {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ========== SITE BACKGROUND SECTION ========= */
.site-bg {
  background: var(--bg-main);
  margin-top: -6vh; /* slight overlap to create cohesion */
  padding-top: calc(6vh + 1rem);
}

/* ========== SECTIONS ========= */
.section {
  padding: var(--space-lg) 0;
}
.section--about .card--portrait img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 2px 8px rgba(0, 170, 255, 0.04);
}

/* grid utilities */
.grid {
  display: grid;
  gap: 1.4rem;
}
.grid--2 {
  grid-template-columns: 1fr;
}
.grid--cards {
  grid-template-columns: 1fr;
}

@media (min-width: 880px) {
  .nav__links {
    display: flex;
  }
  .nav__burger {
    display: none;
  }

  .grid--2 {
    grid-template-columns: 360px 1fr;
    align-items: center;
    gap: 2.2rem;
  }
  .grid--cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
  }
}

/* ABOUT text area */
.about__text h2 {
  font-size: 1.6rem;
  margin-bottom: 0.6rem;
}
.about__text p {
  color: #d1d8dc;
  margin-bottom: 0.9rem;
}
.about__meta {
  margin: 0.8rem 0;
}

/* section head */
.section__head {
  margin-bottom: 1.2rem;
}
.section__head h2 {
  font-size: 1.4rem;
  margin-bottom: 0.2rem;
}
.section__head p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* project card */
.project-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.project-card__media img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}
.project-card__body {
  padding: 1rem;
}
.project-card__body h3 {
  margin: 0 0 0.4rem 0;
  font-size: 1.05rem;
}
.project-card__body .muted {
  font-size: 0.92rem;
}
.project-card__meta {
  margin: 0.8rem 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.tag {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
  font-size: 0.82rem;
}

/* hover */
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 8px 25px rgba(0, 170, 255, 0.06);
}

/* FOOTER */
.section--footer {
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 2.4rem 0;
  background-color: #0000007d;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__links a {
  margin-left: 1rem;
  color: #dfe9ef;
  text-decoration: none;
}

.footer__links .left {
  margin-left: revert;
  color: #dfe9ef;
  text-decoration: none;
}

.footer__links a:hover {
  color: #00aaff;
}

.footer__imprint a {
  color: #9aa3ad;
  text-decoration: none;
}

.footer__imprint a:hover {
  color: #dfe9ef;
}

/* TEXT CENTER helper */
.text-center {
  text-align: center;
}

/* reveal animation (scroll) */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 520ms var(--transition), transform 520ms var(--transition);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* small tweaks for very small screens */
@media (max-width: 420px) {
  .hero__content {
    padding: 1.4rem;
    border-radius: 10px;
  }
  .hero__lead {
    font-size: 0.95rem;
  }
  .brand {
    font-size: 0.98rem;
  }
}
