@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600&display=swap');

:root{
  --light-blue:rgb(120, 203, 230);
  --swiper-navigation-sides-offset: 7rem;
  --swiper-pagination-color: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html, body{
  width: 100%;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 8px; 
  height: 12px; 
}

::-webkit-scrollbar-track {
  background: transparent; 
}

::-webkit-scrollbar-thumb {
  background: var(--light-blue);
  border-radius: 20px; 
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: linear-gradient(to top, rgba(30, 30, 30, 1) 0%, rgba(0, 0, 0, 1) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; 
}

.loader {
  border: 10px solid linear-gradient(to top, rgba(30, 30, 30, 1) 0%, rgba(0, 0, 0, 1) 100%);
  border-top: 5px solid var(--light-blue); 
  border-radius: 50%;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loadedContent{
  display: none;
}

body {
  font-family: 'Poppins', sans-serif;
  color: white;
  background-color: #000000;
  background-image: url('../images/bg.jpg'); 
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow-x: hidden;
  position: relative;
}

body::before{
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: -1; 
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 44px;
  background-image: linear-gradient(to top, rgba(30, 30, 30, 1) 0%, rgba(0, 0, 0, 0.9) 100%);
  background-size: 100% 200%;
  background-position: bottom;
  position: fixed;
  width: 100%; 
  height: 8vh;
  z-index: 1000;
  animation-name: slideDown;
  animation-duration: 1.5s;
}

.navResBtn {
  font-size: 30px;
  color: var(--light-blue);
  cursor: pointer;
  display: none;
  transition: 0.3s ease-in-out;
}

.navResBtn:hover{
  color: #fff;
}

#fill {
  display: none;
}

.logo {
  font-size: 21px;
  margin-left: 100px;
  font-weight: 600;
}

.logo span{
  color: #fff;
}

span {
  color: rgb(120, 203, 230);
}

nav ul {
  list-style-type: none;
  display: flex;
  gap: 40px;
  padding: 20px 50px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 21px;
  font-weight: 600;
}

nav ul li a:hover{
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 80%, rgba(120, 203, 230, 0.7) 20%);
}

ul#changeLinkBG li a.active {
  background: linear-gradient(to bottom, transparent 50%,rgba(120, 203, 230, 0.2) 50%); 
  color: white;
  border-bottom: 3px solid lightblue;
  padding: 5px 10px; 
}

.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
  margin-left: auto; 
  margin-top: -5px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  margin-top: 5px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  border: 2px solid #fff;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  top: 0;
  bottom: 2px;
  background-color: #656565;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: rgba(120, 203, 230, 0.8);
}

input:checked + .slider:before {
  transform: translateX(29px);
  background-color: #fff;
}

.scroll-div{
  position: fixed;
  height: 5px;
  left: 0;
  top: 0%;
  width: 100%;
  background-color: rgb(120, 203, 230);
  animation: scrollFill linear;
  animation-timeline: scroll();
  z-index: 1000;
}

@keyframes scrollFill{
  from{
    width: 0px;
  }
  to{
    width: 100%;
  }
}

.content {
    z-index: 1;
}

.main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  left: 5%;
  text-align: left;
  position: relative;
  animation-name: slideDown;
  animation-duration: 1.5s;
}

.content h1 {
  font-size: 100px;
  margin-bottom: 20px;
}

.content h2{
  font-size: 40px;
  margin-bottom: 50px;
}

h2 span {
  border-right: .05em solid;
  margin-left: 10px;
  animation: borderAnim 4s steps(1) infinite;
}

@keyframes borderAnim {
  50% {
    border-color: transparent;
  }
}

@keyframes slideDown {
  from {
    opacity: 0.3;
    filter: blur(20px);
    color: transparent;
    transform: translateY(-1000px);
  }
  
  to {
    transform: translateY(0px);
    filter: blur(0px);
    opacity: 1;
  }
}

.btn {
  width: 400px;
  background-color: transparent;
  border: 2px solid #fff;
  color: #fff;
  cursor: pointer;
  display: inline-block;
  font-size: 18px;
  font-weight: 600;
  padding: 16px 21px;
  position: relative;
  text-align: center;
  text-decoration: none;
  transition: .3s ease-in-out;
}

.btn:hover{
  background: #fff;
  color: #000;
}

.btn span{
  color: #fff;
  font-size: 22px;
  margin-left: 10px;
  transition-delay: 0.3s;
  transition: 0.6s ease;
}

.btn:hover span{
  color: #000;
  transform: translateX(10px);
}

.ponudba {
  padding: 60px 0;
  color: white;
  text-align: center;
  transform: translateY(50px); 
  filter: blur(20px);
  transition: transform 0.6s ease-out, filter 0.3s ease-out;
}

.ponudba.visible {
  transform: translateY(0);
  filter: blur(0px);
}

.ponudba h2 {
  font-size: 70px;
  background: -webkit-linear-gradient(top right, #c7c7c7, var(--light-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff; 
  margin-bottom: 50px;
}

.ponudba-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 0 80px;
}

.box {
  padding: 30px 20px;
  width: 24%;
  text-align: left;
  background-color: rgba(242, 242, 242, 0.6);
  transition: 0.4s ease;
  border-radius: 20px;
}

.box:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
  background: #fff;
  color: #000;
}

.box i {
  display: inline-block;
  font-size: 30px;
  color: #fff; 
  transition: color 0.4s ease;
}

.box:hover i {
  color: #000; 
}

.box h3 {
  display: inline-block;
  margin-left: 10px;
  font-size: 30px;
  color: #fff;
  font-weight: bold;
  transition: color 0.4s ease;
}

.box:hover h3 {
  color: #000;
}

.box p {
  font-size: 18px;
  color: rgb(28, 28, 28);
  line-height: 1.6;
  margin-top: 20px;
  font-weight: bolder;
}

.vozila {
  padding: 60px 0;
  text-align: center;
  transform: translateY(50px); 
  filter: blur(20px);
  transition: transform 0.6s ease-out, filter 0.3s ease-out;
}

.vozila.visible {
  transform: translateY(0);
  filter: blur(0px);
}

.vozila h2 {
  font-size: 60px;
  margin-bottom: 40px;
  background: -webkit-linear-gradient(top right, #c7c7c7, var(--light-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.vozila h2::before {
  content: 'UGODNA RABLJENA VOZILA';
}

.vozila-container {
  justify-content: space-between;
  margin: 0 auto;
  height: auto; 
  width: 95%;
  display: flex;
  flex-wrap: wrap;
  padding: 0px 20px; 
}

.avtoLink{
  width: 120px;
  height: 35px;
  margin-top: -35px;
  z-index: -1;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  background: #f5f5f5;
  text-align: center;
  position: absolute;
  cursor: pointer;
}

.car-box .avtoLink p{
  color: #000;
  margin-top: 5px;
  font-size: 18px;
  font-weight: bold;
}

.car-box{
  width: 31.5%;
  height: 600px;
  border-radius: 20px;
  margin: 0 auto;
  margin-top: 20px;
  border-bottom: 1px solid #fff;
  background: rgba(0, 0, 0, 0.7);
  transition: 0.3s ease;
}

.car-box:hover{
  transform: scale(1.04);
}

.car-box img{
  width: 100%;
  height: 60%;
  border-top-right-radius: 20px;
  border-left: 2px solid #fff;
  border-bottom-left-radius: 5px;
  border-bottom: 2px solid #fff;
  cursor: pointer;
}

.car-box h3{
  font-size: 30px;
  font-weight: bold;
  margin-top: 30px;
  color: var(--light-blue);
}

.car-info p{
  font-size: 22px;
  margin-top: 10px;
  line-height: 1.6;
  color: white;
  text-align: center;
}

.priceMedia{
  font-weight: bold; font-size: 25px; margin-top: 20px;
}

.kontakt{
  padding: 60px 0;
  color: white;
  text-align: center;
  position: relative;
  transform: translateY(50px); 
  filter: blur(20px);
  transition: transform 0.6s ease-out, filter 0.3s ease-out;
  height: 80vh;
}

.kontakt.visible {
  transform: translateY(0);
  filter: blur(0px);
}

.kontakt h2{
  font-size: 70px;
  margin-bottom: 40px;
  background: -webkit-linear-gradient(top right, #c7c7c7, var(--light-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lokacija{
  width: 100%;
  position: relative;
  left: 15%;
  display: flex;
  flex-wrap: wrap;
}

.lokacija iframe{
  height: 50vh;
  width: 35%;
  left: 0;
  top: 0;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.kontakt-form{
  background-image: linear-gradient(to top, rgba(30, 30, 30, 0.9) 0%, rgba(0, 0, 0, 0.7) 100%);
  background-size: 100% 200%;
  background-position: bottom;
  height: 50vh;
  text-align: left;
  width: 30%;
  padding: 20px;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.3);
}

.kontakt-form form {
  display: flex;
  flex-direction: column;
}

.kontakt-form form label {
  margin-bottom: 5px;
  font-weight: bold;
}

.kontakt-form form input, .kontakt-form form textarea {
  margin-bottom: 15px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 100%;
}

#message {
  resize: none; 
}

.formBtn {
  padding: 15px;
  margin-top: 6px;
  color: white;
  border: 2px solid #fff;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  width: 70%;
  background: transparent;
  transition: 0.3s ease-in-out;
}

.formBtn:hover {
  background: #fff;
  color: #000;
}


.formBtn span{
  color: #fff;
  font-size: 22px;
  margin-left: 15px;
  transition-delay: 0.3s;
  transition: 0.6s ease;
}

.formBtn:hover span{
  color: #000;
  transform: translateX(10px);
}

.footer {
  background-color: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 20px 0;
  width: 100%;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-left, .footer-center, .footer-right {
  flex: 1;
}

.footer-left p, .footer-right p {
  margin: 10px 100px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-icons {
  text-align: center;
}

.footer-icons i{
  margin-right: 6px;
}

.footer-icons a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  margin: 0 15px;
  transition: color 0.3s ease;
  text-decoration: none;
}

.footer-icons a:hover {
  color: rgba(120, 203, 230, 1);
}

.footer-right a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-right a:hover {
  color: rgba(120, 203, 230, 1);
}

@media screen and (max-width: 1200px) {
  body{
    background-position: center 0px;
  }
  .content h1 {
    font-size: 60px;
  }

  .content h2 {
    font-size: 30px;
  }

  .logo {
    font-size: 18px;
    margin-left: 20px;
    font-weight: 500;
  }

  nav ul li a {  
    font-size: 18px;
  }

  .btn {
    width: 300px;
    font-size: 16px;
  }

  .car-box {
    width: 48%; 
    margin: 30px auto; 
  }

  .box{
    width: 48%;
    margin: 20px auto; 
  }

  .lokacija{
    left: 10%;
  }

  .lokacija iframe{
    width: 40%;
  }

  .kontakt-form{
    width: 40%;
  } 
}

@media screen and (max-width: 992px) {
  .content h1 {
    font-size: 50px;
  }

  .navResBtn {
    display: block;
    order: 1;
  }

  #fill:checked ~ ul {
    right: 0;
  }

  ul {
    position: fixed;
    background-image: linear-gradient(to top, rgba(30, 30, 30, 1) 0%, rgba(0, 0, 0, 0.7) 100%);
    background-size: 100% 200%;
    background-position: bottom;
    top: 80px;
    right: -100%;
    width: 30%;
    height: 40vh;
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: all 0.3s;
  }
  
  ul li a {
    font-size: 20px;
  }

  .switch {
    margin-left: -5px;
  }
  
  .content h2 {
    font-size: 28px;
  }
  
  .btn {
    width: 280px;
    font-size: 14px;
  }

  .car-box {
    width: 100%; 
    margin: 30px auto; 
  }
  
  .vozila-container {
    padding: 0 10px; 
  }

  .car-box h3 {
    font-size: 26px; 
  }

  .car-info p {
    font-size: 18px; 
  }

  .car-box{
    width: 60%;
  }

  .lokacija{
    left: 10%;
  }

  .lokacija iframe{
    width: 40%;
  }

  .kontakt-form{
    width: 40%;
  } 
}

@media screen and (max-width: 768px) {
  .content h1 {
    font-size: 40px;
    margin-top: -150px;
  }

  .main{
    text-align: center;
    margin-right: 20px;
  }

  ul{
    height: 35vh;
    margin-top: 10px;
    width: 30%;
  }

  .switch{
    display: none;
  }

  ul li a{
    font-size: 18px !important;
  }

  .box {
    width: 100%; 
  }

  .ponudba-container {
      width: 100%; 
  }

  .content h2 {
    font-size: 24px;
  }

  .btn {
    width: 250px;
    font-size: 12px;
  }
  .btn span{
    font-size: 16px;
  }

  .car-box{
    width: 80%;
  }

  .lokacija iframe{
    display: none;
  }

  .kontakt-form{
    width: 80%;
    height: 50vh;
  } 

  .contact-info p {
    font-size: 15px;
    font-weight: 500;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-left p, .footer-center p, .footer-right p {
    font-size: 12px;
  }

  .footer-left, .footer-center, .footer-right {
    margin-bottom: 10px;
  }

  .footer-icons a {
    font-size: 14px;
    margin: 0 10px;
  }
}

@media screen and (max-width: 576px) {
  .logo{
    font-size: 16px;
    margin-left: -20px;
  }
  
  .content h1 {
    font-size: 35px;
  }

  .content h1 span::before{
    display: block;
    content: '';
  }

  .content h2 {
    font-size: 18px;
  }

  ul{
    width: 50%;
    margin-top: 10px;
    height: 33vh;
  }

  .switch{
    display: none;
  }

  .btn {
    width: 250px;
    font-size: 16px;
    padding: 12px 16px;
  }

  .ponudba h2{
    font-size: 45px;
  }
  
  .vozila h2{
    font-size: 35px;
  }

  .vozila h2::before {
    content: 'UGODNA VOZILA';
  }

  .box{
    width: 100%;
  }

  .box i{
    font-size: 23px;
  }

  .box h3{
    font-size: 18px;
  }

  .box p{
    font-size: 14px;
  }

  .car-box{
    height: 380px;
  }

  .car-box img{
    height: auto;
    min-width: 100%;
  }

  .car-box h3{
    font-size: 18px;
  }

  .car-box .priceMedia{
    font-size: 20px;
  }

  .car-box p{
    font-size: 14px;
  }

  .kontakt h2{
    font-size: 45px;
  }

  .kontakt-form{
    height: auto;
  } 

  .formBtn{
    width: 100%;
    font-size: 16px;
  }
}
