@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&display=swap');

:root {
  --safe-top: env(safe-area-inset-top);
  --bg-dark: #080712;
  --bg-card: rgba(24, 27, 67, 0.72);
  --text-main: #eef2ff;
  --text-muted: #b9c6e8;
  --accent-1: #c084fc;
  --accent-2: #7c3aed;
  --accent-3: #8b5cf6;
  --gradient: linear-gradient(120deg, var(--accent-2), var(--accent-3), var(--accent-1));
  --glass-border: rgba(165, 116, 255, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #080712;
  min-height: 100vh;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 0;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background: radial-gradient(circle at 30% 0%, rgba(124, 58, 237, 0.30), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(147, 51, 234, 0.22), transparent 40%),
    linear-gradient(145deg, #000006, #0b0f2a 45%, #130f33);
  background-size: 150% 150%;
  animation: backgroundShift 18s ease-in-out infinite;
  pointer-events: none;
}



@keyframes backgroundShift {

  0%,
  100% {
    background-position: 0% 0%, 100% 100%, 0% 0%;
  }

  50% {
    background-position: 30% 10%, 70% 90%, 100% 0%;
  }
}

html {
  background-color: #080712;
  height: 100%;
  overflow-x: hidden;
}


#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient);
  z-index: 1001;
  transition: width 0.3s ease;
}

.floating-contact {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 1000;
}

.floating-btn {
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: scale(1.1);
  background: var(--accent-1);
  color: white;
}

.floating-btn:hover {
  transform: scale(1.1);
  background: var(--accent-1);
  color: white;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;

  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
  transform: translateY(0);

  background: rgba(10, 14, 41, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  z-index: 1000;
  border-bottom: 1px solid var(--glass-border);
  padding: 1.2rem 0;
}

.navbar::after {
  content: '';
  position: absolute;
  left: 6rem;
  right: 6rem;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent-3), var(--accent-1));
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Kontejner loga -*/
.logo {
  display: inline-block;
  width: 120px;
}

/* Wrapper pro clip-path */
.logo-wrapper {
  position: relative;
  display: block;
  overflow: hidden;
  /* tady se clip-path pohybuje */
  width: 100%;
  height: auto;
  transform-origin: center;
  /* aby scale bylo pěkně z centra */
  transition: transform 0.3s ease-in;
  /* scale pro oba */
}

/* Základní logo */
.logo-base {
  display: block;
  width: 100%;
  height: auto;
}

/* Gradient overlay */
.logo-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 100% 0 0);
  /* schované zleva */
  transition: clip-path 0.3s ease-in;
  /* slide efekt */
}

/* Hover efekty */
.logo:hover .logo-wrapper {
  transform: scale(1.1);
  /* oba loga scale-ují */
}

.logo:hover .logo-hover {
  clip-path: inset(0 0 0 0);
  /* odkryje gradient zleva */
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-1);
  text-shadow: 0 2px 10px rgba(192, 132, 252, 0.45);
}

.nav-links a:hover::after {
  width: 100%;
}

.btn-nav {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  transition: background 0.3s ease !important;
}

.btn-nav:hover {
  background: rgba(255, 255, 255, 0.2);
}

.preloader {
  position: fixed;
  inset: 0;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.preloader.loaded {
  opacity: 0;
  pointer-events: none;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 6px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-1);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.mobile-menu {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.35rem;
  width: 40px;
  height: 32px;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1010;
}

.mobile-menu span {
  display: block;
  width: 100%;
  height: 3px;
  margin: 5px 0;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.mobile-menu.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-links.active {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 72px;
  right: 1rem;
  left: 1rem;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 14px;
  padding: 1.5rem;
  gap: 1.2rem;
  box-shadow: 0 24px 42px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  z-index: 1005;
}

.nav-links.active a {
  font-size: 1.05rem;
  text-align: center;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

.popup {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 20px 40px rgba(64, 22, 123, 0.45);
  border-radius: 16px;
  padding: 1.2rem;
  backdrop-filter: blur(12px);
  animation: popupIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-title,
.hero-subtitle,
.hero-buttons .btn {
  opacity: 0;
  transform: translateY(20px);
  animation: appear 0.8s ease forwards;
}

.hero-title {
  animation-delay: 0.3s;
}

.hero-subtitle {
  animation-delay: 0.5s;
}

.hero-buttons .btn:nth-child(1) {
  animation-delay: 0.7s;
}

.hero-buttons .btn:nth-child(2) {
  animation-delay: 0.9s;
}

.hero-deco {
  position: absolute;
  width: 120px;
  opacity: 0.15;
  pointer-events: none;
  height: auto;
}

.hero-deco-1 {
  filter: blur(5px);
  top: 20%;
  left: 5%;
  animation: float 6s ease-in-out infinite;
  height: auto;
}

.hero-deco-2 {
  animation: popupIn 0.8s ease forwards;
  filter: blur(3px);
  bottom: 15%;
  right: 10%;
  animation: float 8s ease-in-out infinite;
  width: 180px;
  height: auto;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0px);
  }
}

@keyframes appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes glowFloat {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-12px) scale(1.06);
  }
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: var(--accent-2);
  filter: blur(150px);
  opacity: 0.15;
  z-index: -1;
  border-radius: 50%;
}

.hero-title {
  padding-top: 100px;
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  max-width: 800px;
  letter-spacing: -2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 20px 40px rgba(84, 49, 145, 0.35);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
  opacity: 0.95;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  color: #fff;
  box-shadow: 0 8px 22px rgba(149, 90, 255, 0.44), 0 16px 50px rgba(58, 10, 134, 0.35);
  border: 1px solid rgba(150, 86, 255, 0.45);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 28px rgba(149, 90, 255, 0.55), 0 20px 60px rgba(58, 10, 134, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(170, 139, 255, 0.40);
}

.btn-secondary:hover {
  background: rgba(118, 77, 255, 0.25);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
}

.btn-block {
  width: 100%;
  margin-top: 1rem;
}

section {
  padding: 8rem 0;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 4rem;
  text-align: center;
  font-weight: 800;
  letter-spacing: -1px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1rem;
}

.team-cards {
  display: grid;
  grid-template-columns: repeat(2, 1.5fr);
  gap: 1.5rem;
  grid-auto-flow: dense;
}

.team-card.fusha {
  grid-column: 1 / -1;
}

.team-card {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: 16px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
  min-width: 200px;
}


.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.1);
}

.team-card a {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  padding-top: 5px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

.team-card a img {
  padding-right: 5px;
  ;
}

.team-card:hover a {
  opacity: 1;
  visibility: visible;
}

.avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto 1rem;
  opacity: 1;
}

.avatar img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto 1rem;
  opacity: 0.8;
}


.team-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.team-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-image {
  position: relative;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-links {
  display: flex;
  gap: 1rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border: 1px solid rgba(170, 139, 255, 0.40);
}

.btn-small:hover {
  background: rgba(118, 77, 255, 0.25);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.35);
  transform: translateY(-2px);
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}


/* Process */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  top: 50%;
  right: -1rem;
  transform: translateY(-50%);
  color: var(--accent-1);
  font-size: 1.5rem;
  font-weight: bold;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin: 0 auto 1rem;
  box-shadow: 0 10px 30px rgba(124, 58, 237, 0.3);
}

.process-step h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Tech Stack */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.tech-item {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-5px);
}

.tech-item i {
  font-size: 2.5rem;
  color: var(--accent-1);
  margin-bottom: 0.5rem;
  display: block;
}

.tech-item span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  background: rgba(124, 58, 237, 0.2);
  color: var(--accent-1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.service-box {

  background: var(--bg-card);
  padding: 3rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.service-box:hover {
  transform: translateY(-10px);
  background: rgba(30, 41, 59, 0.8);
  border-color: rgba(59, 130, 246, 0.3);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.service-box h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-box p {
  color: var(--text-muted);
}

.contact {
  transform: scale(95%);
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--bg-card);
  padding: 4rem;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-info h2 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.input-group input,
.input-group textarea {
  font-size: 15px;
  width: 100%;
  padding: 1.2rem;
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: var(--accent-1);
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.pricing-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.popular {
  border-color: var(--accent-1);
  transform: scale(1.05);
}

.pricing-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
}

.amount {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--accent-1);
}

.currency {
  font-size: 1.2rem;
  color: var(--text-muted);
}

.pricing-features {
  list-style: none;
  text-align: left;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent-1);
  margin-right: 0.5rem;
  font-weight: bold;
}

/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.faq-item {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--accent-1);
}

.faq-item p {
  color: var(--text-muted);
  line-height: 1.6;
}



footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}


.footer-logo img {
  height: 30px;
  width: auto;
}

.footer-logo span {
  color: var(--accent-1);
}

@media (max-width: 900px) {

  .about-grid,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .team-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }


  .team-card.fusha {
    grid-column: auto;
  }

  .hero-title {
    font-size: 3rem;
  }

  .contact-container {
    padding: 2rem;
  }
}

@media (max-width:1050px) {
  .pricing-grid {
    grid-template-columns: none;
    align-items: center;
    text-align: center;
  }

  .pricing-card li {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 900px) {
  .mobile-menu {
    display: block;
    /* Hamburger musí být vidět */
    z-index: 1011;
  }

 .nav-links {
    display: none; /* Skryjeme standardní menu */
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    background: var(--bg-dark);
    justify-content: center;
    align-items: center;
    gap: 2rem;
    z-index: 1010;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .nav-links.active {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: none;
    grid-template-rows: auto;
    gap: 2rem;
  }

  .portfolio-image img {
    width: 100%;
    height: 200px;
  }

  .hero-deco-1 {
    width: 100px;
    height: auto;
  }

  .hero-deco-2 {
    width: 200px;
    ;
    height: auto;
  }



  .nav-links.active {
    opacity: 1;
    transform: translateY(0);
    max-height: 280px;
    pointer-events: auto;
  }


  .contact {
    transform: scale(90%);
  }

  .services-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  .about-grid {
    grid-template-columns: 1fr; /* Na mobilu pod sebe */
    gap: 2rem;
    text-align: center;
  }

  .team-cards {
    grid-template-columns: 1fr; /* Karty týmu pod sebe */
  }

  .hero-title {
    font-size: 2.8rem; /* Zmenšení nadpisu pro menší displeje */
  }
}


@media (max-width: 600px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .footer-inner p {
    transform: scale(85%);
  }

  .process-step:not(:last-child)::after {
    visibility: hidden;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .container {
    padding: 0 1.5rem; /* Menší padding na okrajích pro mobily */
  }

}

@media (max-width: 480px) {
  .floating-contact {
    visibility: hidden;
  }
  
  .back-to-top {
    bottom: 1rem;
    right: 1rem;
  }
}

/* Oprava FAQ pro mobilní zařízení */
@media (max-width: 768px) {
  .faq-grid {
    grid-template-columns: 1fr; /* Na mobilu vždy jeden sloupec */
    padding: 0 10px;
  }

  .faq-question {
    padding: 1.2rem 1rem; /* Větší plocha pro kliknutí prstem */
    font-size: 1.1rem;    /* Čitelnější písmo */
  }

  .faq-answer {
    padding: 0 1rem 1.2rem;
    font-size: 0.95rem;   /* Mírně menší text odpovědi */
  }
  
  .section-title {
    font-size: 2rem;      /* Zmenšení nadpisu sekce na mobilu */
    margin-bottom: 2rem;
  }
}

/* Zajištění plynulého otevírání */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  opacity: 0;
}

.faq-item.active .faq-answer {
  max-height: 500px; /* Dostatečná výška pro text */
  opacity: 1;
  padding-bottom: 1.5rem;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg); /* Otočení šipky při otevření */
}