/* ==================== */
/* CSS Variables & Base */
/* ==================== */
:root {
  --primary: #1e90ff;
  --primary-dark: #1565c0;
  --primary-light: #42a5f5;
  --background: #0f0f13;
  --background-light: #1a1a23;
  --background-card: #16161e;
  --foreground: #ffffff;
  --foreground-muted: #a1a1aa;
  --border: #27272a;
  --radius: 12px;
  --transition: 0.3s ease;
}

/* Light theme s černým ohraničením pro lepší viditelnost */
[data-theme="light"] {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --background: #ffffff;
  --background-light: #f8f9fa;
  --background-card: #ffffff;
  --foreground: #18181b;
  --foreground-muted: #71717a;
  --border: #18181b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* lepší podpora pro různé prohlížeče */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
  /* lepší podpora pro iOS */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==================== */
/* Header */
/* ==================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
  height: 90px;
}

.header.scrolled {
  background: rgba(15, 15, 19, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

[data-theme="light"] .header.scrolled {
  background: rgba(255, 255, 255, 0.85);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-image {
  height: 60px;
  width: auto;
}

[data-theme="light"] .logo-image {
  filter: invert(1) brightness(0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: var(--foreground-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--foreground);
}

.nav-link:hover::after {
  width: 100%;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--background-light);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.theme-toggle svg {
  color: var(--foreground);
  width: 22px;
  height: 22px;
}

.theme-toggle .moon-icon {
  display: none;
}

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

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

.language-toggle {
  background: var(--background-light);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.language-toggle:hover {
  border-color: var(--primary);
}

.lang-option {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--foreground-muted);
  transition: var(--transition);
  cursor: pointer;
}

.lang-option.active {
  color: var(--primary);
}

.lang-divider {
  color: var(--border);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--foreground);
  transition: var(--transition);
}

/* ==================== */
/* Hero Section */
/* ==================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 90px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 20%, rgba(30, 144, 255, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 80%, rgba(30, 144, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 650px;
}

.hero-motto {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  align-items: center;
  min-height: 50px;
}

.motto-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
}

.motto-cursor {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  animation: blink 1s infinite;
}

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

.hero-title {
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 28px;
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--foreground-muted);
  margin-bottom: 36px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  /* lepší podpora touch zařízení */
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(30, 144, 255, 0.4);
}

.btn-wrapper {
  position: relative;
  display: inline-block;
}

.btn-cta {
  position: relative;
  overflow: hidden;
  gap: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 18px 36px;
  font-size: 1.1rem;
}

.btn-cta .btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    left: -100%;
  }
  50%,
  100% {
    left: 100%;
  }
}

.animated-cursor {
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
  z-index: 10;
  animation: cursor-move 3s ease-in-out infinite;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes cursor-move {
  0% {
    top: 100%;
    left: 120%;
    opacity: 0;
    transform: scale(1);
  }
  20% {
    opacity: 1;
  }
  40% {
    top: 50%;
    left: 70%;
    opacity: 1;
    transform: scale(1);
  }
  50% {
    top: 50%;
    left: 70%;
    opacity: 1;
    transform: scale(0.9);
  }
  55% {
    transform: scale(1);
  }
  70% {
    top: 50%;
    left: 70%;
    opacity: 1;
  }
  100% {
    top: 50%;
    left: 70%;
    opacity: 0;
  }
}

.btn-cta {
  animation: btn-click-effect 3s ease-in-out infinite;
}

@keyframes btn-click-effect {
  0%,
  45% {
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(30, 144, 255, 0.3);
  }
  50% {
    transform: scale(0.97);
    box-shadow: 0 4px 15px rgba(30, 144, 255, 0.4);
  }
  55%,
  100% {
    transform: scale(1);
    box-shadow: 0 8px 30px rgba(30, 144, 255, 0.3);
  }
}

.btn-cta:hover {
  animation: none;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(30, 144, 255, 0.5);
}

.btn-secondary {
  background: var(--background-light);
  color: var(--foreground);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--background-card);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-full {
  width: 100%;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-hexagon {
  width: 400px;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(37, 99, 235, 0.05) 100%);
  animation: hexagon-float 4s ease-in-out infinite;
  box-shadow: 0 0 60px rgba(37, 99, 235, 0.15);
}

.hero-hexagon::before {
  content: "";
  position: absolute;
  inset: 3px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(0, 0, 0, 0.3) 100%);
}

@keyframes hexagon-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}

.hexagon-logo {
  width: 280px;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

[data-theme="light"] .hexagon-logo {
  filter: invert(1) brightness(0.2) drop-shadow(0 4px 20px rgba(0, 0, 0, 0.3));
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
}

.scroll-indicator:hover {
  transform: translateX(-50%) translateY(-3px);
}

.scroll-indicator span {
  display: block;
  width: 28px;
  height: 46px;
  border: 2px solid var(--foreground-muted);
  border-radius: 14px;
  position: relative;
}

.scroll-indicator span::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 10px;
  background: var(--primary);
  border-radius: 2px;
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0%,
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  50% {
    opacity: 0.5;
    transform: translateX(-50%) translateY(14px);
  }
}

/* ==================== */
/* Section Styles */
/* ==================== */
section {
  padding: 120px 0;
  position: relative;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to bottom, var(--background), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(to top, var(--background), transparent);
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.section-title {
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--foreground-muted);
}

/* ==================== */
/* Services Section */
/* ==================== */
.services {
  background: var(--background);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
}

.service-card {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}

.service-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.service-card.featured {
  background: var(--background-card);
  border-color: var(--border);
}

.service-card.featured:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.service-icon {
  width: 72px;
  height: 72px;
  background: rgba(30, 144, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 20px;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.service-desc {
  color: var(--foreground-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.service-list {
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: 6px;
  color: var(--foreground-muted);
  font-size: 0.9rem;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--primary);
  border-radius: 50%;
}

/* ==================== */
/* Full-width Projects Slider */
/* ==================== */
.projects {
  background: var(--background-light);
  padding: 120px 0;
  overflow: hidden;
}

.projects::before,
.projects::after {
  background: linear-gradient(to bottom, var(--background-light), transparent);
}

.projects::after {
  background: linear-gradient(to top, var(--background-light), transparent);
}

.fullwidth-slider-wrapper {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  padding: 60px 0;
}

.fullwidth-slider {
  width: 100%;
}

.slide-track {
  display: flex;
  gap: 32px;
  animation: scroll-left 50s linear infinite;
  width: max-content;
}

.slide-track:hover {
  animation-play-state: paused;
}

.slide-item {
  flex: 0 0 700px;
  height: 450px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.slide-item:hover {
  transform: scale(1.03);
}

.slide-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.slide-item:hover img {
  transform: scale(1.1);
}

.slide-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
  padding: 40px 32px;
  color: white;
  font-weight: 600;
  font-size: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.slide-detail-icon {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: transform 0.3s ease;
}

.slide-item:hover .slide-detail-icon {
  transform: rotate(90deg);
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    /* 9 projektů × (700px šířka + 32px gap) = 6588px */
    transform: translateX(-6588px);
  }
}

/* ==================== */
/* Project Modal */
/* ==================== */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.modal-content {
  position: relative;
  background: var(--background-card);
  border-radius: var(--radius);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  /* Povolení scrollování v modalu */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  z-index: 2001;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  border: 1px solid var(--border);
}

.project-modal.active .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--foreground);
  font-size: 28px;
  z-index: 10;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.modal-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.modal-body {
  padding: 36px;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-description {
  color: var(--foreground-muted);
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 1.05rem;
}

.modal-meta {
  display: flex;
  gap: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.modal-meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-meta-label {
  font-size: 0.9rem;
  color: var(--foreground-muted);
}

.modal-meta-value {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
}

/* ==================== */
/* About Section */
/* ==================== */
.about {
  background: var(--background);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.about-text {
  color: var(--foreground-muted);
  margin-bottom: 16px;
  font-size: 1.1rem;
}

.about-stats {
  display: flex;
  gap: 48px;
  margin-top: 36px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--foreground-muted);
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* ==================== */
/* Tech Section */
/* ==================== */
.tech {
  background: var(--background-light);
  padding: 100px 0;
}

.tech::before,
.tech::after {
  background: linear-gradient(to bottom, var(--background-light), transparent);
}

.tech::after {
  background: linear-gradient(to top, var(--background-light), transparent);
}

.tech-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.tech-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground-muted);
  opacity: 0.5;
  transition: var(--transition);
}

.tech-logo:hover {
  opacity: 1;
  color: var(--foreground);
}

/* ==================== */
/* References Section - Logo Slider */
/* ==================== */
.references {
  background: var(--background);
  padding: 120px 0;
  overflow: hidden;
}

.references .section-header {
  margin-bottom: 60px;
}

.logo-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

.logo-slider::before,
.logo-slider::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.logo-slider::before {
  left: 0;
   background: linear-gradient(to left, rgb(255, 255, 255) 0%, transparent 100%);
}

.logo-slider::after {
  right: 0;
  background: linear-gradient(to left, rgb(255, 255, 255) 0%, transparent 100%);
}

.logo-slider-track {
  display: flex;
  gap: 80px;
  animation: scroll-logos 30s linear infinite;
  width: max-content;
}

.logo-slider:hover .logo-slider-track {
  animation-play-state: paused;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.logo-slide {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  min-width: 220px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  transition: all 0.4s ease;
}

.logo-slide:hover {
  transform: scale(1.1);
}

.logo-slide img {
  max-height: 80px;
  max-width: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: all 0.4s ease;
}

.logo-slide:hover img {
  filter: none;
  opacity: 1;
}

.clients-grid {
  display: none;
}

.client-logo {
  display: none;
}

/* ==================== */
/* FAQ Section */
/* ==================== */
.faq {
  background: var(--background-light);
}

.faq::before,
.faq::after {
  background: linear-gradient(to bottom, var(--background-light), transparent);
}

.faq::after {
  background: linear-gradient(to top, var(--background-light), transparent);
}

.faq-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  position: relative;
  z-index: 2;
  align-items: start;
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  min-height: 90px;
}

.faq-item:hover {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  cursor: pointer;
  min-height: 90px;
  flex-shrink: 0;
}

.faq-question h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.4;
  padding-right: 16px;
}

.faq-icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--foreground-muted);
  line-height: 1.7;
}

/* ==================== */
/* Career Section */
/* ==================== */
.career {
  background: var(--background);
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  position: relative;
  z-index: 2;
}

.career-grid-centered {
  grid-template-columns: 1fr;
  max-width: 500px;
  margin: 0 auto;
}

.career-card {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

/* Text v kartách zarovnán na střed */
.career-card-centered {
  text-align: center;
  align-items: center;
}

.career-card-centered .career-icon {
  margin-left: auto;
  margin-right: auto;
}

.career-card-centered .career-benefits {
  text-align: left;
  display: inline-block;
}

.career-card-centered .career-btn {
  align-self: center;
}

.career-card-centered .career-desc {
  text-align: center;
}

.career-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.career-icon {
  width: 72px;
  height: 72px;
  background: rgba(30, 144, 255, 0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 24px;
}

.career-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.career-desc {
  color: var(--foreground-muted);
  margin-bottom: 20px;
}

.career-benefits {
  list-style: none;
  margin-bottom: 28px;
}

.career-benefits li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  color: var(--foreground-muted);
}

.career-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 600;
}

.career-btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ==================== */
/* Contact Section */
/* ==================== */
.contact {
  background: var(--background-light);
}

.contact::before,
.contact::after {
  background: linear-gradient(to bottom, var(--background-light), transparent);
}

.contact::after {
  background: linear-gradient(to top, var(--background-light), transparent);
}

/* Founders Section - Nový design bez pulzování */
.founders-section {
  margin-bottom: 64px;
  position: relative;
  z-index: 2;
}

.founders-intro {
  text-align: center;
  margin-bottom: 48px;
}

.founders-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}

.founders-subtitle {
  color: var(--foreground-muted);
  font-size: 1.05rem;
}

/* Nová collaboration wrapper bez pulzování - větší karty */
.founders-collaboration-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 60px 20px;
  position: relative;
}

/* Statický kruh bez pulzování - větší */
.founder-circle-static {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Větší obsah kruhu */
.founder-circle-content-large {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--background-card) 0%, var(--background) 100%);
  border: 3px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 40px rgba(30, 144, 255, 0.3);
  transition: all 0.3s ease;
}

.founder-circle-content-large:hover {
  transform: scale(1.05);
  box-shadow: 0 0 60px rgba(30, 144, 255, 0.5);
}

/* Větší avatar */
.founder-avatar-large {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px rgba(30, 144, 255, 0.4);
}

.founder-avatar-large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-details h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--foreground);
}

.founder-role {
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.founder-contacts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.founder-contacts a {
  color: var(--foreground-muted);
  text-decoration: none;
  font-size: 0.75rem;
  transition: var(--transition);
}

.founder-contacts a:hover {
  color: var(--primary);
}

/* Spojení bez srdíčka - jednoduchá čára s částicemi */
.collaboration-connection-simple {
  position: relative;
  width: 120px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connection-line {
  position: absolute;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
  top: 50%;
  transform: translateY(-50%);
  border-radius: 2px;
}

.collaboration-connection-simple .connection-particles {
  position: absolute;
  width: 100%;
  height: 4px;
  top: 50%;
  transform: translateY(-50%);
}

.collaboration-connection-simple .connection-particles .particle {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  top: -2px;
  animation: particle-flow 2s ease-in-out infinite;
  box-shadow: 0 0 10px var(--primary);
}

.collaboration-connection-simple .connection-particles .particle:nth-child(1) {
  animation-delay: 0s;
}
.collaboration-connection-simple .connection-particles .particle:nth-child(2) {
  animation-delay: 0.4s;
}
.collaboration-connection-simple .connection-particles .particle:nth-child(3) {
  animation-delay: 0.8s;
}
.collaboration-connection-simple .connection-particles .particle:nth-child(4) {
  animation-delay: 1.2s;
}
.collaboration-connection-simple .connection-particles .particle:nth-child(5) {
  animation-delay: 1.6s;
}

@keyframes particle-flow {
  0% {
    left: 0;
    opacity: 0;
    transform: scale(0.5);
  }
  20% {
    opacity: 1;
    transform: scale(1);
  }
  80% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    left: calc(100% - 8px);
    opacity: 0;
    transform: scale(0.5);
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
  z-index: 2;
}

.contact-form {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-header {
  margin-bottom: 32px;
}

.form-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--foreground);
}

.form-header p {
  color: var(--foreground-muted);
  font-size: 0.95rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--foreground);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--foreground);
  font-size: 1rem;
  transition: var(--transition);
  /* lepší podpora pro iOS */
  -webkit-appearance: none;
  appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--foreground-muted);
  opacity: 0.6;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  gap: 10px;
  margin-top: 8px;
}

.btn-submit svg {
  transition: transform 0.3s ease;
}

.btn-submit:hover svg {
  transform: translateX(4px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--foreground);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  background: rgba(30, 144, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.contact-item-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-item-label {
  font-size: 0.85rem;
  color: var(--foreground-muted);
}

.contact-item-value {
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: var(--transition);
}

a.contact-item-value:hover {
  color: var(--primary);
}

/* Styl pro telefonní čísla */
.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-phones a {
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: var(--transition);
}

.contact-phones a:hover {
  color: var(--primary);
}

.social-links-wrapper {
  background: var(--background-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 32px;
}

.social-links-wrapper h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--foreground);
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 48px;
  height: 48px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground-muted);
  transition: var(--transition);
}

.social-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-3px);
}

/* ==================== */
/* Footer */
/* ==================== */
.footer {
  background: var(--background);
  padding: 80px 0 30px;
  border-top: 1px solid var(--border);
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

/* Footer brand zarovnaný doleva */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-brand-left {
  align-items: flex-start;
}

/* Opravené logo ve footeru - stejná velikost jako v headeru */
.footer-logo {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

[data-theme="light"] .footer-logo {
  filter: invert(1) brightness(0.2);
}

.footer-brand p {
  color: var(--foreground-muted);
  font-size: 0.95rem;
  max-width: 280px;
  line-height: 1.6;
  text-align: left;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  justify-content: flex-start;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: var(--background-light);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-nav-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-column h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 8px;
}

.footer-nav-column a,
.footer-nav-column span {
  color: var(--foreground-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-nav-column a:hover {
  color: var(--primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  color: var(--foreground-muted);
  font-size: 0.9rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--foreground-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-bottom-links a:hover {
  color: var(--primary);
}

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--background);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
  }

  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  /* Logo zobrazeno i na mobilu - menší velikost */
  .hero-visual {
    display: flex;
  }

  .hero-hexagon {
    width: 250px;
    height: 250px;
  }

  .hexagon-logo {
    width: 180px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-content .section-title {
    text-align: center;
  }

  .about-stats {
    justify-content: center;
  }

  .faq-container {
    grid-template-columns: 1fr;
  }

  .career-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Responsive founders section */
  .founders-collaboration-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .collaboration-connection-simple {
    transform: rotate(90deg);
    width: 60px;
    height: 120px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-brand {
    align-items: flex-start;
  }

  .footer-brand p {
    max-width: 100%;
  }

  .footer-social {
    justify-content: flex-start;
  }

  .footer-nav {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .slide-item {
    flex: 0 0 350px;
    height: 250px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .founders-row {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: left;
  }

  .footer-nav-column {
    align-items: flex-start;
  }

  .footer-bottom-links {
    flex-direction: column;
    gap: 8px;
  }

  .about-stats {
    flex-wrap: wrap;
    gap: 32px;
  }

  .hero-motto {
    justify-content: center;
  }

  .logo-slide {
    min-width: 160px;
    height: 70px;
  }

  .logo-slide img {
    max-height: 55px;
    max-width: 140px;
  }

  .logo-slider-track {
    gap: 50px;
  }

  /* Menší karty na mobilu - opraveno zploštění */
  .founder-circle-content-large {
    width: auto;
    min-width: 220px;
    max-width: 280px;
    height: auto;
    min-height: 220px;
    padding: 20px;
    border-radius: 20px;
    aspect-ratio: auto;
  }

  .founder-avatar-large {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .founder-contacts {
    word-break: break-all;
  }

  .founder-contacts a {
    font-size: 0.7rem;
    word-break: break-all;
  }

  /* Slider na mobilu - menší velikost = jiný výpočet pro nekonečnou smyčku */
  @keyframes scroll-left {
    0% {
      transform: translateX(0);
    }
    100% {
      /* 9 projektů × (350px šířka + 32px gap) = 3438px */
      transform: translateX(-3438px);
    }
  }

  /* Menší hero hexagon na mobilu */
  .hero-hexagon {
    width: 200px;
    height: 200px;
  }

  .hexagon-logo {
    width: 140px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  section {
    padding: 80px 0;
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .btn {
    padding: 14px 24px;
    font-size: 0.95rem;
  }

  .header-container {
    height: 70px;
  }

  .header {
    height: 70px;
  }

  .nav {
    top: 70px;
  }

  .hero {
    padding-top: 70px;
  }

  .logo-image {
    height: 45px;
  }

  /* Menší karty na malých mobilech - opraveno aby se nezplošťovaly */
  .founder-circle-content-large {
    width: auto;
    min-width: 200px;
    max-width: 280px;
    height: auto;
    min-height: 200px;
    padding: 20px 15px;
    border-radius: 20px;
    aspect-ratio: auto;
  }

  .founder-avatar-large {
    width: 65px;
    height: 65px;
    flex-shrink: 0;
  }

  .founder-details h4 {
    font-size: 0.95rem;
  }

  .founder-role {
    font-size: 0.75rem;
  }

  .founder-contacts {
    word-break: break-all;
    overflow-wrap: break-word;
  }

  .founder-contacts a {
    font-size: 0.65rem;
    word-break: break-all;
  }

  .footer-logo {
    height: 45px;
  }

  /* Ještě menší hero hexagon na malých mobilech */
  .hero-hexagon {
    width: 160px;
    height: 160px;
  }

  .hexagon-logo {
    width: 110px;
  }

  /* Oprava modalu pro scrollování na mobilu */
  .modal-content {
    max-height: 85vh;
    margin: 20px;
    width: calc(100% - 40px);
  }

  .modal-body {
    padding: 24px;
  }

  .modal-image {
    height: 200px;
  }

  .modal-meta {
    flex-direction: column;
    gap: 16px;
  }
}

/* Podpora pro různé prohlížeče a OS */
@supports (-webkit-touch-callout: none) {
  /* iOS Safari specifické styly */
  .hero {
    min-height: -webkit-fill-available;
  }

  body {
    min-height: -webkit-fill-available;
  }
}

/* Vysoký kontrast pro lepší přístupnost */
@media (prefers-contrast: high) {
  :root {
    --border: #444444;
  }

  [data-theme="light"] {
    --border: #000000;
  }
}

/* Redukované pohyby pro přístupnost */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
