/* darkmode */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

:root {
  --dark: #f1f1f1;
  --container: #F5F5F5;
  --bg: #fafafa;
  --white: black;
  --gold: #FFD700;
  --black: white;
  --grey: #dadada;
  --shadow: 2px 4px 4px rgba(0, 0, 0, 0.25);
  --border: none;
  --icon-filter: brightness(0) contrast(0.9);
}

.dark-mode {
  --dark: #111;
  --container: #1a1a1a;
  --bg: #0d0d0d;
  --white: white;
  --gold: #FFD700;
  --black: black;
  --grey: #333;
  --shadow: 4px 4px 40px rgba(116, 116, 116, 0.35);
  --border: white;
  --icon-filter: brightness(1) contrast(1);

}

/* Loader */
/* Skrýt hlavní stránku, než se loader dokončí */
.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Skryj hlavní obsah dokud neskončí animace */
.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #F5F5F5;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeOutPreloader 0.6s ease 2.5s forwards;
}

/* Tvoje logo animace */
.logo-loader img {
  width: 250px;
  animation: logoWipe 2s ease forwards;

  /* Maska začíná úplně vlevo (transparentní) a končí vpravo (viditelná) */
  mask-image: linear-gradient(to left, transparent 0%, black 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 40%, black 100%);
  
  mask-size: 200% 100%;
  -webkit-mask-size: 200% 100%;

  mask-position: 100% -20%;
  -webkit-mask-position: 100% -20%;
}

/* Wipe animace */
@keyframes logoWipe {
  to {
    visibility: visible;
    mask-position: 0% 0%;
    -webkit-mask-position: 0% 0%;
  }
}

/* Fade-out celého preloaderu */
@keyframes fadeOutPreloader {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.animate-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-out;
}

.animate-up.visible{
  opacity: 1;
  transform: translateY(0);
}


body {
  background-color: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  max-width: 1200px;
  display: flex;
  justify-content: center;
  margin: auto;
}

a {
  text-decoration: none;
}

header {
  background: transparent;
  text-align: center;
}

.content {
  margin: 0 auto;
  padding: 40px 20px;
}

.logo-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--white);
  text-align: center;
  margin: 30px;
  padding-bottom: 80px;
}

.logo-title span {
  color: var(--gold);
}

.sidebar {
  position: absolute;
  top: 150px;
  left: 30px;
  width: 60px;
  background: var(--dark);
  border-radius: 16px;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  gap: 25px;
  z-index: 100;

  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;

  transform: translateX(-100px);
  opacity: 0;
  animation: slide 2s ease-out forwards;
  animation-delay: 3s;
}

.slide-right {
  transform: translateX(100px);
  opacity: 0;
  animation: slide 2s ease-out forwards;
  animation-delay: 3s;
}

.slide-up {
  transform: translateY(-100px);
  opacity: 0;
  animation: slide 2s ease-out forwards;
  animation-delay: 3s;
}

@keyframes slide {
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  margin: 16px 0;
  text-align: center;
}

.sidebar ul li a img {
  width: 32px;
  filter: brightness(100%);
  opacity: 0.8;
  filter: var(--icon-filter);
  transition: filter 0.2s ease;
}

.sidebar ul li a img:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Styly přepínače */
.switch {
  position: absolute;
  display: flex;
  width: 60px;
  height: 30px;
  top: 100px;
  left: 30px;
  background: var(--dark);
  padding: 10px 0;
  flex-direction: column;
  gap: 25px;
  z-index: 100;

  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  transition: .4s;
  border-radius: 30px;
  align-items: center;
}

.slider::before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  border-radius: 50%;
  left: 3px;
  bottom: 3px;
  background-color: var(--grey);
  transition: .4s;
  box-shadow: var(--shadow);
}

input:checked + .slider::before {
  transform: translateX(30px);
}

.icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  transition: filter 0.2s ease;
}

.sun {
  left: 4px;
}

.moon {
  right: 4px;
}


.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
}

.hero-left h1 {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 20px;
  color: var(--white);
}

.vin-form {
  margin-top: 10px;
}

.input-group {
  display: flex;
  align-items: center;
  background: var(--container);
  padding: 10px 15px;
  max-width: 420px;
  gap: 10px;
  margin-bottom: 10px;
  height: 60px;

  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

input[type="filr"] {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--white);
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 16px;
  color: var(--white);
}

.char-count {
  font-size: 14px;
  color: gray;
}

.btn-yellow {
  background: var(--gold);
  border: none;
  color: var(--black);
  font-weight: bold;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  margin: 0 0 0 auto;

}

.vin-modal {
  position: fixed;
  width: 100%;
  height: 100%;
  background-color: transparent;
  z-index: 1000;
  margin: auto;
}

.vin-modal.hidden {
  display: none;
}

.vin-modal-content {
  background-color: var(--container);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  text-align: left;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
}



.hero-subtext {
  margin-top: 8px;
  font-size: 14px;
  color: var(--white);
}

.hero-right {
  position: relative;
}

.hero-img {
  width: 110%;
  max-width: 700px;
}

.data-box {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-50%);
  background: var(--container);
  color: var(--white);
  padding: 20px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;

  width: 320px;
  height: 150px;

  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

@keyframes fadeCycle {
  0%, 100% { opacity: 1; }
  40% { opacity: 1; }
  50% { opacity: 0; }
  60% { opacity: 0; }
  70% { opacity: 1; }
}

.first > p{
  font-size: 24px;
  font-weight: 600;
}

.second > p{
  font-size: 40px;
}

.third > p{
  font-size: 24px;
  font-weight: 600;
}

.testimonials {
  display: flex;
  gap: 24px;
  margin-top: 60px;
  flex-wrap: wrap;
}

.testimonial {
  flex: 1;
  background: var(--container);
  border-radius: 16px;
  padding: 20px;
  min-width: 300px;

  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.stars {
  color: var(--gold);
  font-size: 20px;
  margin-bottom: 20px;
}

.user {
  margin-top: 10px;
  font-weight: bold;
  margin-top: 30px;
}

.user span {
  font-weight: normal;
  color: var(--grey);
}

.mode-switch {
  display: flex;
  gap: 10px;
  justify-content: left;
  margin-bottom: 20px;
  text-align: left;
}

.mode-btn {
  padding: 10px 20px;
  background-color: var(--grey);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bold;

  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.btn-info {
  height: 40px;
  width: 40px;
  background-color: var(--grey);
  color: var(--white);
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: bold;
  align-items: center;

  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
}


.mode-btn.active {
  background-color: var(--gold);
  color: var(--black);
}

.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

.ai-chat {
  background: var(--dark);
  border-radius: 20px;
  margin: 60px 0;
  padding: 20px;
  text-align: center;
  height: 450px;

  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.ai-chat h2 {
  font-size: 24px;
  margin-bottom: 20px;
}


.chatbox {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.chatbox input {
  flex: 1;
  background: var(--container);
  border: none;
  border-radius: 12px;
  padding: 14px;
  color: var(--white);
}

.send-btn {
  background: var(--gold);
  padding: 14px 20px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

.send-btn > p {
  color: var(--bg);
}

.about-section {
  display: flex;
  gap: 40px;
}

.about-box img {
  filter: var(--icon-filter);
}

.about-box {
  background: var(--container);
  padding: 30px;
  border-radius: 16px;
  width: 50%;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.about-box p {
  margin-bottom: 20px;
}

.about-box h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.about-box ul {
  padding-left: 0;
}

.about-box ul li {
  list-style-type: none;
  margin-bottom: 12px;
}

.about-box ul li::before {
  content: "✔ ";
  color: var(--gold);
  margin-right: 6px;
}

.btn-grey {
  background: var(--grey);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 10px;
  text-decoration: none;
}

footer {
  margin-top: 60px;
  background: var(--container);
  padding: 40px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 20px;
}

.footer-left {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  margin: auto;
}

.footer-right {
  display: flex;
  flex-direction: column;
  text-align: left;
  margin-left: 35px;
}


.footer-right ul {
  list-style: none;
}

.footer-right ul li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 18px;
}

.footer-right ul li a {
  color: var(--white);
}

.footer-right ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
}

.social-icons {
  display: flex;
  width: 24px;
}

@media (max-width: 1450px) {
  body {
   max-width: 1000px;  
  }
}

@media (max-width: 800px) {
.sidebar {
  top: 100px;
  left: 5%;
  width: 90%;
  padding: 10px 0;
  display: flex;
  flex-direction: column;
  z-index: 100;

  transform: translateY(100px);
  opacity: 0;
  animation: slide 2s ease-out forwards;
  animation-delay: 3s;
}

.slide-right {
  transform: translateY(100px);
  opacity: 0;
  animation: slide 2s ease-out forwards;
  animation-delay: 3s;
}

.slide-up {
  transform: translateY(100px);
  opacity: 0;
  animation: slide 2s ease-out forwards;
  animation-delay: 3s;
}


.sidebar ul {
  display: flex;
  margin: auto;
  gap: 12px;
}

.sidebar ul li {
  margin: 16px 0;
  text-align: center;
}

.sidebar ul li a img {
  width: 32px;
}

.switch {
  position: absolute;
  top: 35px;
  left: 5%;
  padding: 10px 0;
  flex-direction: column;
  gap: 25px;
  display: flex;
  width: 60px;
  height: 30px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  transition: .4s;
  border-radius: 30px;
}

.slider::before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  border-radius: 50%;
  left: 5%;
  bottom: 3px;
}

.icon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
}

.hero-left h1 {
  font-size: 32px;
  margin: 40px 0 20px 40px;
  text-align: center;
}

.vin-form {
margin: 0;
}

.input-group {
  padding: 10px 15px;
  width: 100%;
  margin: auto;
  gap: 10px;
  margin: 0 0 10px 20px;
}

input[type="text"] {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 16px;
}

.char-count {
  font-size: 14px;
}

.hero-subtext {
  width: 90%;
  margin: auto;
  margin-top: 8px;
  font-size: 16px;
  text-align: center;
}

.hero-right {
  display: flex;
  flex-wrap: wrap;
}

.hero-img {
  width: 90%;
  margin: auto;
  margin-top: -50px;
}

.mode-switch {
  display: flex;
  gap: 10px;
  justify-content: left;
  margin: 0 0 20px 20px;
  text-align: left;
  
}

.data-box {
  position: relative;
  margin: auto;
  padding: 20px;
  margin-top: 20px;
  text-align: center;
}

.first > p{
  font-size: 20px;
  font-weight: 600;
}

.second > p{
  font-size: 32px;
}

.third > p{
  font-size: 20px;
  font-weight: 600;
}

.ai-chat, footer{
  width: 90%;
  margin: 20px auto;
}

.about-section {
  flex-wrap: wrap;
}

.about-box {
  width: 90%;
  margin: 0 auto;
}

.testimonials {
  margin: auto;
  width: 90%;
}
}