/* ---------- CORE + RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
}

:root {
  --bg: #000;
  --fg: #f5f7fa;
  --accent: #00e0ff;
  --muted: #6b7280;
  --chart-border: #fff;
  --chart-grid: rgba(255,255,255,.45);
  --chart-fill: rgba(255,255,255,.1);
}

body {
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 4px;
}
html {
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--bg);
}

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

/* LIGHT MODE VARIABLES */
body.light {
  --bg: #fff;
  --fg: #1b1d21;
  --accent: #0079ff;
  --muted: #374151;
  --chart-border: #0079ff;
  --chart-grid: #cbd5e1;
  --chart-fill: rgba(0,121,255,.18);
}

/* ========== NAVIGATION ========== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(0,0,0,0.7);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  z-index: 1000;
}
body.light .nav {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: .5px;
  color: var(--fg);
}
.logo .blink {
  animation: blink 1s steps(2,start) infinite;
}
@keyframes blink { to { visibility: hidden; } }

.nav__links {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}
.nav__links a {
  position: relative;
  padding: .25rem .5rem;
  color: var(--fg);
}
.nav__links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width .3s;
}
.nav__links a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  margin-right: 1rem;
}
.hamburger, .hamburger::before, .hamburger::after {
  display: block;
  width: 24px; height: 2px;
  background: var(--accent);
  position: relative;
}
.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
}
.hamburger::before { top: -8px; }
.hamburger::after  { top: 8px; }

@media (max-width: 768px) {
  .nav__links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    flex-direction: column;
    padding: 1rem 0;
  }
  body.light .nav__links {
    background: #fff;
  }
  .nav__links.open {
    display: flex;
  }
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  font-size: 1.2rem;
  margin-left: 1rem;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/images/airbus_blueprint.jpg') center/cover no-repeat fixed;
  filter: grayscale(1) contrast(200%);
  opacity: 0.6;
  z-index: -1;
}
.hero__content {
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2.2rem,4vw,3rem);
  margin-bottom: .6rem;
  text-shadow: 0 0 12px rgba(255,255,255,.5);
}
.hero p {
  color: var(--muted);
}

/* ========== SECTIONS ========== */
.section {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: auto;
}

/* ABOUT */
.about__content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.profile-img img {
  width: 180px; height: 180px;
  object-fit: cover;
  border: 3px solid var(--accent);
  border-radius: 10px;
}

/* TIMELINE */
.timeline {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  list-style: none;
}
.timeline li {
  background: rgba(0,0,0,0.7);
  border-radius: 8px;
  padding: 1.3rem 1.4rem;
  margin-bottom: 2rem;
}
body.light .timeline li {
  background: #fff;
}
.timeline li::before {
  content: '●';
  position: absolute;
  left: -11px; top: 1.4rem;
  color: var(--accent);
}
.timeline__date {
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .45rem;
}
.timeline h3 {
  font-size: 1.05rem;
  color: var(--accent);
}
.timeline p {
  font-size: .9rem;
  line-height: 1.5;
}

/* SKILLS */
.skills-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  margin-top: 2rem;
}
.skill-card {
  background: rgba(0,0,0,0.7);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 1rem 1.2rem;
}
body.light .skill-card {
  background: #fff;
}
.skill-card h3 {
  color: var(--accent);
}
.skill-card p {
  font-size: .85rem;
}

/* HOBBIES */
.section.hobbies {
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,0.7);
  padding: 5rem 2rem;
  margin-top: 2rem;
}
body.light .section.hobbies {
  background: #fff;
}
.hobbies-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}
.hobbies-text {
  flex: 1 1 320px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
}
.hobbies-text p {
  margin-bottom: 1rem;
}
.hobbies-img {
  flex: 0 0 300px;
}
.hobbies-img img {
  width: 100%;
  max-width: 300px;
  border: 3px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* PROJEKTARBEIT */
.section.project {
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,0.7);
  padding: 5rem 2rem;
  margin-top: 2rem;
}
body.light .section.project {
  background: #fff;
}
.section.project h2 {
  margin-bottom: 1rem;
}
.section.project ul {
  list-style: disc inside var(--accent);
  margin-bottom: 1.5rem;
}
.section.project li {
  margin-bottom: 0.8rem;
  line-height: 1.5;
}

/* CONTACT */
.section.contact {
  /* no extra background */
}
.contact-card {
  background: rgba(0,0,0,0.7);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 2rem 2.2rem;
  max-width: 600px;
  margin: auto;
}
body.light .contact-card {
  background: #fff;
}
.contact__form {
  display: grid;
  gap: 1rem;
}
.contact__form label {
  display: flex;
  flex-direction: column;
  font-size: .9rem;
}
.contact__form input,
.contact__form textarea {
  padding: .65rem;
  border: 1px solid #1f242d;
  background: rgba(0,0,0,0.7);
  color: var(--fg);
  border-radius: 4px;
}
body.light .contact__form input,
body.light .contact__form textarea {
  background: #fff;
  color: var(--fg);
}
.contact__form input:focus,
.contact__form textarea:focus {
  outline: 2px solid var(--accent);
}
.privacy {
  display: flex;
  align-items: center;
  font-size: .8rem;
}
.privacy input {
  width: 1rem; height: 1rem; margin-right: .5rem;
}
.contact__form button {
  background: var(--accent);
  color: #000;
  font-weight: 600;
  border: none;
  padding: .9rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: transform .2s;
}
.contact__form button:hover {
  transform: scale(1.05);
}
.msg.success {
  color: lime;
  margin-bottom: 1rem;
  text-align: center;
}
