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

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

header {
  position: fixed;
  width: 100vw;
  background: #fff;
  color: #002244;
  padding: 10px 0;
  z-index: 1000;
}

header nav {
  overflow-x: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  max-width: 100%;
}

header nav .logo {
  width: 150px;
  height: auto;
  margin-left: 20px;
}

header nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  max-width: 100%;
}

header nav ul li {
  margin: 0 15px;
}

header nav ul li a {
  color: #002244;
  text-decoration: none;
  font-size: 1.5em;
  font-weight: bold;
  width: auto;
}

.nav-links {
  padding-right: 20px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  flex-shrink: 0;
  cursor: pointer;
}

.menu-toggle .bar {
  height: 3px;
  width: 25px;
  background-color: #002244;
  margin: 4px 0;
  transition: 0.4s;
}

.side-panel {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #fff;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 60px;
  z-index: 1001;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.5);
  display: none;
}

.side-panel.active {
  width: 250px;
  display: block;
}

.side-panel .close-btn {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 36px;
  cursor: pointer;
}

.side-panel ul {
  list-style-type: none;
  padding: 0;
}

.side-panel ul li {
  padding: 8px 8px 8px 32px;
  text-align: left;
}

.side-panel ul li a {
  text-decoration: none;
  font-size: 25px;
  color: #002244;
  display: block;
  transition: 0.3s;
}

.side-panel ul li a:hover {
  color: #002244;
}

.section {
  min-height: 50vh;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

#home {
  background-image: url('images/home-bg.jpg');
  padding-bottom: 0;
}

#about-services {
  background-image: url('images/other-bg.jpg');
}

#contact {
  background-image: url('images/other-bg-1.jpg');
}

.content {
  display: flex;
  width: 100%;
  align-items: center;
  /* Centriranje elemenata po visini */
}

.left1,
.left2,
.left3 {
  width: 40%;
  padding: 20px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* Centriranje sadržaja unutar levog diva po visini */
  z-index: 100;
}

#home .content {
  align-items: flex-start;
}

.left1 {
  margin-top: 100px;
  width: 50%;
}

.left3 {
  width: 60%;
}

.right1,
.right2,
.right3 {
  width: 60%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
  overflow: hidden;
}

.right1 {
  margin-left: -15%;
  width: 75%;
}

.car-image {
  width: 100%;
  margin-top: 50px;
}

.left1 h1,
.left2 h1,
.left3 h1 {
  margin: 0;
  /* Uklanjanje margine ako je potrebno */
  font-size: 4em;
  /* Veličina fonta */
  line-height: 1.2;
  /* Prilagođavanje visine linije po potrebi */
}

.left1 h2,
.left2 h2,
.left3 h2 {
  font-size: 3.2em;
  /* Veličina fonta za H2 elemente */
}

.left1 p,
.left2 p,
.left3 p {
  font-size: 1.6em;
  /* Povećanje fonta pratećeg teksta */
  margin-bottom: .8em;
}

.buttons {
  margin-top: 20px;
  /* display: flex; */
  gap: 10px;
}

.buttons button {
  padding: 10px 20px;
  background-color: #003366;
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1em;
  font-weight: bold;
}

.buttons button:hover {
  background-color: #002244;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 2px solid #c0c0c0;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.2em;
}

form input::placeholder,
form textarea::placeholder {
  color: #ccc;
}

form button {
  background: #003366;
  color: #fff;
  border: none;
  padding: 15px 30px;
  cursor: pointer;
  font-size: 1.2em;
}

form button:hover {
  background: #002244;
}

.form-message {
  margin-top: 10px;
  font-size: 1.2em;
  color: #f00;
}

footer {
  background: #010822;
  color: #eee;
  padding: 20px 20px 20px 40px;
  font-size: 1.1em;
}

h3 {
  font-size: 1.6em;
}

.f-columns {
  display: flex;
  width: 100%;
  align-items: center;
}

.f-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.f-right {
  align-items: center;
  justify-content: center;
  padding: 0 50px;
}

@media (max-width: 768px) {
  nav {
    padding-right: 25px;
  }

  .menu-toggle {
    display: flex;
    max-width: 100%;
  }

  header nav ul {
    display: none;
  }

  .side-panel {
    max-width: 100%;
  }

  .side-panel ul li {
    margin: 10px 0;
  }

  .content,
  .f-columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .left1,
  .right1,
  .left2,
  .right2,
  .left3,
  .right3,
  .f-left,
  .f-right {
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .car-image {
    margin-top: 20px;
  }

  .right1 .car-image {
    transform: scale(1.2);
    transition: transform 0.3s ease-in-out;
    max-width: 100%;
  }

  .left1 h1,
  .left2 h1,
  .left3 h1 {
    font-size: 3.5em;
  }

  .left1 h2,
  .left2 h2,
  .left3 h2 {
    font-size: 2.8em;
  }

  .left1 p,
  .left2 p,
  .left3 p {
    font-size: 1.4em;
  }

  .buttons {
    text-align: center;
  }


  footer {
    font-size: 1em;
    padding: 20px 0;
  }

  h3 {
    text-align: center;
    font-size: 1.6em;
  }
}