/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #2e7d32; /* deep green */
  --secondary-color: #5f6c7b;
  --accent-color: #d4a373; /* warm wood */
  --text-dark: #1e293b;
  --text-light: #64748b;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1),
    0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

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

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

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

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

/* .text-logo { display:none; } */

.logo-img {
  height: 65px;
  width: auto;
  transition: all 0.3s ease;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
}

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

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

.consultation-btn {
  display: none;
}

.btn-consultation {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-consultation:hover {
  background: #f59e0b;
  transform: translateY(-2px);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: 0.3s;
}

/* Hero Section - VARIANT 1: Ken Burns Effect */
.hero {
  padding: 120px 0 80px;
  background-image: linear-gradient(
      rgba(30, 41, 59, 0.85),
      rgba(30, 41, 59, 0.75)
    ),
    var(--hero-image, none);
  background-size: 110%;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
  color: white;
  animation: kenBurnsEffect 120s ease-in-out infinite;
}

@keyframes kenBurnsEffect {
  0% {
    background-size: 110%;
    background-position: center top;
  }
  25% {
    background-size: 115%;
    background-position: right center;
  }
  50% {
    background-size: 120%;
    background-position: center bottom;
  }
  75% {
    background-size: 115%;
    background-position: left center;
  }
  100% {
    background-size: 110%;
    background-position: center top;
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-color);
  color: var(--text-dark);
  font-weight: 600;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: white;
  transform: translateY(-2px);
}

/* Services Preview Section */
.services-preview[hidden] {
  display: none !important;
}

.services-preview {
  padding: 60px 0;
  background: var(--bg-white);
}

.services-preview h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-preview-card {
  padding: 1.8rem;
  background: var(--bg-white);
  border-radius: 12px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(37, 99, 235, 0.08);
  position: relative;
  overflow: hidden;
}

.service-preview-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-color: rgba(37, 99, 235, 0.15);
}

/* 
 * Service preview icon/image container
 * Pripravené pre náhradu ikon fotkami:
 * - Zmeňte <i class="fas ..."> na <img src="..." alt="...">
 * - Odstráňte font-size pre fotky
 * - Pridajte object-fit: cover pre fotky
 */
.service-preview-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.2);
  transition: all 0.3s ease;
  overflow: hidden; /* Pre fotky */
}

/* Pre budúce fotky namiesto ikon */
.service-preview-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* VARIANT 2 aplikovaný na všetky karty - optimálna rovnováha */

/* Karta 1 (Stavby) */
.service-preview-card:nth-child(1) {
  border-left: 4px solid #2563eb;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.75),
      rgba(248, 250, 252, 0.8)
    ),
    url("img/reconstruction_opt.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-preview-card:nth-child(1):hover {
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.7),
      rgba(248, 250, 252, 0.75)
    ),
    url("img/reconstruction_opt.webp");
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.15);
}

.service-preview-card:nth-child(1) .service-preview-icon {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  box-shadow: 0 6px 12px rgba(37, 99, 235, 0.3);
}

/* Karta 2 (Záhrady) */
.service-preview-card:nth-child(2) {
  border-left: 4px solid #16a34a;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.75),
      rgba(240, 253, 244, 0.8)
    ),
    url("img/garden_bld_opt.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-preview-card:nth-child(2):hover {
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.7),
      rgba(240, 253, 244, 0.75)
    ),
    url("img/garden_bld_opt.webp");
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(22, 163, 74, 0.15);
}

.service-preview-card:nth-child(2) .service-preview-icon {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 6px 12px rgba(22, 163, 74, 0.3);
}

/* Karta 3 (Údržba) */
.service-preview-card:nth-child(3) {
  border-left: 4px solid #059669;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.75),
      rgba(236, 253, 245, 0.8)
    ),
    url("img/garden_mtn_opt.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service-preview-card:nth-child(3):hover {
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.7),
      rgba(236, 253, 245, 0.75)
    ),
    url("img/garden_mtn_opt.webp");
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(5, 150, 105, 0.15);
}

.service-preview-card:nth-child(3) .service-preview-icon {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 12px rgba(5, 150, 105, 0.3);
}

/* Hover efekty pre ikony - všeobecné */
.service-preview-card:hover .service-preview-icon {
  transform: scale(1.1);
}

.service-preview-card h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.service-preview-card p {
  color: #374151;
  line-height: 1.6;
  font-size: 0.95rem;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

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

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

.about h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: var(--text-dark);
}

.about p {
  color: var(--text-light);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.consultation-highlight {
  background: var(--bg-white);
  padding: 1.5rem;
  border-radius: 12px;
  border-left: 4px solid var(--accent-color);
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.consultation-icon {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.consultation-text h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.consultation-text p {
  color: var(--text-light);
  margin: 0;
  font-size: 0.95rem;
}

.about-image-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
}

.about-image-img:hover {
  transform: scale(1.02);
}

/* Uniqueness Section - VARIANT 2: Multi-layer Parallax */
.uniqueness {
  padding: 56px 0;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.uniqueness::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--parallax1-image, none);
  background-size: 105%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
  animation: layerDrift1 80s ease-in-out infinite;
  z-index: 1;
}

.uniqueness::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: var(--parallax2-image, none);
  background-size: 110%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.4;
  animation: layerDrift2 100s ease-in-out infinite reverse;
  z-index: 2;
}

.uniqueness > * {
  position: relative;
  z-index: 3;
}

.uniqueness {
  background: linear-gradient(rgba(30, 41, 59, 0.85), rgba(30, 41, 59, 0.75));
}

@keyframes layerDrift1 {
  0%,
  100% {
    background-position: center left;
    transform: scale(1);
  }
  50% {
    background-position: center right;
    transform: scale(1.05);
  }
}

@keyframes layerDrift2 {
  0%,
  100% {
    background-position: left center;
    transform: scale(1);
  }
  50% {
    background-position: right center;
    transform: scale(1.03);
  }
}

.uniqueness h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Minimalistický prístup - text na plnú šírku */
.uniqueness-text-full {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.uniqueness-text-full p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.7;
  text-align: left;
  text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.35);
}

.uniqueness-text-full p:last-child {
  margin-bottom: 0;
}

/* Animované čísla v texte */
.animated-number {
  color: var(--accent-color);
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-block;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.animated-number:hover {
  transform: scale(1.1);
  color: #f59e0b;
  text-shadow: 2px 2px 6px rgba(245, 158, 11, 0.3);
}

/* Clients Section */
.clients {
  padding: 60px 0;
  background: var(--bg-light);
  text-align: center;
}

.clients h2 {
  font-size: 1.8rem;
  margin-bottom: 0.4rem;
  color: var(--text-dark);
}

.clients > p {
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto 2rem;
}

.client-card {
  padding: 1.5rem;
  background: var(--bg-white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.client-card:hover {
  transform: translateY(-4px);
}

.client-card strong {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 600;
}

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  margin-bottom: 1rem;
}

.client-logo-img {
  max-height: 65px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.client-card span {
  color: var(--text-light);
  font-size: 0.9rem;
}

.additional-clients {
  max-width: 800px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
}

.additional-clients p {
  color: var(--text-light);
  font-size: 1.1rem;
  line-height: 1.7;
}

/* CTA Section - VARIANT 4: Floating Elements */
.cta-section {
  padding: 80px 0;
  background-image: linear-gradient(
      rgba(30, 41, 59, 0.85),
      rgba(30, 41, 59, 0.75)
    ),
    var(--cta-image, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Floating particle elements */
.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(255, 255, 255, 0.08) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(255, 255, 255, 0.06) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 60% 20%,
      rgba(59, 130, 246, 0.15) 3px,
      transparent 3px
    ),
    radial-gradient(
      circle at 30% 80%,
      rgba(255, 255, 255, 0.07) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 90% 40%,
      rgba(59, 130, 246, 0.12) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 15% 70%,
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 75% 30%,
      rgba(59, 130, 246, 0.09) 2px,
      transparent 2px
    );
  background-size: 200px 200px, 300px 300px, 250px 250px, 180px 180px,
    220px 220px, 160px 160px, 270px 270px;
  animation: floatingElements 40s linear infinite;
  z-index: 1;
}

.cta-section::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 40% 60%,
      rgba(255, 255, 255, 0.09) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 70% 10%,
      rgba(59, 130, 246, 0.16) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 10% 50%,
      rgba(255, 255, 255, 0.07) 3px,
      transparent 3px
    ),
    radial-gradient(
      circle at 85% 80%,
      rgba(59, 130, 246, 0.11) 1px,
      transparent 1px
    ),
    radial-gradient(
      circle at 55% 40%,
      rgba(255, 255, 255, 0.06) 2px,
      transparent 2px
    ),
    radial-gradient(
      circle at 25% 15%,
      rgba(59, 130, 246, 0.08) 1px,
      transparent 1px
    );
  background-size: 280px 280px, 150px 150px, 320px 320px, 190px 190px,
    240px 240px, 200px 200px;
  animation: floatingElements 60s linear infinite reverse;
  z-index: 2;
}

.cta-section > * {
  position: relative;
  z-index: 3;
}

@keyframes floatingElements {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(-20px, -30px) rotate(90deg);
  }
  50% {
    transform: translate(-40px, 0) rotate(180deg);
  }
  75% {
    transform: translate(-20px, 30px) rotate(270deg);
  }
  100% {
    transform: translate(0, 0) rotate(360deg);
  }
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.35);
}
.rotating-word-wrapper {
  display: inline-flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  height: 1em;
  line-height: 1;
  vertical-align: baseline;
  padding: 0 2px 0.14em 0; /* bottom cushion to avoid descender clipping */
}

.rotating-word {
  display: inline-block;
  position: relative;
  will-change: transform, opacity;
  line-height: 1;
  white-space: nowrap;
}

.rotate-in {
  animation: rotateIn 250ms ease forwards;
}

.rotate-out {
  animation: rotateOut 250ms ease forwards;
}

@keyframes rotateIn {
  0% {
    transform: translateY(1.14em);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes rotateOut {
  0% {
    transform: translateY(0);
    opacity: 1;
  }
  100% {
    transform: translateY(-1.14em);
    opacity: 0;
  }
}

.cta-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.35);
}

.btn-cta {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
}

.btn-cta:hover {
  background: #f59e0b;
  transform: translateY(-2px);
}

/* Contact Section */
.contact {
  padding: 60px 0;
  background: var(--bg-white);
}

.contact-content {
  display: grid;
  grid-template-columns: 1.1fr 1fr 0.9fr;
  gap: 1.25rem;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.contact-info p {
  color: var(--text-light);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.contact-details {
  space-y: 1rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: var(--bg-light);
  border-radius: 8px;
}

.contact-item i {
  color: var(--accent-color);
  font-size: 1.2rem;
  width: 20px;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

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

.contact-text span,
.contact-text a {
  color: var(--text-light);
  text-decoration: none;
}

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

/* Contact Map Styles */
.contact-map {
  text-align: center;
}

.contact-map h3 {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.map-container {
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.map-container iframe {
  width: 100%;
  border-radius: 12px;
}

.btn-map {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-map:hover {
  background: #f59e0b;
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.contact-form {
  background: var(--bg-light);
  padding: 1rem 1rem 0.75rem;
  border-radius: 12px;
}

.contact-form h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

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

/* Select styling */
.form-group select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  font-size: 0.96rem;
  color: var(--text-dark);
  cursor: pointer;
}

/* Form error messages */
.form-error {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
  min-height: 1.25rem;
}

/* Form success/error messages */
.form-message {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.form-message.success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-message.error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Button loading state */
.btn-loading {
  color: var(--text-dark);
}

/* Smaller submit button inside contact form */
.contact-form .btn-cta {
  padding: 10px 16px;
  font-size: 1rem;
}

/* Form animations */
.form-group {
  position: relative;
  transition: all 0.3s ease;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.form-group.success input,
.form-group.success textarea,
.form-group.success select {
  border-color: #22c55e;
  background-color: #f0fdf4;
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: white;
}

.footer-cta {
  background: var(--accent-color);
  color: #000000 !important;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 0.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.footer-cta:hover {
  background: #f59e0b;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #374151;
  color: #9ca3af;
}

/* Responsive Design */
@media (min-width: 1024px) {
  .consultation-btn {
    display: block;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .services-preview-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .service-preview-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* Fixed attachment can cause issues on mobile */
    padding: 100px 0 60px;
    animation: none; /* Vypnúť animácie na mobile pre lepšiu výkonnosť */
    background-size: cover; /* Avoid tiling on small screens */
    background-repeat: no-repeat;
  }

  .uniqueness {
    background-attachment: scroll; /* Fixed attachment can cause issues on mobile */
  }

  .uniqueness::before,
  .uniqueness::after {
    animation: none; /* Vypnúť animácie na mobile */
    background-size: cover; /* Ensure single image fills */
    background-repeat: no-repeat;
  }

  .cta-section {
    background-attachment: scroll; /* Fixed attachment can cause issues on mobile */
    background-size: cover;
    background-repeat: no-repeat;
  }

  .cta-section::before,
  .cta-section::after {
    animation: none; /* Vypnúť floating elements na mobile */
    opacity: 0.3; /* Znížiť opacity na mobile */
  }

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    min-width: 200px;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow);
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .hamburger {
    display: flex;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* On mobile show full image without cropping */
  .about-image-img {
    height: auto;
    max-height: 320px;
    object-fit: contain;
  }

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

  .service-preview-card {
    padding: 1.5rem;
  }

  .service-preview-icon {
    width: 50px;
    height: 50px;
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }

  /* Mobile štýly pre text */
  .uniqueness-text-full {
    max-width: 100%;
    padding: 0 1rem;
  }

  .uniqueness-text-full p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
  }

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

/* Projects Gallery */
.projects {
  padding: 80px 0;
  background: var(--bg-white);
}

.projects h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  color: var(--text-dark);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  transition: max-height 0.45s ease;
  will-change: max-height;
}

.projects-collapsed {
  max-height: 175px; /* ~1.5 radu kariet */
  overflow: hidden;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 60%,
    rgba(0, 0, 0, 0)
  );
}

.projects-toggle {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.btn-toggle {
  background: var(--accent-color);
  color: var(--text-dark);
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.btn-toggle:hover {
  transform: translateY(-2px);
}

.project-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-light);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.project-card-info {
  padding: 1rem;
}

.project-card-title {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.project-card-subtitle {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Lightbox */
#lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

#lightbox.open {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 85vh;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 8px;
  cursor: pointer;
}

.lightbox-close {
  top: -44px;
  right: 0;
  transform: none;
}
.lightbox-prev {
  left: -52px;
}
.lightbox-next {
  right: -52px;
}

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

@media (max-width: 640px) {
  .project-grid {
    grid-template-columns: 1fr;
  }
  .project-card-image {
    height: 200px;
  }
  .lightbox-prev {
    left: 8px;
  }
  .lightbox-next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 80px 0 50px; /* Further reduced padding on very small screens */
  }

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

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons .btn {
    min-width: 180px;
  }

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

  /* Extra malé mobily - text */
  .uniqueness-text-full p {
    font-size: 1rem;
    margin-bottom: 1.2rem;
  }

  .services-preview-grid {
    grid-template-columns: 1fr;
  }
}
