/* ===========================
   Font
=========================== */
@font-face {
  font-family: 'blocky';
  src: url('../fonts/blocky.ttf') format('truetype');
  font-display: swap;
}

body {
  margin: 0;
  padding: 0;
  background: #000;
  color: #fff;
  font-family: 'blocky', sans-serif;
  overflow-x: hidden;
  padding-top: 70px; /* Platz für Navbar */
}

/* ===========================
   Navbar
=========================== */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  box-sizing: border-box;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #a533ff;
  font-size: 1.2rem;
}

.nav-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #a533ff;
}

.nav-right {
  display: flex;
  gap: 20px;
}

.nav-right a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s, transform 0.3s;
}

.nav-right a:hover {
  color: #a533ff;
  transform: scale(1.05);
}

/* Hamburger for mobile */
.nav-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {
  .nav-right {
    display: none;
    flex-direction: column;
    background: #111;
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    padding: 15px;
    border-left: 2px solid #a533ff;
  }
  .nav-right.show { display: flex; }
  .nav-toggle { display: block; }
  .nav-right a {
    padding: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
}

/* ===========================
   Hero Section
=========================== */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}
#bg-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  top: 40%;
  transform: translateY(-40%);
}
.hero-logo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 4px solid #a533ff;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 0 25px #a533ff;
}
.hero-content h1 {
  font-size: 3rem;
  color: #a533ff;
  margin: 10px 0;
}
.hero-content h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #fff;
}

/* ===========================
   Social Links
=========================== */
.social-links {
  display: flex;
  flex-wrap: wrap;              /* Umbruch bei kleinen Screens */
  justify-content: center;
  gap: 14px;
  margin-top: 20px;
  padding: 0 10px;
}

.social-links img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: contain;
  background: #111;
  padding: 6px;
  box-shadow: 0 0 10px rgba(165,51,255,0.6);
  transition: transform 0.3s, box-shadow 0.3s;
}

.social-links img:hover {
  transform: scale(1.15);
  box-shadow: 0 0 15px rgba(165,51,255,1);
}

@media (max-width: 768px) {
  .hero-content h1 { font-size: 2.2rem; }
  .hero-content h2 { font-size: 1.1rem; }
  .social-links img { width: 44px; height: 44px; }
  .social-links { gap: 10px; }
}

/* ===========================
   Sections
=========================== */
.section {
  padding: 60px 20px;
  text-align: center;
  background: #111;
  margin: 40px auto;
  border-radius: 10px;
  max-width: 1000px;
  box-shadow: 0 0 20px rgba(165, 51, 255, 0.4);
}
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 20px;
}
.cert-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(165, 51, 255, 0.5);
  transition: transform 0.3s;
}
.cert-card:hover { transform: scale(1.05); }
.cert-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* Achievements */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}
.achievement {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(165, 51, 255, 0.5);
  transition: transform 0.3s;
}
.achievement:hover { transform: translateY(-5px); }
.achievement i { font-size: 2rem; color: #a533ff; }
.achievement h3 { margin: 10px 0; }

/* ===========================
   Buttons
=========================== */
.btn {
  padding: 12px 25px;
  background: #a533ff;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(165, 51, 255, 0.6);
  transition: background 0.3s, transform 0.3s;
}
.btn:hover { background: #fff; color: #a533ff; transform: scale(1.05); }

/* ===========================
   Back to Top
=========================== */
#backToTop {
  position: fixed;
  bottom: 20px; right: 20px;
  background: #a533ff;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  box-shadow: 0 0 10px #a533ff;
  z-index: 1000;
}
#backToTop:hover { background: #fff; color: #a533ff; }

/* ===========================
   Reveal Animation
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s ease, transform 1s ease;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
