/* ── Reset & Base ────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0d0d0f;
  --surface:   #141417;
  --surface2:  #1c1c21;
  --border:    #2a2a32;
  --accent:    #00c8ff;
  --accent2:   #ff2d9b;
  --text:      #e8e8f0;
  --muted:     #8888a0;
  --radius:    14px;
  --font:      'Segoe UI', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── Navbar ──────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2.5rem;
  background: rgba(13,13,15,.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.nav-divider { display: none; }

.nav-modules {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .6rem;
}

.nav-module {
  padding: .7rem 1.6rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}

.nav-module:hover,
.nav-module-wrap:hover .nav-module.has-dropdown {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--accent);
}

.nav-module.active {
  background: var(--surface2);
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 10px rgba(0,200,255,.2);
}

/* ── Nav-Modul Dropdown ───────────────────────────────── */
.nav-module-wrap {
  position: relative;
}

.nav-module.has-dropdown::after {
  content: '';
  display: inline-block;
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: .5rem;
  vertical-align: middle;
  opacity: .6;
  transition: transform .2s;
}

.nav-module-wrap:hover .nav-module.has-dropdown::after,
.nav-module-wrap.open  .nav-module.has-dropdown::after {
  transform: rotate(180deg);
}

.nav-module-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 190px;
  padding-top: 8px;
  z-index: 200;
  animation: fadeDownCentered .15s ease;
}

.nav-module-dropdown-inner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  overflow: hidden;
}

@keyframes fadeDownCentered {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.nav-module-wrap:hover .nav-module-dropdown { display: block; }
.nav-module-wrap.open .nav-module-dropdown  { display: block; }

.nav-module-item {
  display: block;
  width: 100%;
  padding: .7rem 1.1rem;
  background: none;
  border: none;
  text-align: left;
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s, color .15s, padding-left .15s;
  white-space: nowrap;
}

.nav-module-item:hover {
  background: rgba(0,200,255,.1);
  color: var(--accent);
  padding-left: 1.4rem;
}

/* ── Nav Right / Profil ──────────────────────────────── */
.nav-right {
  position: relative;
  margin-left: auto;
  flex-shrink: 0;
  z-index: 10;
}

.nav-profile {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .9rem .45rem .5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  cursor: pointer;
  transition: all .2s;
  user-select: none;
}

.nav-profile:hover {
  border-color: var(--accent);
  box-shadow: 0 0 12px rgba(0,200,255,.15);
}

.profile-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.profile-avatar.lg {
  width: 42px; height: 42px;
  font-size: .9rem;
}

.profile-name {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.profile-chevron {
  width: 14px; height: 14px;
  color: var(--muted);
  transition: transform .2s;
}

.nav-right.open .profile-chevron { transform: rotate(180deg); }

/* Dropdown */
.profile-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0,0,0,.5);
  overflow: hidden;
  z-index: 200;
  animation: fadeDown .15s ease;
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-right.open .profile-dropdown { display: block; }

.profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem;
}

.profile-dropdown-name {
  font-weight: 700;
  font-size: .95rem;
}

.profile-dropdown-sub {
  font-size: .78rem;
  color: var(--muted);
}

.profile-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: .25rem 0;
}

.profile-dropdown-item {
  display: block;
  width: 100%;
  padding: .7rem 1.1rem;
  background: none;
  border: none;
  text-align: left;
  color: var(--text);
  font-size: .9rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background .15s;
}

.profile-dropdown-item:hover { background: var(--surface2); }

.profile-dropdown-item.danger { color: #ff5e7d; }
.profile-dropdown-item.danger:hover { background: rgba(255,94,125,.08); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: background .2s;
}
.nav-toggle:hover span { background: var(--text); }

/* ── Hero ────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  padding: 8rem 2.5rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content { flex: 1; max-width: 580px; }

.hero-badge {
  display: inline-block;
  padding: .35rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--accent2);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}

.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 1.2rem;
}

.accent {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 2.2rem;
  max-width: 480px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  box-shadow: 0 0 20px rgba(0,200,255,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0,200,255,.55);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface2);
  border-color: var(--accent);
  transform: translateY(-2px);
}

/* ── Hero Visual ─────────────────────────────────────── */
.hero-visual {
  flex-shrink: 0;
  position: relative;
  width: 240px; height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent), var(--accent2), transparent, var(--accent));
  animation: spin 6s linear infinite;
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}

@keyframes spin { to { transform: rotate(360deg); } }

.hero-avatar {
  width: 200px; height: 200px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

/* ── Section Shared ──────────────────────────────────── */
section { padding: 6rem 2.5rem; }

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-block;
  color: var(--accent2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .6rem;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: .8rem;
}

.section-header p { color: var(--muted); font-size: 1rem; }

/* ── Project Cards ───────────────────────────────────── */
.projects {
  max-width: 1200px;
  margin: 0 auto;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  transition: all .25s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity .25s;
}

.card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,200,255,.18);
}
.card:hover::before { opacity: 1; }

.card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.2rem;
}

.card-tag {
  display: inline-block;
  padding: .2rem .7rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: .9rem;
}

.tag-soon   { background: rgba(255,45,155,.15); color: var(--accent2); }
.tag-active { background: rgba(52,211,153,.15);  color: #34d399; }
.tag-idea   { background: rgba(251,191,36,.12);  color: #fbbf24; }

.card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

.card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

/* ── Contact ─────────────────────────────────────────── */
.contact {
  display: flex;
  justify-content: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.contact-box {
  text-align: center;
  max-width: 520px;
}

.contact-box h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: .8rem;
}

.contact-box p {
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ── Footer ──────────────────────────────────────────── */
.footer {
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 1.8rem 2.5rem;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .6rem;
}

.footer-link {
  color: var(--muted);
  text-decoration: none;
  font-size: .85rem;
  transition: color .2s;
}
.footer-link:hover { color: var(--accent); }

.footer-link-divider {
  color: var(--border);
  font-size: .75rem;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p { margin-left: 0; }

.footer-version {
  font-size: .8rem;
  color: var(--muted);
  opacity: .6;
}

/* ── Legal Pages ─────────────────────────────────────── */
.legal-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 7rem 2.5rem 4rem;
}

.legal-content {
  max-width: 720px;
  width: 100%;
}

.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  margin-bottom: 2rem;
  transition: color .2s;
}
.back-link:hover { color: var(--accent); }

.legal-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -.5px;
  margin: .5rem 0 .4rem;
}

.legal-subtitle {
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-block {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-block h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .8rem;
}

.legal-block h3 {
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.2rem 0 .4rem;
}

.legal-block p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
  margin-bottom: .6rem;
}

.legal-link {
  color: var(--accent);
  text-decoration: none;
}
.legal-link:hover { text-decoration: underline; }

.legal-updated {
  color: var(--muted);
  font-size: .8rem;
  opacity: .6;
  margin-top: 1rem;
}

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 6rem;
  }
  .hero-cta { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }

  .nav-modules { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); padding: 1rem 2rem; border-bottom: 1px solid var(--border); gap: .5rem; }
  .nav-modules.open { display: flex; }
  .nav-divider { display: none; }
  .nav-toggle { display: flex; }

  .hero-visual { width: 180px; height: 180px; }
  .hero-avatar { width: 150px; height: 150px; font-size: 2.5rem; }
}
