/* Animations */
@keyframes neonPulse {
  0%,
  100% {
    box-shadow: 0 0 15px rgba(147, 197, 253, 0.3),
      0 0 30px rgba(147, 197, 253, 0.2);
  }
  50% {
    box-shadow: 0 0 25px rgba(147, 197, 253, 0.5),
      0 0 50px rgba(147, 197, 253, 0.3);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Text Effects */
.shimmer-text {
  color: #1f2937;
  background: linear-gradient(
    135deg,
    #1f2937 0%,
    #1f2937 40%,
    #3b82f6 50%,
    #1f2937 60%,
    #1f2937 100%
  );
  background-size: 200% 200%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}

/* Header Elements */
.neon-header {
  animation: neonPulse 3s infinite;
}

.float {
  animation: float 6s ease-in-out infinite;
}

.neon-button {
  background: linear-gradient(45deg, #4f46e5, #6366f1);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.neon-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

/* Glass Card Styles */
.glass-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.glass-card::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -20%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(59, 130, 246, 0.15),
    rgba(59, 130, 246, 0.05)
  );
  filter: blur(40px);
  z-index: -2;
  pointer-events: none;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0.15) 0%,
    transparent 100%
  );
  z-index: -1;
  pointer-events: none;
}

.card-content {
  position: relative;
  z-index: 1;
}

/* Statistics and Numbers */
.stat-number {
  background: linear-gradient(225deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
}

/* Glow Effects */
.neon-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(147, 197, 253, 0.08) 50%,
    transparent 100%
  );
  opacity: 0.7;
  filter: blur(20px);
  z-index: -1;
}

/* Shimmer Effect */
.shimmer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 45%,
    rgba(147, 197, 253, 0.15) 50%,
    rgba(255, 255, 255, 0.12) 55%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.glass-card:hover .shimmer-overlay {
  opacity: 1;
}

/* Tailwind Utilities */
@layer utilities {
  .animation-delay-2000 {
    animation-delay: 2s;
  }
  .animation-delay-4000 {
    animation-delay: 4s;
  }
}

/* Stats badge */
.stats-badge {
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 8px;
  color: #3b82f6;
  padding: 4px 8px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Background styles */
body {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #1f2937;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(59, 130, 246, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(99, 102, 241, 0.1) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

/* Swiper Styles */
.swiper-wrapper {
  width: 100%;
  height: max-content !important;
  padding-bottom: 64px !important;
  -webkit-transition-timing-function: linear !important;
  transition-timing-function: linear !important;
  position: relative;
}

.swiper-pagination-bullet {
  background: #709bff;
}

.swiper-pagination-bullet-active {
  background: #027cff !important;
}

.lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  margin: auto;
  width: 100%;
  z-index: -1;
}

.line {
  position: absolute;
  width: 1px;
  height: 100%;
  top: 0;
  left: 50%;
  background: rgba(59, 131, 246, 0.03);
  overflow: hidden;
}

.line::after {
  content: "";
  display: block;
  position: absolute;
  height: 15vh;
  width: 100%;
  top: -50%;
  left: 0;
  background: linear-gradient(
    to bottom,
    rgba(179, 208, 255, 0) 0%,
    rgba(109, 165, 255, 0.2) 25%,
    rgba(97, 158, 255, 0.25) 50%
  );
  animation: drop 10s 0s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.line:nth-child(1) {
  margin-left: -35%;
}
.line:nth-child(2) {
  margin-left: -21%;
}
.line:nth-child(3) {
  margin-left: -7%;
}
.line:nth-child(4) {
  margin-left: 7%;
}
.line:nth-child(5) {
  margin-left: 21%;
}
.line:nth-child(6) {
  margin-left: 35%;
}

.line:nth-child(1)::after {
  animation-delay: 0.5s;
}
.line:nth-child(2)::after {
  animation-delay: 2s;
}
.line:nth-child(3)::after {
  animation-delay: 1s;
}
.line:nth-child(4)::after {
  animation-delay: 2.5s;
}
.line:nth-child(5)::after {
  animation-delay: 1.5s;
}
.line:nth-child(6)::after {
  animation-delay: 3s;
}

@keyframes drop {
  0% {
    top: -50%;
  }
  100% {
    top: 110%;
  }
}

.hero-section {
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* Horizontální čáry */
.horizontal-lines {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  margin: auto;
  width: 100%;
  z-index: -1;
}

.h-line {
  position: absolute;
  height: 1px;
  width: 100%;
  left: 0;
  background: rgba(59, 131, 246, 0.03);
  overflow: hidden;
}

.h-line::after {
  content: "";
  display: block;
  position: absolute;
  width: 15vw;
  height: 100%;
  left: -50%;
  top: 0;
  background: linear-gradient(
    to right,
    rgba(179, 208, 255, 0) 0%,
    rgba(109, 165, 255, 0.2) 25%,
    rgba(97, 158, 255, 0.25) 50%
  );
  animation: slide 10s 0s infinite;
  animation-fill-mode: forwards;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.h-line:nth-child(1) {
  top: 15%;
}
.h-line:nth-child(2) {
  top: 35%;
}
.h-line:nth-child(3) {
  top: 55%;
}
.h-line:nth-child(4) {
  top: 75%;
}
.h-line:nth-child(5) {
  top: 95%;
}

.h-line:nth-child(1)::after {
  animation-delay: 0.5s;
}
.h-line:nth-child(2)::after {
  animation-delay: 2s;
}
.h-line:nth-child(3)::after {
  animation-delay: 1s;
}
.h-line:nth-child(4)::after {
  animation-delay: 2.5s;
}
.h-line:nth-child(5)::after {
  animation-delay: 1.5s;
}

@keyframes slide {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

.grid-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(12, 1fr);
}

.grid-line {
  position: relative;
  background: rgba(59, 131, 246, 0.1);
  overflow: hidden;
}

.grid-line-horizontal {
  height: 1px;
  width: 100%;
  grid-column: 1 / -1;
}

.grid-line-vertical {
  width: 1px;
  height: 100%;
  grid-row: 1 / -1;
  justify-self: center;
}

.grid-line::after {
  content: "";
  position: absolute;
  display: block;
}

.grid-line-horizontal::after {
  width: 15vw;
  height: 100%;
  left: -50%;
  top: 0;
  background: linear-gradient(
    to right,
    rgba(179, 208, 255, 0) 0%,
    #6da5ff 75%,
    #619eff 100%
  );
  animation: slide 7s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

.grid-line-vertical::after {
  height: 15vh;
  width: 100%;
  top: -50%;
  left: 0;
  background: linear-gradient(
    to bottom,
    rgba(179, 208, 255, 0) 0%,
    #6da5ff 75%,
    #619eff 100%
  );
  animation: drop 7s infinite;
  animation-timing-function: cubic-bezier(0.4, 0.26, 0, 0.97);
}

@keyframes slide {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

@keyframes drop {
  0% {
    top: -50%;
  }
  100% {
    top: 150%;
  }
}

/* Animační zpoždění pro horizontální čáry */
.grid-line-horizontal:nth-child(1)::after {
  animation-delay: 0.5s;
}
.grid-line-horizontal:nth-child(2)::after {
  animation-delay: 2.1s;
}
.grid-line-horizontal:nth-child(3)::after {
  animation-delay: 1.3s;
}
.grid-line-horizontal:nth-child(4)::after {
  animation-delay: 2.8s;
}
.grid-line-horizontal:nth-child(5)::after {
  animation-delay: 1.7s;
}
.grid-line-horizontal:nth-child(6)::after {
  animation-delay: 3.2s;
}
.grid-line-horizontal:nth-child(7)::after {
  animation-delay: 0.9s;
}
.grid-line-horizontal:nth-child(8)::after {
  animation-delay: 2.4s;
}
.grid-line-horizontal:nth-child(9)::after {
  animation-delay: 1.5s;
}
.grid-line-horizontal:nth-child(10)::after {
  animation-delay: 2.9s;
}
.grid-line-horizontal:nth-child(11)::after {
  animation-delay: 1.1s;
}
.grid-line-horizontal:nth-child(12)::after {
  animation-delay: 2.6s;
}

/* Animační zpoždění pro vertikální čáry */
.grid-line-vertical:nth-child(13)::after {
  animation-delay: 1.8s;
}
.grid-line-vertical:nth-child(14)::after {
  animation-delay: 3s;
}
.grid-line-vertical:nth-child(15)::after {
  animation-delay: 0.7s;
}
.grid-line-vertical:nth-child(16)::after {
  animation-delay: 2.3s;
}
.grid-line-vertical:nth-child(17)::after {
  animation-delay: 1.4s;
}
.grid-line-vertical:nth-child(18)::after {
  animation-delay: 2.7s;
}
.grid-line-vertical:nth-child(19)::after {
  animation-delay: 1s;
}
.grid-line-vertical:nth-child(20)::after {
  animation-delay: 2.5s;
}
.grid-line-vertical:nth-child(21)::after {
  animation-delay: 1.6s;
}
.grid-line-vertical:nth-child(22)::after {
  animation-delay: 3.1s;
}
.grid-line-vertical:nth-child(23)::after {
  animation-delay: 0.8s;
}
.grid-line-vertical:nth-child(24)::after {
  animation-delay: 2.2s;
}

/* Základní nastavení pro všechny čáry */
.line:nth-child(n + 8) {
  display: none;
}
.h-line:nth-child(n + 6) {
  display: none;
}

/* Tablet a větší */
@media (min-width: 768px) {
  .line:nth-child(n + 8) {
    display: block;
  }
  .h-line:nth-child(n + 6) {
    display: block;
  }

  .line:nth-child(1) {
    margin-left: -42%;
  }
  .line:nth-child(2) {
    margin-left: -35%;
  }
  .line:nth-child(3) {
    margin-left: -28%;
  }
  .line:nth-child(4) {
    margin-left: -21%;
  }
  .line:nth-child(5) {
    margin-left: -14%;
  }
  .line:nth-child(6) {
    margin-left: -7%;
  }
  .line:nth-child(7) {
    margin-left: 0%;
  }
  .line:nth-child(8) {
    margin-left: 7%;
  }
  .line:nth-child(9) {
    margin-left: 14%;
  }
  .line:nth-child(10) {
    margin-left: 21%;
  }
  .line:nth-child(11) {
    margin-left: 28%;
  }
  .line:nth-child(12) {
    margin-left: 35%;
  }
  .line:nth-child(13) {
    margin-left: 42%;
  }

  .h-line:nth-child(1) {
    top: 10%;
  }
  .h-line:nth-child(2) {
    top: 22%;
  }
  .h-line:nth-child(3) {
    top: 34%;
  }
  .h-line:nth-child(4) {
    top: 46%;
  }
  .h-line:nth-child(5) {
    top: 58%;
  }
  .h-line:nth-child(6) {
    top: 70%;
  }
  .h-line:nth-child(7) {
    top: 82%;
  }
  .h-line:nth-child(8) {
    top: 94%;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .line:nth-child(14),
  .line:nth-child(15) {
    display: block;
  }

  .line:nth-child(1) {
    margin-left: -49%;
  }
  .line:nth-child(2) {
    margin-left: -42%;
  }
  .line:nth-child(3) {
    margin-left: -35%;
  }
  .line:nth-child(4) {
    margin-left: -28%;
  }
  .line:nth-child(5) {
    margin-left: -21%;
  }
  .line:nth-child(6) {
    margin-left: -14%;
  }
  .line:nth-child(7) {
    margin-left: -7%;
  }
  .line:nth-child(8) {
    margin-left: 0%;
  }
  .line:nth-child(9) {
    margin-left: 7%;
  }
  .line:nth-child(10) {
    margin-left: 14%;
  }
  .line:nth-child(11) {
    margin-left: 21%;
  }
  .line:nth-child(12) {
    margin-left: 28%;
  }
  .line:nth-child(13) {
    margin-left: 35%;
  }
  .line:nth-child(14) {
    margin-left: 42%;
  }
  .line:nth-child(15) {
    margin-left: 49%;
  }
}

.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.animate-fade-down {
  animation: fadeDown 0.6s ease-out forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.animate-on-scroll-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition-delay: var(--delay, 0ms);
}

/* Blog specific styles */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Equal height cards for blog grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: stretch;
}

.blog-card-equal-height {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-text {
  flex: 1;
}

.blog-card-footer {
  margin-top: auto;
}

/* Blog card hover effects */
.blog-card {
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Blog content styling */
.prose {
  color: #374151;
  line-height: 1.75;
}

.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  color: #1f2937;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.prose h1 {
  font-size: 2.25rem;
  line-height: 1.2;
}

.prose h2 {
  font-size: 1.875rem;
  line-height: 1.3;
}

.prose h3 {
  font-size: 1.5rem;
  line-height: 1.4;
}

.prose p {
  margin-bottom: 1.5rem;
}

.prose ul, .prose ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose blockquote {
  border-left: 4px solid #3b82f6;
  padding-left: 1rem;
  margin: 2rem 0;
  font-style: italic;
  color: #6b7280;
}

.prose code {
  background-color: #f3f4f6;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  color: #e11d48;
}

.prose pre {
  background-color: #1f2937;
  color: #f9fafb;
  padding: 1rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.prose pre code {
  background-color: transparent;
  padding: 0;
  color: inherit;
}

.prose a {
  color: #3b82f6;
  text-decoration: underline;
  text-decoration-color: #93c5fd;
  text-underline-offset: 2px;
}

.prose a:hover {
  color: #1d4ed8;
  text-decoration-color: #3b82f6;
}

.prose img {
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  max-width: 100%;
  height: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.prose th, .prose td {
  border: 1px solid #e5e7eb;
  padding: 0.75rem;
  text-align: left;
}

.prose th {
  background-color: #f9fafb;
  font-weight: 600;
}

