:root {
  /* Barvy */
  --p1: #00E5FF;   /* Neon Cyan */
  --p2: #7C4DFF;   /* Electric Violet */
  --bg: #0b1020;   /* Deep Dark Blue */
  --card-bg: rgba(16, 26, 54, 0.7);
  --text: #e8ecff;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  
  /* Stíny a záře */
  --shadow: 0 10px 40px -10px rgba(0,0,0,0.5);
  --glow-p1: 0 0 20px rgba(0, 229, 255, 0.15);
  --glow-p2: 0 0 20px rgba(124, 77, 255, 0.15);
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, sans-serif;
  overflow-x: hidden;
  position: relative;
}

/* --- 1. ANIMOVANÁ MŘÍŽKA (GRID) V POZADÍ --- */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100vh;
  z-index: -1;
  
  /* Mřížka */
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  
  /* Radiální záře (původní gradienty) */
  background: 
    radial-gradient(circle at 15% 20%, rgba(0, 229, 255, 0.08), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(124, 77, 255, 0.08), transparent 40%),
    linear-gradient(rgba(0, 229, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.03) 1px, transparent 1px);
    
  background-size: 100% 100%, 100% 100%, 60px 60px, 60px 60px;
  
  /* Jemný pohyb mřížky */
  animation: moveGrid 20s linear infinite;
  
  /* Ztmavnutí dole, aby text v patičce byl čitelný */
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

@keyframes moveGrid {
  0% { background-position: 0 0, 0 0, 0 0, 0 0; }
  100% { background-position: 0 0, 0 0, 0 60px, 0 60px; }
}

/* --- NAVIGACE --- */
.navbar {
  background: rgba(11, 16, 32, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(45deg, var(--p1), var(--p2));
  box-shadow: 0 0 15px var(--p1);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(0, 229, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 255, 0); }
}

/* --- HERO SEKCE --- */
.hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.text-primary-gradient {
  background: linear-gradient(90deg, var(--p1), var(--p2), var(--p1));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shineText 5s linear infinite;
}

@keyframes shineText {
  to { background-position: 200% center; }
}

/* Plovoucí efekt pro kartu s fotkou */
.glow {
  animation: floatCard 6s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.05);
  border: 1px solid var(--border);
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- TLAČÍTKA S ODLESKEM --- */
.btn-primary {
  background: linear-gradient(45deg, var(--p1), var(--p2));
  border: none;
  color: #fff;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 5px 20px rgba(0, 229, 255, 0.2);
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: 0.5s;
  z-index: -1;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(124, 77, 255, 0.4);
}

.btn-primary:hover::before {
  left: 100%;
  transition: 0.5s;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  transition: all 0.3s;
}
.btn-outline-light:hover {
  border-color: var(--p1);
  color: var(--p1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.1);
  background: rgba(0, 229, 255, 0.05);
}

/* --- KARTY SLUŽEB (HOVER EFFECT) --- */
.service-card, .contact-card {
  background: var(--card-bg);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border);
  border-radius: 16px;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(0, 229, 255, 0.3);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 
              0 0 20px rgba(0, 229, 255, 0.1) inset; /* Vnitřní záře */
}

/* Ikonka v kartě se rozsvítí */
.icon-chip {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--p1);
  transition: 0.3s;
  font-size: 1.2rem;
}

.service-card:hover .icon-chip {
  background: var(--p1);
  color: #000;
  box-shadow: 0 0 15px var(--p1);
  transform: scale(1.1) rotate(5deg);
}

/* --- TEXTY A UI PRVKY --- */
.text-muted-neo {
  color: rgba(232, 236, 255, 0.7);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: #b7c0ff;
}

.badge-tech {
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.05);
  color: var(--p1);
}

.price-tag {
  border-top: 1px solid var(--border);
  margin-top: 1.5rem;
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 700;
  color: var(--p1);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* --- FORMULÁŘ --- */
.custom-input {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border);
  color: white;
  border-radius: 10px;
  transition: 0.3s;
}

.custom-input:focus {
  background: rgba(0, 0, 0, 0.4);
  border-color: var(--p1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
  outline: none;
  color: white;
}

/* Fix autofill barvy */
.custom-input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0px 1000px #0b1020 inset;
  transition: background-color 5000s ease-in-out 0s;
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.9);
  margin-top: 3rem;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  margin: 2rem 0;
}

/* --- ANIMACE (Reveal) --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Odkazy */
a { color: var(--p1); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--p2); text-shadow: 0 0 8px var(--p2); }

/* Sticky Button Fix */
body { padding-bottom: 0; }
@media (max-width: 768px) {
  body { padding-bottom: 80px; }
}

/* Styl tlačítka pro rozbalení */
.btn-expand-services {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--border);
    color: var(--text-muted);
    transition: all 0.3s ease;
    border-radius: 1rem;
    font-size: 0.95rem;
}

.btn-expand-services:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    border-color: var(--p1);
}

/* Aktivní stav tlačítka */
.btn-expand-services[aria-expanded="true"] {
    background-color: rgba(59, 130, 246, 0.1);
    border-color: var(--p1);
    border-style: solid;
    color: #fff;
}

/* Animace šipky */
.transition-icon {
    transition: transform 0.3s ease;
}

.btn-expand-services[aria-expanded="true"] .transition-icon {
    transform: rotate(180deg);
}

/* Styl pro mini-karty v seznamu */
.service-mini-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 1rem;
    height: 100%;
    transition: all 0.2s ease;
}

.service-mini-card:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.service-mini-card .icon-chip {
    font-size: 1.1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
}