/* Custom styly pro celý web (přesunuto z index.php) */
body {
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
}

.gradient-bg {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}
.glass-effect {
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.8);
}
.text-gradient {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.service-card {
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  background: rgba(30, 41, 59, 0.6);
}
.service-card:hover {
  transform: translateY(-8px);
  background: rgba(30, 41, 59, 0.8);
}
.floating-animation {
  animation: float 8s ease-in-out infinite;
  opacity: 0.6;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(90deg);
  }
  50% {
    transform: translateY(-25px) rotate(180deg);
  }
  75% {
    transform: translateY(-15px) rotate(270deg);
  }
}

/* Light mode floating shapes */
body[data-theme="light"] .floating-animation {
  opacity: 0.4;
}

body[data-theme="light"] .bg-cyan-500\/10 {
  background-color: rgba(8, 145, 178, 0.15) !important;
}

body[data-theme="light"] .bg-blue-500\/10 {
  background-color: rgba(37, 99, 235, 0.15) !important;
}

body[data-theme="light"] .bg-purple-500\/10 {
  background-color: rgba(147, 51, 234, 0.15) !important;
}

body[data-theme="light"] .bg-green-500\/10 {
  background-color: rgba(34, 197, 94, 0.15) !important;
}

body[data-theme="light"] .bg-pink-500\/10 {
  background-color: rgba(236, 72, 153, 0.15) !important;
}

body[data-theme="light"] .bg-yellow-500\/10 {
  background-color: rgba(234, 179, 8, 0.15) !important;
}
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
  from {
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  }
  to {
    box-shadow: 0 0 40px rgba(6, 182, 212, 0.6);
  }
}
@keyframes gradient-x {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
.animate-gradient-x {
  background: linear-gradient(270deg, #0ea5e9, #6366f1, #0ea5e9);
  background-size: 400% 400%;
  animation: gradient-x 10s ease-in-out infinite;
  opacity: 0.5;
}

/* Aktivní menu styly */
.nav-link.active {
  color: #06b6d4 !important;
  background-color: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.2);
}

.nav-link.active:hover {
  background-color: rgba(6, 182, 212, 0.15);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Hover efekt pro aktivní menu */
.nav-link:not(.active):hover {
  color: #06b6d4;
  background-color: rgba(6, 182, 212, 0.05);
  transform: translateY(-1px);
}

/* Animace pro přechod aktivního stavu */
.nav-link {
  position: relative;
  overflow: hidden;
}

.nav-link::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(6, 182, 212, 0.1),
    transparent
  );
  transition: left 0.5s;
}

.nav-link:hover::before {
  left: 100%;
}

/* Dark/Light Mode Styles */
body[data-theme="light"] {
  background-color: #ffffff !important;
  color: #1e293b !important;
}

/* Force light mode overrides with higher specificity */
body[data-theme="light"] * {
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease;
}

body[data-theme="light"] .glass-effect {
  backdrop-filter: blur(10px) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: #e2e8f0 !important;
}

body[data-theme="light"] .gradient-bg {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #f8fafc 50%,
    #f1f5f9 100%
  ) !important;
}

body[data-theme="light"] .service-card {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: #e2e8f0 !important;
}

body[data-theme="light"] .service-card:hover {
  background: rgba(255, 255, 255, 0.9) !important;
}

body[data-theme="light"] .bg-slate-700\/30 {
  background-color: rgba(241, 245, 249, 0.3) !important;
}

body[data-theme="light"] .bg-slate-700\/50 {
  background-color: rgba(241, 245, 249, 0.5) !important;
}

body[data-theme="light"] .bg-slate-900\/80 {
  background-color: rgba(248, 250, 252, 0.8) !important;
}

body[data-theme="light"] .text-gradient {
  background: linear-gradient(135deg, #0891b2, #2563eb) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

body[data-theme="light"] .nav-link {
  color: #475569 !important;
}

body[data-theme="light"] .nav-link:hover {
  color: #0891b2 !important;
  background-color: rgba(8, 145, 178, 0.05) !important;
}

body[data-theme="light"] .nav-link.active {
  color: #0891b2 !important;
  background-color: rgba(8, 145, 178, 0.1) !important;
  border: 1px solid rgba(8, 145, 178, 0.2) !important;
  box-shadow: 0 0 10px rgba(8, 145, 178, 0.2) !important;
}

/* Theme toggle button styles */
.theme-toggle {
  color: #94a3b8;
  background: transparent;
  border: 1px solid transparent;
}

.theme-toggle:hover {
  color: #06b6d4;
  background-color: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.2);
}

body[data-theme="light"] .theme-toggle {
  color: #64748b;
}

body[data-theme="light"] .theme-toggle:hover {
  color: #0891b2;
  background-color: rgba(8, 145, 178, 0.1);
  border-color: rgba(8, 145, 178, 0.2);
}

/* Icon visibility */
body[data-theme="dark"] .dark-icon {
  display: inline-block;
}

body[data-theme="dark"] .light-icon {
  display: none;
}

body[data-theme="light"] .dark-icon {
  display: none;
}

body[data-theme="light"] .light-icon {
  display: inline-block;
}

/* Additional light mode adjustments */
body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] h4,
body[data-theme="light"] h5,
body[data-theme="light"] h6 {
  color: #0f172a !important;
}

body[data-theme="light"] p {
  color: #334155 !important;
}

body[data-theme="light"] .section-title {
  color: #0f172a !important;
}

body[data-theme="light"] .hero-title {
  color: #0f172a !important;
}

body[data-theme="light"] .hero-subtitle {
  color: #475569 !important;
}

body[data-theme="light"] .text-gray-300 {
  color: #475569 !important;
}

body[data-theme="light"] .text-gray-400 {
  color: #64748b !important;
}

/* Statistiky a bullet points v light mode */
body[data-theme="light"] .stat-item {
  color: #334155 !important;
}

body[data-theme="light"] .stat-item .text-cyan-400 {
  color: #0891b2 !important;
}

body[data-theme="light"] .stat-item .text-gray-200 {
  color: #475569 !important;
}

body[data-theme="light"] .support-benefits li {
  color: #334155 !important;
}

body[data-theme="light"] .support-benefits .text-gray-300 {
  color: #475569 !important;
}

/* Light mode pro bullet points */
body[data-theme="light"] .support-benefits {
  color: #334155 !important;
}

body[data-theme="light"] .support-benefits li {
  color: #334155 !important;
}

/* Light mode pro nadpisy */
body[data-theme="light"] h3 {
  color: #0f172a !important;
}

/* Light mode pro kontaktní tlačítka */
body[data-theme="light"] .direct-buttons a {
  color: #ffffff !important;
}

body[data-theme="light"] .direct-buttons .bg-slate-700 {
  background-color: #475569 !important;
}

body[data-theme="light"] .direct-buttons .hover\:bg-slate-600:hover {
  background-color: #64748b !important;
}

body[data-theme="light"] .bg-slate-800 {
  background-color: #ffffff !important;
}

body[data-theme="light"] .bg-slate-900 {
  background-color: #f8fafc !important;
}

body[data-theme="light"] .bg-slate-800\/50 {
  background-color: rgba(255, 255, 255, 0.5) !important;
}

body[data-theme="light"] .bg-slate-900\/50 {
  background-color: rgba(248, 250, 252, 0.5) !important;
}

body[data-theme="light"] .border-slate-600 {
  border-color: #cbd5e1 !important;
}

body[data-theme="light"] .border-slate-700 {
  border-color: #94a3b8 !important;
}

body[data-theme="light"] .border-slate-800 {
  border-color: #64748b !important;
}

/* Footer light mode adjustments */
body[data-theme="light"] .bg-slate-950 {
  background-color: #f8fafc !important;
}

body[data-theme="light"] footer {
  background-color: #f8fafc !important;
  border-top-color: #e2e8f0 !important;
}

body[data-theme="light"] footer h3,
body[data-theme="light"] footer h4 {
  color: #1e293b !important;
}

body[data-theme="light"] footer .text-gray-400 {
  color: #64748b !important;
}

body[data-theme="light"] footer a:hover {
  color: #0891b2 !important;
}

/* Form elements light mode */
body[data-theme="light"] input,
body[data-theme="light"] textarea {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

body[data-theme="light"] input:focus,
body[data-theme="light"] textarea:focus {
  border-color: #0891b2 !important;
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1) !important;
}

body[data-theme="light"] label {
  color: #475569 !important;
}

/* Button light mode adjustments */
body[data-theme="light"] .bg-cyan-500 {
  background-color: #0891b2 !important;
}

body[data-theme="light"] .bg-cyan-500:hover {
  background-color: #0e7490 !important;
}

body[data-theme="light"] .hover\:bg-cyan-600:hover {
  background-color: #0e7490 !important;
}

/* Dark button backgrounds in light mode */
body[data-theme="light"] .bg-slate-700 {
  background-color: #475569 !important;
}

body[data-theme="light"] .bg-slate-700:hover {
  background-color: #64748b !important;
}

body[data-theme="light"] .hover\:bg-slate-600:hover {
  background-color: #64748b !important;
}

/* Text colors for buttons in light mode */
body[data-theme="light"] .bg-slate-700,
body[data-theme="light"] .hover\:bg-slate-600 {
  color: #ffffff !important;
}

body[data-theme="light"] .bg-slate-700:hover,
body[data-theme="light"] .hover\:bg-slate-600:hover {
  color: #ffffff !important;
}

/* Logo color adjustments for themes */
body[data-theme="dark"] .logo-image {
  filter: brightness(0) invert(1) !important;
}

body[data-theme="light"] .logo-image {
  filter: none !important;
}

/* Specific overrides for other-services page - using stronger selectors */
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
}

body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm h3,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm .text-white {
  color: #1e293b !important;
}

body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm p,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm .text-gray-300 {
  color: #475569 !important;
}

body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm ul,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm .text-gray-400 {
  color: #64748b !important;
}

body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm li {
  color: #64748b !important;
}

/* Připraveni spolupracovat section */
body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm {
  background-color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(203, 213, 225, 0.8) !important;
}

body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm h2,
body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm .text-white {
  color: #1e293b !important;
}

body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm p,
body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm .text-gray-300 {
  color: #475569 !important;
}

body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm ul,
body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm .text-gray-400 {
  color: #64748b !important;
}

body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm li {
  color: #64748b !important;
}

/* Force all text in service cards to be readable in light mode */
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm * {
  color: #1e293b !important;
}

body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm p,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm ul,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm li {
  color: #475569 !important;
}

body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm * {
  color: #1e293b !important;
}

body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm p,
body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm ul,
body[data-theme="light"] .bg-slate-800\/50.backdrop-blur-sm li {
  color: #475569 !important;
}

/* Silnější styly pro zajištění čitelnosti v light módu - ostatní služby */
body[data-theme="light"] #services .bg-slate-700\/50.backdrop-blur-sm {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

body[data-theme="light"] #services .bg-slate-700\/50.backdrop-blur-sm h3 {
  color: #0f172a !important;
  font-weight: 600 !important;
}

body[data-theme="light"] #services .bg-slate-700\/50.backdrop-blur-sm p {
  color: #334155 !important;
}

body[data-theme="light"] #services .bg-slate-700\/50.backdrop-blur-sm ul li {
  color: #475569 !important;
}

body[data-theme="light"]
  #services
  .bg-slate-700\/50.backdrop-blur-sm
  .text-cyan-400 {
  color: #0891b2 !important;
}

/* Styly pro sekci "Připraveni spolupracovat" */
body[data-theme="light"] .bg-gradient-to-r.from-cyan-900.to-blue-900 {
  background: linear-gradient(to right, #0e7490, #1e40af) !important;
}

body[data-theme="light"] .bg-gradient-to-r.from-cyan-900.to-blue-900 h2 {
  color: #ffffff !important;
}

body[data-theme="light"] .bg-gradient-to-r.from-cyan-900.to-blue-900 p {
  color: #e2e8f0 !important;
}

/* Zajištění čitelnosti textů v CTA sekci */
body[data-theme="light"]
  .bg-gradient-to-r.from-cyan-900.to-blue-900
  .text-gray-300 {
  color: #e2e8f0 !important;
}

body[data-theme="light"]
  .bg-gradient-to-r.from-cyan-900.to-blue-900
  .text-white {
  color: #ffffff !important;
}

body[data-theme="light"]
  .bg-gradient-to-r.from-cyan-900.to-blue-900
  .text-cyan-400 {
  color: #22d3ee !important;
}

/* Zajištění viditelnosti všech textů v light módu */
body[data-theme="light"] .text-white {
  color: #0f172a !important;
}

body[data-theme="light"] .text-gray-300 {
  color: #334155 !important;
}

body[data-theme="light"] .text-gray-400 {
  color: #475569 !important;
}

/* Specifické styly pro všechny karty služeb */
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm {
  background-color: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(203, 213, 225, 0.9) !important;
}

body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm h3,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm .text-white {
  color: #0f172a !important;
}

body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm p,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm .text-gray-300 {
  color: #334155 !important;
}

body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm ul,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm .text-gray-400,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm li {
  color: #475569 !important;
}

/* Nejsilnější override pro všechny texty v dlaždicích */
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm * {
  color: #0f172a !important;
}

body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm p,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm .text-gray-300 {
  color: #334155 !important;
}

body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm ul,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm .text-gray-400,
body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm li {
  color: #475569 !important;
}

body[data-theme="light"] .bg-slate-700\/50.backdrop-blur-sm .text-cyan-400 {
  color: #0891b2 !important;
}

/* Nejsilnější override pro CTA sekci "Připraveni spolupracovat" */
body[data-theme="light"] .bg-gradient-to-r.from-cyan-900.to-blue-900 * {
  color: #ffffff !important;
}

body[data-theme="light"] .bg-gradient-to-r.from-cyan-900.to-blue-900 h2 {
  color: #ffffff !important;
  font-weight: 700 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="light"] .bg-gradient-to-r.from-cyan-900.to-blue-900 p {
  color: #f1f5f9 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="light"]
  .bg-gradient-to-r.from-cyan-900.to-blue-900
  .text-gray-300 {
  color: #f1f5f9 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

body[data-theme="light"]
  .bg-gradient-to-r.from-cyan-900.to-blue-900
  .text-cyan-400 {
  color: #22d3ee !important;
}

body[data-theme="light"]
  .bg-gradient-to-r.from-cyan-900.to-blue-900
  .cta-button {
  color: #ffffff !important;
}

body[data-theme="light"]
  .bg-gradient-to-r.from-cyan-900.to-blue-900
  .secondary-button {
  color: #22d3ee !important;
}

body[data-theme="light"]
  .bg-gradient-to-r.from-cyan-900.to-blue-900
  .secondary-button:hover {
  color: #ffffff !important;
}

/* Nejsilnější override pro všechny texty v CTA sekci */
body[data-theme="light"] .bg-gradient-to-r.from-cyan-900.to-blue-900 h2,
body[data-theme="light"] .bg-gradient-to-r.from-cyan-900.to-blue-900 p,
body[data-theme="light"]
  .bg-gradient-to-r.from-cyan-900.to-blue-900
  .text-gray-300,
body[data-theme="light"]
  .bg-gradient-to-r.from-cyan-900.to-blue-900
  .text-white {
  color: #ffffff !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5) !important;
  font-weight: 600 !important;
}

/* ABSOLUTNĚ NEJSILNĚJŠÍ PŘEPISY PRO CTA SEKCI */
body[data-theme="light"] section.bg-gradient-to-r.from-cyan-900.to-blue-900 h2,
body[data-theme="light"] section.bg-gradient-to-r.from-cyan-900.to-blue-900 p,
body[data-theme="light"]
  section.bg-gradient-to-r.from-cyan-900.to-blue-900
  .text-gray-300,
body[data-theme="light"]
  section.bg-gradient-to-r.from-cyan-900.to-blue-900
  .text-white {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  font-weight: 700 !important;
  -webkit-text-stroke: 0.5px rgba(0, 0, 0, 0.3) !important;
}

/* Zajištění, že se styly aplikují i při změně tématu */
html
  body[data-theme="light"]
  section.bg-gradient-to-r.from-cyan-900.to-blue-900
  h2,
html
  body[data-theme="light"]
  section.bg-gradient-to-r.from-cyan-900.to-blue-900
  p,
html
  body[data-theme="light"]
  section.bg-gradient-to-r.from-cyan-900.to-blue-900
  .text-gray-300 {
  color: #ffffff !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8) !important;
  font-weight: 700 !important;
}

/* Mobilní menu styly */
#mobile-menu {
  transition: all 0.3s ease;
}

#mobile-menu.hidden {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transform: translateY(-20px) !important;
}

#mobile-menu:not(.hidden) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) !important;
}

/* Zajištění, že mobilní menu je viditelné na mobilech */
@media (max-width: 768px) {
  #mobile-menu:not(.hidden) {
    display: block !important;
  }
}

/* Zajištění viditelnosti sekce služeb na telefonu */
#services {
  position: relative !important;
  z-index: 10 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#services .grid {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
}

#services .grid > div {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 1 !important;
}

/* Zajištění viditelnosti na mobilech */
@media (max-width: 768px) {
  #services {
    padding-top: 6rem !important;
    padding-bottom: 5rem !important;
    margin-top: 0 !important;
    position: relative !important;
    z-index: 10 !important;
  }

  #services .grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  #services .grid > div {
    margin-bottom: 1.5rem !important;
  }

  #services h2 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    margin-bottom: 1rem !important;
  }

  #services p {
    font-size: 1.125rem !important;
    line-height: 1.6 !important;
  }
}
