:root {
  --accent: #4f46e5;
  --accent-dark: #3730a3;
  --accent-light: #eef2ff;
  --accent-gradient: linear-gradient(135deg, #4f46e5, #7c3aed);
}

html {
  scroll-behavior: smooth;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f5f9; }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

@keyframes node-pulse {
  0%, 100% { opacity: 1; r: 3.5px; }
  50% { opacity: 0.7; r: 4.5px; }
}
.logo-center-node {
  animation: node-pulse 2.8s ease-in-out infinite;
  transform-origin: center;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.from-left {
  transform: translateX(-40px);
}
.reveal.from-right {
  transform: translateX(40px);
}
.reveal.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.reveal-group > *:nth-child(1) { transition-delay: 0s; }
.reveal-group > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-group > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-group > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-group > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-group > *:nth-child(6) { transition-delay: 0.5s; }
.reveal-group > *:nth-child(7) { transition-delay: 0.6s; }

.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-bg {
  background: linear-gradient(135deg, #0f0c29 0%, #1e1b4b 40%, #312e81 75%, #4c1d95 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-bg::before {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
}
.hero-bg::after {
  width: 400px; height: 400px;
  bottom: -100px; left: -50px;
  background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
}

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

/* Navigácia: na vrchu stránky polopriehľadné tmavé pozadie + biely text,
   po scrollnutí biele pozadie + tmavý text */
#navbar {
  background: rgba(15, 12, 41, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#navbar .nav-link {
  color: rgba(255, 255, 255, 0.92);
}
#navbar .nav-link:hover {
  color: #ffffff;
}
#navbar.scrolled .nav-link {
  color: #374151;
}
#navbar.scrolled .nav-link:hover {
  color: var(--accent);
}

#navbar .nav-logo-text {
  color: #ffffff;
  transition: color 0.3s ease;
}
#navbar.scrolled .nav-logo-text {
  color: #1e1b4b;
}

#navbar .menu-toggle-icon {
  color: #ffffff;
  transition: color 0.3s ease;
}
#navbar.scrolled .menu-toggle-icon {
  color: #374151;
}

/* Navigácia na podstránkach (bez tmavého hero) – vždy biela */
#navbar.nav-solid {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
#navbar.nav-solid .nav-link { color: #374151; }
#navbar.nav-solid .nav-link:hover { color: var(--accent); }
#navbar.nav-solid .nav-logo-text { color: #1e1b4b; }

.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.service-card:hover .card-icon {
  background: var(--accent);
}
/* Ikona musí mať farbu cez CSS (nie inline štýl), inak by hover nefungoval */
.card-icon svg {
  stroke: var(--accent);
  transition: stroke 0.3s ease;
}
.service-card:hover .card-icon svg {
  stroke: white;
}

.acronym-item {
  border-left: 3px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
}
.acronym-item:hover {
  border-left-color: var(--accent);
  background: var(--accent-light);
}

.project-card {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--accent-gradient);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.3s ease;
}
.project-card:hover::before {
  transform: scaleY(1);
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(79, 70, 229, 0.1);
}

/* Filtrovacie tlačidlá na /projekty (kategórie) */
.filter-btn {
  background: white;
  color: #475569;
  border: 1px solid #e5e7eb;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Vyznačená projektová karta – orámovanie akcentovou farbou CTA (#2563EB) */
.project-card.featured {
  border: 2px solid #2563EB;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.12);
}
.project-card.featured:hover {
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.2);
}

/* Badge „Nové" na karte nového projektu */
.badge-new {
  display: inline-flex; align-items: center;
  background: #2563EB;
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Orezanie dlhšieho popisu na karte na 3 riadky */
.clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-primary:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.35);
}
.btn-primary:active {
  transform: translateY(0);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1f2937;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.12);
}
.form-input.error {
  border-color: #ef4444;
}
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: #374151;
  margin-bottom: 6px;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tab-index: -1;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  padding: 16px 24px;
  border-radius: 12px;
  font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  max-width: 380px;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.success {
  background: #ecfdf5;
  color: #065f46;
  border-left: 4px solid #10b981;
}
.toast.error {
  background: #fef2f2;
  color: #7f1d1d;
  border-left: 4px solid #ef4444;
}

.lang-btn {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, color 0.2s ease;
  text-decoration: none;
  color: #6b7280;
}
.lang-btn:hover { background: var(--accent-light); color: var(--accent); }
.lang-btn.active { background: var(--accent); color: white; }

.wave-divider {
  overflow: hidden;
  line-height: 0;
}
.wave-divider svg {
  display: block;
}

.auto-feature {
  transition: transform 0.3s ease;
}
.auto-feature:hover {
  transform: scale(1.03);
}

#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.35s ease;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
}
#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

.section-pad { padding: 96px 0; }

@media (max-width: 768px) {
  .section-pad { padding: 64px 0; }
  .hero-bg { padding: 80px 0; }
}

.footer-bg {
  background: linear-gradient(135deg, #0f0c29 0%, #1e1b4b 100%);
}

/* Hlavné CTA tlačidlo v hero sekcii (akcentová #2563EB) */
.btn-cta {
  background: #2563EB;
  color: white;
  padding: 14px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-cta:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}
.btn-cta:active { transform: translateY(0); }

/* Sekundárne outline tlačidlo na tmavom pozadí */
.btn-outline-light {
  border: 2px solid rgba(255, 255, 255, 0.4);
  color: white;
  padding: 12px 30px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, background 0.2s ease;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-outline-light:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
}

/* Karta člena tímu */
.team-card {
  background: white;
  border: 1px solid #f3f4f6;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(79, 70, 229, 0.12);
}
.team-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.team-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* Vizuálna časová os projektu (Analýza → Vývoj → ...) */
.timeline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 0;
}
.timeline-step {
  display: flex;
  align-items: center;
}
.timeline-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-light);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.timeline-label {
  margin-left: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #374151;
  white-space: nowrap;
}
.timeline-line {
  width: 24px; height: 2px;
  background: #c7d2fe;
  margin: 0 10px;
  flex-shrink: 0;
}

/* Galéria projektu – placeholder obrázky */
.project-gallery img {
  border-radius: 12px;
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border: 1px solid #e5e7eb;
}

/* Badge so statusom projektu */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: #f1f5f9;
  color: #475569;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
