/* === VARIABLES === */
:root {
  --bg: #0f0f13;
  --bg-card: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.08);
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --orange: #f97316;
  --orange-light: #fb923c;
  --amber: #f59e0b;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --blue-light: #60a5fa;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow: hidden;
}

/* === SECTIONS CONTAINER === */
.sections-container {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.section {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 2rem 2rem;
}

.section-inner {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

/* === TYPOGRAPHY === */
.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  margin-bottom: 3rem;
}

.highlight       { color: var(--purple-light); }
.highlight-orange { color: var(--orange-light); }

/* === BUTTONS === */
.btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-family: inherit;
}

.btn-primary  { background: var(--purple); color: #fff; }
.btn-primary:hover { background: #6d28d9; transform: translateY(-2px); }

.btn-outline  { border: 1px solid var(--purple); color: var(--purple-light); background: transparent; }
.btn-outline:hover { background: rgba(124, 58, 237, 0.1); }

.btn-orange   { background: var(--orange); color: #fff; }
.btn-orange:hover { background: #ea6c10; transform: translateY(-2px); }

.btn-sm { padding: 0.35rem 0.9rem; font-size: 0.8rem; }

/* === ANIMATIONS === */
.animate-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible { opacity: 1; transform: translateY(0); }
.animate-in:nth-child(2) { transition-delay: 0.1s; }
.animate-in:nth-child(3) { transition-delay: 0.2s; }
.animate-in:nth-child(4) { transition-delay: 0.3s; }

/* === NAVBAR === */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(15, 15, 19, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  color: var(--purple);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--purple-light); }

/* === SCROLL DOTS === */
.scroll-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--purple);
  background: transparent;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  padding: 0;
}

.dot.active {
  background: var(--purple);
  transform: scale(1.3);
}

/* === HERO === */
.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
  max-width: 1100px;
  width: 100%;
}

.hero-greeting {
  color: var(--text-muted);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.hero-name {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
}

.hero-tagline {
  color: var(--purple-light);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  min-height: 1.6em;
}

.cursor {
  animation: blink 1s step-end infinite;
}

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

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Code block */
.hero-code { flex-shrink: 0; }

.code-block {
  background: rgba(124, 58, 237, 0.08);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(8px);
  min-width: 280px;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(124, 58, 237, 0.15);
}

.code-dot { width: 10px; height: 10px; border-radius: 50%; }
.code-dot.red    { background: #ff5f57; }
.code-dot.yellow { background: #ffbd2e; }
.code-dot.green  { background: #28ca41; }

.code-filename {
  color: var(--text-dim);
  font-size: 0.75rem;
  margin-left: 4px;
}

.code-body {
  padding: 1.25rem 1.5rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.8;
  white-space: pre;
}

.c-purple { color: var(--purple-light); }
.c-white  { color: var(--text); }
.c-green  { color: #34d399; }
.c-amber  { color: var(--amber); }

/* === SKILLS === */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(8px);
  transition: transform 0.3s, border-color 0.3s;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.3);
}

.skill-icon { font-size: 2rem; margin-bottom: 1rem; }

.skill-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }

.skill-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.learning-label {
  color: var(--amber) !important;
  font-weight: 600;
  margin-bottom: 0.25rem !important;
}

.progress-bar {
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple), var(--purple-light));
  border-radius: 2px;
  transition: width 1s ease 0.3s;
}

.progress-fill.amber {
  background: linear-gradient(90deg, var(--amber), #fcd34d);
}

/* === PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.project-card {
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  position: relative;
}

.wip-banner {
  background: rgba(245, 158, 11, 0.15);
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.35rem 1rem;
  text-align: center;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 58, 237, 0.4);
}

.project-image {
  height: 140px;
  background: rgba(124, 58, 237, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-placeholder { color: var(--text-dim); font-size: 0.8rem; }

.project-body { padding: 1.25rem; }
.project-body h3 { margin-bottom: 0.5rem; }

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.tag {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--purple-light);
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

.tag-orange {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--orange-light);
}
.tag-blue {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.3);
  color: var(--blue-light);
}
.project-body p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.project-links { display: flex; gap: 0.5rem; }

/* === N8N === */
.section-orange {
  background: radial-gradient(ellipse at center, rgba(249, 115, 22, 0.05) 0%, transparent 70%);
}

.n8n-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.n8n-text { flex: 1; }

.n8n-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.n8n-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.tag-orange-chip {
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.3);
  color: var(--orange-light);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* Workflow Diagram */
.n8n-workflow {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.workflow-node {
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.3);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.4s, transform 0.4s;
}

.workflow-node.visible { opacity: 1; transform: scale(1); }

.node-icon   { font-size: 2rem; margin-bottom: 0.5rem; }
.node-label  { color: var(--orange-light); font-size: 0.85rem; font-weight: 600; }

.workflow-arrow {
  color: rgba(249, 115, 22, 0.5);
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.4s;
}

.workflow-arrow.visible { opacity: 1; }

/* === ÜBER MICH === */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

.about-text strong { color: var(--text); }

.about-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.about-facts {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fact-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color 0.3s, transform 0.3s;
}

.fact-card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  transform: translateX(4px);
}

.fact-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }

.fact-card h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--purple-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}

.fact-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* === CONTACT === */
.contact-subtitle { color: var(--text-muted); margin-bottom: 2rem; }

.contact-form {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.35rem; }

.form-group label { color: var(--text-muted); font-size: 0.85rem; }

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
}

.form-success { display: none; color: #34d399; font-size: 0.9rem; margin-top: 0.5rem; }
.form-success.show { display: block; }

.social-links { display: flex; gap: 1.5rem; }

.social-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.social-link:hover { color: var(--purple-light); }

/* === HAMBURGER BUTTON === */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === RESPONSIVE: TABLET === */
@media (max-width: 1024px) {
  .hero-content { gap: 2.5rem; }
  .about-layout { gap: 2.5rem; }
  .skills-grid  { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .n8n-content  { gap: 2.5rem; }
}

/* === RESPONSIVE: MOBILE === */
@media (max-width: 768px) {

  /* Disable scroll snap — sections can be taller than viewport */
  .sections-container { scroll-snap-type: none; }

  .section {
    height: auto;
    min-height: 100vh;
    padding: 100px 1.25rem 2.5rem;
    align-items: flex-start;
  }

  .section-title { margin-bottom: 1.75rem; }

  /* Navbar */
  .navbar { padding: 0.875rem 1.25rem; }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(15, 15, 19, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open { display: flex; }

  .nav-links li a {
    display: block;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  /* Hero */
  .hero-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .hero-buttons { justify-content: center; }

  .hero-code { width: 100%; }

  .code-block {
    min-width: unset;
    width: 100%;
  }

  .code-body {
    font-size: 0.82rem;
    white-space: pre-wrap;
    overflow-x: auto;
  }

  /* Skills & Projects */
  .skills-grid  { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  /* Über mich */
  .about-layout { grid-template-columns: 1fr; gap: 2rem; }
  .fact-card:hover { transform: none; }

  /* n8n */
  .n8n-content  { flex-direction: column; gap: 2rem; }
  .n8n-workflow { flex-wrap: wrap; justify-content: center; }

  /* Scroll dots */
  .scroll-dots { display: none; }
}

/* === RESPONSIVE: SMALL SCREENS === */
@media (max-width: 480px) {
  .hero-name    { font-size: clamp(2.5rem, 13vw, 3.5rem); }
  .section-title { font-size: clamp(1.6rem, 7vw, 2rem); }
  .skill-card   { padding: 1.5rem; }
  .project-body { padding: 1rem; }
  .code-body    { font-size: 0.78rem; padding: 1rem 1.125rem; }
  .n8n-text p   { font-size: 0.95rem; }
}
