/* Updated CSS variables with sunrise red and deep navy colors */
/* CSS Variables for Theme */
:root {
  --bg-color: #ffffff;
  --text-color: #333333;
  --accent-color: #e30613;
  --accent-dark: #b8050f;
  --secondary-bg: #f8fafc;
  --border-color: #e2e8f0;
  --card-bg: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 25px -5px rgba(227, 6, 19, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.8);
  --glass-border: rgba(255, 255, 255, 0.2);
  /* Wave gradient colors for smooth transitions */
  --wave-start: #ffffff;
  --wave-mid: #f1f5f9;
  --wave-end: #f8fafc;
}

[data-theme="dark"] {
  --bg-color: #0a0f1c;
  --text-color: #f1f5f9;
  --accent-color: #e30613;
  --accent-dark: #b8050f;
  --secondary-bg: #1a1f2e;
  --border-color: #2d3748;
  --card-bg: #1e293b;
  --shadow: 0 4px 6px -1x rgba(0, 0, 0, 0.4);
  --shadow-hover: 0 8px 25px -5px rgba(227, 6, 19, 0.25);
  --glass-bg: rgba(30, 41, 59, 0.8);
  --glass-border: rgba(255, 255, 255, 0.1);
  /* Dark mode wave gradient colors for seamless blending */
  --wave-start: #0a0f1c;
  --wave-mid: #141b2e;
  --wave-end: #1a1f2e;
}

/* Added prefers-reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  transition: all 0.3s ease;
  /* Added fluid typography */
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

/* Added scroll progress bar */
/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-dark));
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Enhanced navigation with mobile menu and scroll effects */
/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: transparent;
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background-color: var(--bg-color);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo a {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: bold;
  color: var(--accent-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-logo a:hover {
  text-shadow: 0 0 10px rgba(227, 6, 19, 0.3);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

/* Added animated underline hover effect */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

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

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

.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  color: var(--text-color);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 44px;
  min-height: 44px;
}

.theme-toggle:hover,
.theme-toggle:focus {
  border-color: var(--accent-color);
  color: var(--accent-color);
  box-shadow: 0 0 10px rgba(227, 6, 19, 0.2);
}

/* Added mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Enhanced hero section with sunrise motif */
/* Hero Section */
/* ===== deine bestehenden Variablen und Basis-Styles bleiben wie gehabt (aus deiner Originaldatei) ===== */

/* ... dein bestehendes CSS von oben bis inkl. Navigation bleibt ... */

/* ===== HERO: Video-Design ===== */

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--bg-color);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none; /* nichts anklickbar hinter dem Content */
}

/* animated grid */
.grid-background {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(227, 6, 19, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(227, 6, 19, 0.05) 1px, transparent 1px),
    radial-gradient(circle at 50% 50%, rgba(227, 6, 19, 0.025) 0%, transparent 60%);
  background-size: 60px 60px, 60px 60px, 220px 220px;
  animation: gridMove 25s linear infinite;
  opacity: 0.85;
}
@keyframes gridMove {
  0% { transform: translate(0,0); }
  100% { transform: translate(60px,60px); }
}

/* particles */
.particle-system {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  width: 4px; height: 4px;
  background: var(--accent-color);
  border-radius: 50%;
  opacity: 0.6;
}
.particle:nth-child(1){ top:20%; left:25%; animation: particleFloat 12s ease-in-out infinite; }
.particle:nth-child(2){ top:60%; left:70%; animation: particleFloat 15s ease-in-out infinite reverse; }
.particle:nth-child(3){ top:80%; left:20%; animation: particleFloat 18s ease-in-out infinite; }
.particle:nth-child(4){ top:30%; left:80%; animation: particleFloat 14s ease-in-out infinite reverse; }
.particle:nth-child(5){ top:70%; left:50%; animation: particleFloat 16s ease-in-out infinite; }
.particle:nth-child(6){ top:10%; left:60%; animation: particleFloat 13s ease-in-out infinite reverse; }

@keyframes particleFloat {
  0%,100% { transform: translate(0,0); opacity: 0.3; }
  25% { transform: translate(20px,-30px); opacity: 0.8; }
  50% { transform: translate(-10px,-60px); opacity: 0.6; }
  75% { transform: translate(-30px,-30px); opacity: 0.9; }
}

/* orbs */
.floating-elements {
  position: absolute;
  inset: 0;
  pointer-events: none; /* verhindert Hover-Bug in Ecken */
}
.tech-orb {
  position: absolute;
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--accent-color), #ff4757);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 28px;
  box-shadow: 0 10px 40px rgba(227, 6, 19, 0.3);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}
.orb-glow {
  position: absolute; inset: -10px;
  background: radial-gradient(circle, rgba(227, 6, 19, 0.4) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: orbGlow 3s ease-in-out infinite alternate;
}
@keyframes orbGlow {
  0% { opacity: 0.5; transform: scale(0.8); }
  100% { opacity: 1; transform: scale(1.2); }
}
.orb-1 { top: 15%; left: 8%; animation: float 7s ease-in-out infinite; }
.orb-2 { top: 25%; right: 12%; animation: float 9s ease-in-out infinite reverse; }
.orb-3 { bottom: 30%; left: 12%; animation: float 8s ease-in-out infinite; }
.orb-4 { bottom: 20%; right: 18%; animation: float 10s ease-in-out infinite reverse; }
.orb-5 { top: 55%; left: 50%; transform: translateX(-50%); animation: float 6s ease-in-out infinite; }

@keyframes float {
  0%,100% { transform: translateY(0) rotate(0); }
  33% { transform: translateY(-25px) rotate(120deg); }
  66% { transform: translateY(-15px) rotate(240deg); }
}

/* badge (Bugfix: feste Position rechts oben + hoher z-index) */
.professional-badge {
  position: absolute;
  top: 100px; right: 20px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 20px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  z-index: 5; /* über Orbs/Particles */
  pointer-events: auto;
}
.badge-pulse {
  position: absolute; inset: -2px;
  border: 2px solid rgba(227,6,19,0.3);
  border-radius: 22px;
  animation: badgePulse 4s ease-in-out infinite;
}
@keyframes badgePulse {
  0%,100% { opacity:0; transform:scale(1); }
  50% { opacity:1; transform:scale(1.05); }
}
.badge-avatar {
  position: relative;
  width: 44px; height: 44px; border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--accent-color);
  box-shadow: 0 4px 15px rgba(227,6,19,0.3);
}
.badge-avatar img { width:100%; height:100%; object-fit: cover; }
.status-indicator {
  position: absolute; bottom: 2px; right: 2px;
  width: 14px; height: 14px; background: #00ff88;
  border-radius: 50%;
  border: 3px solid #fff;
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,255,136,0.8); }
  70% { box-shadow: 0 0 0 12px rgba(0,255,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,255,136,0); }
}
.badge-info { display: flex; flex-direction: column; align-items: flex-start; }
.badge-status { font-size: 13px; font-weight: 600; color: var(--accent-color); }
.badge-location { font-size: 11px; color: var(--text-color); opacity: 0.8; }

/* hero content & text effects */
.hero-content {
  max-width: 800px;
  padding: 0 clamp(1rem, 4vw, 2rem);
  position: relative;
  z-index: 2;
  animation: heroFadeIn 1.5s ease-out;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-title.holographic.glitch-effect {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
  background: linear-gradient(45deg, var(--text-color), var(--accent-color), #ff4757, var(--text-color));
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: holographicShift 4s ease-in-out infinite, subtleGlitch 8s infinite;
}
@keyframes holographicShift {
  0%,100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes subtleGlitch {
  0%, 90%, 100% { text-shadow: none; }
  95% { text-shadow: 2px 0 var(--accent-color), -2px 0 #00ff88; }
}
.hero-subtitle {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  color: var(--accent-color);
  margin-bottom: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 4px rgba(227, 6, 19, 0.2);
}
.hero-description {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin-bottom: 3rem;
  color: var(--text-color);
  opacity: 0.85;
  max-width: 600px;
  margin-left: auto; margin-right: auto;
  line-height: 1.6;
}

/* magnetic buttons */
.cta-button.magnetic {
  padding: 18px 36px;
  border: none;
  border-radius: 14px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex; align-items: center; gap: 14px;
  text-decoration: none;
  min-width: 44px; min-height: 44px;
  position: relative; overflow: hidden;
  transform-style: preserve-3d;
}
.cta-button.primary.magnetic {
  background: linear-gradient(135deg, var(--accent-color), #ff4757, #ff6b7a);
  color: #fff;
  box-shadow: 0 6px 20px rgba(227, 6, 19, 0.25);
}
.cta-button.primary.magnetic::before {
  content: "";
  position: absolute; inset: 0; left: -100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.7s;
}
.cta-button.primary.magnetic:hover::before { left: 100%; }
.cta-button.primary.magnetic:hover {
  transform: translateY(-10px) scale(1.08);
  box-shadow: 0 15px 50px rgba(227, 6, 19, 0.4);
}
.cta-button.secondary.magnetic {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-color);
  border: 2px solid rgba(227, 6, 19, 0.4);
  backdrop-filter: blur(15px);
}
.cta-button.secondary.magnetic:hover {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-10px) scale(1.08);
  box-shadow: 0 15px 50px rgba(227, 6, 19, 0.25);
  background: rgba(227, 6, 19, 0.12);
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-content, .grid-background, .tech-orb,
  .status-indicator, .hero-title.holographic.glitch-effect,
  .particle, .orb-glow, .badge-pulse {
    animation: none !important;
  }
  .cta-button.magnetic:hover, .professional-badge:hover { transform: none !important; }
}

/* mobile tweaks */
@media (max-width: 768px) {
  .professional-badge { top: 10px; right: 10px; padding: 10px 14px; gap: 10px; }
  .badge-avatar { width: 36px; height: 36px; }
  .tech-orb { width: 50px; height: 50px; font-size: 20px; }
  .orb-5 { display: none; }
  .particle:nth-child(n+4) { display: none; }
  .hero-actions { flex-direction: column; gap: 1rem; }
  .cta-button.magnetic { width: 100%; max-width: 300px; }
}

/* ===== Rest deines bestehenden CSS (About, Skills, Projects, Timeline, Contact, Footer etc.) bleibt unverändert ===== */

/* WICHTIG: Deine vorhandenen .section-separator, .about, .skills, .projects, .timeline, .contact, .footer Styles aus der Originaldatei hier beibehalten */


/* Updated section separators with smooth SVG waves and proper theme blending */
.section-separator {
  position: relative;
  height: 120px;
  overflow: hidden;
}

.section-separator svg {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.section-separator.reverse svg {
  top: 0;
  bottom: auto;
}

/* Wave gradient color stops for smooth theme transitions */
.wave-start {
  stop-color: var(--wave-start);
}

.wave-mid {
  stop-color: var(--wave-mid);
}

.wave-end {
  stop-color: var(--wave-end);
}

/* Enhanced about section with two-column layout */
/* About Section with Terminal Window */
.about {
  background-color: var(--secondary-bg);
  /* Added responsive top spacing after wave divider to prevent title collision */
  padding: clamp(2rem, 6vw, 6rem);
}
 
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: clamp(2rem, 6vw, 4rem);
  align-items: flex-start;
  max-width: 1200px;
  margin: 0 auto;
}

/* Terminal Window Component */
.terminal-container {
  width: 100%;
}

.terminal-window {
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  overflow: hidden;
  font-family: "Courier New", "Monaco", "Menlo", monospace;
}

.terminal-header {
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .terminal-header {
  background: linear-gradient(135deg, #2d3748, #1a202c);
}

.terminal-controls {
  display: flex;
  gap: 8px;
}

.control {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
}

.control.close {
  background: #ff5f57;
}

.control.minimize {
  background: #ffbd2e;
}

.control.maximize {
  background: #28ca42;
}

.terminal-title {
  font-size: 0.9rem;
  color: var(--text-color);
  opacity: 0.7;
  font-weight: 500;
  flex-grow: 1;
}

.terminal-replay-btn {
  background: none;
  border: 1px solid var(--border-color);
  color: var(--text-color);
  padding: 6px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  opacity: 0.7;
  transition: all 0.3s ease;
  margin-left: auto;
}

.terminal-replay-btn:hover {
  opacity: 1;
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: rotate(360deg);
}

.terminal-replay-btn:active {
  transform: rotate(360deg) scale(0.95);
}

.terminal-body {
  padding: clamp(1rem, 3vw, 1.5rem);
  background: #000000;
  min-height: 300px;
}

.terminal-line {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.terminal-prompt {
  color: var(--accent-color);
  font-weight: 600;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
}

/* Blinking cursor with accessibility support */
.terminal-cursor {
  width: 8px;
  height: 16px;
  background: var(--accent-color);
  display: inline-block;
  animation: blink 1s infinite;
}

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

/* Respect prefers-reduced-motion for cursor animation */
@media (prefers-reduced-motion: reduce) {
  .terminal-cursor {
    animation: none;
    opacity: 1;
  }
}

/* Typewriter effect for terminal */
.terminal-content p {
  min-height: 1.2em;
}

.terminal-content .typewriter-text {
  border-right: 2px solid #ffffff;
  animation: blinkCaret 1s infinite;
}

.terminal-content .typewriter-text.finished {
  border-right: none;
}

@keyframes blinkCaret {
  0%, 50% { border-color: #ffffff; }
  51%, 100% { border-color: transparent; }
}

/* Respect prefers-reduced-motion for typewriter animation */
@media (prefers-reduced-motion: reduce) {
  .terminal-content .typewriter-text {
    animation: none !important;
    border-right: none !important;
  }
}

.terminal-content {
  margin-top: 1rem;
  line-height: 1.7;
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
}

.terminal-content p {
  margin-bottom: 1.5rem;
  color: #ffffff;
}

/* Updated portrait with accent border instead of ribbon */
.about-portrait {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.portrait-frame {
  position: relative;
  width: clamp(200px, 25vw, 280px);
  height: clamp(240px, 30vw, 350px);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 3px solid var(--accent-color);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portrait-accent-border {
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, var(--accent-color), var(--accent-dark));
  border-radius: 20px;
  z-index: -1;
}

.portrait-placeholder {
  font-size: clamp(3rem, 8vw, 4rem);
  color: var(--accent-color);
  opacity: 0.3;
}

/* Enhanced skills section with glassmorphism and 3D tilt */
/* Skills Section */
.skills {
  background-color: var(--secondary-bg);
  padding: clamp(2rem, 6vw, 6rem) 0;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.skill-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color), var(--accent-dark));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: var(--shadow-hover);
}

@media (hover: none) {
  .skill-card:hover {
    transform: translateY(-5px);
  }
}

.skill-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-icon {
  transform: scale(1.1);
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.skill-card p {
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
}


/* Project Section */
.projects {
  background-color: var(--secondary-bg);
  padding: clamp(2rem, 6vw, 6rem) 0;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.projects-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* animierte Linie oben */
.projects-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  animation: draw-topline 900ms ease-out forwards;
}

.projects-image {
  width: 600px;
}

.github-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 16px;
  background-color: var(--accent-color); /* Sunrise-Rot aus den Variablen */
  color: #ffffff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: var(--shadow); /* konsistenter Schatten */
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.github-button:hover {
  background-color: var(--accent-dark); /* dunkleres Sunrise-Rot */
  transform: scale(1.05);
  box-shadow: var(--shadow-hover); /* Hover-Schatten wie bei Cards */
}

.github-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  fill: #ffffff;
}

@keyframes draw-topline {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes dot-pop {
  to { opacity: 1; }
}

.projects-card:hover {
  transform: translateY(-10px) rotateX(5deg);
  box-shadow: var(--shadow-hover);
}

@media (hover: none) {
  .projects-card:hover {
    transform: translateY(-5px);
  }
}

.projects-icon {
  font-size: 3rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.projects-card:hover .projects-icon {
  transform: scale(1.1);
}

.projects-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.projects-card p {
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
}



/* Enhanced timeline with alternating layout and glowing nodes */
/* Timeline Section */
.timeline {
  background-color: var(--secondary-bg);
  /* Added responsive top spacing after wave divider to prevent title collision */
  padding: clamp(2rem, 6vw, 6rem);
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent-color), var(--accent-dark));
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  display: flex;
  align-items: center;
}

.timeline-item.left {
  justify-content: flex-end;
  padding-right: calc(50% + 40px);
}

.timeline-item.right {
  justify-content: flex-start;
  padding-left: calc(50% + 40px);
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  background-color: var(--accent-color);
  border-radius: 50%;
  border: 4px solid var(--bg-color);
  box-shadow: 0 0 20px rgba(227, 6, 19, 0.4);
  z-index: 2;
}

.timeline-content {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 15px;
  border: 1px solid var(--glass-border);
  max-width: 400px;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.timeline-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

.timeline-date {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
}

.timeline-content p {
  margin-top: 1rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.6;
}

/* Enhanced contact section with modern card design */
/* Contact Section */
.contact {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) 0;
  overflow: hidden;
}

.contact-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle at 25% 25%, var(--accent-color) 2px, transparent 2px),
                    radial-gradient(circle at 75% 75%, var(--accent-color) 1px, transparent 1px);
  background-size: 60px 60px, 30px 30px;
  background-position: 0 0, 25px 25px;
  animation: floatPattern 20s ease-in-out infinite;
}

@keyframes floatPattern {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

.section-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 2.5rem);
  color: var(--text-color);
  margin-bottom: 1rem;
  font-weight: bold;
}

.section-subtitle {
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
  color: var(--text-color);
  opacity: 0.7;
  margin-bottom: 3rem;
  font-style: italic;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  padding: 2.5rem;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-hover);
  position: relative;
  transition: transform 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-5px);
}

.contact-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-avatar {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 8px 20px rgba(227, 6, 19, 0.3);
}

.contact-header h3 {
  font-size: 1.8rem;
  margin: 0;
  color: var(--text-color);
  font-weight: 700;
}

.contact-info-card p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.7;
}

.contact-methods {
  margin-bottom: 2rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.contact-method:hover {
  background: var(--secondary-bg);
  transform: translateX(5px);
}

.contact-method i {
  width: 20px;
  color: var(--accent-color);
  font-size: 1.1rem;
}

.contact-method span {
  color: var(--text-color);
  font-weight: 500;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 14px 20px;
  background: var(--secondary-bg);
  color: var(--text-color);
  text-decoration: none;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.4s ease;
  min-height: 44px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(227, 6, 19, 0.1), transparent);
  transition: left 0.6s ease;
}

.social-link:hover::before {
  left: 100%;
}

.social-link:hover,
.social-link:focus {
  border-color: var(--accent-color);
  color: var(--accent-color);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 25px rgba(227, 6, 19, 0.2);
  background: var(--card-bg);
}

/* Contact Form Card */
.contact-form-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-hover);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.contact-form-card:hover {
  transform: translateY(-5px);
}

.form-header {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  padding: 2rem;
  text-align: center;
  color: white;
}

.form-header h4 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem 0;
  font-weight: 700;
}

.form-header p {
  margin: 0;
  opacity: 0.9;
  font-size: 1rem;
}

.contact-form {
  padding: 2rem;
  position: relative;
}

.form-success {
  display: none;
  background: #10b981;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  align-items: center;
  gap: 0.5rem;
}

.form-success.show {
  display: flex;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background-color: var(--secondary-bg);
  color: var(--text-color);
  font-size: 1rem;
  transition: all 0.4s ease;
  min-height: 44px;
  position: relative;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 20px rgba(227, 6, 19, 0.15);
  background-color: var(--card-bg);
  transform: translateY(-2px);
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: var(--accent-color);
  transform: translateY(-1px);
}

.form-error {
  color: var(--accent-color);
  font-size: 0.9rem;
  margin-top: 0.25rem;
  display: block;
}

.submit-button {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  color: white;
  padding: 18px 30px;
  border: none;
  border-radius: 16px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  justify-content: center;
  min-height: 54px;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.6s ease;
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button:hover,
.submit-button:focus {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 35px rgba(227, 6, 19, 0.4);
}

.submit-button:active {
  transform: translateY(-1px) scale(0.98);
}

.submit-button .button-text {
  position: relative;
  z-index: 2;
}

.submit-button i {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.submit-button:hover i {
  transform: translateX(5px);
}

/* Enhanced responsive design with mobile menu */
/* Responsive Design */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .terminal-window {
    margin: 0 auto;
    max-width: 100%;
  }

  .terminal-body {
    padding: 1rem;
  }

  .terminal-content {
    text-align: left;
  }

  .about-portrait {
    order: -1;
    margin-bottom: 1rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline-line {
    left: 30px;
  }

  .timeline-item {
    padding-left: 80px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-item.left,
  .timeline-item.right {
    padding-left: 80px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-dot {
    left: 30px;
  }

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

  .cta-button {
    width: 100%;
    max-width: 300px;
  }
}

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

  .social-links {
    justify-content: center;
  }

  .terminal-header {
    padding: 10px 12px;
  }

  .terminal-title {
    font-size: 0.8rem;
  }

  .control {
    width: 10px;
    height: 10px;
  }

  .timeline-line {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
  }

  .timeline-item.left,
  .timeline-item.right {
    padding-left: 50px;
  }

  .timeline-dot {
    left: 15px;
    width: 16px;
    height: 16px;
  }
}


/* Footer Section */
.footer {
  background: linear-gradient(135deg, var(--secondary-bg), var(--card-bg));
  border-top: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  margin-top: 4rem;
}

.footer-bg-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.03;
  background-image: 
    linear-gradient(45deg, var(--accent-color) 1px, transparent 1px),
    linear-gradient(-45deg, var(--accent-color) 1px, transparent 1px);
  background-size: 20px 20px;
  animation: slidePattern 30s linear infinite;
}

@keyframes slidePattern {
  0% { transform: translateX(0) translateY(0); }
  100% { transform: translateX(20px) translateY(20px); }
}

.footer-content {
  padding: 3rem 0 1rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-brand h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.footer-tagline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color);
  opacity: 0.7;
  font-style: italic;
}

.footer-tagline i {
  color: var(--accent-color);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 1rem;
  position: relative;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent-color);
  border-radius: 1px;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 0.8rem;
}

.footer-column a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.8;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-column a:hover {
  color: var(--accent-color);
  opacity: 1;
  transform: translateX(5px);
}

.footer-column a i {
  width: 16px;
  font-size: 0.9rem;
}

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

.tech-tag {
  background: var(--glass-bg);
  color: var(--text-color);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: var(--accent-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(227, 6, 19, 0.3);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  width: 100%;
}

.footer-bottom-content p {
  color: var(--text-color);
  opacity: 0.7;
  margin: 0;
}

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

.footer-bottom-links a {
  color: var(--text-color);
  text-decoration: none;
  opacity: 0.7;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

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

.footer-scroll-top button {
  background: var(--accent-color);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(227, 6, 19, 0.3);
}

.footer-scroll-top button:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(227, 6, 19, 0.4);
}

.footer-scroll-top button:active {
  transform: translateY(-1px);
}

/* Footer Responsive Design */
@media (max-width: 1024px) {
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer-links {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-main {
    gap: 1.5rem;
  }
  
  .footer-content {
    padding: 2rem 0 1rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .footer-bottom-content {
    flex-direction: column;
    gap: 1rem;
  }
}
