/* ==========================================================================
   ROOT VARIABLES
   ========================================================================== */
:root {
  --bg: #0a0a0f;
  --bg-alt: #12121a;
  --primary: #8B00FF;
  --accent: #AA0044;
  --text: #e0e0e5;
  --text-dim: #888892;
  --border: rgba(139, 0, 255, 0.3);
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
  
  /* Desktop-spezifische Variablen */
  --container-max-width: 1400px;
  --section-padding: 6rem 4rem;
  --card-min-width: 320px;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent);
}

/* ==========================================================================
   NAVBAR (Desktop-First)
   ========================================================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 4rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar .logo {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
}

.navbar .logo::after {
  content: "_";
  animation: blink 1s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding-bottom: 0.3rem;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   HERO (Desktop-optimiert)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 4rem 4rem;
  background:
    radial-gradient(circle at 20% 30%, rgba(139,0,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(170,0,68,0.15), transparent 40%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 0, 255, 0.05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(170, 0, 68, 0.05), transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero .prompt {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero h1 {
  font-family: var(--font-mono);
  font-size: 4.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.hero h1 span {
  color: var(--primary);
  animation: pulse 2s ease-in-out infinite;
}

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

.hero p {
  max-width: 700px;
  color: var(--text-dim);
  font-size: 1.25rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

.hero .cta-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

.btn {
  font-family: var(--font-mono);
  padding: 1rem 2rem;
  border-radius: 8px;
  border: 2px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:hover {
  background: var(--primary);
  color: var(--bg);
  box-shadow: 0 0 30px rgba(139, 0, 255, 0.6);
  transform: translateY(-3px);
}

.btn.alt {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.alt:hover {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 30px rgba(170, 0, 68, 0.6);
  transform: translateY(-3px);
}

/* ==========================================================================
   SECTIONS (Desktop-optimiert)
   ========================================================================== */
section {
  padding: var(--section-padding);
  margin: 0 auto;
  text-align: left;
}

section:not(.hero) {
  max-width: var(--container-max-width);
  margin: 0 auto;
}

section h2 {
  font-family: var(--font-mono);
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 700;
}

section h2::before {
  content: "// ";
  color: var(--primary);
  margin-right: 0.5rem;
}

section .section-sub {
  color: var(--text-dim);
  margin-bottom: 3rem;
  font-size: 1.15rem;
}

/* ==========================================================================
   CARD GRID (3 Spalten auf Desktop)
   ========================================================================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(139, 0, 255, 0.15);
  border-color: var(--primary);
}

.card h3 {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: var(--text);
  font-weight: 600;
}

.card p {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
  line-height: 1.7;
}

.read-more {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--primary);
  font-weight: 600;
  transition: all 0.3s ease;
}

.read-more:hover {
  color: var(--accent);
  transform: translateX(5px);
}

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   BADGE GRID (5 Spalten auf Desktop)
   ========================================================================== */
#badges {
  padding: var(--section-padding);
  background: linear-gradient(135deg, rgba(139,0,255,0.05), rgba(170,0,68,0.05));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#badges h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
}

.badge-card:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(139, 0, 255, 0.2);
  border-color: var(--primary);
}

.badge-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(139, 0, 255, 0.3));
  transition: all 0.3s ease;
}

.badge-card:hover .badge-icon img {
  filter: drop-shadow(0 0 15px rgba(139, 0, 255, 0.6));
}

.badge-label {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  transition: color 0.3s ease;
}

.badge-card:hover .badge-label {
  color: var(--primary);
}

/* ==========================================================================
   CERTIFICATES SECTION
   ========================================================================== */
#certificates {
  padding: var(--section-padding);
  background: var(--bg);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

#certificates h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
}

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

.certificate-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(139, 0, 255, 0.15);
  border-color: var(--primary);
}

.certificate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
}

.certificate-header h3 {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--text);
  font-weight: 600;
  flex-grow: 1;
}

.certificate-year {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.certificate-issuer {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-weight: 500;
}

/* ==========================================================================
   PROJECTS & INFRASTRUCTURE SECTION
   ========================================================================== */
#projects {
  padding: var(--section-padding);
  background: var(--bg);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

#projects h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
}

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

.grid article.card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.grid article.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 40px rgba(139, 0, 255, 0.15);
  border-color: var(--primary);
}

.grid article.card h3 {
  font-family: var(--font-mono);
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.3rem;
}

.grid article.card p {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.project-meta {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: rgba(170, 0, 68, 0.1);
  transform: translateY(-2px);
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */
#skills {
  padding: var(--section-padding);
  background: linear-gradient(135deg, rgba(139,0,255,0.03), rgba(170,0,68,0.03));
  max-width: var(--container-max-width);
  margin: 0 auto;
}

#skills h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
}

#skills .grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ==========================================================================
   GADGETS SECTION
   ========================================================================== */
#gadgets {
  padding: var(--section-padding);
  background: var(--bg);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

#gadgets h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
}

#gadgets .grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ==========================================================================
   OPERATING SYSTEMS SECTION
   ========================================================================== */
#os {
  padding: var(--section-padding);
  background: linear-gradient(135deg, rgba(139,0,255,0.03), rgba(170,0,68,0.03));
  max-width: var(--container-max-width);
  margin: 0 auto;
}

#os h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
}

#os .grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 4rem;
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.social-links a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem 1.6rem;
  border-radius: 50px;
  background: rgba(139, 0, 255, 0.1);
  border: 2px solid rgba(139, 0, 255, 0.4);
  color: var(--text);
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.social-links a:hover {
  background: rgba(170, 0, 68, 0.25);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(170, 0, 68, 0.3);
}

.social-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  flex-shrink: 0;
}

footer p {
  color: var(--text-dim);
  font-size: 0.95rem;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   FEATURED PROJECTS SECTION
   ========================================================================== */
#featured-projects {
  padding: var(--section-padding);
  background: var(--bg);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

#featured-projects h2 {
  font-size: 3rem;
  margin-bottom: 3rem;
}

/* ==========================================================================
   RESPONSIVE (Mobile anpassungen)
   ========================================================================== */
@media (max-width: 1200px) {
  :root {
    --container-max-width: 1000px;
    --section-padding: 5rem 3rem;
  }
  
  .badge-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  section h2 {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  :root {
    --container-max-width: 100%;
    --section-padding: 3rem 1.5rem;
  }
  
  .navbar {
    padding: 1rem 1.5rem;
    flex-direction: row;
  }
  
  .navbar .logo {
    font-size: 1.3rem;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-alt);
    flex-direction: column;
    padding: 1.5rem;
    display: none;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }

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

  .nav-toggle {
    display: block;
  }

  .hero {
    min-height: 70vh;
    padding: 2rem 1.5rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }

  .btn {
    width: 100%;
  }

  .badge-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .badge-icon {
    width: 80px;
    height: 80px;
  }

  .badge-label {
    font-size: 0.75rem;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .certificate-grid {
    grid-template-columns: 1fr;
  }

  section h2 {
    font-size: 1.8rem;
  }

  section {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .navbar {
    padding: 0.8rem 1rem;
  }

  .navbar .logo {
    font-size: 1rem;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  section h2 {
    font-size: 1.5rem;
  }

  .badge-icon {
    width: 60px;
    height: 60px;
  }
}
/* Modal Overlay Styling */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(5px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  animation: fadeIn 0.3s ease-in;
}

.modal-overlay.active {
  display: flex;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: #8b5cf6;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 1001;
}

.modal-close:hover {
  color: #e2e8f0;
}

/* Terminal Styling */
.terminal {
  background: #0d1117;
  border: 2px solid #8b5cf6;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(139, 92, 246, 0.4),
              inset 0 0 20px rgba(139, 92, 246, 0.1);
  overflow: hidden;
}

.terminal-header {
  background: linear-gradient(135deg, #1e293b 0%, #0d1117 100%);
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #8b5cf6;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.terminal-dots {
  color: #8b5cf6;
  font-size: 1rem;
  letter-spacing: 0.3rem;
}

.terminal-title {
  color: #8b5cf6;
  font-family: "Courier New", monospace;
  font-size: 0.95rem;
  font-weight: bold;
}

.terminal-content {
  padding: 2rem;
  font-family: "Courier New", monospace;
  color: #e2e8f0;
  min-height: 400px;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

.terminal-line {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
}

.prompt {
  color: #8b5cf6;
  font-weight: bold;
  white-space: nowrap;
}

.command {
  color: #38bdf8;
}

#terminal-output {
  margin-top: 1rem;
  line-height: 1.8;
  color: #e2e8f0;
}

.terminal-output-line {
  margin: 0.4rem 0;
  min-height: 1.4em;
  word-wrap: break-word;
}

/* Button Styling */
.btn-journey {
  padding: 0.8rem 2rem;
  border: 2px solid #ef4444;
  background: transparent;
  color: #ef4444;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.btn-journey:hover {
  background: #ef4444;
  color: #0a0e27;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

/* Scrollbar für Terminal */
.terminal-content::-webkit-scrollbar {
  width: 8px;
}

.terminal-content::-webkit-scrollbar-track {
  background: #0d1117;
}

.terminal-content::-webkit-scrollbar-thumb {
  background: #8b5cf6;
  border-radius: 4px;
}

.terminal-content::-webkit-scrollbar-thumb:hover {
  background: #a78bfa;
}

/* Responsive */
@media (max-width: 768px) {
  .modal-close {
    top: 1rem;
    right: 1rem;
  }

  .terminal-content {
    padding: 1.5rem;
    min-height: 300px;
  }
}

.card {
  position: relative;
}

.card.coming-soon {
  pointer-events: none; /* Click-Events blockieren */
}

.card.coming-soon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.3);
  z-index: 10;
  border-radius: 12px;
}

.card.coming-soon::after {
  content: 'Coming Soon';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 11;
  font-size: 2rem;
  font-family: 'JetBrains Mono', monospace;
  color: #b000d4;
  font-weight: bold;
  text-shadow: 0 0 20px rgba(176, 0, 212, 0.5);
  letter-spacing: 2px;
}
