/* =============================================
   Varianta A — Neon Grid
   Martin Matula — Senior DBA konzultant
   ============================================= */

/* ===== CSS VARIABLES ===== */
:root {
  --bg-primary:   #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-card:      rgba(255, 255, 255, 0.04);
  --bg-card-hover:rgba(255, 255, 255, 0.07);
  --border-color: rgba(0, 212, 255, 0.15);
  --border-hover: rgba(0, 212, 255, 0.4);

  --neon-cyan:   #00d4ff;
  --neon-purple: #7b2fff;
  --neon-green:  #00ff88;
  --text-primary:   #e8eaf0;
  --text-secondary: #8892a4;
  --text-muted:     #4a5568;

  --glow-cyan:   0 0 20px rgba(0, 212, 255, 0.3), 0 0 60px rgba(0, 212, 255, 0.1);
  --glow-purple: 0 0 20px rgba(123, 47, 255, 0.3);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'JetBrains Mono', 'Consolas', monospace;

  --radius:    12px;
  --radius-sm: 6px;
  --transition: 0.25s ease;

  --nav-height:    64px;
  --container-max: 1200px;
  --section-pad:   clamp(4rem, 8vw, 7rem);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: 3px; }

:focus-visible { outline: 2px solid var(--neon-cyan); outline-offset: 3px; border-radius: var(--radius-sm); }
a { color: var(--neon-cyan); text-decoration: none; transition: color var(--transition); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; }

/* ===== UTILITY ===== */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.neon-text {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-20px); }
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(0, 255, 136, 0); }
}

.animate-fade-in { opacity: 0; animation: fadeInUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.7s; }

.section-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.section-animate.in-view { opacity: 1; transform: translateY(0); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border-hover);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: var(--container-max); margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.2rem; font-weight: 700;
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
  letter-spacing: 0.05em;
}
.logo-bracket { color: var(--neon-purple); }

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

.nav-link {
  font-size: 0.875rem; font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.05em; text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--neon-cyan); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column; justify-content: space-between;
  width: 28px; height: 20px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.hamburger span {
  display: block; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); background: var(--neon-cyan); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background: var(--neon-cyan); }

@media (max-width: 767px) {
  .hamburger { display: flex; }
  .nav-menu {
    display: none;
    position: fixed; top: var(--nav-height); left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.97);
    backdrop-filter: blur(20px);
    padding: 2rem; gap: 1.5rem;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-menu.open { display: flex; }
  .nav-link { font-size: 1.1rem; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  cursor: pointer; border: none;
  transition: all var(--transition);
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--neon-cyan); color: #000;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}
.btn-primary:hover {
  background: #fff; color: #000;
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-ghost:hover {
  border-color: var(--neon-cyan); color: var(--neon-cyan);
  transform: translateY(-2px);
}
.btn-full { width: 100%; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: var(--nav-height);
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }

/* CSS Grid background */
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.glow-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: float 8s ease-in-out infinite;
}
.glow-1 {
  width: 500px; height: 500px;
  background: rgba(0, 212, 255, 0.08);
  top: -100px; right: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: rgba(123, 47, 255, 0.08);
  bottom: -100px; left: -50px;
  animation-delay: 4s;
}

.hero-content {
  position: relative; z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--border-color); border-radius: 100px;
  font-size: 0.8rem; font-family: var(--font-mono);
  color: var(--neon-cyan); margin-bottom: 1.5rem;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.hero-badge::before { content: '●'; font-size: 0.5rem; }

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -0.02em; margin-bottom: 1rem;
}

.hero-sub {
  font-family: var(--font-mono);
  font-size: clamp(0.85rem, 2vw, 1rem);
  color: var(--text-secondary);
  letter-spacing: 0.15em; margin-bottom: 1.5rem;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary); line-height: 1.5;
  margin-bottom: 2.5rem; max-width: 540px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }

.hero-stats { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800; color: var(--neon-cyan); line-height: 1;
  text-shadow: var(--glow-cyan);
}
.stat-label { font-size: 0.75rem; color: var(--text-secondary); margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-divider { width: 1px; height: 40px; background: var(--border-color); }

/* ===== SECTIONS ===== */
.section { padding: var(--section-pad) 0; }
.section-alt { background: var(--bg-secondary); }

.section-label {
  font-family: var(--font-mono); font-size: 0.8rem;
  color: var(--neon-purple); letter-spacing: 0.15em;
  text-transform: uppercase; margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 3rem; letter-spacing: -0.02em;
}

/* ===== ABOUT ===== */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5rem; margin-bottom: 1.5rem;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

.about-bio, .about-competencies { padding: 2rem; }

.about-bio p { color: var(--text-secondary); margin-bottom: 1rem; }
.about-bio p:last-child { margin-bottom: 0; }
.about-bio strong { color: var(--text-primary); }

.about-competencies h3 {
  font-size: 1rem; font-weight: 700; color: var(--neon-cyan);
  margin-bottom: 1.25rem; font-family: var(--font-mono); letter-spacing: 0.05em;
}
.competency-list { list-style: none; }
.competency-list li {
  padding: 0.4rem 0; font-size: 0.9rem; color: var(--text-secondary);
  display: flex; align-items: flex-start; gap: 0.5rem;
}
.bullet-neon { color: var(--neon-cyan); flex-shrink: 0; margin-top: 0.1rem; }

.how-i-work { padding: 2rem; margin-bottom: 1.5rem; }
.how-i-work h3 {
  font-size: 1rem; font-weight: 700; color: var(--neon-cyan);
  margin-bottom: 1.5rem; font-family: var(--font-mono); letter-spacing: 0.05em;
}

.process-steps { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.process-step { flex: 1; min-width: 140px; }
.step-num { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 800; line-height: 1; margin-bottom: 0.25rem; }
.step-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.step-desc { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.4; }
.process-arrow { color: var(--neon-cyan); font-size: 1.5rem; flex-shrink: 0; opacity: 0.5; }

@media (max-width: 768px) {
  .process-steps { flex-direction: column; gap: 1.25rem; }
  .process-arrow { transform: rotate(90deg); }
}

.value-props { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.value-chip {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1.2rem; font-size: 0.875rem; font-weight: 500;
  flex: 1; min-width: 160px;
}
.value-icon { font-size: 1.1rem; }

.tech-stack { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tech-chip {
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--border-color); border-radius: 100px;
  font-size: 0.78rem; font-family: var(--font-mono);
  color: var(--neon-cyan); background: rgba(0, 212, 255, 0.05);
  letter-spacing: 0.05em;
  transition: all var(--transition);
}
.tech-chip:hover {
  border-color: var(--neon-cyan); background: rgba(0, 212, 255, 0.12);
  box-shadow: 0 0 12px rgba(0, 212, 255, 0.2);
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
@media (max-width: 480px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-hover); }

.service-icon { width: 40px; height: 40px; color: var(--neon-cyan); opacity: 0.8; transition: opacity var(--transition); }
.service-card:hover .service-icon { opacity: 1; }

.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); line-height: 1.3; }
.service-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.service-benefit {
  font-size: 0.8rem; color: var(--neon-green);
  border-top: 1px solid var(--border-color); padding-top: 0.75rem;
  margin-top: auto; line-height: 1.4;
}
.benefit-label { font-weight: 700; opacity: 0.7; }

/* ===== CONTACT ===== */
.contact-intro { color: var(--text-secondary); font-size: 1.1rem; margin-bottom: 2.5rem; max-width: 600px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.5rem; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info { padding: 2rem; }
.contact-info h3 {
  font-size: 1rem; font-weight: 700; color: var(--neon-cyan);
  margin-bottom: 1.5rem; font-family: var(--font-mono);
}

.contact-list { list-style: none; }
.contact-list li {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.75rem 0; border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
}
.contact-list li:last-child { border-bottom: none; }
.contact-list svg { width: 18px; height: 18px; color: var(--neon-cyan); flex-shrink: 0; }
.contact-list a { color: var(--text-secondary); transition: color var(--transition); }
.contact-list a:hover { color: var(--neon-cyan); }

.availability-note {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 1.5rem; font-size: 0.8rem; color: var(--text-muted);
}
.availability-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.5);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.contact-form { padding: 2rem; }
.contact-form h3 {
  font-size: 1rem; font-weight: 700; color: var(--neon-cyan);
  margin-bottom: 1.5rem; font-family: var(--font-mono);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.8rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 0.4rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.form-group label span { color: var(--neon-cyan); }

.form-group input, .form-group textarea {
  width: 100%; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color); border-radius: var(--radius-sm);
  color: var(--text-primary); font-size: 0.9rem; font-family: var(--font-sans);
  padding: 0.7rem 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}
.form-group input.error, .form-group textarea.error { border-color: #ff4d6d; }

.field-error { display: block; font-size: 0.78rem; color: #ff4d6d; margin-top: 0.25rem; min-height: 1em; }

.form-status {
  margin-top: 1rem; padding: 0.75rem 1rem;
  border-radius: var(--radius-sm); font-size: 0.875rem; display: none;
}
.form-status.success { display: block; background: rgba(0, 255, 136, 0.1); border: 1px solid rgba(0, 255, 136, 0.3); color: var(--neon-green); }
.form-status.error   { display: block; background: rgba(255, 77, 109, 0.1); border: 1px solid rgba(255, 77, 109, 0.3); color: #ff4d6d; }

/* ===== FOOTER ===== */
.footer { background: var(--bg-secondary); border-top: 1px solid var(--border-color); padding: 2rem 0; text-align: center; }
.footer p { font-size: 0.85rem; color: var(--text-muted); }
.footer-sub { color: var(--text-muted); opacity: 0.5; font-size: 0.75rem; margin-top: 0.25rem; }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 999;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  color: var(--neon-cyan); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover {
  background: var(--neon-cyan); color: #000;
  border-color: var(--neon-cyan); box-shadow: var(--glow-cyan);
  transform: translateY(-3px);
}
@media (max-width: 480px) { .back-to-top { bottom: 1rem; right: 1rem; width: 38px; height: 38px; } }
