/* ============================================================
   WWV Software IoT Solutions — Styles
   ============================================================ */

:root {
  --bg: #050a0f;
  --bg2: #080f17;
  --panel: #0b1520;
  --border: #0e3a5c;
  --accent: #00d4ff;
  --accent2: #ff6b35;
  --accent3: #39ff14;
  --text: #c8dde8;
  --text-dim: #5a7a8a;
  --mono: 'Share Tech Mono', monospace;
  --sans: 'Exo 2', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  overflow-x: hidden;
  cursor: crosshair;
}

/* Scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,212,255,0.015) 2px,
    rgba(0,212,255,0.015) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* ── GRID BACKGROUND ── */
.grid-bg {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,212,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,212,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  height: 64px;
  background: rgba(5,10,15,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--mono);
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.08em;
}

.nav-logo span { color: var(--accent2); }

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

.nav-links a {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 3rem 4rem;
  overflow: hidden;
  z-index: 1;
}

.hero-content { max-width: 700px; position: relative; z-index: 2; }

.hero-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent3);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s ease both;
}

.hero-tag::before { content: '> '; color: var(--accent3); }

h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

h1 .line1 { color: #fff; display: block; }
h1 .line2 { color: var(--accent); display: block; }
h1 .line3 { color: var(--accent2); display: block; }

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 1.7;
  margin: 1.5rem 0 2.5rem;
  max-width: 560px;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeUp 0.6s 0.3s ease both;
}

/* ── BUTTONS ── */
.btn {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.8rem;
  text-decoration: none;
  transition: all 0.2s;
  display: inline-block;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(0,212,255,0.5);
}

.btn-secondary {
  border: 1px solid var(--border);
  color: var(--text-dim);
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Circuit decoration */
.hero-circuit {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 700px;
  height: 700px;
  opacity: 0.12;
  animation: rotateSlow 60s linear infinite;
}

/* ── SECTION BASE ── */
section {
  position: relative;
  z-index: 1;
  padding: 6rem 3rem;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.section-label::before { content: '// '; }

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h2 em {
  font-style: normal;
  color: var(--accent);
}

.section-intro {
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 3rem;
}

/* ── SERVICES ── */
#uslugi { background: var(--bg2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border);
}

.service-card {
  background: var(--panel);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { background: #0d1d2e; }

.service-card.retro::before { background: var(--accent2); }
.service-card.devops::before { background: var(--accent3); }

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.2rem;
  color: var(--accent);
}

.service-card.retro .card-icon { color: var(--accent2); }
.service-card.devops .card-icon { color: var(--accent3); }

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.8rem;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.2rem;
}

.tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  padding: 0.2rem 0.6rem;
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ── RETRO SECTION ── */
#retro {
  background: var(--bg);
  overflow: hidden;
}

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

.retro-visual {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.crt-screen {
  width: 300px;
  height: 240px;
  background: #000;
  border: 3px solid #444;
  border-radius: 16px;
  box-shadow:
    0 0 0 6px #333,
    0 0 0 8px #222,
    0 20px 60px rgba(0,0,0,0.8),
    inset 0 0 40px rgba(57,255,20,0.1);
  position: relative;
  overflow: hidden;
  animation: crtFlicker 8s ease-in-out infinite;
}

.crt-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.3) 3px,
    rgba(0,0,0,0.3) 4px
  );
  pointer-events: none;
}

.crt-content {
  padding: 1rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent3);
  line-height: 1.6;
}

.crt-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--accent3);
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

.crt-glow {
  position: absolute;
  width: 340px;
  height: 280px;
  background: radial-gradient(ellipse, rgba(57,255,20,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.retro-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.8rem 0;
}

.retro-list li {
  font-size: 0.9rem;
  color: var(--text-dim);
  padding-left: 1.4rem;
  position: relative;
  line-height: 1.5;
}

.retro-list li::before {
  content: '►';
  position: absolute;
  left: 0;
  color: var(--accent2);
  font-size: 0.6rem;
  top: 0.2em;
}

.retro-computers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}

.computer-chip {
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 0.3rem 0.7rem;
  background: rgba(255,107,53,0.1);
  border: 1px solid rgba(255,107,53,0.3);
  color: var(--accent2);
  letter-spacing: 0.05em;
}

/* ── TECH STACK ── */
#technologie { background: var(--bg2); }

.tech-orbit {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.tech-pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 0.5rem 1.2rem;
  border: 1px solid var(--border);
  color: var(--text-dim);
  letter-spacing: 0.08em;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.tech-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  opacity: 0.08;
}

.tech-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tech-pill:hover::before { transform: translateX(0); }

/* ── DEVOPS ── */
#devops { background: var(--bg); }

.devops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(57,255,20,0.15);
  margin-top: 2.5rem;
}

.devops-item {
  background: var(--bg);
  padding: 1.5rem;
  border-left: 2px solid transparent;
  transition: all 0.3s;
}

.devops-item:hover {
  background: rgba(57,255,20,0.03);
  border-color: var(--accent3);
}

.devops-num {
  font-family: var(--mono);
  font-size: 2.5rem;
  color: rgba(57,255,20,0.15);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-weight: 800;
  transition: color 0.3s;
}

.devops-item:hover .devops-num { color: rgba(57,255,20,0.35); }

.devops-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.4rem;
}

.devops-item p {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ── CONTACT ── */
#kontakt {
  background: var(--bg2);
  text-align: center;
}

.contact-box {
  max-width: 600px;
  margin: 0 auto;
  padding: 3rem;
  border: 1px solid var(--border);
  position: relative;
}

.contact-box::before, .contact-box::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  border-style: solid;
}

.contact-box::before {
  top: -1px; left: -1px;
  border-width: 2px 0 0 2px;
}

.contact-box::after {
  bottom: -1px; right: -1px;
  border-width: 0 2px 2px 0;
}

.contact-box h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.contact-box p {
  color: var(--text-dim);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-link {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.contact-link:hover { color: #fff; }

/* ── FOOTER ── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg);
}

footer p {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.status-bar {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--accent3);
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
  animation: pulse 2s ease-in-out infinite;
}

/* ── SCROLL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(57,255,20,0.4); }
  50%       { opacity: 0.7; box-shadow: 0 0 0 4px rgba(57,255,20,0); }
}

@keyframes rotateSlow {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

@keyframes crtFlicker {
  0%, 95%, 100% { opacity: 1; }
  96%           { opacity: 0.95; }
  97%           { opacity: 1; }
  98%           { opacity: 0.9; }
  99%           { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.5rem; }
  .nav-links { display: none; }
  section { padding: 4rem 1.5rem; }
  #hero { padding: 100px 1.5rem 3rem; }
  .retro-wrapper { grid-template-columns: 1fr; }
  .hero-circuit { display: none; }
  footer { flex-direction: column; gap: 1rem; text-align: center; }
}
