/* ============================================================
   PORTFOLIO — Philippe Saxer
   css/style.css
   ============================================================ */



/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */

:root {
  /* Background layers — Sophisticated Dark */
  --bg-base: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: #161617;
  --bg-card-hover: #1c1c1e;
  --bg-input: #1c1c1e;

  /* Accent — Apple Blue */
  --cyan: #0071E3;
  --cyan-dim: #0060C0;
  --cyan-glow: rgba(0, 113, 227, 0.18);
  --cyan-subtle: rgba(0, 113, 227, 0.08);

  /* Kept for compatibility */
  --sky-blue: #0071E3;
  --mint: #30D158;
  --white-glow: rgba(255, 255, 255, 0.06);

  /* Secondary accent */
  --amber: #FF9F0A;

  /* Text */
  --text-primary: #F5F5F7;
  --text-secondary: #86868B;
  --text-muted: #48484A;

  /* Borders — subtle white transparency */
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Category colors — muted, sophisticated */
  --cat-games: #FF6961;
  --cat-backend: #64D2FF;
  --cat-iot: #30D158;
  --cat-frontend: #FFD60A;
  --cat-programming: #BF5AF2;
  --cat-database: #FF6482;
  --cat-tools: #64D2FF;
  --cat-systems: #30D158;

  /* Typography */
  --font-display: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Space Grotesk', system-ui, sans-serif;

  /* Spacing */
  --sp-xs: 0.375rem;
  --sp-sm: 0.75rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.25rem;
  --sp-xl: 3rem;
  --sp-2xl: 4.5rem;
  --sp-3xl: 6rem;
  --sp-4xl: 9rem;

  /* Shape — strong rounding */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 28px;
  --r-pill: 980px;

  /* Shadows — soft layered, no glow */
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.25), 0 1px 4px rgba(0, 0, 0, 0.15);
  --shadow-glow: 0 8px 40px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.18);

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s var(--ease);
  --transition: 0.3s var(--ease);

  /* Layout */
  --max-width: 1200px;
  --header-height: 72px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-base);
  scrollbar-width: thin;
  scrollbar-color: var(--cyan-dim) var(--bg-base);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-primary);
  background-color: transparent;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  /* Custom Bluish Cursor - Default Arrow */
  cursor: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5.5 3.5V20.5L10.5 15.5H18.5L5.5 3.5Z' fill='%230071E3' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"), auto;
}

/* Custom Bluish Cursor - Pointer for interactive elements */
@media (hover: hover) and (pointer: fine) {
  a, 
  button, 
  .btn-primary, 
  .btn-secondary, 
  .nav-link, 
  .nav-cta, 
  .project-card, 
  .category-card {
    cursor: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 11V3C11 1.89543 11.8954 1 13 1C14.1046 1 15 1.89543 15 3V12M15 12V10C15 8.89543 15.8954 8 17 8C18.1046 8 19 8.89543 19 10V12M19 12V10C19 8.89543 19.8954 8 21 8C22.1046 8 23 8.89543 23 10V12M23 12V11C23 9.89543 23.8954 9 25 9C26.1046 9 27 9.89543 27 11V18C27 21.866 23.866 25 20 25H15C11.134 25 8 21.866 8 18V12C8 12 8 11.5 10 11.5C12 11.5 12 12 12 13' stroke='%230071E3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), pointer !important;
  }
}

/* ============================================================
   CUSTOM SCROLLBAR
   ============================================================ */
::-webkit-scrollbar {
  width: 16px;
  height: 16px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
  border-left: 1px solid var(--border-subtle);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--cyan-dim), var(--cyan));
  border-radius: var(--r-pill);
  border: 4px solid var(--bg-base);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--cyan), var(--cat-tools));
}

/* ============================================================
   GLOBAL BACKGROUND GRADIENT
   ============================================================ */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -999;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.35) 0%, transparent 1200px),
    linear-gradient(to bottom, #0d1f3c 0%, #071224 10%, #040a18 25%, #000000 45%, #000000 100%);
}

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

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

ul,
ol {
  list-style: none;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.75rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.6rem);
}

h4 {
  font-size: 1.05rem;
}

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

.mono {
  font-family: var(--font-body);
  font-size: 0.875em;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-xl);
}

.section {
  padding: var(--sp-4xl) 0;
}

.page-hero+.section {
  padding-top: var(--sp-xl);
}

.section-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: block;
  margin-bottom: var(--sp-md);
}

.section-title {
  color: var(--text-primary);
  margin-bottom: var(--sp-md);
}

.section-desc {
  font-size: 1.05rem;
  max-width: 55ch;
}

.section-header {
  margin-bottom: var(--sp-3xl);
}

.text-center {
  text-align: center;
}

.mt-xl {
  margin-top: var(--sp-xl);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-default), transparent);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.875rem 2rem;
  background: var(--cyan);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r-pill);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-primary:hover {
  background: var(--cyan-dim);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1px solid var(--border-default);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: all var(--transition);
}

.btn-secondary:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   HEADER / NAVIGATION
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  display: flex;
  align-items: center;

  /* Animierter, breiter linear-gradient Hintergrund (Dunkle Premium Blau Töne) */
  background: linear-gradient(-45deg,
      #000511,
      /* Extrem dunkles Nachtblau */
      #010a1b,
      /* Tiefes Marineblau */
      #001233,
      /* Dark Navy */
      #002244,
      /* Deep Space Blue */
      #003366,
      /* Edles Midnight Blue */
      #002244,
      /* Weicher Übergang zurück */
      #010a1b,
      /* Wieder tiefes Blau */
      #000511
      /* Zurück zum Ursprung für den nahtlosen Loop */
    );
  background-size: 400% 400%;
  animation: nav-gradient-flow 15s ease infinite;

  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition);
}

/* Keyframes für den fliessenden Gradient */
@keyframes nav-gradient-flow {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

.site-header.header-scrolled {
  height: 60px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.site-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  /* Increased from 1.15rem */
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 4px;
  letter-spacing: -0.01em;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Make logo larger everywhere */
.site-logo img {
  height: 42px !important;
  width: auto;
  transition: all var(--transition);
}

.site-logo:active {
  transform: scale(1.1);
}

.logo-accent {
  color: var(--cyan);
}

.logo-bracket {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-xl);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 1.05rem;
  /* Increased from 0.875rem */
  font-weight: 600;
  /* Increased from 500 */
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: 0;
  transition: color var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  /* Adjusted for larger text */
  left: 0;
  width: 0;
  height: 2px;
  /* Thicker underline */
  background: var(--cyan);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--cyan);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-cta {
  padding: 0.6rem 1.4rem;
  /* Increased padding */
  background: var(--cyan);
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 1rem;
  /* Increased from 0.82rem */
  font-weight: 600;
  color: #fff;
  text-transform: none;
  letter-spacing: 0;
  transition: all var(--transition);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--cyan-dim);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero {
  height: 300vh;
  position: relative;
  overflow: clip;
  overscroll-behavior: none;
}

.hero-sticky-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 2500px;
  overflow: visible;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: -15%;
  width: 55%;
  height: 200%;
  background: none;
  pointer-events: none;
}

.hero-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  font-weight: 600;
}

.hero-label::before {
  content: '';
  display: none;
}

.hero-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.25rem, 9vw, 8rem);
  font-weight: 900;
  line-height: 0.92;
  color: var(--text-primary);
  margin-bottom: var(--sp-xl);
  letter-spacing: -0.02em;
  font-style: normal;
}

.name-line-2 {
  color: var(--cyan);
  display: block;
}

.hero-cursor::after {
  content: '_';
  color: var(--cyan);
  animation: blink 1s step-end infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-tagline {
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  color: var(--text-secondary);
  margin-bottom: var(--sp-3xl);
  max-width: 50ch;
  line-height: 1.75;
}

.hero-tagline .highlight {
  color: var(--cyan);
  font-family: var(--font-body);
  font-size: 0.95em;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--sp-3xl);
  margin-top: var(--sp-4xl);
  padding-top: var(--sp-3xl);
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-body);
  font-weight: 600;
}

/* ============================================================
   PROJECT CARDS
   ============================================================ */

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

.project-card {
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Horizontal Scroll Specifics */
.project-horizontal-scroll {
  height: 500vh;
  /* Long scroll area */
  position: relative;
  overscroll-behavior: none;
}

.horizontal-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.horizontal-header-wrap {
  margin-bottom: var(--sp-xl);
}

.horizontal-track-wrap {
  padding: 0 var(--sp-xl);
}

.horizontal-track {
  display: flex;
  gap: var(--sp-xl);
  will-change: transform;
}

.h-card {
  flex: 0 0 400px;
  /* Fixed width for horizontal cards */
  max-width: 400px;
}

.project-card:hover {
  transform: translateY(-4px) scale(1.01);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
  background: var(--bg-card-hover);
}

.card-link-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
}

/* Card thumbnail area */
.card-thumb {
  height: 175px;
  position: relative;
  overflow: hidden;
}

.card-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-games .card-thumb-inner {
  background: linear-gradient(135deg, #130808, #221212);
}

.cat-backend .card-thumb-inner {
  background: linear-gradient(135deg, #00121a, #001e28);
}

.cat-iot .card-thumb-inner {
  background: linear-gradient(135deg, #001410, #001e18);
}

.cat-frontend .card-thumb-inner {
  background: linear-gradient(135deg, #140e00, #211600);
}

.cat-programming .card-thumb-inner {
  background: linear-gradient(135deg, #0e081c, #150d28);
}

.cat-database .card-thumb-inner {
  background: linear-gradient(135deg, #140008, #200010);
}

.cat-tools .card-thumb-inner {
  background: linear-gradient(135deg, #000814, #000e20);
}

.cat-systems .card-thumb-inner {
  background: linear-gradient(135deg, #001410, #001e18);
}

.card-thumb-symbol {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  opacity: 0.4;
  user-select: none;
}

.cat-games .card-thumb-symbol {
  color: var(--cat-games);
}

.cat-backend .card-thumb-symbol {
  color: var(--cat-backend);
}

.cat-iot .card-thumb-symbol {
  color: var(--cat-iot);
}

.cat-frontend .card-thumb-symbol {
  color: var(--cat-frontend);
}

.cat-programming .card-thumb-symbol {
  color: var(--cat-programming);
}

.cat-database .card-thumb-symbol {
  color: var(--cat-database);
}

.cat-tools .card-thumb-symbol {
  color: var(--cat-tools);
}

.cat-systems .card-thumb-symbol {
  color: var(--cat-systems);
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.6s var(--ease);
}

.project-card:hover .card-thumb-img {
  transform: scale(1.05);
}

/* Category badge on card */
.card-badge {
  position: absolute;
  top: var(--sp-md);
  left: var(--sp-md);
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-pill);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cat-games .card-badge {
  background: #000;
  color: var(--cat-games);
  border: 1px solid rgba(255, 107, 107, 0.28);
}

.cat-backend .card-badge {
  background: #000;
  color: var(--cat-backend);
  border: 1px solid rgba(0, 229, 255, 0.25);
}

.cat-iot .card-badge {
  background: #000;
  color: var(--cat-iot);
  border: 1px solid rgba(0, 255, 136, 0.25);
}

.cat-frontend .card-badge {
  background: #000;
  color: var(--cat-frontend);
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.cat-programming .card-badge {
  background: #000;
  color: var(--cat-programming);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.cat-database .card-badge {
  background: #000;
  color: var(--cat-database);
  border: 1px solid rgba(251, 113, 133, 0.28);
}

.cat-tools .card-badge {
  background: #000;
  color: var(--cat-tools);
  border: 1px solid rgba(96, 165, 250, 0.28);
}

.cat-systems .card-badge {
  background: #000;
  color: var(--cat-systems);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

/* Card body */
.card-body {
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  flex: 1;
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}


.card-desc {
  font-size: 0.865rem;
  color: var(--text-secondary);
  line-height: 1.65;
  flex: 1;
}

.card-link {
  margin-top: var(--sp-md);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--cyan);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  transition: gap var(--transition-fast);
}

.card-link::after {
  content: '→';
}

.card-link:hover {
  gap: var(--sp-sm);
}

/* ============================================================
   CATEGORY OVERVIEW CARDS
   ============================================================ */

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
}

.category-card {
  padding: var(--sp-lg) var(--sp-xl);
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  cursor: pointer;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-default);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.category-card.cat-games .category-icon {
  background: rgba(255, 107, 107, 0.1);
  color: var(--cat-games);
}

.category-card.cat-backend .category-icon {
  background: rgba(0, 229, 255, 0.08);
  color: var(--cat-backend);
}

.category-card.cat-iot .category-icon {
  background: rgba(0, 255, 136, 0.08);
  color: var(--cat-iot);
}

.category-card.cat-frontend .category-icon {
  background: rgba(245, 158, 11, 0.1);
  color: var(--cat-frontend);
}

.category-card.cat-programming .category-icon {
  background: rgba(167, 139, 250, 0.1);
  color: var(--cat-programming);
}

.category-card.cat-database .category-icon {
  background: rgba(251, 113, 133, 0.1);
  color: var(--cat-database);
}

.category-card.cat-tools .category-icon {
  background: rgba(96, 165, 250, 0.1);
  color: var(--cat-tools);
}

.category-card.cat-systems .category-icon {
  background: rgba(52, 211, 153, 0.1);
  color: var(--cat-systems);
}

.category-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.category-name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
}

.category-count {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}



/* ============================================================
   FILTER SYSTEM (projekte.html)
   ============================================================ */

.filter-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}

.filter-bar {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin-bottom: var(--sp-3xl);
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-card);
  transition: all var(--transition);
  text-transform: none;
  letter-spacing: 0;
  display: inline-block;
}

.filter-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

label[for="filter-all"]:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

label[for="filter-games"]:hover {
  border-color: var(--cat-games);
  color: var(--cat-games);
}

label[for="filter-backend"]:hover {
  border-color: var(--cat-backend);
  color: var(--cat-backend);
}

label[for="filter-iot"]:hover {
  border-color: var(--cat-iot);
  color: var(--cat-iot);
}

label[for="filter-frontend"]:hover {
  border-color: var(--cat-frontend);
  color: var(--cat-frontend);
}

label[for="filter-programming"]:hover {
  border-color: var(--cat-programming);
  color: var(--cat-programming);
}

label[for="filter-database"]:hover {
  border-color: var(--cat-database);
  color: var(--cat-database);
}

label[for="filter-tools"]:hover {
  border-color: var(--cat-tools);
  color: var(--cat-tools);
}

label[for="filter-systems"]:hover {
  border-color: var(--cat-systems);
  color: var(--cat-systems);
}

/* Active filter button highlight */
#filter-all:checked~.filter-bar-wrap .filter-bar label[for="filter-all"] {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #000;
}

#filter-games:checked~.filter-bar-wrap .filter-bar label[for="filter-games"] {
  background: var(--cat-games);
  border-color: var(--cat-games);
  color: #000;
}

#filter-backend:checked~.filter-bar-wrap .filter-bar label[for="filter-backend"] {
  background: var(--cat-backend);
  border-color: var(--cat-backend);
  color: #000;
}

#filter-iot:checked~.filter-bar-wrap .filter-bar label[for="filter-iot"] {
  background: var(--cat-iot);
  border-color: var(--cat-iot);
  color: #000;
}

#filter-frontend:checked~.filter-bar-wrap .filter-bar label[for="filter-frontend"] {
  background: var(--cat-frontend);
  border-color: var(--cat-frontend);
  color: #000;
}

#filter-programming:checked~.filter-bar-wrap .filter-bar label[for="filter-programming"] {
  background: var(--cat-programming);
  border-color: var(--cat-programming);
  color: #000;
}

#filter-database:checked~.filter-bar-wrap .filter-bar label[for="filter-database"] {
  background: var(--cat-database);
  border-color: var(--cat-database);
  color: #000;
}

#filter-tools:checked~.filter-bar-wrap .filter-bar label[for="filter-tools"] {
  background: var(--cat-tools);
  border-color: var(--cat-tools);
  color: #000;
}

#filter-systems:checked~.filter-bar-wrap .filter-bar label[for="filter-systems"] {
  background: var(--cat-systems);
  border-color: var(--cat-systems);
  color: #000;
}

/* Hide cards that don't match the active filter */
#filter-games:checked~.grid-wrap .project-card:not(.cat-games),
#filter-backend:checked~.grid-wrap .project-card:not(.cat-backend),
#filter-iot:checked~.grid-wrap .project-card:not(.cat-iot),
#filter-frontend:checked~.grid-wrap .project-card:not(.cat-frontend),
#filter-programming:checked~.grid-wrap .project-card:not(.cat-programming),
#filter-database:checked~.grid-wrap .project-card:not(.cat-database),
#filter-tools:checked~.grid-wrap .project-card:not(.cat-tools),
#filter-systems:checked~.grid-wrap .project-card:not(.cat-systems) {
  display: none;
}

.filter-bar-wrap,
.grid-wrap {
  padding: 0 var(--sp-xl);
}

.projects-page-header {
  padding: var(--sp-3xl) var(--sp-xl) var(--sp-xl);
  max-width: var(--max-width);
  margin: 0 auto;
}

.projects-page-header h1 {
  margin-bottom: var(--sp-sm);
}

.filter-bar-wrap .filter-bar {
  max-width: var(--max-width);
  margin: 0 auto var(--sp-lg);
}

.grid-wrap .projects-grid {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ============================================================
   FORMS
   ============================================================ */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.form-label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  /* Standardized small-text size */
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.875rem 1.25rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  /* Standardized body size */
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230071E3' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.25rem center;
  padding-right: 3rem;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.65;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}

.form-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */

.page-hero {
  padding: var(--sp-3xl) 0 var(--sp-xl);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0;
}

.page-hero h1 {
  margin-bottom: var(--sp-sm);
}

.page-hero p {
  font-size: 1.1rem;
  max-width: 55ch;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */

.team-section {
  padding: var(--sp-4xl) 0;
}

.team-card {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-3xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-3xl);
  align-items: start;
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(145deg, var(--bg-surface), var(--bg-card-hover));
  border: 1px solid var(--border-default);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--cyan);
  opacity: 0.5;
  letter-spacing: -0.05em;
}

.team-info h2 {
  margin-bottom: var(--sp-xs);
}

.team-role {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--cyan);
  margin-bottom: var(--sp-xl);
  letter-spacing: 0;
  font-weight: 600;
}

.team-bio {
  margin-bottom: var(--sp-xl);
  line-height: 1.75;
}

.team-details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border-subtle);
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

.detail-value {
  font-size: 0.9rem;
  color: var(--text-primary);
}

.school-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-top: 2px;
}

.school-item {
  display: flex;
  gap: var(--sp-md);
  align-items: baseline;
}

.school-period {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--cyan);
  min-width: 160px;
  flex-shrink: 0;
  font-weight: 600;
}

.school-name {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.contact-form-section {
  padding: var(--sp-4xl) 0;
}

.contact-form-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-3xl);
  max-width: 680px;
  margin: 0 auto;
}

.contact-form-wrap h2 {
  margin-bottom: var(--sp-sm);
}

.contact-form-wrap>p {
  margin-bottom: var(--sp-2xl);
}

/* ============================================================
   PROJECT DETAIL PAGE
   ============================================================ */

.project-hero-area {
  height: 380px;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--sp-3xl);
  position: relative;
  display: flex;
  align-items: flex-end;
}

.project-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(80px + var(--sp-2xl)) 0 var(--sp-4xl);
  overflow: hidden;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-hero-bg-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-hero-bg.cat-games .project-hero-bg-inner {
  background: linear-gradient(135deg, #120606, #221010);
}

.project-hero-bg.cat-backend .project-hero-bg-inner {
  background: linear-gradient(135deg, #001218, #001e28);
}

.project-hero-bg.cat-iot .project-hero-bg-inner {
  background: linear-gradient(135deg, #001410, #001e18);
}

.project-hero-bg.cat-frontend .project-hero-bg-inner {
  background: linear-gradient(135deg, #140e00, #221600);
}

.project-hero-bg.cat-programming .project-hero-bg-inner {
  background: linear-gradient(135deg, #0e0820, #150d2c);
}

.project-hero-bg.cat-database .project-hero-bg-inner {
  background: linear-gradient(135deg, #130010, #200018);
}

.project-hero-bg.cat-tools .project-hero-bg-inner {
  background: linear-gradient(135deg, #000814, #000e22);
}

.project-hero-bg.cat-systems .project-hero-bg-inner {
  background: linear-gradient(135deg, #001410, #001e18);
}

.project-hero-symbol {
  font-family: var(--font-display);
  font-size: 14rem;
  font-weight: 700;
  opacity: 0.06;
  user-select: none;
  line-height: 1;
}

.cat-games .project-hero-symbol {
  color: var(--cat-games);
}

.cat-backend .project-hero-symbol {
  color: var(--cat-backend);
}

.cat-iot .project-hero-symbol {
  color: var(--cat-iot);
}

.cat-frontend .project-hero-symbol {
  color: var(--cat-frontend);
}

.cat-programming .project-hero-symbol {
  color: var(--cat-programming);
}

.cat-database .project-hero-symbol {
  color: var(--cat-database);
}

.cat-tools .project-hero-symbol {
  color: var(--cat-tools);
}

.cat-systems .project-hero-symbol {
  color: var(--cat-systems);
}

.project-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
}

.project-hero-content {
  position: relative;
  z-index: 1;
  padding: var(--sp-3xl);
  width: 100%;
}

.project-hero-content .card-badge {
  position: static;
  display: inline-block;
  margin-bottom: var(--sp-md);
}

.project-hero-content h1 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.project-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-3xl);
  align-items: start;
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: var(--sp-3xl);
  border-radius: var(--r-xl);
  border: 1px solid var(--border-subtle);
  margin-top: -60px;
  position: relative;
  z-index: 10;
  box-shadow: var(--shadow-md);
}

@media (max-width: 1024px) {
  .project-layout {
    grid-template-columns: 1fr;
    padding: var(--sp-xl);
    margin-top: -40px;
  }
}

.project-meta-bar {
  display: flex;
  gap: var(--sp-lg);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border-subtle);
}

.project-meta-item {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  font-weight: 500;
}

.project-body h3 {
  color: var(--text-primary);
  margin-bottom: var(--sp-md);
  margin-top: var(--sp-xl);
}

.project-body h3:first-child {
  margin-top: 0;
}

.project-body p {
  line-height: 1.8;
  margin-bottom: var(--sp-md);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-xl);
}

.gallery-item {
  aspect-ratio: 4/3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  transition: border-color var(--transition);
}

.gallery-item:hover {
  border-color: var(--border-default);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.gallery-item:nth-child(1) .gallery-placeholder {
  background: linear-gradient(135deg, #001520, #002030);
}

.gallery-item:nth-child(2) .gallery-placeholder {
  background: linear-gradient(135deg, #0a0015, #100020);
}

.gallery-item:nth-child(3) .gallery-placeholder {
  background: linear-gradient(135deg, #100800, #1e1000);
}

.sidebar-box {
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.sidebar-box-header {
  padding: var(--sp-lg) var(--sp-xl);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
}

.sidebar-box-header h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-primary);
}

.sidebar-box-header p {
  font-size: 0.82rem;
  margin-top: var(--sp-xs);
}

.sidebar-form {
  padding: var(--sp-xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: var(--sp-2xl);
  font-weight: 500;
  transition: color var(--transition-fast);
}

.back-link::before {
  content: '←';
}

.back-link:hover {
  color: var(--cyan);
}

/* ============================================================
   NEWSLETTER SECTION
   ============================================================ */
.newsletter-section {
  padding: var(--sp-4xl) 0;
  background: radial-gradient(circle at center, rgba(0, 229, 255, 0.03), transparent);
}

.newsletter-card {
  background: var(--bg-card);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-3xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3xl);
  box-shadow: var(--shadow-md);
}

.newsletter-content {
  flex: 1;
}

.newsletter-content .section-label {
  margin-bottom: var(--sp-sm);
}

.newsletter-content h2 {
  margin-bottom: var(--sp-sm);
}

.newsletter-content p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 45ch;
}

.newsletter-form {
  display: flex;
  gap: var(--sp-md);
  flex: 1;
  max-width: 500px;
}

.newsletter-input {
  flex: 1;
  padding: 1rem 1.5rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: all var(--transition);
}

.newsletter-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
  background: var(--bg-input);
}

@media (max-width: 900px) {
  .newsletter-card {
    flex-direction: column;
    text-align: center;
    padding: var(--sp-2xl);
  }

  .newsletter-content p {
    margin: 0 auto var(--sp-xl);
  }

  .newsletter-form {
    width: 100%;
    flex-direction: column;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--sp-3xl) 0 var(--sp-xl);
  margin-top: var(--sp-4xl);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
  gap: var(--sp-2xl);
  margin-bottom: var(--sp-3xl);
  padding-bottom: var(--sp-3xl);
  border-bottom: 1px solid var(--border-subtle);
}

.footer-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

.footer-newsletter-input {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  outline: none;
  transition: all var(--transition-fast);
}

.footer-newsletter-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-glow);
}

.footer-newsletter-btn {
  background: var(--cyan);
  color: #fff;
  border: none;
  border-radius: var(--r-pill);
  padding: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.footer-newsletter-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--cyan-glow);
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--sp-md);
  max-width: 28ch;
  line-height: 1.7;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: var(--sp-md);
  font-weight: 600;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--cyan);
}

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

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-status {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cat-iot);
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.75);
  }
}

/* ============================================================
   FEATURED SECTION FOOTER (index.html "Alle Projekte" link)
   ============================================================ */

.featured-footer {
  text-align: center;
  margin-top: var(--sp-xl);
}

/* ============================================================
   CONTACT PAGE LAYOUT
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-3xl);
  align-items: stretch;
}

.contact-form-wrapper {
  flex: 1;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-3xl);
  height: 100%;
}

.contact-card-header {
  margin-bottom: var(--sp-sm);
  text-align: left;
}

.contact-card-header h2 {
  margin-bottom: var(--sp-sm);
}

.contact-card-header p {
  font-size: 1rem;
  /* Standardized body size */
  max-width: 45ch;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}

.contact-info-sidebar {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-md);
}


.contact-info-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-lg);
  padding: var(--sp-xl);
  transition: all var(--transition);
}

.contact-info-card:hover {
  border-color: var(--border-default);
  transform: translateY(-4px);
  background: var(--bg-card);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 229, 255, 0.08);
  color: var(--cyan);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--sp-md);
}

.contact-info-card h3 {
  font-size: 1.25rem;
  /* Standardized subheading size */
  margin-bottom: var(--sp-xs);
  color: var(--text-primary);
}

.contact-info-card p {
  font-size: 1rem;
  /* Standardized body size */
  margin-bottom: var(--sp-sm);
}

.contact-info-link {
  font-family: var(--font-body);
  font-size: 1rem;
  /* Standardized body size */
  color: var(--cyan);
  font-weight: 600;
  transition: color var(--transition);
}

.contact-info-link:hover {
  opacity: 0.8;
}

.profile-photo-container {
  position: relative;
  width: 100%;
  border-radius: var(--r-lg);
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  overflow: hidden;
}

.profile-img-normal {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-img-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-photo-container:hover .profile-img-normal {
  opacity: 0;
}

.profile-photo-container:hover .profile-img-hover {
  opacity: 1;
}

/* ============================================================
   APPLE-STYLE SCROLL ANIMATIONS
   ============================================================ */

/* Base transition parameters */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1s cubic-bezier(0.16, 1, 0.3, 1),
    filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

/* Initial States */
.reveal-up {
  transform: translateY(60px) scale(0.96);
}

.reveal-left {
  transform: translateX(-80px);
}

.reveal-right {
  transform: translateX(80px);
}

/* Active State */
.reveal-up.reveal-active,
.reveal-left.reveal-active,
.reveal-right.reveal-active {
  opacity: 1;
  filter: blur(0);
  transform: translate(0) scale(1);
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */

#page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-base);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease), visibility 0.6s var(--ease);
}

#page-loader.loader-hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  height: 64px;
  width: auto;
  animation: pulse-glow 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  filter: none;
}

@keyframes pulse-glow {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
    filter: none;
  }

  50% {
    opacity: 0.4;
    transform: scale(0.9);
    filter: none;
  }
}

/* ============================================================
   CRAZY HERO ANIMATION
   ============================================================ */

.hero-content-wrapper {
  opacity: 0;
  transform: scale(0.6) translateY(-120px) rotateX(45deg);
  transform-origin: top center;
  filter: blur(20px);
  transition: opacity 1.8s cubic-bezier(0.2, 1, 0.3, 1),
    transform 1.8s cubic-bezier(0.25, 1, 0.5, 1),
    filter 1.8s cubic-bezier(0.2, 1, 0.3, 1);
  will-change: transform, opacity, filter;
}

.scroll-hero.hero-revealed .hero-content-wrapper {
  opacity: 1;
  transform: scale(1) translateY(0) rotateX(0deg);
  filter: blur(0);
}

/* ============================================================
   3D CUBE ENGINE (HERO BACKGROUND -> FOREGROUND)
   ============================================================ */

:root {
  --cube-size: 600px;
  --cube-z: calc(var(--cube-size) / 2);
}

.cube-container {
  width: var(--cube-size);
  height: var(--cube-size);
  perspective: 2000px;
  z-index: 2;
  position: relative;
  /* Centering */
  margin: 0 auto;
  animation: floating 8s ease-in-out infinite;
  touch-action: pan-y;
  /* Allow vertical scroll on iOS */
  -webkit-touch-callout: none;
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0) translateZ(0);
  }

  50% {
    transform: translateY(-25px) translateZ(0);
  }
}

.cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.1s linear;
}

.face {
  position: absolute;
  width: var(--cube-size);
  height: var(--cube-size);
  background: rgba(10, 22, 40, 0.75);
  border: 1px solid rgba(0, 113, 227, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 3rem;
  color: var(--cyan);
  box-shadow: 0 0 30px rgba(0, 113, 227, 0.12) inset, 0 0 60px rgba(0, 113, 227, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r-xl);
  overflow: hidden;
}

/* 
  Mathematics of the 3D space: 
  Each face is translated by exactly half the size of the cube 
  along the Z-axis of its respective rotated plane. 
*/
.front {
  transform: rotateY(0deg) translateZ(var(--cube-z));
}

.back {
  transform: rotateY(180deg) translateZ(var(--cube-z));
}

.right {
  transform: rotateY(90deg) translateZ(var(--cube-z));
}

.left {
  transform: rotateY(-90deg) translateZ(var(--cube-z));
}

.top {
  transform: rotateX(90deg) translateZ(var(--cube-z));
}

.bottom {
  transform: rotateX(-90deg) translateZ(var(--cube-z));
}

.cube-code {
  opacity: 0.6;
  text-shadow: none;
  font-size: clamp(2rem, 5vw, 4rem);
  text-align: center;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 600;
}

/* Adjust Philippe Saxer text inside cube so it fits */
.cube .hero-name {
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  margin-top: 0.5rem;
}

/* Ensure hero text sits nicely inside the front face */
.hero-content-wrapper {
  opacity: 1;
  transform: none;
  filter: none;
  width: 100%;
  height: 100%;
  padding: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

.scroll-hero.hero-revealed .hero-content-wrapper {
  /* Disable the crazy entry animation because the whole cube drops in anyway if applied */
  transform: none;
}

/* Responsive adjustments for the 3D cube */
@media (max-width: 1024px) {
  :root {
    --cube-size: 500px;
  }
}

@media (max-width: 768px) {
  :root {
    /* Cube must be small enough that rotated faces (extending ~41% beyond bounding box)
       still fit within the viewport. 68vw * 1.41 ≈ 96vw — just fits. */
    --cube-size: min(68vw, 60vh);
  }

  .cube-container {
    perspective: 1400px; /* Reduce perspective to lessen the 3D overflow */
  }

  /* Remove jittery transition on mobile — direct transform is smoother */
  .cube {
    transition: none;
    will-change: transform;
  }

  /* Remove expensive backdrop-filter on mobile for GPU performance */
  .face {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 22, 40, 0.92);
    box-shadow: 0 0 20px rgba(0, 113, 227, 0.10) inset, 0 0 40px rgba(0, 113, 227, 0.04);
  }

  .hero-content-wrapper {
    padding: var(--sp-lg);
  }

  .hero-name {
    font-size: 3rem;
  }

  .hero {
    height: 250vh;
  }

  .project-horizontal-scroll {
    height: 400vh;
  }
}

@media (max-width: 480px) {
  :root {
    --cube-size: min(62vw, 55vh);
  }

  .cube-container {
    perspective: 1200px;
  }

  .hero {
    height: 200vh;
  }

  .project-horizontal-scroll {
    height: 350vh;
  }
}

@media (max-width: 430px) {
  :root {
    --cube-size: min(64vw, 52vh);
  }
}

/* ============================================================
   MAGIC FOCUS EFFECT — :has() Selector
   When hovering a card, all siblings blur & darken
   ============================================================ */

/* Projects Grid — Magic Focus */
.projects-grid:has(.project-card:hover) .project-card:not(:hover) {
  filter: blur(3px) brightness(0.5);
  transform: scale(0.97);
  opacity: 0.6;
}

.projects-grid .project-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-grid:has(.project-card:hover) .project-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 20px 60px rgba(0, 113, 227, 0.15), 0 8px 24px rgba(0, 0, 0, 0.4);
  border-color: var(--cyan);
  z-index: 10;
}

/* Categories Grid — Magic Focus */
.categories-grid:has(.category-card:hover) .category-card:not(:hover) {
  filter: blur(2px) brightness(0.5);
  transform: scale(0.96);
  opacity: 0.5;
}

.categories-grid .category-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.categories-grid:has(.category-card:hover) .category-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 16px 48px rgba(0, 113, 227, 0.12), 0 6px 20px rgba(0, 0, 0, 0.35);
  border-color: var(--cyan);
  z-index: 10;
}

/* Horizontal Project Cards — Magic Focus */
.horizontal-track:has(.h-card:hover) .h-card:not(:hover) {
  filter: blur(3px) brightness(0.45);
  transform: scale(0.95);
  opacity: 0.5;
}

.horizontal-track .h-card {
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.horizontal-track:has(.h-card:hover) .h-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 24px 64px rgba(0, 113, 227, 0.2), 0 8px 32px rgba(0, 0, 0, 0.5);
  border-color: var(--cyan);
  z-index: 10;
}

/* Contact Info Cards — Magic Focus */
.contact-info-sidebar:has(.contact-info-card:hover) .contact-info-card:not(:hover) {
  filter: blur(2px) brightness(0.5);
  opacity: 0.5;
}

/* Disable magic focus on touch devices */
@media (hover: none) {

  .projects-grid:has(.project-card:hover) .project-card:not(:hover),
  .categories-grid:has(.category-card:hover) .category-card:not(:hover),
  .horizontal-track:has(.h-card:hover) .h-card:not(:hover),
  .contact-info-sidebar:has(.contact-info-card:hover) .contact-info-card:not(:hover) {
    filter: none;
    transform: none;
    opacity: 1;
  }
}

/* ============================================================
   ORGANIC GLASSMORPHISM — Animated Blob Background
   Living, morphing color blobs behind frosted glass
   ============================================================ */

.blob-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  will-change: transform;
  mix-blend-mode: screen;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.7) 0%, rgba(0, 71, 171, 0.3) 50%, transparent 70%);
  top: -10%;
  left: -5%;
  animation: blob-drift-1 18s ease-in-out infinite;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(100, 210, 255, 0.6) 0%, rgba(0, 180, 216, 0.2) 50%, transparent 70%);
  top: 30%;
  right: -10%;
  animation: blob-drift-2 22s ease-in-out infinite;
}

.blob-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(191, 90, 242, 0.5) 0%, rgba(120, 50, 180, 0.2) 50%, transparent 70%);
  bottom: -5%;
  left: 30%;
  animation: blob-drift-3 25s ease-in-out infinite;
}

@keyframes blob-drift-1 {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  }

  25% {
    transform: translate(80px, 50px) scale(1.15) rotate(45deg);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  }

  50% {
    transform: translate(30px, 100px) scale(0.9) rotate(120deg);
    border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
  }

  75% {
    transform: translate(-40px, 60px) scale(1.1) rotate(200deg);
    border-radius: 50% 40% 50% 60% / 35% 55% 45% 65%;
  }
}

@keyframes blob-drift-2 {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 50% 30% 60% 40% / 60% 40% 50% 50%;
  }

  33% {
    transform: translate(-70px, 60px) scale(1.2) rotate(-60deg);
    border-radius: 40% 60% 40% 60% / 50% 50% 60% 40%;
  }

  66% {
    transform: translate(50px, -40px) scale(0.85) rotate(-150deg);
    border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%;
  }
}

@keyframes blob-drift-3 {

  0%,
  100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 50%;
  }

  20% {
    transform: translate(60px, -30px) scale(1.1) rotate(72deg);
    border-radius: 40% 50% 60% 50% / 60% 40% 50% 60%;
  }

  40% {
    transform: translate(-30px, -60px) scale(0.95) rotate(144deg);
    border-radius: 50% 60% 40% 50% / 40% 50% 60% 50%;
  }

  60% {
    transform: translate(-60px, 30px) scale(1.15) rotate(216deg);
    border-radius: 60% 40% 50% 50% / 50% 60% 40% 60%;
  }

  80% {
    transform: translate(40px, 50px) scale(0.9) rotate(288deg);
    border-radius: 45% 55% 55% 45% / 55% 45% 55% 45%;
  }
}

/* Frosted glass overlay for sections with blobs */
.glass-overlay {
  position: relative;
  z-index: 1;
}

.glass-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  z-index: -1;
  border-radius: inherit;
}

/* Noise texture overlay for premium frosted glass feel */
.glass-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ============================================================
   WISHLIST / MERKLISTE — Heart Button on Cards
   ============================================================ */

.wishlist-btn {
  position: absolute;
  top: var(--sp-md);
  right: var(--sp-md);
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  padding: 0;
  outline: none;
}

.wishlist-btn:hover {
  background: rgba(0, 0, 0, 0.85);
  transform: scale(1.15);
}

.wishlist-btn svg {
  width: 18px;
  height: 18px;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wishlist-btn .heart-outline {
  stroke: var(--text-secondary);
  fill: none;
  stroke-width: 2;
  transition: all 0.3s ease;
}

.wishlist-btn.active .heart-outline {
  stroke: #FF6482;
  fill: #FF6482;
}

.wishlist-btn.active {
  animation: heart-pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes heart-pop {
  0% { transform: scale(1); }
  30% { transform: scale(1.35); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* Wishlist badge in navigation */
.nav-wishlist {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition);
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-wishlist::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  transition: width var(--transition);
}

.nav-wishlist:hover,
.nav-wishlist.active {
  color: var(--cyan);
}

.nav-wishlist:hover::after,
.nav-wishlist.active::after {
  width: 100%;
}

.nav-wishlist svg {
  width: 18px;
  height: 18px;
}

.nav-wishlist .heart-outline {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.wishlist-count {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 18px;
  height: 18px;
  background: var(--cyan);
  color: #fff;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wishlist-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* Merkliste section on projekte.html */
.merkliste-section {
  padding: var(--sp-3xl) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.merkliste-section .section-header {
  margin-bottom: var(--sp-xl);
}

.merkliste-empty {
  text-align: center;
  padding: var(--sp-3xl);
  background: var(--bg-card);
  border: 1px dashed var(--border-default);
  border-radius: var(--r-xl);
}

.merkliste-empty p {
  font-size: 1rem;
  color: var(--text-muted);
}

.merkliste-empty .empty-icon {
  font-size: 2.5rem;
  margin-bottom: var(--sp-md);
  opacity: 0.4;
}

.merkliste-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
}

.merkliste-clear-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  padding: 0.5rem 1.25rem;
  background: transparent;
  border: 1px solid rgba(255, 100, 130, 0.3);
  border-radius: var(--r-pill);
  color: #FF6482;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.merkliste-clear-btn:hover {
  background: rgba(255, 100, 130, 0.1);
  border-color: #FF6482;
}

/* Toast notification for wishlist */
.wishlist-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--r-pill);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-primary);
  z-index: 9000;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-glow);
  pointer-events: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.wishlist-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   CAL.COM BOOKING EMBED — Contact Page
   ============================================================ */

.booking-section {
  padding: var(--sp-3xl) 0;
}

.booking-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-xl);
  padding: var(--sp-3xl);
  overflow: hidden;
}

.booking-card-header {
  margin-bottom: var(--sp-xl);
}

.booking-card-header h2 {
  margin-bottom: var(--sp-sm);
}

.booking-card-header p {
  font-size: 1rem;
  max-width: 55ch;
}

.booking-embed-container {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  min-height: 500px;
  position: relative;
}

.booking-embed-container iframe {
  width: 100%;
  min-height: 500px;
  border: none;
  border-radius: var(--r-lg);
}

.booking-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  padding: var(--sp-3xl);
  text-align: center;
}

.booking-fallback .booking-icon {
  width: 64px;
  height: 64px;
  background: var(--cyan-subtle);
  border-radius: var(--r-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--cyan);
}

.booking-fallback p {
  max-width: 45ch;
}

.booking-fallback .btn-primary {
  margin-top: var(--sp-sm);
}

@media (max-width: 1024px) {
  .merkliste-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .merkliste-grid {
    grid-template-columns: 1fr;
  }

  .booking-card {
    padding: var(--sp-xl);
  }

  .booking-embed-container {
    min-height: 400px;
  }

  .booking-embed-container iframe {
    min-height: 400px;
  }
}

/* Reduce blob intensity on mobile for performance */
@media (max-width: 768px) {
  .blob {
    filter: blur(80px);
    opacity: 0.35;
  }

  .blob-1 {
    width: 300px;
    height: 300px;
  }

  .blob-2 {
    width: 250px;
    height: 250px;
  }

  .blob-3 {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 480px) {
  .blob {
    filter: blur(60px);
    opacity: 0.25;
  }

  .blob-1 {
    width: 200px;
    height: 200px;
  }

  .blob-2 {
    width: 180px;
    height: 180px;
  }

  .blob-3 {
    width: 150px;
    height: 150px;
  }
}

/* ============================================================
   EASTER EGG - SNAKE GAME
   ============================================================ */

/* Hover animation on footer logo */
.footer-brand .site-logo img {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.footer-brand .site-logo img:hover {
  animation: logo-runaway 0.3s cubic-bezier(.36,.07,.19,.97) infinite;
  cursor: pointer;
}

@keyframes logo-runaway {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5px, -5px) rotate(5deg); }
  50% { transform: translate(-5px, -5px) rotate(-5deg); }
  75% { transform: translate(-5px, 5px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* Modal styles */
.snake-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.snake-modal.active {
  opacity: 1;
  visibility: visible;
}

.snake-game-container {
  background: #4a752c;
  padding-top: 60px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  margin: 10px;
  max-width: calc(100vw - 20px);
  box-sizing: border-box;
}

.snake-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: white;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 24px;
}

.snake-score-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.snake-apple-icon {
  width: 24px;
  height: 24px;
  background: #e7471d;
  border-radius: 50%;
  display: block;
}

.snake-close-btn {
  background: rgba(0,0,0,0.2);
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}

.snake-close-btn:hover {
  background: rgba(0,0,0,0.4);
}

#snakeCanvas {
  background: #aad751;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  display: block;
  max-width: 100%;
  height: auto;
  aspect-ratio: 17 / 15;
}

.snake-game-over {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  display: none;
  flex-direction: column;
  gap: 20px;
}

.snake-game-over.active {
  display: flex;
}

.snake-game-over h2 {
  margin: 0;
  font-size: 32px;
  color: white;
}

.snake-restart-btn {
  background: #0071E3;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.2s;
}

.snake-restart-btn:hover {
  background: #0060C0;
}

.cube-contact-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
}
