/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Light theme (default) */
  --primary-color: #0c67ef;
  --secondary-color: #ff784e;
  --text-dark: #1a1a1a;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --bg-surface: #ffffff;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Color transitions */
  --transition-colors: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;

  /* Footer colors (always dark, independent of theme) */
  --footer-bg: #1a1a1a;
  --footer-text: #ffffff;
  --footer-text-muted: rgba(255, 255, 255, 0.7);
  --footer-border: rgba(255, 255, 255, 0.1);
  --footer-border-strong: rgba(255, 255, 255, 0.2);
  --footer-bg-hover: rgba(255, 255, 255, 0.1);
  --footer-bg-active: rgba(255, 255, 255, 0.2);
}

/* Dark theme */
[data-theme="dark"] {
  --text-dark: #f9fafb;
  --text-light: #9ca3af;
  --bg-light: #111827;
  --bg-white: #1f2937;
  --bg-surface: #374151;
  --border-color: #4b5563;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  line-height: 1.6;
  overflow-x: hidden;
  transition: var(--transition-colors);
}

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

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

[data-theme="dark"] .navbar {
  background: rgba(31, 41, 55, 0.95);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  padding: 1rem 0;
  gap: 0;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
}

.logo-img {
  height: 40px;
  width: auto;
  transition: var(--transition);
}

.logotype-img {
  height: 24px;
  width: auto;
  transition: var(--transition);
}

.logo-link:hover {
  opacity: 0.8;
  transform: scale(1);
}

.footer-logo-img {
  height: 35px;
  filter: brightness(0) invert(1);
}

.footer-logo {
  margin-bottom: 2rem;
}

.footer-logo .logo-link {
  display: inline-block;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: var(--transition-colors);
}

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

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

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-dark);
  transition: var(--transition-colors);
}

/* Theme Toggle */
.theme-toggle {
  position: relative;
}

.theme-toggle-mobile {
  display: none;
}

.theme-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition-colors);
  padding: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(12, 103, 239, 0.05);
}

[data-theme="dark"] .theme-toggle-btn:hover {
  background: rgba(12, 103, 239, 0.15);
}

.theme-toggle-btn svg {
  width: 20px;
  height: 20px;
  transition: var(--transition-colors);
}

.theme-toggle-btn .icon-sun {
  display: block;
}

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

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

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

/* Language Switcher */
.language-switcher {
  position: relative;
}

.language-switcher-desktop {
  display: block;
}

.language-switcher-mobile {
  display: none;
}

.language-switcher-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition-colors);
  white-space: nowrap;
}

.language-switcher-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(12, 103, 239, 0.05);
}

.language-switcher-icon {
  transition: transform 0.3s ease;
}

.language-switcher-btn:hover .language-switcher-icon {
  transform: translateY(2px);
}

.language-switcher-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  min-width: 160px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease, background-color 0.2s ease, border-color 0.2s ease;
  z-index: 1001;
  overflow: hidden;
}

.language-switcher-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-dark);
  transition: var(--transition-colors);
}

.language-option:hover {
  background: var(--bg-light);
  color: var(--primary-color);
}

.language-option.active {
  background: rgba(12, 103, 239, 0.1);
  color: var(--primary-color);
  font-weight: 600;
}

.language-option span {
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  isolation: isolate;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  will-change: transform;
  transform: translateZ(0);
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary-color);
  top: -200px;
  right: -200px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary-color);
  bottom: -150px;
  left: -150px;
  animation-delay: 5s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(50px, 50px) scale(1.1);
  }
}

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

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

.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.title-line {
  display: block;
}

.title-line.highlight {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(12, 103, 239, 0.3);
}

.btn-primary:hover {
  background: #0a5ad9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(12, 103, 239, 0.4);
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-full {
  width: 100%;
}

.hero-visual {
  position: relative;
  height: 400px;
}

.floating-card {
  position: absolute;
  background: var(--bg-surface);
  padding: 1.25rem;
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  animation: floatCard 6s ease-in-out infinite;
}

[data-theme="dark"] .floating-card {
  background: #ffffff;
  transition: var(--transition-colors);
}

.card-1 {
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.card-2 {
  top: 40%;
  right: 15%;
  animation-delay: 1.5s;
}

.card-3 {
  bottom: 15%;
  left: 25%;
  animation-delay: 3s;
}

.card-4 {
  top: 60%;
  right: 5%;
  animation-delay: 4.5s;
}

.card-5 {
  top: 10%;
  right: 30%;
  animation-delay: 6s;
}

.card-6 {
  top: 50%;
  left: 10%;
  animation-delay: 7.5s;
}

.card-7 {
  bottom: 25%;
  right: 25%;
  animation-delay: 9s;
}

.card-8 {
  top: 30%;
  left: 40%;
  animation-delay: 10.5s;
}

.tech-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  z-index: 1;
}

.mouse {
  width: 24px;
  height: 40px;
  border: 2px solid var(--text-light);
  border-radius: 12px;
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  background: var(--text-light);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

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

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

/* Section Styles */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-label {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(12, 103, 239, 0.1);
  color: var(--primary-color);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  transition: var(--transition-colors);
}

[data-theme="dark"] .section-label {
  background: rgba(12, 103, 239, 0.2);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-light);
  line-height: 1.7;
}

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

/* Segmented Control (only for Products) */
#products .category-switch {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin: 3rem auto 2.5rem;
  max-width: 600px;
  padding: 0.25rem;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

#products .category-btn {
  flex: 1;
  padding: 0.625rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition-colors);
  white-space: nowrap;
}

#products .category-btn:hover {
  color: var(--text-dark);
}

#products .category-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* Category Content (only for Products) */
#products .category-content {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

#products .category-content.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-surface);
  padding: 1.75rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  transition: var(--transition-colors);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(12, 103, 239, 0.08);
  transform: translateY(-2px);
}

.service-icon {
  width: 48px;
  height: 48px;
  background: rgba(12, 103, 239, 0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.service-description {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.service-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.service-link:hover {
  color: var(--secondary-color);
  gap: 0.5rem;
}

.services-cta {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.services-cta-text {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

/* Products Section */
.products {
  background: var(--bg-white);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.product-card {
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  transition: var(--transition-colors);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(12, 103, 239, 0.06);
  transform: translateY(-1px);
}

/* Product-specific colors from data attribute */
.product-card[data-product-color]:hover {
  border-color: var(--product-color, var(--primary-color));
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.product-card[data-product-color] .product-icon {
  background: transparent;
  padding: 0;
}

.product-card[data-product-color] .product-icon .product-logo {
  padding: 0;
}

.product-card[data-product-color] .product-link {
  color: var(--product-color, var(--primary-color));
}

.product-card[data-product-color] .product-link:hover {
  color: var(--product-color, var(--primary-color));
  opacity: 0.8;
}

.product-icon {
  width: 40px;
  height: 40px;
  background: rgba(12, 103, 239, 0.06);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

[data-theme="dark"] .product-icon {
  background: #ffffff;
}

.product-icon svg {
  width: 20px;
  height: 20px;
}

.product-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.5rem;
}

.product-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.625rem;
  color: var(--text-dark);
  line-height: 1.3;
}

.product-description {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.product-link {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: var(--transition);
}

.product-link:hover {
  color: var(--secondary-color);
  gap: 0.5rem;
}

.products-cta {
  text-align: center;
  margin-top: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.products-cta-text {
  font-size: 1.125rem;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.product-card {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition-colors);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary-color);
}

.product-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.product-description {
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.product-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.product-link:hover {
  color: var(--secondary-color);
  gap: 0.75rem;
}

/* References Section */
.references {
  background: var(--bg-light);
}

.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.reference-card {
  background: var(--bg-surface);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition-colors);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.reference-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.reference-logo-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
  min-height: 60px;
}

[data-theme="dark"] .reference-logo-wrapper {
  background: #ffffff;
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.reference-logo {
  max-width: 180px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.reference-card:hover .reference-logo {
  filter: grayscale(0%);
  opacity: 1;
}

.reference-text {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.9375rem;
  margin: 0;
  flex-grow: 1;
}

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

/* Team Section */
.team {
  background: var(--bg-white);
}

/* Careers Section */
.careers {
  background: var(--bg-light);
}

.careers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.career-card {
  background: var(--bg-surface);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: var(--transition-colors);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.career-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.career-card-button {
  width: 100%;
  padding: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

.career-card-button:hover {
  background: var(--bg-light);
}

.career-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
}

.career-link {
  font-size: 1rem;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.career-card-button:hover .career-link {
  color: var(--secondary-color);
  transform: translateX(4px);
}

.career-intro {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.career-intro p {
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}

.career-section {
  margin-bottom: 1.5rem;
}

.career-section:last-of-type {
  margin-bottom: 0;
}

.career-section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.career-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.career-list li {
  color: var(--text-light);
  line-height: 1.8;
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
}

.career-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

.career-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.career-cta-text {
  font-size: 1rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-weight: 500;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2001;
}

.modal-content {
  position: relative;
  background: var(--bg-white);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  z-index: 2002;
  animation: modalSlideIn 0.3s ease-out;
  transition: var(--transition-colors);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  color: var(--text-light);
  transition: var(--transition);
  z-index: 10;
}

.modal-close:hover {
  background: var(--bg-light);
  color: var(--text-dark);
}

.modal-close svg {
  width: 24px;
  height: 24px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 0 0 2rem 0;
  padding-right: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.team-member {
  text-align: center;
  transition: var(--transition);
}

.team-member:hover {
  transform: translateY(-4px);
}

.team-member-image {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--border-color);
  transition: var(--transition);
  background: var(--bg-light);
}

.team-member:hover .team-member-image {
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(12, 103, 239, 0.2);
}

.team-member-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-member-info {
  padding: 0 0.5rem;
}

.team-member-name {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.team-member-role {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.5;
}

.team-footer {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.team-footer-text {
  font-size: 1rem;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text {
  max-width: 600px;
}

.about-description {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  line-height: 1.8;
  font-size: 1.125rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 500;
}

.about-visual {
  position: relative;
}

.visual-card {
  background: linear-gradient(
    135deg,
    rgba(12, 103, 239, 0.05),
    rgba(255, 120, 78, 0.05)
  );
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  overflow: hidden;
  transition: var(--transition-colors);
}

[data-theme="dark"] .visual-card {
  background: linear-gradient(
    135deg,
    rgba(12, 103, 239, 0.15),
    rgba(255, 120, 78, 0.15)
  );
}

.card-glow {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(12, 103, 239, 0.1), transparent);
  animation: rotate 20s linear infinite;
}

[data-theme="dark"] .card-glow {
  background: radial-gradient(circle, rgba(12, 103, 239, 0.2), transparent);
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.code-snippet {
  position: relative;
  z-index: 1;
  font-family: "Courier New", monospace;
  font-size: 1rem;
  line-height: 1.8;
}

.code-line {
  margin-bottom: 0.5rem;
}

.code-keyword {
  color: var(--primary-color);
  font-weight: 600;
}

.code-variable {
  color: var(--text-dark);
  transition: var(--transition-colors);
}

.code-operator {
  color: var(--text-light);
}

.code-string {
  color: var(--secondary-color);
}

.code-function {
  color: var(--primary-color);
}

.code-bracket {
  color: var(--text-light);
}

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

.contact-content {
  display: flex;
  justify-content: center;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--bg-surface);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-colors);
}

.contact-icon svg {
  width: 24px;
  height: 24px;
}

.contact-details h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.contact-details p {
  color: var(--text-light);
}

.contact-divider {
  margin: 2rem 0 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
}

.contact-divider span {
  color: var(--text-light);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-form {
  background: var(--bg-surface);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 800px;
  transition: var(--transition-colors);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text-dark);
  transition: var(--transition-colors);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: var(--bg-white);
}

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

.form-message {
  margin-top: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  transition: opacity 0.3s ease;
}

.form-message-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* We Support Section */
.we-support {
  background: var(--bg-light);
  padding: 80px 0;
}

.we-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  align-items: center;
  justify-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.we-support-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: 12px;
  transition: var(--transition-colors);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 250px;
}

[data-theme="dark"] .we-support-item {
  background: #ffffff;
  height: 150px;
  box-shadow: var(--shadow-sm);
}

.we-support-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.we-support-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition);
}

.we-support-item:hover .we-support-logo {
  filter: grayscale(0%);
  opacity: 1;
}

/* Partners Section */
.partners {
  background: var(--bg-light);
  padding: 60px 0;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  align-items: center;
  justify-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.partners-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-radius: 8px;
  transition: var(--transition-colors);
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 180px;
}

[data-theme="dark"] .partners-item {
  background: #ffffff;
  height: 100px;
  box-shadow: var(--shadow-sm);
}

.partners-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.partners-logo {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.partners-item:hover .partners-logo {
  filter: grayscale(0%);
  opacity: 1;
}

/* Footer */
.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  width: 100%;
}

.footer-column {
  padding-right: 2rem;
}

.footer-column:not(:last-child) {
  border-right: 1px solid var(--footer-border);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer-column ul li a {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: var(--transition-colors);
}

.footer-column ul li a:hover {
  color: var(--footer-text);
}

.footer-contact-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-country-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.25rem;
  background: var(--footer-bg-hover);
  border-radius: 8px;
  border: 1px solid var(--footer-border-strong);
}

.footer-country-btn {
  flex: 1;
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--footer-text-muted);
  cursor: pointer;
  transition: var(--transition-colors);
  white-space: nowrap;
}

.footer-country-btn:hover {
  color: var(--footer-text);
}

.footer-country-btn.active {
  background: var(--footer-bg-active);
  color: var(--footer-text);
}

.footer-contact-content {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-contact-content.active {
  display: flex;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-contact-item strong {
  color: var(--footer-text);
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}

.footer-contact-item p {
  color: var(--footer-text-muted);
  margin: 0;
  line-height: 1.6;
  font-size: 0.9375rem;
}

.footer-contact-item p a {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: var(--transition-colors);
}

.footer-contact-item p a:hover {
  color: var(--footer-text);
}

.footer-column h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: var(--footer-text);
}

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column ul li a {
  color: var(--footer-text-muted);
  text-decoration: none;
  transition: var(--transition-colors);
}

.footer-column ul li a:hover {
  color: var(--footer-text);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--footer-border);
  text-align: center;
  color: var(--footer-text-muted);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--footer-text-muted);
  background: transparent;
  border: 1px solid var(--footer-border);
  transition: var(--transition-colors);
  text-decoration: none;
}

.footer-social-link:hover {
  color: var(--footer-text);
  background: var(--footer-bg-hover);
  border-color: var(--footer-border-strong);
  transform: translateY(-2px);
}

.footer-social-link svg {
  width: 20px;
  height: 20px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-visual {
    display: none;
  }

  .about-content {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  .footer-country-switch {
    margin-bottom: 1.25rem;
  }

  .footer-country-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .footer-column:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--footer-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }

  .footer-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  /* Loga musí být vždy barevná na mobilu */
  .reference-logo,
  .we-support-logo,
  .partners-logo {
    filter: grayscale(0%) !important;
    opacity: 1 !important;
  }

  .hero {
    padding: 120px 0 80px;
    min-height: auto;
    position: relative;
  }

  .hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        circle at 20% 30%,
        rgba(12, 103, 239, 0.08) 0%,
        transparent 50%
      ),
      radial-gradient(
        circle at 80% 70%,
        rgba(255, 120, 78, 0.08) 0%,
        transparent 50%
      );
    z-index: -1;
    pointer-events: none;
  }

  .hero-background {
    display: none;
  }

  .scroll-indicator {
    display: none;
  }

  .hero .container {
    position: relative;
    z-index: 1;
  }

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

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.2;
  }

  .title-line {
    display: block;
  }

  .hero-subtitle {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: var(--text-light);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    max-width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    padding: 1rem 2rem;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .hero-buttons .btn-primary {
    box-shadow: 0 4px 16px rgba(12, 103, 239, 0.3);
  }

  .container {
    padding: 0 20px;
  }

  .mobile-menu-toggle {
    display: flex;
    margin-left: auto;
    order: 2;
  }

  .nav-group {
    display: block;
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
  }

  .nav-group .theme-toggle,
  .nav-group .language-switcher-desktop {
    display: none;
  }

  .nav-menu {
    display: flex !important;
    visibility: visible !important;
    position: fixed !important;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(-100%);
    transition: transform var(--transition), background-color 0.2s ease;
    gap: 1.5rem;
    z-index: 999;
    width: 100%;
    max-width: 100%;
    list-style: none;
    margin: 0;
    opacity: 1;
  }

  .nav-menu.active {
    transform: translateX(0) !important;
  }

  [data-theme="dark"] .nav-menu {
    background: var(--bg-white);
  }

  .language-switcher-desktop {
    display: none;
  }

  .language-switcher-mobile {
    display: block;
    width: 100%;
  }

  .language-switcher-mobile .language-switcher {
    margin-left: 0;
    margin-top: 1rem;
    width: 100%;
  }

  .theme-toggle-mobile {
    display: block;
    width: 100%;
    margin-top: 1rem;
  }

  .theme-toggle-mobile .theme-toggle {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .theme-toggle-mobile .theme-toggle-btn {
    width: 100%;
    max-width: 200px;
  }

  .language-switcher-btn {
    width: 100%;
    justify-content: space-between;
  }

  .language-switcher-dropdown {
    right: 0;
    left: 0;
    min-width: auto;
  }

  #products .category-switch {
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.375rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  #products .category-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    flex: 1 1 auto;
    min-width: calc(50% - 0.375rem);
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .references-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .reference-card {
    padding: 1.5rem;
  }

  .reference-logo-wrapper {
    min-height: 50px;
    margin-bottom: 1.25rem;
  }

  .reference-logo {
    max-width: 150px;
    max-height: 50px;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
  }

  .team-member-image {
    width: 120px;
    height: 120px;
  }

  .we-support-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .we-support-item {
    max-width: 100%;
    height: 100px;
    padding: 1rem;
  }

  .partners {
    padding: 40px 0;
  }

  .partners-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .partners-item {
    max-width: 100%;
    height: 80px;
    padding: 0.75rem;
  }

  .partners-logo {
    filter: grayscale(0%);
    opacity: 1;
  }

  .careers-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .career-card-button {
    padding: 1.5rem;
  }

  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }

  .modal-title {
    font-size: 1.5rem;
    padding-right: 2.5rem;
  }

  .careers-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .career-card-button {
    padding: 1.5rem;
  }

  .modal {
    padding: 1rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
    max-height: 95vh;
  }

  .modal-title {
    font-size: 1.75rem;
    padding-right: 2.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .section-description {
    font-size: 1rem;
  }

  .section-header {
    margin-bottom: 2.5rem;
  }

  .service-card,
  .product-card {
    padding: 1.5rem;
  }

  .about-description {
    font-size: 1rem;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-country-switch {
    margin-bottom: 1rem;
  }

  .footer-column {
    padding-right: 0;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
  }

  .footer-column:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--footer-border);
  }

  .footer-column:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .footer-contact-item {
    gap: 0.375rem;
  }

  .footer-contact-item strong {
    font-size: 0.875rem;
  }

  .footer-contact-item p {
    font-size: 0.875rem;
  }
}

@media (max-width: 480px) {
  .references-grid {
    gap: 1.25rem;
  }

  .reference-card {
    padding: 1.25rem;
  }

  .reference-logo-wrapper {
    min-height: 45px;
    margin-bottom: 1rem;
  }

  .reference-logo {
    max-width: 130px;
    max-height: 45px;
  }

  .reference-text {
    font-size: 0.875rem;
    line-height: 1.6;
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .partners-item {
    height: 70px;
    padding: 0.5rem;
  }

  .partners-logo {
    filter: grayscale(0%);
    opacity: 1;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* Smooth scroll behavior */
html {
  scroll-padding-top: 80px;
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .logo-link:hover,
  .nav-link:hover,
  .theme-toggle-btn:hover,
  .language-switcher-btn:hover,
  .language-option:hover,
  .btn-primary:hover,
  .btn-secondary:hover,
  #products .category-btn:hover,
  .service-card:hover,
  .service-link:hover,
  .product-card:hover,
  .product-link:hover,
  .reference-card:hover,
  .reference-card:hover .reference-logo,
  .career-card:hover,
  .career-card-button:hover,
  .career-card-button:hover .career-link,
  .modal-close:hover,
  .team-member:hover,
  .team-member:hover .team-member-image,
  .we-support-item:hover,
  .we-support-item:hover .we-support-logo,
  .partners-item:hover,
  .partners-item:hover .partners-logo,
  .footer-column ul li a:hover,
  .footer-country-btn:hover,
  .footer-contact-item p a:hover {
    transform: none !important;
    box-shadow: inherit !important;
    border-color: inherit !important;
    background: inherit !important;
    color: inherit !important;
    opacity: inherit !important;
    filter: inherit !important;
  }

  .language-switcher-btn:hover .language-switcher-icon {
    transform: none !important;
  }
}
