:root {
  --color-primary: #007bff;
  --color-secondary: #6c757d;
  --color-accent: #00bcd4; /* Nový akcent pro futurismus */
  --color-background-light: #f0f2f5;
  --color-background-mid: #ffffff;
  --color-background-dark: #e9ecef;
  --color-footer-bg: #212529;
  --color-text-dark: #333333;
  --color-text-light: #f8f9fa;
  --color-border: #dee2e6;

  --font-family-heading: 'Poppins', sans-serif;
  --font-family-body: 'Inter', sans-serif;

  --spacing-unit: 1rem; /* 16px */
  --border-radius-small: 0.25rem; /* 4px */
  --border-radius-medium: 0.5rem; /* 8px */
  --border-radius-large: 1rem; /* 16px */

  --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-futuristic: 0 0 15px var(--color-accent), 0 0 30px var(--color-accent); /* Jemný neonový efekt */

  --transition-speed: 0.3s ease-in-out;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  font-family: var(--font-family-body);
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-background-light);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family-heading);
  color: var(--color-text-dark);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  font-weight: 600;
}

h3 {
  font-size: 1.75rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-speed);
}

a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Sections */
.section {
  padding: calc(var(--spacing-unit) * 4) 0;
  background-color: var(--color-background-mid);
  position: relative;
  overflow: hidden; /* Pro futuristické efekty */
}

/* Střídání barev pozadí sekcí */
.section:nth-of-type(odd) {
  background-color: var(--color-background-light);
}

.section:nth-of-type(even) {
  background-color: var(--color-background-mid);
}

.section-dark {
  background-color: var(--color-footer-bg);
  color: var(--color-text-light);
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5,
.section-dark h6,
.section-dark a {
  color: var(--color-text-light);
}

/* Containers */
.container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-unit);
  padding-right: var(--spacing-unit);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: var(--border-radius-medium);
  font-family: var(--font-family-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition-speed), transform var(--transition-speed), box-shadow var(--transition-speed);
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  box-shadow: var(--shadow-light);
}

.btn-primary:hover {
  background-color: color-mix(in srgb, var(--color-primary) 80%, black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-secondary {
  background-color: var(--color-secondary);
  color: var(--color-text-light);
}

.btn-secondary:hover {
  background-color: color-mix(in srgb, var(--color-secondary) 80%, black);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.7rem 1.7rem;
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-small);
  font-family: var(--font-family-body);
  font-size: 1rem;
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.25);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

/* Cards - pro prezentaci prací */
.card {
  background-color: var(--color-background-mid);
  border-radius: var(--border-radius-large); /* Větší zaoblení pro moderní vzhled */
  box-shadow: var(--shadow-light);
  padding: calc(var(--spacing-unit) * 2);
  transition: transform var(--transition-speed), box-shadow var(--transition-speed);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.card-title {
  font-size: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--color-primary);
}

.card-text {
  font-size: 0.95rem;
  color: var(--color-secondary);
  flex-grow: 1;
}

.card-image {
  border-radius: var(--border-radius-medium);
  margin-bottom: var(--spacing-unit);
  object-fit: cover;
  width: 100%;
  height: 200px; /* Pevná výška pro konzistenci */
}

/* Futurism accents */
.futuristic-glow {
  position: relative;
  z-index: 1;
}

.futuristic-glow::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  background: linear-gradient(45deg, var(--color-accent) 0%, var(--color-primary) 100%);
  filter: blur(10px);
  opacity: 0;
  z-index: -1;
  border-radius: var(--border-radius-large);
  transition: opacity var(--transition-speed);
}

.futuristic-glow:hover::before {
  opacity: 0.6;
}

/* Alpine.js specific styles for transitions */
[x-cloak] {
  display: none !important;
}

.fade-enter-active, .fade-leave-active {
  transition: opacity var(--transition-speed);
}
.fade-enter, .fade-leave-to /* .fade-leave-active in <2.1.8 */ {
  opacity: 0;
}

.slide-enter-active, .slide-leave-active {
  transition: transform var(--transition-speed), opacity var(--transition-speed);
}
.slide-enter, .slide-leave-to {
  transform: translateY(20px);
  opacity: 0;
}

/* Media Queries */
@media (max-width: 768px) {
  h1 {
    font-size: 2.5rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  .section {
    padding: calc(var(--spacing-unit) * 3) 0;
  }
  .btn {
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  .container {
    padding-left: calc(var(--spacing-unit) * 0.75);
    padding-right: calc(var(--spacing-unit) * 0.75);
  }
  .card {
    padding: var(--spacing-unit);
  }
  .card-image {
    height: 150px;
  }
}

/* Utility classes (complementing Tailwind) */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: var(--spacing-unit);
}

.mt-8 {
  margin-top: calc(var(--spacing-unit) * 2);
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(var(--spacing-unit) * 2);
}

@media (max-width: 768px) {
  .grid-cols-2 {
    grid-template-columns: 1fr;
  }
}

.grid-cols-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing-unit) * 2);
}

@media (max-width: 1024px) {
  .grid-cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.justify-center {
  justify-content: center;
}

.space-x-4 > *:not(:first-child) {
  margin-left: var(--spacing-unit);
}

.relative {
  position: relative;
}

.z-10 {
  z-index: 10;
}

.overflow-hidden {
  overflow: hidden;
}

.rounded-lg {
  border-radius: var(--border-radius-large);
}

.shadow-md {
  box-shadow: var(--shadow-light);
}

/* Footer specific styles */
.footer {
  background-color: var(--color-footer-bg);
  color: var(--color-text-light);
  padding: calc(var(--spacing-unit) * 3) 0;
  text-align: center;
  font-size: 0.9rem;
}

.footer a {
  color: var(--color-accent);
}

.footer a:hover {
  text-decoration: underline;
}

/* Futurism specific: subtle background grid/pattern */
.section-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.1;
  z-index: 0;
}

.section-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--spacing-unit) * 6) 0;
  background-color: var(--color-background-dark);
}

.section-hero .container {
  position: relative;
  z-index: 1;
}

/* Minimalist separator */
.separator {
  width: 80px;
  height: 3px;
  background-color: var(--color-accent);
  margin: calc(var(--spacing-unit) * 2) auto;
  border-radius: 2px;
}

/* Hover effects for interactive elements */
.interactive-item {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.interactive-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}


/* Cookie Banner Additional Styles for Tailwind */
.cookie-banner-hover-effect:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

@media (prefers-reduced-motion: reduce) {
    .cookie-banner-hover-effect:hover {
        transform: none;
    }
}