/*
Theme Name: Volttron AB
Theme URI: https://volttron.se
Author: Volttron AB
Author URI: https://volttron.se
Description: Volttron AB — Framtidens Energilösningar. Modern dark energy company theme with glassmorphism design, particle effects, and full Customizer support.
Version: 4.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: volttron
Tags: one-page, dark, energy, business, customizer
*/

/* =====================================================================
   ROOT VARIABLES
   ===================================================================== */
:root {
  --navy:      #0d1a3a;
  --bg:        #080e1e;
  --bg-2:      #0b1225;
  --bg-3:      #0f162d;
  --surface:   #121d35;
  --surface-2: #182240;
  --border:    rgba(255,255,255,0.07);
  --border-2:  rgba(255,255,255,0.13);
  --accent:    #4a9eff;
  --accent-2:  #2d7dd2;
  --accent-dim: rgba(74,158,255,0.11);
  --accent-glow: rgba(74,158,255,0.25);
  --white:     #ffffff;
  --text:      #d8e4f5;
  --text-2:    #7a90b0;
  --text-3:    #445570;
  --font-d:    'Syne', sans-serif;
  --font-b:    'DM Sans', sans-serif;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* =====================================================================
   PRELOADER
   ===================================================================== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: radial-gradient(circle, rgba(13,26,58,1) 0%, rgba(8,14,30,1) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
#flyLogo {
  position: fixed;
  z-index: 10000;
  pointer-events: none;
  width: 180px;
  transform-origin: top left;
  filter: drop-shadow(0 0 30px rgba(74,158,255,0.55));
}
.pre-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  animation: preAppear 0.6s var(--ease) both;
}
@keyframes preAppear {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}
.pre-logo-img {
  width: 220px;
  filter: drop-shadow(0 0 28px rgba(74,158,255,0.35));
  animation: logoPulse 2s ease-in-out infinite;
}
@keyframes logoPulse {
  0%, 100% { filter: drop-shadow(0 0 22px rgba(74,158,255,0.3)); }
  50%       { filter: drop-shadow(0 0 42px rgba(74,158,255,0.55)); }
}
.pre-scan {
  width: 220px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  position: relative;
  overflow: hidden;
}
.pre-scan::after {
  content: '';
  position: absolute; top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
  animation: scanMove 1.5s ease-in-out infinite;
}
@keyframes scanMove { to { left: 140%; } }
.pre-bar {
  width: 180px; height: 1px;
  background: rgba(255,255,255,0.1);
  overflow: hidden; position: relative;
}
.pre-bar-fill {
  position: absolute; inset: 0;
  background: var(--accent);
  width: 0;
  box-shadow: 0 0 8px rgba(74,158,255,0.6);
  transition: width 0.1s linear;
}
.pre-tagline {
  font-family: var(--font-d);
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  animation: ftxt 0.8s 0.4s both;
}
@keyframes ftxt { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }
.pre-aux { transition: opacity 0.4s ease; }

/* =====================================================================
   NAV
   ===================================================================== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 100px; padding: 0 5vw;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(8,14,30,0.88);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s, background 0.35s;
}
nav.scrolled { border-bottom-color: var(--border); }
.nav-logo img {
  height: 90px;
  width: auto;
  display: block;
  filter: brightness(1);
  transition: filter 0.25s;
}
.nav-logo img:hover { filter: brightness(1.1) drop-shadow(0 0 8px rgba(74,158,255,0.4)); }
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  font-size: 0.78rem; font-weight: 500;
  color: var(--text-2); text-decoration: none;
  letter-spacing: 0.07em; text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  padding: 9px 20px;
  border: 1px solid var(--accent);
  background: var(--accent-dim);
  color: var(--accent) !important;
  border-radius: 3px; font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent) !important; color: var(--bg) !important; }
/* Language toggle */
.lang-toggle {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 3px; gap: 2px;
  margin-left: 8px; flex-shrink: 0;
}
.lt-btn {
  padding: 3px 10px; border-radius: 14px;
  font-family: var(--font-d); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.38);
  cursor: pointer; transition: background 0.22s, color 0.22s;
  user-select: none;
}
.lt-btn.active {
  background: var(--accent); color: var(--bg);
}
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text-2); border-radius: 2px;
}
.mob-nav {
  display: none;
  position: fixed; top: 100px; left: 0; right: 0; z-index: 199;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: 22px 5vw 28px; flex-direction: column; gap: 18px;
}
.mob-nav.open { display: flex; }
.mob-nav a { color: var(--text-2); text-decoration: none; font-size: 0.95rem; }
.mob-nav a:hover { color: var(--accent); }

/* =====================================================================
   SHARED UTILITIES
   ===================================================================== */
section { padding: 100px 5vw; }
.inner { max-width: 1200px; margin: 0 auto; }
.s-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.s-label-n { color: var(--text-3); }
.s-title {
  font-family: var(--font-d);
  font-size: clamp(1.9rem, 3.5vw, 2.7rem);
  font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; line-height: 1.12; margin-bottom: 14px;
}
.s-sub {
  font-size: 1rem; color: var(--text-2);
  max-width: 500px; line-height: 1.72; margin-bottom: 52px;
}
.btn-p {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 28px; background: var(--accent); color: var(--bg);
  border: none; border-radius: 3px;
  font-family: var(--font-d); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  cursor: pointer;
  transition: background 0.22s, transform 0.18s, box-shadow 0.22s;
  box-shadow: 0 4px 22px rgba(74,158,255,0.22);
}
.btn-p:hover { background: #6ab4ff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(74,158,255,0.35); }
.btn-g {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border: 1px solid var(--border-2);
  color: var(--text-2); background: transparent; border-radius: 3px;
  font-size: 0.85rem; font-weight: 500; text-decoration: none;
  transition: border-color 0.22s, color 0.22s;
}
.btn-g:hover { border-color: var(--accent); color: var(--accent); }
.btn-g .arr { transition: transform 0.22s; }
.btn-g:hover .arr { transform: translateX(4px); }

/* Scroll reveal */
.rv {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.rv.on { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.16s; }
.d3 { transition-delay: 0.24s; }
.d4 { transition-delay: 0.32s; }

/* =====================================================================
   HERO
   ===================================================================== */
#hero {
  min-height: 100vh; padding: 130px 5vw 80px;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  animation: heroBgAnim 2.2s ease both;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,14,30,0.55) 0%, rgba(8,14,30,0.82) 60%, rgba(8,14,30,1) 100%),
    radial-gradient(ellipse 65% 60% at 68% 46%, rgba(74,158,255,0.08) 0%, transparent 70%);
}
@keyframes heroBgAnim { from { opacity:0; transform:scale(1.05); } to { opacity:1; transform:scale(1); } }
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.024) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 85% 85% at 50% 50%, black 20%, transparent 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.7rem; font-weight: 600;
  color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-tag-line { width: 24px; height: 1px; background: var(--accent); }
.hero-h1 {
  font-family: var(--font-d);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  font-weight: 800; color: var(--white);
  line-height: 1.04; letter-spacing: -0.025em; margin-bottom: 26px;
}
.hero-h1 .grd {
  background: linear-gradient(130deg, var(--accent) 0%, #90ccff 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-p {
  font-size: 1.05rem; font-weight: 300;
  color: var(--text-2); line-height: 1.72;
  max-width: 400px; margin-bottom: 44px;
}
.hero-btns { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 44px;
  margin-top: 60px; padding-top: 40px;
  border-top: 1px solid var(--border); flex-wrap: wrap;
}
.stat-n {
  font-family: var(--font-d); font-size: 2rem; font-weight: 800;
  color: var(--white); line-height: 1; margin-bottom: 4px;
}
.stat-n sup { color: var(--accent); font-size: 1.2rem; }
.stat-l { font-size: 0.75rem; color: var(--text-3); letter-spacing: 0.05em; text-transform: uppercase; }
.hero-vis { display: flex; align-items: center; justify-content: center; }
.hero-panel {
  width: 100%; max-width: 420px;
  background: transparent;
  border: 1px solid rgba(74,158,255,0.12);
  border-radius: 10px;
  padding: 40px 32px 32px;
  display: flex; flex-direction: column; align-items: center; gap: 28px;
  position: relative; overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.hero-panel-logo {
  width: 180px;
  filter: drop-shadow(0 4px 20px rgba(74,158,255,0.25));
}
.hero-panel-sld { width: 100%; }
.hero-panel-sld svg { width: 100%; height: auto; }

/* Particle Canvas */
#particleCanvas {
  position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  width: 100%; height: 100%;
}

/* Glassmorphism */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
}
.glass-strong {
  background: rgba(74,158,255,0.07);
  backdrop-filter: blur(24px) saturate(1.6);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid rgba(74,158,255,0.18);
  border-radius: 18px;
}

/* =====================================================================
   SERVICES
   ===================================================================== */
#tjanster {
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
}
#tjanster::before {
  content: '';
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 500px;
  background: radial-gradient(ellipse, rgba(74,158,255,0.07) 0%, transparent 68%);
  pointer-events: none;
}
.svc-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 24px; margin-bottom: 52px; }
.svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.svc-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 20px;
  padding: 36px 30px 34px;
  position: relative; overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s, background 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.06);
}
.svc-card:hover {
  transform: translateY(-8px);
  border-color: rgba(74,158,255,0.35);
  background: rgba(74,158,255,0.07);
  box-shadow: 0 20px 60px rgba(74,158,255,0.15), 0 4px 24px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}
.svc-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 55%);
  pointer-events: none;
}
.svc-card::after {
  content: '';
  position: absolute; top: 0; left: 20px; right: 20px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.svc-num {
  font-family: var(--font-d); font-size: 0.58rem; font-weight: 700;
  color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 18px; opacity: 0.65;
}
.svc-ico {
  color: var(--accent); margin-bottom: 20px; display: block;
  filter: drop-shadow(0 0 8px rgba(74,158,255,0.35));
  transition: filter 0.3s, transform 0.3s;
}
.svc-card:hover .svc-ico {
  filter: drop-shadow(0 0 16px rgba(74,158,255,0.6));
  transform: scale(1.06);
}
.svc-t { font-family: var(--font-d); font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.svc-d { font-size: 0.875rem; color: var(--text-2); line-height: 1.72; }

/* =====================================================================
   WHY US
   ===================================================================== */
#varfor {
  background: var(--bg);
  position: relative; overflow: hidden;
}
#varfor::before {
  content: '';
  position: absolute; right: -10%; top: 50%; transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74,158,255,0.06) 0%, transparent 68%);
  pointer-events: none;
}
.varfor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.adv-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.adv-item {
  display: flex; gap: 16px; padding: 20px 22px; align-items: flex-start;
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s, box-shadow 0.3s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.adv-item:hover {
  transform: translateX(6px);
  border-color: rgba(74,158,255,0.25);
  background: rgba(74,158,255,0.05);
  box-shadow: 0 8px 30px rgba(74,158,255,0.1), inset 0 1px 0 rgba(255,255,255,0.08);
}
.adv-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: rgba(74,158,255,0.12);
  border: 1px solid rgba(74,158,255,0.22);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); margin-top: 2px;
  box-shadow: 0 0 12px rgba(74,158,255,0.15);
  transition: box-shadow 0.3s, background 0.3s;
}
.adv-item:hover .adv-icon {
  background: rgba(74,158,255,0.2);
  box-shadow: 0 0 20px rgba(74,158,255,0.3);
}
.adv-t { font-family: var(--font-d); font-size: 0.97rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.adv-d { font-size: 0.865rem; color: var(--text-2); line-height: 1.65; }
.kpi-stack { display: flex; flex-direction: column; gap: 14px; }
.kpi-card {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 26px 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute; inset: 0; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.kpi-card:hover {
  transform: translateX(8px);
  border-color: rgba(74,158,255,0.3);
  background: rgba(74,158,255,0.07);
  box-shadow: 0 12px 40px rgba(74,158,255,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}
.kpi-lbl { font-size: 0.68rem; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.kpi-val { font-family: var(--font-d); font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 6px; text-shadow: 0 0 20px rgba(74,158,255,0.3); }
.kpi-desc { font-size: 0.84rem; color: var(--text-2); }

/* =====================================================================
   PROCESS
   ===================================================================== */
#process {
  background: var(--bg-2);
  position: relative; overflow: hidden;
}
#process::before {
  content: '';
  position: absolute; bottom: -15%; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(74,158,255,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.proc-head { margin-bottom: 60px; }
.proc-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.proc-step {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px; padding: 30px 24px 28px;
  transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s, background 0.3s;
  box-shadow: 0 4px 24px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.proc-step::before {
  content: '';
  position: absolute; inset: 0; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.proc-step:hover {
  transform: translateY(-10px);
  border-color: rgba(74,158,255,0.3);
  background: rgba(74,158,255,0.06);
  box-shadow: 0 24px 60px rgba(74,158,255,0.15), 0 4px 24px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}
.step-dot {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(74,158,255,0.1);
  border: 1px solid rgba(74,158,255,0.2);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
  box-shadow: 0 0 16px rgba(74,158,255,0.15);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.proc-step:hover .step-dot {
  background: rgba(74,158,255,0.22);
  border-color: rgba(74,158,255,0.5);
  box-shadow: 0 0 28px rgba(74,158,255,0.35);
}
.step-num { font-family: var(--font-d); font-size: 1rem; font-weight: 800; color: var(--accent); transition: color 0.3s; text-shadow: 0 0 12px rgba(74,158,255,0.4); }
.step-t { font-family: var(--font-d); font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.step-d { font-size: 0.86rem; color: var(--text-2); line-height: 1.65; }

/* =====================================================================
   ABOUT
   ===================================================================== */
#om {
  background: var(--bg);
  position: relative; overflow: hidden;
}
#om::before {
  content: '';
  position: absolute; left: -10%; top: 50%; transform: translateY(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(74,158,255,0.05) 0%, transparent 65%);
  pointer-events: none;
}
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-txt p { font-size: 0.97rem; color: var(--text-2); line-height: 1.82; margin-bottom: 18px; }
.about-txt p:last-of-type { margin-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag {
  padding: 7px 16px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 40px; font-size: 0.75rem; color: var(--text-2); font-weight: 500;
  transition: border-color 0.25s, color 0.25s, background 0.25s, box-shadow 0.25s;
}
.tag:hover {
  border-color: rgba(74,158,255,0.4);
  color: var(--accent);
  background: rgba(74,158,255,0.1);
  box-shadow: 0 0 14px rgba(74,158,255,0.15);
}
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.metric {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px; padding: 28px 22px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.metric::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  border-radius: 16px; pointer-events: none;
}
.metric:hover {
  transform: translateY(-6px);
  border-color: rgba(74,158,255,0.3);
  background: rgba(74,158,255,0.07);
  box-shadow: 0 20px 50px rgba(74,158,255,0.15), inset 0 1px 0 rgba(255,255,255,0.1);
}
.metric-n { font-family: var(--font-d); font-size: 2.1rem; font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 5px; text-shadow: 0 0 20px rgba(74,158,255,0.25); }
.metric-n em { font-style: normal; color: var(--accent); }
.metric-l { font-size: 0.75rem; color: var(--text-2); }
.metric.span2 { grid-column: 1/-1; }

/* =====================================================================
   EXPERTISE
   ===================================================================== */
#kompetens {
  background: var(--bg-2);
  position: relative; overflow: hidden;
}
#kompetens::before {
  content: '';
  position: absolute; top: -10%; right: -5%;
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(74,158,255,0.06) 0%, transparent 68%);
  pointer-events: none;
}
.exp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.exp-item {
  display: flex; gap: 18px; padding: 24px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, background 0.3s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.exp-item::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, transparent 50%);
  border-radius: 16px; pointer-events: none;
}
.exp-item:hover {
  transform: translateY(-6px);
  border-color: rgba(74,158,255,0.28);
  background: rgba(74,158,255,0.06);
  box-shadow: 0 18px 48px rgba(74,158,255,0.13), inset 0 1px 0 rgba(255,255,255,0.1);
}
.exp-bar-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding-top: 3px; }
.exp-track {
  width: 4px; height: 60px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px; overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
}
.exp-fill {
  width: 100%; border-radius: 4px;
  background: linear-gradient(180deg, rgba(74,158,255,0.9), var(--accent));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 1.2s var(--ease);
  box-shadow: 0 0 10px rgba(74,158,255,0.5);
}
.exp-fill.on { transform: scaleY(1); }
.exp-name { font-family: var(--font-d); font-size: 0.93rem; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.exp-det { font-size: 0.84rem; color: var(--text-2); line-height: 1.65; }

/* =====================================================================
   CONTACT
   ===================================================================== */
#kontakt {
  background: var(--bg);
  position: relative; overflow: hidden;
}
#kontakt::before {
  content: '';
  position: absolute; left: -15%; bottom: -20%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(74,158,255,0.05) 0%, transparent 65%);
  pointer-events: none;
}
#kontakt::after {
  content: '';
  position: absolute; right: -10%; top: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(74,158,255,0.03) 0%, transparent 65%);
  pointer-events: none;
}
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.ct-info-panel {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px; padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative; overflow: hidden;
}
.ct-info-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 55%);
  border-radius: 22px; pointer-events: none;
}
.ct-info-panel::after {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.ct-detail {
  display: flex; gap: 16px; padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  align-items: center;
  transition: padding-left 0.25s;
}
.ct-detail:first-of-type { padding-top: 0; }
.ct-detail:last-of-type { border-bottom: none; padding-bottom: 0; }
.ct-detail:hover { padding-left: 6px; }
.ct-ico {
  width: 38px; height: 38px; flex-shrink: 0;
  background: rgba(74,158,255,0.12);
  border: 1px solid rgba(74,158,255,0.22);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  box-shadow: 0 0 12px rgba(74,158,255,0.15);
  transition: box-shadow 0.3s, background 0.3s;
}
.ct-detail:hover .ct-ico {
  background: rgba(74,158,255,0.2);
  box-shadow: 0 0 20px rgba(74,158,255,0.3);
}
.ct-lbl { font-size: 0.68rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }
.ct-val { font-size: 0.94rem; color: var(--text); font-weight: 500; }
.ct-val a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.ct-val a:hover { color: var(--accent); }

/* Contact Form */
.form-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 22px; padding: 36px 32px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.07);
  position: relative; overflow: hidden;
}
.form-glass::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 55%);
  border-radius: 22px; pointer-events: none;
}
.form-glass::after {
  content: '';
  position: absolute; top: 0; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
}
.form { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 7px; }
.fg label { font-size: 0.7rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }
.fg input, .fg textarea, .fg select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px; padding: 12px 14px;
  color: var(--text); font-family: var(--font-b); font-size: 0.88rem;
  outline: none; width: 100%;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
  backdrop-filter: blur(8px);
}
.fg input:focus, .fg textarea:focus, .fg select:focus {
  border-color: rgba(74,158,255,0.45);
  background: rgba(74,158,255,0.07);
  box-shadow: 0 0 0 3px rgba(74,158,255,0.12);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--text-3); }
.fg textarea { min-height: 115px; resize: vertical; }
.fg select { appearance: none; cursor: pointer; }
.fg select option { background: var(--bg-3); }
.form-ok {
  display: none; padding: 14px 18px;
  background: rgba(74,158,255,0.08);
  border: 1px solid rgba(74,158,255,0.25);
  border-radius: 10px; color: var(--accent); font-size: 0.86rem;
  backdrop-filter: blur(8px);
}
.form-submit {
  align-self: flex-start; padding: 13px 32px;
  background: linear-gradient(135deg, var(--accent), #2d7dd2);
  color: #fff; border: none; border-radius: 10px;
  font-family: var(--font-d); font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
  transition: transform 0.22s, box-shadow 0.22s, opacity 0.22s;
  box-shadow: 0 4px 20px rgba(74,158,255,0.3), 0 0 0 1px rgba(74,158,255,0.2);
}
.form-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(74,158,255,0.4), 0 0 0 1px rgba(74,158,255,0.3);
}

/* =====================================================================
   FOOTER
   ===================================================================== */
footer {
  background: rgba(8,14,30,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(74,158,255,0.12);
  padding: 44px 5vw;
}
.ft-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.ft-logo img { height: 90px; width: auto; opacity: 0.8; transition: opacity 0.2s, filter 0.2s; }
.ft-logo img:hover { opacity: 1; filter: drop-shadow(0 0 10px rgba(74,158,255,0.3)); }
.ft-links { display: flex; gap: 26px; list-style: none; }
.ft-links a { font-size: 0.76rem; color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.2s; }
.ft-links a:hover { color: rgba(255,255,255,0.7); }
.ft-copy { font-size: 0.73rem; color: rgba(255,255,255,0.25); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-vis { display: none; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .varfor-grid { grid-template-columns: 1fr; gap: 44px; }
  .proc-steps { grid-template-columns: 1fr 1fr; gap: 16px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .ct-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  section { padding: 68px 5vw; }
  .svc-grid { grid-template-columns: 1fr; }
  .exp-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 26px; }
  .ft-inner { flex-direction: column; align-items: flex-start; }
  .ct-info-panel, .form-glass { padding: 28px 22px; }
}
@media (max-width: 480px) {
  .proc-steps { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr; }
}

/* =====================================================================
   GALLERY SECTION
   ===================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  aspect-ratio: 4/3;
  border: 1px solid var(--border-1);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: rgba(10, 14, 26, 0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-zoom-ico {
  width: 48px; height: 48px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  transition: transform 0.25s ease, border-color 0.25s;
}
.gallery-item:hover .gallery-zoom-ico {
  transform: scale(1.12);
  border-color: var(--accent);
  color: var(--accent);
}
/* Empty slot placeholder */
.gallery-item-empty {
  aspect-ratio: 4/3;
  border-radius: 6px;
  border: 1px dashed rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3); font-size: 0.75rem; text-align: center;
}

/* =====================================================================
   IMAGE ZOOM OVERLAY — all styles applied inline via JS
   ===================================================================== */

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; gap: 10px; }
}
