/* ===========================================
   INFINITY AI BATTERY TECHNOLOGY ACADEMY
   Hauptstylesheet
   =========================================== */

/* 1. Variablen & Schriften */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Orbitron:wght@500;700;900&display=swap');

:root {
  --bg-deep: #02040a;
  --bg-panel: #0a1122;
  --bg-elevated: #111e33;
  --cyan: #00f3ff;
  --cyan-dim: rgba(0, 243, 255, 0.15);
  --orange: #ff6b00;
  --orange-light: #ff9e42;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --font-head: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 16px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

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

/* 3. Typografie */
h1, h2, h3 {
  font-family: var(--font-head);
  text-wrap: balance;
  letter-spacing: 0.4px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.1;
  font-weight: 900;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--orange-light);
  text-shadow: 0 0 8px var(--cyan-dim);
}

/* 4. Layout-Hilfen */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.accent-line {
  width: 80px;
  height: 4px;
  margin: 1.5rem auto 0;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--orange), transparent);
  border-radius: 2px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--cyan), var(--text));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 5. Navigation (Glassmorphism) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10, 17, 34, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 243, 255, 0.08);
}

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

.logo {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--text);
}

.logo .highlight {
  color: var(--cyan);
}

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

.nav-links a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--orange));
  transition: width var(--transition);
  border-radius: 1px;
}

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

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
  padding: 0.5rem;
}

.hamburger .line {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: var(--transition);
}

/* 6. Hero Section */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 50%, #0a1f3d 0%, #02040a 70%);
}

#energyCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  z-index: 1;
}

.hero-glow-cyan {
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(0, 243, 255, 0.25), transparent 70%);
  animation: float 6s ease-in-out infinite;
}

.hero-glow-orange {
  bottom: -10%;
  right: -5%;
  background: radial-gradient(circle, rgba(255, 107, 0, 0.2), transparent 70%);
  animation: float 7s ease-in-out infinite reverse;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
}

.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 60ch;
  margin: 1.5rem auto 2.5rem;
  color: var(--text-muted);
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.1rem 2.4rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  color: #ffffff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  box-shadow: 0 0 25px rgba(255, 107, 0, 0.35);
  transition: var(--transition);
}

.cta-btn svg {
  transition: transform var(--transition);
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 45px rgba(255, 107, 0, 0.55);
}

.cta-btn:hover svg {
  transform: translateX(4px);
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.mouse {
  display: block;
  width: 26px;
  height: 40px;
  border: 2px solid var(--cyan);
  border-radius: 13px;
  opacity: 0.7;
}

.wheel {
  display: block;
  width: 4px;
  height: 8px;
  margin: 8px auto 0;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

/* 7. Über die Akademie */
.about {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-panel) 40%, var(--bg-deep) 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text p + p {
  margin-top: 1.25rem;
}

.about-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.holo-ring {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px solid rgba(0, 243, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 20s linear infinite;
}

.holo-core {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--cyan-dim), transparent 70%);
  box-shadow: inset 0 0 20px var(--cyan-dim), 0 0 30px var(--cyan-dim);
  animation: pulse-glow 3s ease-in-out infinite;
}

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 158, 66, 0.3);
}

.orbit-1 {
  width: 200px;
  height: 200px;
  animation: spin 12s linear infinite reverse;
}

.orbit-2 {
  width: 260px;
  height: 260px;
  border-color: rgba(0, 243, 255, 0.15);
  animation: spin 16s linear infinite;
}

/* 8. Programme */
.programmes {
  background: linear-gradient(180deg, var(--bg-deep), rgba(255, 107, 0, 0.03), var(--bg-deep));
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.program-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 243, 255, 0.12);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  overflow: hidden;
  transition: var(--transition);
}

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

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

.program-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 243, 255, 0.35);
  box-shadow: 0 20px 60px rgba(0, 243, 255, 0.08);
}

.program-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.5rem;
  color: var(--cyan);
}

.program-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.5;
}

.program-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.card-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
}

.program-card:hover .card-shine {
  animation: shine 0.8s ease forwards;
}

/* 9. Battery Lab */
.battery-lab {
  background: var(--bg-deep);
}

.battery-lab .subtitle {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.lab-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: var(--bg-panel);
  transition: var(--transition);
}

.lab-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  filter: brightness(0.85) contrast(1.1);
  transition: transform var(--transition), filter var(--transition);
}

.lab-card:hover {
  border-color: var(--cyan-dim);
  box-shadow: 0 10px 40px rgba(0, 243, 255, 0.1);
}

.lab-card:hover img {
  transform: scale(1.06);
  filter: brightness(1);
}

.lab-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(to top, rgba(2, 4, 10, 0.95), rgba(2, 4, 10, 0.4), transparent);
}

.lab-overlay h3 {
  font-size: 1.2rem;
  color: var(--cyan);
  margin-bottom: 0.4rem;
}

.lab-overlay p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* 10. Kontakt */
.contact {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg-panel));
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 243, 255, 0.1);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-6px);
  border-color: var(--orange);
  box-shadow: 0 0 30px rgba(255, 107, 0, 0.1);
}

.contact-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1.25rem;
  color: var(--cyan);
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.contact-card address {
  font-style: normal;
}

.contact-card a {
  color: var(--text-muted);
  word-break: break-word;
}

.contact-card a:hover {
  color: var(--cyan);
}

/* 11. Footer */
footer {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* 12. Scroll-Animationen */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

/* 13. Keyframes */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: inset 0 0 20px var(--cyan-dim), 0 0 30px var(--cyan-dim); transform: scale(1); }
  50% { box-shadow: inset 0 0 30px rgba(0, 243, 255, 0.3), 0 0 50px rgba(0, 243, 255, 0.2); transform: scale(1.05); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

@keyframes shine {
  0% { left: -100%; }
  100% { left: 200%; }
}

/* 14. Media Queries */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: calc(100dvh - 80px);
    flex-direction: column;
    gap: 0;
    padding: 2rem;
    background: rgba(10, 17, 34, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(0, 243, 255, 0.15);
    transition: right var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active .line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active .line:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    order: -1;
  }

  .holo-ring {
    width: 220px;
    height: 220px;
  }

  .section {
    padding: 5rem 0;
  }
}

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