/* ===== Global Reset / Base ===== */
html {
  scroll-behavior: smooth;
}

html, body {
  overflow-x: hidden;
  width: 100%;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
  background-color: var(--clr-bg-black);
  color: #fff;
  line-height: 1.6;
}

/* ===== Barvy / proměnné ===== */
:root {
  --clr-bg-dark: #0f0f0f;
  --clr-bg-black: #000000;
  --clr-primary: #2563eb; /* Modern blue */
  --clr-primary-light: #60a5fa;
  --clr-white: #ffffff;
  --clr-text: #e0e0e0;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --btn-padding: 0.875rem 2rem;
  --btn-radius: 999px;
  --btn-border-width: 2px;
  --btn-font-size: 1rem;
  --btn-font-weight: 500;
  --btn-letter-spacing: 0.5px;
  --btn-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Navigace ===== */
.navbar-brand {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.nav-link {
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

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

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

/* ===== Hero Section ===== */
.hero-section {
  min-height: 80vh;
  background: linear-gradient(135deg, var(--clr-primary) 0%, #1e40af 100%);
  text-align: center;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

header.hero-section {
  background-image: url("../images/robotic_welding.gif");
  background-size: cover;
  background-position: center;
  position: relative;
}

header.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
}

.hero-section h1 {
  color: var(--clr-white);
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 1.5rem;
}

.hero-section p {
  font-size: 1.25rem;
  color: #f4f4f4;
  max-width: 600px;
  margin: 0 auto;
}

header.hero-section h1,
header.hero-section p {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* ===== Unified Button System ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  letter-spacing: var(--btn-letter-spacing);
  text-decoration: none;
  cursor: pointer;
  transition: var(--btn-transition);
  border: var(--btn-border-width) solid transparent;
  position: relative;
  overflow: hidden;
}

/* Primary Button */
.btn-primary {
  background-color: var(--clr-primary);
  color: var(--clr-white);
  border-color: var(--clr-primary);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--clr-primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
}

/* Outline Button */
.btn-outline {
  background-color: transparent;
  color: var(--clr-primary);
  border-color: var(--clr-primary);
}

.btn-outline:hover {
  background-color: var(--clr-primary);
  color: var(--clr-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Ghost Button */
.btn-ghost {
  background-color: transparent;
  color: var(--clr-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: rgba(37, 99, 235, 0.1);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0);
}

/* Button Sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Button with Icon */
.btn-icon {
  gap: 0.5rem;
}

.btn-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* ===== Sekce Title / Subtitle ===== */
.container {
  background-color: transparent;
  padding: 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--clr-white);
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #ccc;
  max-width: 600px;
  margin: 0 auto;
}

.text-left {
  text-align: left;
}

/* ===== Swiper ===== */
.mySwiper {
  width: 100%;
  height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  background-color: var(--clr-bg-black);
}

.mySwiper .swiper-wrapper {
  background-color: var(--clr-bg-black);
}

.mySwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-bg-black);
  border-radius: 12px;
}

.mySwiper .swiper-slide img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
  border-radius: 8px;
}

.mySwiper .swiper-slide:hover img {
  transform: scale(1.05);
}

.product-slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.product-slide .slide-caption {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.swiper-horizontal>.swiper-pagination-bullets, .swiper-pagination-bullets.swiper-pagination-horizontal {
  top: 0;
  height: 2rem;
}

/* Změna barvy navigačních šipek + pagination teček */
.swiper-button-next,
.swiper-button-prev {
  color: var(--clr-primary);
}
.swiper-pagination-bullet {
  background: var(--clr-primary);
}
.swiper-pagination-bullet-active {
  background: var(--clr-primary-light);
}

/* ===== Kontakt ===== */
.contact-section {
  background: linear-gradient(160deg, #1a1a1a 0%, #080808 100%);
  padding: 4rem 0;
}

.contact-link {
  text-decoration: none;
  color: var(--clr-primary-light);
  transition: var(--transition);
  position: relative;
  display: inline-block;
}

.contact-link:hover {
  color: var(--clr-primary);
  transform: translateY(-2px);
}

.contact-form-title {
  font-size: 1.75rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 2rem;
}

.btn-form-submit {
  composes: btn btn-outline;
}

/* ===== Footer ===== */
.footer-section {
  background-color: var(--clr-bg-black);
  font-size: 0.9rem;
  padding: 2rem 0;
}

/* ===== Responsivita ===== */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .mySwiper {
    height: 300px;
  }
  
  .btn {
    padding: 0.75rem 1.5rem;
  }
  
  .btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
  }
}

/* Glassmorphism effect */
.glass-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

/* Update section backgrounds */
section {
  background-color: var(--clr-bg-black);
}

#produkty {
  background-color: var(--clr-bg-black);
  padding: 4rem 1rem;
}
