/* ========================= */
/* GLOBAL */
/* ========================= */
html, body {
  overflow-x: hidden;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background: #050505;
  color: white;
  overflow-x: hidden;
}

/* GRID (ALLE SEITEN) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;

  background:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

  background-size: 40px 40px;
}

/* GLOW (ALLE SEITEN) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;

  background:
    radial-gradient(circle at 10% 50%, rgba(0,255,255,0.15), transparent 40%),
    radial-gradient(circle at 90% 50%, rgba(0,255,255,0.15), transparent 40%);
}

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

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
}

.glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,255,255,0.2), transparent);
  filter: blur(100px);
  z-index: 0;
}

h1 {
  font-size: 66px;
  font-family: 'Orbitron', sans-serif;
  z-index: 1;
}

h2 {
  font-weight: 300;
  margin-top: 10px;
  color: #00ffff;
  font-size: 30px;
  z-index: 1;
}

.tagline {
  margin-top: 20px;
  opacity: 0.7;
  z-index: 1;
}

/* Buttons */
.buttons {
  margin-top: 40px;
  display: flex;
  gap: 20px;
  z-index: 1;
}

.btn {
  padding: 12px 24px;
  border: 1px solid #00ffff;
  color: #00ffff;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s;
}

.btn:hover {
  background: #00ffff;
  color: black;
}

/* ========================= */
/* TERMINAL */
/* ========================= */

.terminal {
  margin-top: 60px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  padding: 20px;
  border-radius: 12px;
  width: 80%;
  max-width: 600px;
  text-align: left;
  font-family: monospace;
  z-index: 1;
}

.line {
  color: #00ff88;
  margin-bottom: 6px;
}

.line.level1 {
  margin-left: 20px;
  color: #e845fe;
}

.line.level2 {
  margin-left: 40px;
  color: #66ffe0;
}

.cursor {
  display: inline-block;
  width: 10px;
  background: #00ff88;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50%, 100% { opacity: 1; }
  25%, 75% { opacity: 0; }
}

/* ========================= */
/* TODO PANEL */
/* ========================= */

.todo-panel {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 260px;
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 0 30px rgba(0,255,255,0.05);
}

/* ========================= */
/* CV */
/* ========================= */

.cv-container {
  padding: 100px 40px;
  max-width: 1100px;
  margin: auto;
}

/* ========================= */
/* GALLERY */
/* ========================= */

.gallery-container {
  padding: 100px 40px;
  max-width: 1200px;
  margin: auto;
}

.gallery-title {
  text-align: center;
  font-size: 3rem;
  font-family: 'Orbitron', sans-serif;
  margin-bottom: 60px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.gallery-card {
  cursor: pointer;
  text-align: center;
}

.gallery-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 16px;
  transition: transform 0.3s;
}

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

/* ========================= */
/* INSTAGRAM */
/* ========================= */

.instagram-section {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  padding-bottom: 80px;
}

.insta-card {
  display: flex;
  align-items: center;
  gap: 20px;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);

  padding: 20px 30px;
  border-radius: 16px;
  text-decoration: none;
  color: white;

  transition: 0.3s;
}

.insta-card img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.insta-card:hover {
  transform: scale(1.05);
  border-color: rgba(0,255,255,0.4);
  box-shadow: 0 0 20px rgba(0,255,255,0.15);
}

.insta-info h3 {
  color: #00ffff;
}

.insta-info p {
  font-size: 0.9rem;
  opacity: 0.7;
}

/* ========================= */
/* POPUP */
/* ========================= */

.gallery-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  flex-direction: column;
}

.popup-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;

  width: 90%;
  max-height: 80%;
  overflow-y: auto;

  transform: translateZ(0);
  will-change: transform;
  -webkit-overflow-scrolling: touch;
}

.popup-content img {
  width: 250px;
  height: 350px;
  object-fit: cover;
  border-radius: 12px;
  contain: content;
}

/* ========================= */
/* LIGHTBOX */
/* ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.lightbox img {
  max-width: 85%;
  max-height: 80%;
  border-radius: 12px;
}

/* ========================= */
/* SCROLLBAR */
/* ========================= */

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: white;
  border-radius: 10px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: white transparent;
}

.cv-container {
  padding: 100px 40px;
  max-width: 1100px;
  margin: auto;
}

.cv-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 66px;
  margin-bottom: 40px;
  text-align: center;
}

.cv-section {
  margin-bottom: 50px;
  padding: 30px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  transition: 0.3s;
}

.cv-section h2{
  padding-bottom: 33px;
}

.cv-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #00ffff, transparent);
}

.cv-section:hover {
  transform: translateY(-6px) scale(1.01);
}

.cv-entry a {
  color:#00ffffb8;
}

.cv-entry.language {
  display: flex;
  justify-content: space-between; /* links + rechts */
  align-items: center;
}

.cv-entry.language h3 {
  margin: 0;
}

.cv-entry.language p {
  margin: 0;
  opacity: 0.7;
  font-size: 0.9rem;
}

.cv-entry {
  border: 1px solid rgba(255,255,255,0.08);
  padding: 15px 18px;
  border-radius: 10px;
  margin-bottom: 12px;
  transition: 0.25s;
}

.cv-entry p {
  color:#ffffff78;
}

.cv-section h2 {
  font-family: 'Orbitron', sans-serif;
}

.cv-entry:hover {
  border-color: rgba(0,255,255,0.4);
  background: rgba(255,255,255,0.03);
}

.todo-panel h3 {
  margin-bottom: 15px;
  color: #00ffff;
}

.todo-panel ul {
  list-style: none;
}

.todo-panel li {
  margin-bottom: 10px;
  font-size: 0.95rem;
  opacity: 0.8;
  position: relative;
  padding-left: 22px;
}

/* Checkbox Look */
.todo-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 12px;
  height: 12px;
  border: 1px solid #00ffff;
  border-radius: 3px;
}

/* Abgehakt */
.todo-panel li.done {
  opacity: 0.4;
  text-decoration: line-through;
}

.todo-panel li.done::before {
  background: #00ffff;
}

.todo-panel li:hover {
  opacity: 1;
  transform: translateX(3px);
}

/* ========================= */
/* TEXT DOCK NAV */
/* ========================= */

.dock {
  position: fixed; /* 🔥 wichtig */

  bottom: 20px; /* Abstand vom unteren Rand */
  left: 50%;
  transform: translateX(-50%);

  z-index: 9999; /* über allem */

  display: flex;
  gap: 40px;
  padding: 14px 30px;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 20px;

  box-shadow: 0 0 30px rgba(0,255,255,0.08);
}

.dock-item {
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;

  opacity: 0.6;
  transition: 0.3s;
}

/* Hover Effekt */
.dock-item:hover {
  opacity: 1;
  color: #00ffff;
}

/* Unterstrich Animation */
.dock-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #00ffff;
  transition: 0.3s;
}

.dock-item:hover::after {
  width: 100%;
}

/* ACTIVE BUBBLE */
.dock-item.active {
  position: relative;
  color: #00ffff;
  opacity: 1;
  z-index: 1;
}

/* Bubble */
.dock-item.active::before {
  content: "";
  position: absolute;
  inset: -8px -14px;

  background: rgba(0, 255, 255, 0.12);
  border: 1px solid rgba(0, 255, 255, 0.3);

  border-radius: 12px;
  backdrop-filter: blur(10px);

  z-index: -1;

  box-shadow: 0 0 15px rgba(0,255,255,0.15);
}

/* ========================= */
/* SLIDING BUBBLE */
/* ========================= */

.dock {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);

  display: flex;
  gap: 40px;
  padding: 14px 30px;

  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 20px;
  z-index: 1000;

  box-shadow: 0 0 30px rgba(0,255,255,0.08);

  position: fixed;
}

/* Items */
.dock-item {
  position: relative;
  text-decoration: none;
  color: white;
  opacity: 0.6;
  transition: 0.3s;
  padding: 6px 10px;
}

.dock-item:hover {
  opacity: 1;
  color: #00ffff;
}

/* Bubble */
.dock-bubble {
  position: absolute;
  height: 100%;
  border-radius: 12px;

  background: rgba(0,255,255,0.12);
  border: 1px solid rgba(0,255,255,0.3);
  backdrop-filter: blur(10px);

  box-shadow: 0 0 25px rgba(0,255,255,0.2);

  transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

/* Text über Bubble */
.dock-item {
  z-index: 1;
}

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

.contact-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  padding: 100px 40px;
}

/* LEFT */
.contact-left {
  max-width: 400px;
}

.contact-left h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  margin-bottom: 20px;
}

.contact-text {
  opacity: 0.7;
  margin-bottom: 30px;
}

/* Terminal Box */
.contact-terminal {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 15px;
  border-radius: 10px;
  font-family: monospace;
  color: #00ff88;
}

/* RIGHT */
.contact-right {
  width: 400px;
}

/* FORM */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
}

/* Inputs */
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 12px;
  border-radius: 8px;
  color: white;
  outline: none;
  transition: 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00ffff;
}

/* Button */
.contact-form button {
  margin-top: 10px;
  padding: 12px;
  border: none;
  border-radius: 8px;

  background: #00ffff;
  color: black;
  font-weight: 600;
  cursor: pointer;

  transition: 0.3s;
}

.contact-form button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0,255,255,0.5);
}

.contact-terminal p {
  margin-bottom: 6px;
  font-family: monospace;
  color: #00ff88;
}

.contact-terminal .error {
  color: #ff4d4d;
}

/* ========================= */
/* CYBER CONTACT DRAWER */
/* ========================= */

.contact-drawer {
  position: fixed;
  right: -280px;
  top: 50%;
  transform: translateY(-50%);

  width: 280px;
  transition: 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1000;
}

.contact-drawer.open {
  right: 20px;
}

/* PANEL */
.drawer-content {
  position: relative;

  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);

  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px;

  overflow: hidden;
}

/* Glow Edge */
.drawer-content::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 14px;
  pointer-events: none;

  background: linear-gradient(
    120deg,
    transparent,
    rgba(0,255,255,0.15),
    transparent
  );

  opacity: 0.6;
}

/* Section Titles */
.drawer-content h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  color: #00ffff;
  margin-bottom: 12px;
}

/* Items */
.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;

  font-size: 0.9rem;
  padding: 6px 0;

  border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Left label (Dev style) */
.contact-item span {
  opacity: 0.5;
  font-family: monospace;
}

/* Right value */
.contact-item a,
.contact-item p {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: 0.3s;
}

/* Hover Effekt */
.contact-item a:hover {
  color: #00ffff;
  opacity: 1;
  transform: translateX(4px);
}

/* Divider */
.contact-divider {
  height: 1px;
  background: rgba(0,255,255,0.2);
  margin: 14px 0;
}

/* ========================= */
/* TOGGLE BUTTON (UPGRADE) */
/* ========================= */

.drawer-toggle {
  position: absolute;
  left: -50px;
  top: 20px;

  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-family: monospace;

  background: rgba(0,255,255,0.08);
  border: 1px solid rgba(0,255,255,0.3);
  border-radius: 8px;

  color: #00ffff;
  cursor: pointer;

  transition: 0.3s;
}

/* Hover */
.drawer-toggle:hover {
  background: rgba(0,255,255,0.2);
  box-shadow: 0 0 15px rgba(0,255,255,0.4);
}

/* ========================= */
/* SOCIAL ICONS */
/* ========================= */

.social-icons {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

/* einzelnes Icon */
.social-icons a {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.753);
  border: 1px solid rgba(255,255,255,0.1);

  transition: 0.3s;
}

/* Icon Bild */
.social-icons img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

/* Hover Effekt */
.social-icons a:hover {
  background: rgb(168, 255, 255);
  border-color: rgba(0,255,255,0.4);

  transform: translateY(-3px);
  box-shadow: 0 0 15px rgba(0,255,255,0.3);
}

/* ========================= */
/* TERMINAL CARD (REUSABLE) */
/* ========================= */

.terminal-card {
  position: fixed; /* 🔥 WICHTIG */

  width: 380px;
  max-height: 0;
  overflow: hidden;

  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.08);

  border-radius: 12px;

  transition: max-height 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  z-index: 999; /* sicher oben */
}

/* geöffnet */
.terminal-card.open {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* geöffnet */
.terminal-card.open {
  max-height: 300px;
}

/* Header (Linie oben) */
.terminal-header {
  height: 6px;
  background: linear-gradient(90deg, #00ffff, transparent);
}

/* Content */
.terminal-content {
  padding: 15px;
  font-family: monospace;
  color: #00ff88;
  text-align: left;
}

/* Standard */
.terminal-content p {
  margin-bottom: 6px;
  color: #00ff88;
}

/* Level 1 (leicht eingerückt) */
.terminal-content p.level1 {
  color: #66ffe0;
  margin-left: 15px;
}

/* Level 2 (stärker eingerückt) */
.terminal-content p.level2 {
  color: #fc45ff;
  margin-left: 30px;
}

/* Cursor */
.terminal-content::after {
  content: "|";
  margin-left: 5px;
  animation: blink 1s infinite;
}

/* Position Variants */

/* LINKS (Landing) */
.terminal-left {
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}

.terminal-left-cv {
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
}

/* ========================= */
/* FUN BUTTON */
/* ========================= */

.fun-button {
  position: fixed;
  bottom: 30px;
  left: 30px;

  width: 90px;
  height: 90px;

  border-radius: 50%;
  background: rgba(0,255,255,0.1);
  border: 1px solid rgba(0,255,255,0.4);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.8rem;
  text-align: center;
  color: #00ffff;

  cursor: pointer;

  backdrop-filter: blur(10px);

  transition: 0.3s;
  z-index: 1000;
}

/* Hover */
.fun-button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0,255,255,0.5);
}

/* ========================= */
/* POPUP */
/* ========================= */

.fun-popup {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.7);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  pointer-events: none;

  transition: 0.3s;
  z-index: 2000;
}

.fun-popup.active {
  opacity: 1;
  pointer-events: all;
}

/* Popup Box */
.fun-popup-content {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;

  padding: 30px;
  text-align: center;

  max-width: 300px;

  transform: scale(0.8);
  transition: 0.3s;
}

/* Animation */
.fun-popup.active .fun-popup-content {
  transform: scale(1);
}

/* Button im Popup */
.fun-popup-content button {
  margin-top: 20px;
  padding: 10px 20px;

  border: none;
  border-radius: 8px;

  background: #00ffff;
  color: black;

  cursor: pointer;
}

/* ========================= */
/* MOBILE (iPhone) */
/* ========================= */

@media (max-width: 600px) {

  /* HERO */
  .hero {
    padding: 40px 20px;
  }

  h1 {
    font-size: 38px;

  }

  h2 {
    font-size: 20px;
  }

  .tagline {
    font-size: 0.9rem;

  }

  /* TERMINAL */
  .terminal {
    height: 180px;
    overflow-y: auto;
    font-size: 0.8rem;
  }

  /* TERMINAL CARDS */
  .terminal-card {
    display: none;

  }

  /* TODO PANEL → AUSBLENDEN */
  .todo-panel {
    display: none;
  }

  /* DOCK */
  @media (max-width: 600px) {

    .dock {
      bottom: calc(20px + env(safe-area-inset-bottom));
    }

  }

  .dock-item {
    font-size: 0.7rem;
  }

  /* GALLERY */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  /* CONTACT */
  .contact-container {
    flex-direction: column;
    gap: 40px;
  }

  .contact-right {
    width: 100%;
  }

  /* FUN BUTTON */
  .fun-button {
    display: none;
  }

  .cv-title{
    font-size: 3rem;
  }
}
/* ========================= */
/* TABLET (iPad) */
/* ========================= */

@media (max-width: 1750px) {

  /* HERO */
  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 24px;
  }

  .insta-card {
    margin-bottom: 20px;
  }

  .drawer-toggle {
    margin-top: 75px;
  }

  /* TERMINAL CARDS */
  .terminal-card {
    display: none;
  }

  /* TODO PANEL */
  .todo-panel {
    display: none;
  }

  /* GALLERY */
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: -110px;
  }

  /* CONTACT */
  .contact-container {
    flex-direction: column;
    gap: 60px;
  }

  .contact-right {
    width: 80%;
  }
};