/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0A0A0A;
  --accent: #00D4AA;
  --text: #FFFFFF;
  --secondary: #888888;
  --surface: #111111;
  --border: #1E1E1E;
  --radius: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

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

section {
  padding: 100px 0;
}

h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 56px;
  text-align: center;
}

.section-sub {
  text-align: center;
  color: var(--secondary);
  margin-top: -40px;
  margin-bottom: 48px;
}

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(10, 10, 10, 0);
  transition: background 0.3s ease, border-bottom 0.3s ease;
}

#nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo img {
  height: 55px;
  width: auto;
}

.btn-nav {
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  transition: background 0.2s, color 0.2s;
}

.btn-nav:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--bg);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  padding: 14px 36px;
  border-radius: 8px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-outline:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-1px);
}

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

/* ===== HERO ===== */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  position: relative;
  overflow: hidden;
  background-image: url('assets/Hero/Hero.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.6);
  pointer-events: none;
  z-index: 0;
}

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


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

.hero-content h1 {
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.subheadline {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text);
  margin-bottom: 40px;
  max-width: 800px;
  white-space: nowrap;
  margin-left: auto;
  margin-right: auto;
}

/* ===== HERO ===== */
#hero {
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 212, 170, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ===== JAK TO FUNGUJE ===== */
#jak-to-funguje {
  background: var(--surface);
  padding: 140px 0;
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  text-align: center;
  padding: 0 24px;
}

.step-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  color: var(--accent);
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-number {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.step h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}

.step p {
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.7;
  text-align: left;
}

.step-divider {
  width: 1px;
  height: 120px;
  background: var(--border);
  margin-top: 28px;
  flex-shrink: 0;
}

/* ===== PORTFOLIO ===== */
#portfolio {
  background: var(--bg);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
  justify-content: center;
}

.tab {
  background: none;
  border: 1px solid var(--border);
  color: var(--secondary);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.grid-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  aspect-ratio: 1 / 1;
  background: var(--surface);
}

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

.grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 212, 170, 0);
  transition: background 0.3s;
}

.grid-item:hover img {
  transform: scale(1.05);
}

.grid-item:hover::after {
  background: rgba(0, 212, 170, 0.08);
}

.grid-item--hidden {
  display: none;
}

.btn-show-more {
  display: block;
  margin: 32px auto 0;
  background: transparent;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  padding: 12px 32px;
  border-radius: 8px;
  border: 2px solid var(--accent);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-show-more:hover {
  background: var(--accent);
  color: var(--bg);
}

/* ===== CAROUSEL (mobile only) ===== */
.carousel {
  display: none;
}

@media (max-width: 768px) {
  .grid { display: none; }

  .carousel {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    touch-action: pan-y;
  }

  .carousel-track {
    display: flex;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
  }

  .carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--radius);
  }

  .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 20px;
  }

  .carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
  }

  .carousel-dot.active {
    background: var(--accent);
    transform: scale(1.4);
  }
}

/* ===== CENÍK ===== */
#cenik {
  background: var(--surface);
}

.pricing-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 48px;
}

.plan {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  transition: border-color 0.2s;
}

.plan:hover {
  border-color: #333;
}

.plan.featured {
  border-color: var(--accent);
}

.plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 20px;
  letter-spacing: 0.3px;
}

.plan-name {
  font-weight: 600;
  font-size: 16px;
  min-width: 80px;
}

.plan-detail {
  color: var(--secondary);
  font-size: 14px;
  flex: 1;
}

.pricing-note {
  text-align: center;
  color: var(--secondary);
  font-size: 13px;
  margin-top: 8px;
  margin-bottom: 0;
}

.plan-price {
  font-weight: 700;
  font-size: 18px;
  color: var(--accent);
  white-space: nowrap;
}

.pricing-footer {
  text-align: center;
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.pricing-footer__text {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  max-width: none;
  line-height: 1.5;
}

/* ===== O MNĚ ===== */
#o-mne {
  background: var(--bg);
  padding-top: 0;
}

.about-block {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-block h2 {
  margin-bottom: 24px;
}

.about-block p {
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.8;
}

.about-block a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== FAQ ===== */
#faq {
  background: var(--surface);
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:has(.faq-q[aria-expanded="true"]) {
  border-color: var(--accent);
}

.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}

.faq-q:hover {
  color: var(--accent);
}

.faq-q[aria-expanded="true"] {
  color: var(--accent);
}

.faq-q::after {
  content: '+';
  font-size: 22px;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-q[aria-expanded="true"]::after {
  transform: rotate(45deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}

.faq-a.open {
  max-height: 200px;
}

.faq-a p {
  padding: 0 24px 20px;
  color: var(--secondary);
  font-size: 15px;
  line-height: 1.7;
}

.faq-a a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== KONTAKT ===== */
#kontakt {
  background: var(--bg);
}

#contact-form {
  max-width: 600px;
  margin: 0 auto 48px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--secondary);
}

.form-group input,
.form-group textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #444;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-feedback {
  font-size: 14px;
  min-height: 20px;
  text-align: center;
}

.form-feedback.success {
  color: var(--accent);
}

.form-feedback.error {
  color: #ff6b6b;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.contact-info a {
  color: var(--secondary);
  font-size: 15px;
  transition: color 0.2s;
}

.contact-info a:hover {
  color: var(--accent);
}

/* ===== FOOTER ===== */
footer {
  padding: 32px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--secondary);
  font-size: 14px;
}

footer span {
  color: var(--accent);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 32px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 212, 170, 0.15);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { padding: 72px 0; }

  .steps {
    flex-direction: column;
    gap: 40px;
  }

  .step-divider {
    width: 80px;
    height: 1px;
    margin: 0 auto;
  }


  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .subheadline {
    white-space: normal;
    font-size: 14px;
  }
}
