/* =====================
   ELVION — CSS
   ===================== */

:root {
  --bg: #09090b;
  --bg-alt: #121214;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-muted: #a1a1aa;
  --accent: #4CAF50; /* Logo Green */
  --accent-soft: rgba(76, 175, 80, 0.05);
  --accent-glow: rgba(76, 175, 80, 0.15);
  --nav-bg: rgba(9, 9, 11, 0.85);
  --radius: 8px;
  --transition: 0.3s ease;
}

[data-theme="light"] {
  --bg: #ffffff;
  --bg-alt: #f4f4f5;
  --surface: rgba(0, 0, 0, 0.03);
  --surface-hover: rgba(0, 0, 0, 0.06);
  --border: rgba(0, 0, 0, 0.1);
  --text: #09090b;
  --text-muted: #71717a;
  --accent: #4CAF50; /* Green from logo */
  --accent-soft: rgba(76, 175, 80, 0.05);
  --accent-glow: rgba(76, 175, 80, 0.15);
  --nav-bg: rgba(255, 255, 255, 0.85);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  transition: background 0.6s ease, color 0.4s ease;
  overflow-x: hidden;
  line-height: 1.5;
}

/* ---- BULB TOGGLE ---- */
.bulb-toggle {
  position: fixed;
  top: 22px;
  right: 40px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 100px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-muted);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.bulb-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.bulb-icon svg { width: 20px; height: 20px; transition: var(--transition); }
.bulb-toggle.on {
  color: var(--accent);
  border-color: var(--accent-glow);
  box-shadow: 0 0 30px var(--accent-glow);
}
.bulb-label { font-size: 13px; font-weight: 600; }

.light-flash {
  position: fixed;
  inset: 0;
  background: var(--accent);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}
.light-flash.active { animation: flashEffect 0.5s ease-out; }
@keyframes flashEffect {
  0% { opacity: 0.2; }
  100% { opacity: 0; }
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 500;
  height: 90px;
  display: flex;
  align-items: center;
  transition: all 0.4s ease;
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 200px 0 40px; /* Plads til pære-toggle til højre */
  width: 100%;
  display: flex;
  align-items: center;
}
.brand-logo-svg {
  height: 32px;
  width: auto;
  display: block;
  transition: var(--transition);
}
.logo:hover .brand-logo-svg {
  transform: scale(1.05);
}
.nav-links {
  display: flex;
  gap: 48px;
  list-style: none;
  margin-left: auto;
  margin-right: 48px;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--accent); }
.btn-nav {
  padding: 12px 24px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: var(--transition);
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 8px 20px var(--accent-glow); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
  display: block;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 20px 40px;
  gap: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  position: absolute;
  top: 90px; left: 0; right: 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}
.mobile-link:hover { color: var(--accent); }

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 40px 100px;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 70% 30%, var(--accent-soft), transparent 60%);
}
.electric-grid {
  position: absolute;
  inset: -10%; /* Larger than viewport for parallax movement */
  background-image: 
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  opacity: 0.2;
  will-change: transform;
}
@keyframes gridMove { from { background-position: 0 0; } to { background-position: 60px 60px; } }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.1; }
  50% { transform: translateY(-40px) translateX(20px); opacity: 0.3; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 32px;
  border: 1px solid var(--accent-glow);
}
.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 32px;
}
.hero-subtitle {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 48px;
  max-width: 580px;
}
.hero-btns { display: flex; gap: 20px; margin-bottom: 80px; }
.btn-primary {
  padding: 18px 36px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 15px var(--accent-glow);
  cursor: pointer;
  border: none;
}
.btn-primary svg { width: 20px; height: 20px; transition: var(--transition); flex-shrink: 0; }
.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 30px var(--accent-glow);
}
.btn-primary:hover svg { transform: translateX(4px); }
.btn-secondary {
  padding: 18px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-secondary:hover {
  background: var(--surface-hover);
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

.hero-stats { display: flex; gap: 40px; align-items: center; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; font-weight: 500; }
.stat-divider { width: 1px; height: 50px; background: var(--border); }

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  will-change: transform;
}
.circuit-board {
  position: relative;
  width: 440px;
  height: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}
.circuit-svg { width: 85%; height: 85%; animation: rotateCircuit 60s linear infinite; opacity: 0.6; }
@keyframes rotateCircuit { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.float-badge {
  position: absolute;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  backdrop-filter: blur(20px);
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
  white-space: nowrap;
}
.float-badge-1 { top: 10%; left: -10%; }
.float-badge-2 { bottom: 15%; left: -15%; }
.float-badge-3 { top: 45%; right: -20%; }

/* ---- SERVICES ---- */
.services { padding: 140px 40px; }
.container { max-width: 1300px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 80px; }
.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}
.section-header h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.section-header p { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto; line-height: 1.7; }

.service-tabs { display: flex; gap: 16px; margin-bottom: 60px; justify-content: center; }
.tab-btn {
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.tab-btn:hover { border-color: var(--accent); color: var(--accent); }
.tab-btn.active { background: var(--text); color: var(--bg); border-color: transparent; }

.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 32px; }
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 48px;
  transition: var(--transition);
  position: relative;
}
.service-card:hover { background: var(--bg-alt); border-color: var(--accent); transform: translateY(-8px); box-shadow: 0 20px 50px rgba(0,0,0,0.3); }
.service-icon { font-size: 36px; margin-bottom: 24px; display: block; }
.service-card p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.service-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
  opacity: 0.6;
  transition: var(--transition);
  filter: grayscale(1);
}
.service-card:hover .service-img {
  opacity: 1;
  filter: grayscale(0);
  transform: scale(1.02);
}

/* ---- WHY US ---- */
.why-us { padding: 140px 40px; background: var(--bg-alt); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.why-text h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(36px, 4vw, 52px); font-weight: 700; margin-bottom: 32px; }
.why-text > p { font-size: 18px; color: var(--text-muted); line-height: 1.8; margin-bottom: 60px; }
.why-features { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.why-feature { display: flex; flex-direction: column; gap: 20px; }
.why-icon { width: 50px; height: 50px; background: var(--accent-soft); color: var(--accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.why-feature strong { font-size: 18px; font-weight: 700; }

.why-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.why-main-img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
  transition: transform 1s cubic-bezier(0.2, 1, 0.2, 1);
}
.team-cards-overlay {
  position: absolute;
  bottom: 30px;
  left: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-card {
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  transition: var(--transition);
}
.team-card:hover { transform: translateX(10px); background: var(--accent-soft); border-color: var(--accent); }
.team-avatar { width: 44px; height: 44px; background: var(--surface); border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }
.team-info strong { display: block; font-size: 15px; }
.team-info span { color: var(--text-muted); font-size: 12px; }

/* ---- CONTACT ---- */
.contact { padding: 140px 40px; }
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 100px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; }
.contact-item { display: flex; gap: 20px; align-items: center; }
.contact-icon { width: 56px; height: 56px; background: var(--accent-soft); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--accent); flex-shrink: 0; }
.contact-item div { display: flex; flex-direction: column; gap: 6px; }
.contact-item strong { font-size: 16px; font-weight: 700; color: var(--text); }
.contact-item a { font-size: 15px; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.contact-item a:hover { color: var(--accent); text-decoration: underline; }

.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 60px; backdrop-filter: blur(20px); }
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 10px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px; color: var(--text); font-family: inherit; font-size: 16px; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); outline: none; background: var(--surface-hover); }
.form-success {
  display: none; text-align: center; padding: 16px; background: rgba(0,200,100,0.1); border: 1px solid rgba(0,200,100,0.2); border-radius: 8px; color: #00e676; font-weight: 600; margin-top: 16px;
}
.form-success.show { display: block; animation: fadeIn 0.4s ease; }

/* ---- FOOTER ---- */
.footer { padding: 100px 40px 40px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 80px; margin-bottom: 80px; }
.footer-brand p { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-top: 20px; max-width: 340px; }
.footer-links { display: flex; flex-direction: column; gap: 16px; }
.footer-links h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.footer-links a { font-size: 15px; color: var(--text-muted); text-decoration: none; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 32px; font-size: 14px; color: var(--text-muted); text-align: center; }
.footer-bottom a { color: var(--accent); text-decoration: none; }

.reveal { opacity: 0; transform: translateY(50px); transition: 1s cubic-bezier(0.2, 1, 0.2, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* --- NEW PARALLAX DECORATIONS --- */
.parallax-element {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.spark {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  filter: blur(2px);
  opacity: 0.3;
}

.cable-line {
  position: absolute;
  border-left: 1px solid var(--border);
  height: 300px;
  opacity: 0.2;
}

.cable-node {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  left: -4px;
  box-shadow: 0 0 10px var(--accent);
}

@media (max-width: 1100px) {
  .hero-content, .why-grid, .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual { display: none; }
  .nav-inner { padding-right: 120px; }
  .nav-links { display: none; }
  .btn-nav { display: none; }
  .hamburger { display: flex; }
  .bulb-toggle { right: 20px; padding: 8px 12px; }
  .bulb-label { display: none; }
}
