/* ========================================
   VIBE CODING – CSS
   Liquid Glass Design · Orange Accents
   ======================================== */

/* --- Custom Properties --- */
:root {
  /* Colors – Dark Base */
  --bg: #050506;
  --bg-alt: #0a0a0c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.08);
  --text: #f5f5f7;
  --text-secondary: rgba(245, 245, 247, 0.72);
  --muted: rgba(245, 245, 247, 0.45);

  /* Orange Accent */
  --accent: #ff6b35;
  --accent-light: #ff8c5a;
  --accent-glow: rgba(255, 107, 53, 0.25);
  --accent-subtle: rgba(255, 107, 53, 0.12);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-highlight: rgba(255, 255, 255, 0.12);
  --glass-blur: 24px;

  /* Lines & Borders */
  --line: rgba(255, 255, 255, 0.06);
  --line-strong: rgba(255, 255, 255, 0.1);

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Monaco, Consolas, monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 100px;

  /* Layout */
  --container: 1080px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px var(--accent-glow);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

strong {
  font-weight: 600;
  color: var(--text);
}

/* --- Accessibility --- */
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  z-index: 1000;
  transition: top 0.2s;
}

.skip:focus {
  top: 16px;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(36px, 7vw, 60px);
}

h2 {
  font-size: clamp(26px, 4.5vw, 40px);
  margin-bottom: var(--space-lg);
}

h3 {
  font-size: 18px;
  margin-bottom: var(--space-sm);
}

p {
  color: var(--text-secondary);
}

.lead {
  font-size: clamp(18px, 2.5vw, 21px);
  line-height: 1.55;
}

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

.small {
  font-size: 14px;
}

/* --- Glass Card Mixin --- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    var(--shadow);
}

/* --- Buttons --- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.button:hover {
  background: var(--surface-hover);
  border-color: var(--glass-highlight);
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.button.primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: 0 0 50px var(--accent-glow);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 5, 6, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* --- Language Switcher --- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: var(--space-md);
  padding: 4px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
}

.lang-switch a {
  padding: 4px 8px;
  font-size: 16px;
  line-height: 1;
  border-radius: 6px;
  transition: all 0.15s;
  opacity: 0.6;
}

.lang-switch a:hover {
  opacity: 1;
}

.lang-switch a.active {
  background: var(--surface-hover);
  opacity: 1;
}

.brand-wrapper {
  display: flex;
  align-items: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.15s;
}

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

.nav-cta {
  padding: 8px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-cta:hover {
  background: var(--surface-hover);
  border-color: var(--accent-subtle);
  color: var(--accent-light);
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: var(--space-3xl) 0 calc(var(--space-3xl) + 20px);
  text-align: center;
  overflow: hidden;
}

/* Hero Background Graphics */
.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 140%;
  height: 100%;
  background:
    /* Glowing orb - top center */
    radial-gradient(ellipse 600px 400px at 50% 0%, var(--accent-glow), transparent 70%),
    /* Code/circuit pattern hint - left */
    radial-gradient(circle 300px at 15% 60%, rgba(255, 107, 53, 0.08), transparent 60%),
    /* AI neural dot - right */
    radial-gradient(circle 250px at 85% 40%, rgba(255, 140, 90, 0.06), transparent 50%),
    /* Ambient glow */
    radial-gradient(ellipse 800px 600px at 50% 100%, rgba(255, 107, 53, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Floating geometric shapes */
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    /* App icon shapes */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='10' y='10' width='80' height='80' rx='18' fill='none' stroke='rgba(255,107,53,0.1)' stroke-width='1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Crect x='10' y='10' width='80' height='80' rx='18' fill='none' stroke='rgba(255,255,255,0.04)' stroke-width='1'/%3E%3C/svg%3E"),
    /* Code brackets */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Cpath d='M40 10 L20 40 L40 70' fill='none' stroke='rgba(255,107,53,0.08)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 80'%3E%3Cpath d='M20 10 L40 40 L20 70' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"),
    /* Neural network nodes */
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='3' fill='rgba(255,107,53,0.15)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='2' fill='rgba(255,255,255,0.05)'/%3E%3C/svg%3E");
  background-size:
    120px 120px,
    80px 80px,
    60px 80px,
    50px 70px,
    20px 20px,
    16px 16px;
  background-position:
    5% 20%,
    90% 70%,
    8% 75%,
    92% 25%,
    20% 45%, 30% 65%, 70% 35%, 80% 55%,
    25% 30%, 75% 70%, 15% 80%, 85% 20%;
  opacity: 0.7;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  z-index: 1;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
  padding: 8px 16px;
  background: var(--accent-subtle);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 999px;
}

.hero h1 {
  margin-bottom: var(--space-lg);
}

.hero-accent {
  color: var(--muted);
  display: block;
}

.hero .lead {
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  text-align: left;
}

/* --- Cards --- */
.card {
  padding: var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 4px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.25s ease;
}

.card:hover {
  border-color: var(--accent-subtle);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px var(--accent-subtle);
}

.card h3 {
  color: var(--text);
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.card h3::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-glow);
}

.card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
}

/* --- Sections --- */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section.alt {
  background: var(--bg-alt);
}

/* Subtle section divider glow */
.section.alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-subtle), transparent);
}

.section-head {
  margin-bottom: var(--space-xl);
}

.section-head p {
  margin-top: var(--space-sm);
}

.section-note {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15px;
}

/* --- Two Column --- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.two-col p {
  font-size: 17px;
  line-height: 1.7;
}

/* --- Grid / Panels --- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.panel {
  padding: var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
  transition: all 0.25s ease;
}

.panel:hover {
  border-color: var(--accent-subtle);
}

.panel h3 {
  color: var(--text);
  margin-bottom: var(--space-sm);
}

.panel h3::before {
  content: "→";
  margin-right: var(--space-sm);
  color: var(--accent);
}

.panel p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* --- Projects --- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.project {
  padding: var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.project:hover {
  border-color: var(--accent-subtle);
  transform: translateY(-3px);
  box-shadow:
    inset 0 1px 0 var(--glass-highlight),
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 0 0 1px var(--accent-subtle);
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.project h3 {
  font-size: 20px;
  margin: 0;
}

.badge {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 12px;
  background: var(--accent-subtle);
  color: var(--accent);
  border: 1px solid rgba(255, 107, 53, 0.2);
  border-radius: 999px;
  white-space: nowrap;
}

.project > p {
  font-size: 15px;
  color: var(--text-secondary);
  flex-grow: 1;
}

.project-features {
  margin: var(--space-md) 0;
  padding-left: 0;
}

.project-features li {
  position: relative;
  font-size: 14px;
  color: var(--muted);
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.project-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.6;
}

.project-links {
  display: flex;
  gap: var(--space-md);
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.project-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  transition: all 0.15s;
}

.project-links a:hover {
  color: var(--accent-light);
  text-shadow: 0 0 12px var(--accent-glow);
}

/* --- Stack --- */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.stack-category {
  padding: var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 var(--glass-highlight);
}

.stack-category h3 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--line);
}

.stack-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.stack-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--line);
  transition: all 0.2s ease;
}

.stack-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stack-item:hover {
  padding-left: var(--space-sm);
}

.stack-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}

.stack-desc {
  font-size: 13px;
  color: var(--muted);
}

/* --- Contact --- */
.contact {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

#kontakt {
  text-align: center;
}

#kontakt .lead {
  max-width: 500px;
  margin: 0 auto;
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  font-size: 14px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--accent);
}

/* ========================================
   LEGAL PAGES
   ======================================== */

.legal-header {
  padding: 28px 0 8px;
}

.legal-back {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s;
}

.legal-back:hover {
  color: var(--accent);
}

.legal {
  padding: 28px 0 60px;
}

.legal .box {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.legal h1 {
  font-size: clamp(28px, 4vw, 40px);
  margin: 0 0 10px;
}

.legal h2 {
  margin-top: var(--space-lg);
  font-size: 20px;
}

.legal p,
.legal li {
  color: var(--text-secondary);
}

.legal ul {
  padding-left: var(--space-lg);
}

.legal li {
  list-style: disc;
  margin-bottom: var(--space-sm);
}

.legal a {
  color: var(--accent);
}

.legal a:hover {
  text-decoration: underline;
}

.code-like {
  font-family: var(--font-mono);
  font-size: 13px;
  padding: 2px 8px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  color: var(--text-secondary);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  .hero-cards {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .projects {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

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

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .hero::after {
    opacity: 0.4;
  }
}

@media (max-width: 640px) {
  :root {
    --space-3xl: 64px;
  }

  .nav a:not(.nav-cta) {
    display: none;
  }

  .header-inner {
    height: 56px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .hero-actions .button {
    width: 100%;
    max-width: 280px;
  }

  .contact {
    flex-direction: column;
    align-items: center;
  }

  .contact .button {
    width: 100%;
    max-width: 280px;
  }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .stack {
    justify-content: center;
  }

  .hero::before,
  .hero::after {
    opacity: 0.5;
  }
}
