/* ============================================
   CSS VARIABLES & FONT IMPORTS
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Orbitron:wght@500;700&family=Share+Tech+Mono&display=swap');

:root {
  --clr-bg: #080808;
  --clr-surface: #0f0f11;
  --clr-glass: rgba(15, 15, 17, 0.65);
  --clr-border: rgba(0, 240, 255, 0.15);
  --clr-cyan: #00f0ff;
  --clr-cyan-dim: rgba(0, 240, 255, 0.4);
  --clr-copper: #b87333;
  --clr-copper-light: #dca56e;
  --clr-text: #e2e8f0;
  --clr-text-dim: #94a3b8;
  --font-body: 'Inter', sans-serif;
  --font-heading: 'Orbitron', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: radial-gradient(ellipse at 50% 0%, #111214, var(--clr-bg));
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

img, svg, canvas {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.75rem;
}

p {
  font-size: 1rem;
  color: var(--clr-text-dim);
}

.tech-text {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

/* ============================================
   UTILITIES & LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-header {
  margin-bottom: 4rem;
  max-width: 700px;
}

.section-meta {
  display: inline-block;
  font-family: var(--font-mono);
  color: var(--clr-cyan);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  letter-spacing: 1px;
}

.section-subtitle {
  margin-top: 1rem;
  font-size: 1.1rem;
  max-width: 600px;
  color: var(--clr-text-dim);
}

.glass {
  background: var(--clr-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   GLASSMORPHISM COMPONENTS & BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: 1px solid var(--clr-cyan);
  color: var(--clr-cyan);
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

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

.btn:hover {
  background: var(--clr-cyan);
  color: var(--clr-bg);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
  transform: translateY(-2px);
}

.btn:hover::before {
  left: 100%;
}

/* ============================================
   NAVIGATION
   ============================================ */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
  transition: background 0.3s ease;
}

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

.logo {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
}

.logo-nova { color: #fff; }
.logo-ai { color: var(--clr-cyan); font-size: 1.5rem; }
.logo-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--clr-text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-left: 0.25rem;
}

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

.nav-list a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--clr-text-dim);
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.3s ease;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--clr-cyan);
  transition: width 0.3s ease;
  box-shadow: 0 0 8px var(--clr-cyan);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--clr-cyan);
}

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

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1100;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--clr-cyan);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(8,8,8,0.3) 0%, rgba(8,8,8,0.1) 50%, var(--clr-bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-top: 80px;
}

.hero-badge {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 4px;
  color: var(--clr-cyan);
  margin-bottom: 2rem;
  background: rgba(0, 240, 255, 0.05);
}

.hero-title {
  max-width: 900px;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #fff 0%, var(--clr-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

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

.scroll-line {
  display: block;
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--clr-cyan), transparent);
  opacity: 0.8;
}

/* ============================================
   SYSTEME / ABOUT SECTION
   ============================================ */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.about-card {
  padding: 2.5rem;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 240, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.5rem;
  color: var(--clr-copper);
}

.about-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.about-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.about-text p {
  font-size: 1.125rem;
  line-height: 1.8;
}

/* ============================================
   PROGRAMME SECTION
   ============================================ */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.programme-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.programme-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.card-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
}

.programme-card:nth-child(odd) .card-accent {
  background: var(--clr-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.programme-card:nth-child(even) .card-accent {
  background: var(--clr-copper);
  box-shadow: 0 0 15px rgba(184, 115, 51, 0.3);
}

.card-content {
  padding: 2.5rem;
}

.card-number {
  font-family: var(--font-mono);
  color: var(--clr-copper);
  font-size: 0.85rem;
  display: block;
  margin-bottom: 1rem;
}

.card-link {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--clr-cyan);
  position: relative;
  transition: letter-spacing 0.3s ease;
}

.card-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-cyan);
  transition: width 0.3s ease;
}

.programme-card:hover .card-link::after {
  width: 100%;
}

/* ============================================
   MINING LAB GALLERY
   ============================================ */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 320px;
  gap: 1.5rem;
}

.lab-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 0.4s ease, border-color 0.4s ease;
}

.lab-card:hover {
  transform: scale(1.02);
  border-color: rgba(0, 240, 255, 0.3);
}

.lab-visual {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.lab-visual-1 {
  background: conic-gradient(from 0deg at 50% 50%, rgba(0,240,255,0.13), rgba(184,115,51,0.13), rgba(0,240,255,0.13));
}

.lab-visual-2 {
  background: radial-gradient(circle at 30% 30%, rgba(0,240,255,0.2), transparent), linear-gradient(135deg, #1a1a1a, #0f0f11);
}

.lab-visual-3 {
  background: linear-gradient(45deg, rgba(184,115,51,0.2), rgba(0,240,255,0.1));
}

.lab-visual-4 {
  background: repeating-linear-gradient(45deg, rgba(0,240,255,0.05) 0px, rgba(0,240,255,0.05) 2px, transparent 2px, transparent 10px), linear-gradient(180deg, #111, #0a0a0a);
}

.lab-visual-5 {
  background: radial-gradient(circle at 80% 20%, rgba(184,115,51,0.25), transparent 60%), linear-gradient(160deg, #151515, #0a0a0a);
}

.lab-visual-6 {
  background: conic-gradient(from 180deg at 50% 50%, rgba(184,115,51,0.13), rgba(0,240,255,0.13), rgba(184,115,51,0.13));
}

.lab-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 240, 255, 0.2);
  color: var(--clr-cyan);
  padding: 0.35rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 4px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

.lab-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8,8,8,0.98) 0%, rgba(8,8,8,0.7) 40%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lab-card:hover .lab-overlay {
  opacity: 1;
}

.lab-overlay h4 {
  color: var(--clr-cyan);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

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

/* ============================================
   KONTAKT SECTION
   ============================================ */
.section-kontakt {
  padding-bottom: 8rem;
}

.kontakt-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.kontakt-info {
  padding: 3rem;
}

.kontakt-info h2 {
  margin-bottom: 1rem;
}

.kontakt-info > p {
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

.kontakt-list li {
  margin-bottom: 1.75rem;
}

.kontakt-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--clr-copper);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.35rem;
}

.kontakt-list a,
.kontakt-list address {
  color: var(--clr-text);
  font-style: normal;
  font-size: 1.15rem;
  transition: color 0.3s ease;
}

.kontakt-list a:hover {
  color: var(--clr-cyan);
}

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

.visual-frame {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  background: rgba(0, 240, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
}

.scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--clr-cyan);
  box-shadow: 0 0 12px var(--clr-cyan), 0 0 24px rgba(0,240,255,0.3);
  animation: scanMove 3.5s linear infinite;
  opacity: 0.8;
}

.visual-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-family: var(--font-mono);
  color: var(--clr-text-dim);
  z-index: 2;
}

.visual-content .mono {
  display: block;
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.25rem;
}

.visual-content .mono::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--clr-copper);
}

/* ============================================
   FOOTER
   ============================================ */
.main-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 3rem 0;
  background: rgba(8, 8, 8, 0.95);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--clr-text-dim);
  margin-top: 0.25rem;
}

.footer-meta {
  text-align: right;
  font-size: 0.85rem;
  color: var(--clr-text-dim);
}

.footer-legal {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  opacity: 0.7;
}

/* ============================================
   ANIMATIONS & KEYFRAMES
   ============================================ */
@keyframes scanMove {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 5px rgba(0,240,255,0.2); }
  50% { box-shadow: 0 0 20px rgba(0,240,255,0.5); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .lab-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    height: 70px;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .main-nav {
    position: fixed;
    top: 70px;
    right: 0;
    width: 280px;
    height: calc(100vh - 70px);
    background: rgba(8, 8, 8, 0.98);
    border-left: 1px solid var(--clr-border);
    padding: 2rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .main-nav.active {
    transform: translateX(0);
  }
  
  .nav-list {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .about-grid,
  .programme-grid,
  .kontakt-wrapper {
    grid-template-columns: 1fr;
  }
  
  .lab-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 280px;
  }
  
  .footer-grid {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-meta {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }
  .kontakt-info {
    padding: 2rem;
  }
}