/* 
 * Lucee Landingpage Stylesheet
 * Design-Konzept: Ultra-modernes Dark-Mode-Designsystem (Slate/Midnight Blue mit Neon-Glows)
 */

@import url('/cf-shared/assets/fonts/fonts.css');

:root {
  /* Farbpalette */
  --bg-color: #080c14;
  --bg-card: rgba(15, 22, 38, 0.5);
  --bg-card-hover: rgba(22, 32, 54, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(255, 255, 255, 0.15);
  
  --primary: #8b5cf6; /* Violett */
  --primary-glow: rgba(139, 92, 246, 0.15);
  --secondary: #06b6d4; /* Cyan */
  --secondary-glow: rgba(6, 182, 212, 0.15);
  --accent: #6366f1; /* Indigo */
  --accent-glow: rgba(99, 102, 241, 0.15);
  
  --text-main: #f3f4f6; /* Sehr helles Grau */
  --text-muted: #9ca3af; /* Muted Grau */
  
  /* Schriftarten */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Sonstiges */
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-glow: 0 0 25px rgba(139, 92, 246, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Scrollbar Anpassung */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Interaktiver Canvas Hintergrund */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* Deko-Blobs für atmosphärischen Glow */
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.45;
  pointer-events: none;
  animation: float-blob 20s infinite ease-in-out alternate;
}

.blob-1 {
  top: 10%;
  left: 15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.blob-2 {
  top: 50%;
  right: 10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  animation-delay: -5s;
}

.blob-3 {
  bottom: -5%;
  left: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation-delay: -10s;
}

@keyframes float-blob {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -50px) scale(1.1);
  }
  100% {
    transform: translate(-20px, 30px) scale(0.9);
  }
}

/* Layout-Struktur */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigationsleiste */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  background: rgba(8, 12, 20, 0.7);
  transition: var(--transition-smooth);
}

header.scrolled {
  height: 70px;
  background: rgba(8, 12, 20, 0.85);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: url(#logo-grad);
  stroke-width: 2.5;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition-smooth);
}

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

.nav-links a:hover::after {
  width: 100%;
}

/* Mobile Menu Button */
.menu-btn {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--text-main);
}

/* Hero-Bereich */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.hero-text h1 {
  font-family: var(--font-headings);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero-text h1 span.gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.5), var(--shadow-glow);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-color-hover);
  transform: translateY(-2px);
}

/* Hero-Grafik/Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: 420px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  transition: var(--transition-smooth);
  transform: perspective(1000px) rotateY(-10deg) rotateX(10deg);
}

.hero-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  border-color: rgba(6, 182, 212, 0.4);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(6, 182, 212, 0.15);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-card-badge {
  background: rgba(6, 182, 212, 0.15);
  color: var(--secondary);
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-card-body {
  margin: 32px 0;
}

.hero-card-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.hero-card-code span.tag { color: #f43f5e; }
.hero-card-code span.keyword { color: #3b82f6; }
.hero-card-code span.string { color: #10b981; }

.hero-card-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-main);
}

/* Sektions-Styling */
section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-family: var(--font-headings);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Projekt-Teaser Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: var(--transition-smooth);
}

.project-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-color-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.1);
}

.project-card:hover::before {
  opacity: 1;
}

.project-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  color: var(--primary);
  transition: var(--transition-smooth);
}

.project-card:hover .project-icon {
  background: var(--primary-glow);
  color: var(--primary);
  border-color: rgba(139, 92, 246, 0.3);
}

.project-card h3 {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  margin-bottom: 12px;
  font-weight: 600;
}

.project-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.project-tag {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-smooth);
}

.project-link svg {
  transition: var(--transition-smooth);
}

.project-link:hover {
  color: var(--secondary);
}

.project-link:hover svg {
  transform: translateX(4px);
}

/* Über Lucee / Features Bereich */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.features-visual {
  position: relative;
}

.features-visual-box {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.features-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
}

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

.features-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-icon-wrapper {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary);
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.feature-text h4 {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Über mich Bereich */
.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.about-avatar {
  position: relative;
  display: flex;
  justify-content: center;
}

.avatar-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-size: 3.5rem;
  font-weight: 800;
  color: #fff;
  border: 4px solid var(--bg-color);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), var(--shadow-glow);
}

.about-avatar-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg-color);
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.3), var(--shadow-glow);
  transition: var(--transition-smooth);
}

.about-avatar-img:hover {
  transform: scale(1.05);
  box-shadow: 0 0 40px rgba(6, 182, 212, 0.5), 0 0 20px rgba(6, 182, 212, 0.3);
  border-color: var(--secondary);
}

.about-details h3 {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.about-details .subtitle {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 20px;
}

.about-details p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.skills-container {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.skill-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.skill-tag:hover {
  background: var(--primary-glow);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--text-main);
}

/* Footer-Bereich */
footer {
  border-top: 1px solid var(--border-color);
  background: rgba(5, 8, 15, 0.9);
  padding: 60px 0;
  text-align: center;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-headings);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  text-decoration: none;
  margin-bottom: 20px;
}

.footer-logo svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: url(#logo-grad-foot);
  stroke-width: 2.5;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  list-style: none;
  margin-bottom: 30px;
}

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

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

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  background: var(--secondary-glow);
  color: var(--secondary);
  border-color: rgba(6, 182, 212, 0.3);
  transform: translateY(-3px);
}

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

/* Scroll-Reveal Effekte */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Anpassungen */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-text p {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-visual {
    order: -1;
  }
  
  .hero-card {
    transform: none !important;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 36px 24px;
  }
  
  .skills-container {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  header {
    height: 70px;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(8, 12, 20, 0.95);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    text-align: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-btn {
    display: block;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  section {
    padding: 60px 0;
  }
}
