@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap');

:root {
  --primary-red: #aa1c1e;
  --primary-red-hover: #8f1719;
  --secondary-blue: #0c3982;
  --secondary-blue-hover: #082963;
  --gold: #d4af37;
  --bg-dark-3d: #0b0f19;
  --bg-card-3d: rgba(255, 255, 255, 0.03);
  --border-3d: rgba(255, 255, 255, 0.08);
  --text-white: #f3f4f6;
  --text-muted-3d: #9ca3af;
  
  --transition-3d: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-3d-red: 0 15px 35px rgba(170, 28, 30, 0.15);
  --shadow-3d-blue: 0 15px 35px rgba(12, 57, 130, 0.2);
  --shadow-layered: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-dark-3d);
  color: var(--text-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 3D Global Effects */
.perspective-container {
  perspective: 1200px;
}

/* Navbar */
.navbar-3d {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(11, 15, 25, 0.7);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid var(--border-3d);
  transition: var(--transition-3d);
}

.navbar-3d .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
}

.logo img {
  height: 60px;
  transition: var(--transition-3d);
}

.nav-links-3d {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-links-3d a {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: var(--transition-3d);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  border: 1px solid transparent;
}

.nav-links-3d a:hover {
  color: var(--primary-red);
}

/* Hero 3D Section Styling */
.hero-3d {
  position: relative;
  min-height: 100vh;
  padding-top: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

.hero-3d-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  overflow: hidden;
}

.hero-3d-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-3d-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(11, 15, 25, 0.95) 0%, rgba(11, 15, 25, 0.8) 100%);
  z-index: -1;
}

.hero-3d-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 4rem;
  width: 100%;
}

.hero-3d-text {
  position: relative;
  z-index: 2;
}

.hero-3d-text h1 {
  font-size: 4rem;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #ffffff 0%, #b5b9c0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-3d-text p {
  font-size: 1.2rem;
  color: var(--text-muted-3d);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-3d-cta {
  display: flex;
  align-items: center;
}

/* Premium 3D Buttons */
.btn-3d {
  display: inline-block;
  padding: 1.1rem 2.2rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition-3d);
}

.btn-3d-primary {
  background: var(--primary-red);
  color: #fff;
  border: 1px solid var(--primary-red);
  box-shadow: var(--shadow-3d-red);
}

.btn-3d-primary:hover {
  background: var(--primary-red-hover);
  border-color: var(--primary-red-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(170, 28, 30, 0.3);
}

.btn-3d-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-white);
  border: 1px solid var(--border-3d);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-3d-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* 3D Presentation Panels */
.hero-3d-presentation {
  position: relative;
  height: 450px;
  perspective: 1000px;
  transform-style: preserve-3d;
}

.floating-panel {
  position: absolute;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-3d);
  box-shadow: var(--shadow-layered);
  transition: var(--transition-3d);
}

.floating-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-main {
  width: 320px;
  height: 240px;
  top: 100px;
  left: 50px;
  z-index: 2;
  transform: translateZ(40px) rotateY(-15deg) rotateX(10deg);
}

.panel-secondary {
  width: 260px;
  height: 180px;
  top: 50px;
  right: 20px;
  z-index: 1;
  transform: translateZ(10px) rotateY(-20deg) rotateX(5deg);
}

.panel-accent {
  width: 220px;
  height: 150px;
  bottom: 40px;
  right: 50px;
  z-index: 3;
  border-color: var(--gold);
  transform: translateZ(60px) rotateY(-10deg) rotateX(15deg);
}

.floating-panel:hover {
  transform: translateZ(80px) rotateY(0deg) rotateX(0deg) scale(1.05);
  border-color: var(--primary-red);
}

/* About Section & Grid styling */
.section-3d {
  padding: 8rem 0;
  position: relative;
}

.about-grid-3d {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: center;
  gap: 5rem;
}

.about-3d-scene {
  perspective: 1200px;
  transform-style: preserve-3d;
}

.about-card-3d {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-3d);
  box-shadow: var(--shadow-layered);
  transform: rotateY(15deg) rotateX(5deg);
  transition: var(--transition-3d);
  aspect-ratio: 4/3;
}

.about-card-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-card-3d:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Float Badge in 3D Card */
.badge-3d {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: linear-gradient(135deg, var(--primary-red) 0%, rgba(170, 28, 30, 0.4) 100%);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: translateZ(50px);
  color: white;
}

.badge-3d h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1;
}

.badge-3d p {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-white);
  margin-top: 0.2rem;
}

.about-text-3d h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

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

.about-text-3d p strong {
  color: var(--text-white);
}

/* 3D Service Cards with Tilt */
.services-container-3d {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  perspective: 1000px;
}

.card-3d {
  flex: 1 1 350px;
  max-width: 400px;
  background: var(--bg-card-3d);
  border: 1px solid var(--border-3d);
  border-radius: 16px;
  padding: 3rem 2rem;
  transform-style: preserve-3d;
  transition: var(--transition-3d), transform 0.1s ease-out;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
}

.card-3d:hover {
  border-color: rgba(170, 28, 30, 0.4);
  box-shadow: 0 20px 40px rgba(170, 28, 30, 0.15), 0 0 30px rgba(255,255,255,0.02);
}

.icon-3d {
  font-size: 2.5rem;
  color: var(--primary-red);
  margin-bottom: 2rem;
  transform: translateZ(30px);
  text-shadow: 0 5px 15px rgba(170, 28, 30, 0.3);
}

.card-3d h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  transform: translateZ(40px);
  color: var(--text-white);
}

.card-3d p {
  color: var(--text-muted-3d);
  transform: translateZ(20px);
  line-height: 1.7;
}

/* B2B Sériová Výroba - Premium glass layer overlaying background */
.b2b-section-3d {
  background: linear-gradient(180deg, var(--bg-dark-3d) 0%, rgba(12, 57, 130, 0.05) 50%, var(--bg-dark-3d) 100%);
}

.b2b-grid-3d {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 4rem;
}

.b2b-card-3d {
  flex: 1 1 350px;
  max-width: 400px;
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 100%);
  border: 1px solid var(--border-3d);
  border-radius: 16px;
  padding: 3rem;
  text-align: center;
  transition: var(--transition-3d);
  position: relative;
  overflow: hidden;
}

.b2b-card-3d::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition-3d);
}

.b2b-card-3d:hover {
  transform: translateY(-10px);
  border-color: rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.04);
}

.b2b-card-3d:hover::before {
  transform: scaleX(1);
}

.b2b-card-3d h3 {
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  color: var(--text-white);
}

.b2b-card-3d p {
  color: var(--text-muted-3d);
}

.gallery-tabs-3d {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-bottom: 4rem;
  perspective: 1000px;
}

.gallery-tab-3d {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-3d);
  color: var(--text-muted-3d);
  padding: 0.8rem 1.8rem;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-3d);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transform: rotateX(5deg);
}

.gallery-tab-3d:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
  transform: translateY(-3px) rotateX(0deg);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.gallery-tab-3d.active {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
  transform: translateY(-3px) rotateX(0deg);
  box-shadow: 0 8px 25px rgba(170, 28, 30, 0.4), 0 0 15px rgba(170, 28, 30, 0.2);
}

/* Interactive 3D Gallery */
.gallery-grid-3d {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  perspective: 1000px;
}

.gallery-card-3d {
  flex: 1 1 350px;
  max-width: 500px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-3d);
  aspect-ratio: 4/3;
  position: relative;
  transform: rotateX(10deg);
  transform-style: preserve-3d;
  transition: var(--transition-3d);
}

.gallery-card-3d:hover {
  transform: rotateX(0deg) translateY(-10px);
  border-color: var(--primary-red);
}

.gallery-card-3d img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.gallery-card-3d:hover img {
  transform: scale(1.08);
}

.gallery-overlay-3d {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(11, 15, 25, 0.95) 0%, transparent 100%);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  transform: translateZ(30px);
}

.gallery-overlay-3d span {
  color: white;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
}

/* Premium 3D Lightbox Modal */
.lightbox-modal-3d {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox-modal-3d.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop-3d {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 8, 15, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lightbox-close-3d {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  color: white;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-3d);
  z-index: 10100;
}

.lightbox-close-3d:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  color: white;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 0 15px rgba(170, 28, 30, 0.4);
}

.lightbox-prev-3d,
.lightbox-next-3d {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-3d);
  z-index: 10100;
}

.lightbox-prev-3d {
  left: 2rem;
}

.lightbox-prev-3d:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-50%) scale(1.1) translateX(-5px);
  box-shadow: 0 0 15px rgba(170, 28, 30, 0.4);
}

.lightbox-next-3d {
  right: 2rem;
}

.lightbox-next-3d:hover {
  background: var(--primary-red);
  border-color: var(--primary-red);
  transform: translateY(-50%) scale(1.1) translateX(5px);
  box-shadow: 0 0 15px rgba(170, 28, 30, 0.4);
}

.lightbox-content-3d {
  max-width: 1000px;
  width: 90%;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10050;
  perspective: 1200px;
  transform: scale(0.9) rotateY(15deg);
  transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.lightbox-modal-3d.active .lightbox-content-3d {
  transform: scale(1) rotateY(0deg);
}

.lightbox-img-wrapper-3d {
  width: 100%;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-3d);
  border-bottom: none;
  background: #000;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrapper-3d img {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.lightbox-caption-3d {
  background: rgba(11, 15, 25, 0.95);
  border: 1px solid var(--border-3d);
  border-top: none;
  border-radius: 0 0 20px 20px;
  padding: 2.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
}

.lightbox-caption-3d h4 {
  font-size: 1.6rem;
  color: white;
  margin-bottom: 0.5rem;
  font-family: 'Playfair Display', serif;
}

.lightbox-caption-3d p {
  color: var(--text-muted-3d);
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

.lightbox-counter-3d {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-3d);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .lightbox-close-3d {
    top: 1rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .lightbox-prev-3d {
    left: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .lightbox-next-3d {
    right: 1rem;
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }
  
  .lightbox-caption-3d {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }
  
  .lightbox-counter-3d {
    align-self: flex-start;
  }
}

/* 3D Timeline Process */
.process-grid-3d {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
  margin-top: 5rem;
}

.process-card-3d {
  flex: 1 1 250px;
  max-width: 300px;
  background: var(--bg-card-3d);
  border: 1px solid var(--border-3d);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition-3d);
  position: relative;
}

.process-card-3d:hover {
  transform: translateY(-8px);
  border-color: var(--secondary-blue);
  box-shadow: 0 15px 30px rgba(12, 57, 130, 0.1);
}

.process-number-3d {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--secondary-blue) 0%, rgba(12, 57, 130, 0.4) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 800;
  margin: -60px auto 1.5rem;
  border: 4px solid var(--bg-dark-3d);
  box-shadow: 0 8px 20px rgba(12, 57, 130, 0.3);
}

.process-card-3d h4 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.process-card-3d p {
  color: var(--text-muted-3d);
  font-size: 0.95rem;
}

/* Footer / Form in 3D Card */
.footer-3d {
  background: #070910;
  padding: 8rem 0 3rem;
  border-top: 1px solid var(--border-3d);
}

.footer-grid-3d {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  margin-bottom: 5rem;
}

.footer-info-3d h3 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  background: linear-gradient(to right, white, #aaa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-info-3d p {
  color: var(--text-muted-3d);
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

.footer-details-3d {
  list-style: none;
}

.footer-details-3d li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.footer-details-3d i {
  color: var(--primary-red);
  font-size: 1.4rem;
  margin-top: 5px;
}

.footer-details-3d strong {
  color: white;
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.footer-details-3d span {
  color: var(--text-muted-3d);
}

/* 3D floating look for form */
.form-container-3d {
  background: linear-gradient(135deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 100%);
  border: 1px solid var(--border-3d);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: var(--shadow-layered);
  transform: rotateY(-10deg);
  transition: var(--transition-3d);
}

.form-container-3d:hover {
  transform: rotateY(0deg);
  border-color: rgba(255,255,255,0.15);
}

.form-group-3d {
  margin-bottom: 1.8rem;
}

.form-control-3d {
  width: 100%;
  padding: 1.2rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-3d);
  border-radius: 8px;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  transition: var(--transition-3d);
}

.form-control-3d:focus {
  outline: none;
  border-color: var(--primary-red);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 0 15px rgba(170, 28, 30, 0.2);
}

.form-control-3d::placeholder {
  color: rgba(255,255,255,0.3);
}

.footer-bottom-3d {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid var(--border-3d);
  color: rgba(255,255,255,0.25);
  font-size: 0.95rem;
}

/* Mobile responsive for 3D layout */
@media (max-width: 992px) {
  .hero-3d-grid { grid-template-columns: 1fr; gap: 5rem; }
  .hero-3d-text { text-align: center; }
  .hero-3d-text p { margin: 0 auto 2.5rem; }
  .hero-3d-cta { display: flex; justify-content: center; }
  .hero-3d-presentation { display: none; }
  .about-grid-3d { grid-template-columns: 1fr; gap: 4rem; }
  .about-card-3d { transform: none !important; }
  .footer-grid-3d { grid-template-columns: 1fr; gap: 4rem; }
  .form-container-3d { transform: none !important; }
}

@media (max-width: 768px) {
  .nav-links-3d { display: none; }
  .hero-3d-text h1 { font-size: 3rem; }
  .section-title-3d { font-size: 2.2rem; }
}
