html {
  scroll-behavior: smooth;
}

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

body {
    font-family: "Oswald", sans-serif;
}

h1 {
    font-size: 56px;
    font-weight: bold;
}

h2 {
    font-size: 32px;
    font-weight: bold;
}

h3 {
    font-size: 20px;
    font-weight: 600;
}

p {
    font-size: 16px;
    line-height: 1.6;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 9%;
    background-color: #315485;
    padding: 20px 100px;
    display: flex;
    justify-content: space-between;
    z-index: 100;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.businessName {
    font-size: 1.2rem;
    font-weight: bold;
    color:#F1FAEE;
}

.logo img {
    height: 40px;
    width: 25px;
    display: block;
}

.hamburgerToggle {
    display: none;
    font-size: 28px;
    color: #F1FAEE;
    cursor: pointer;
}

.navbar a {
    font-size: 18px;
    color: #F1FAEE;
    text-decoration: none;
    font-weight: 500;
    margin-left: 40px;
}

.navbar a:hover {
    color: #E96C1D;
}

.hero {
    position: relative;
    background-image: url(images/realThumb.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    color: black;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3); 
    z-index: 1;
}


.hero:after {
    content: '';
    display: block;
    height: 100px;
}

.heroContent {
    z-index: 2;
    position: relative;
}

.heroContent p {
    color: #F2F0EF;
}
.hero h1 {
    margin-bottom: 20px;
    color: #F2F0EF;
}

.btn {
    background-color: #E96C1D;
    padding: 14px 32px;
    font-size: 18px;
    font-weight: 600;
    color: #F1FAEE;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    display: inline-block;
    margin-top: 20px;
}

.btn:hover {
    background-color: #c92a38;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.wordScroll {
  overflow: hidden;
  white-space: nowrap;
  width: 100%;
  background-color: #F1FAEE;
  padding: 10px 0;
}

.scrollTrack {
  display: inline-block;
  animation: scroll-left 20s linear infinite;
}

.scrollTrack span {
  display: inline-block;
  font-size: 24px;
  font-weight: bold;
  color: #1D3557;
  padding: 0 50px;
}


.services {
    padding: 80px 20px;
    text-align: center;
    background-color: #FFFFFF;
    align-items: center;
    padding-top: 110px;
}

.services h2 {
    color: #1D3557;
    margin-bottom: 40px;
}

.serviceGrid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 600px;
    margin: 0 auto;
}

.serviceItem {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.serviceItem h3 {
    color: #1D3557;
    margin-bottom: 8px;
}

.serviceItem p {
    color: #457B9D;
    width: 95%;
}

.serviceItem img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.vehicles {
    text-align: center;
    padding-top: 10px;
}

.vehicles h2 {
    color: #1D3557;
    margin-bottom: 40px;
}

.sliderContainer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 50px auto;
  max-width: 960px; 
}

.sliderWrapper {
  width: 850px;
  height: 450px;
  max-width: 900px;
  overflow: hidden;
  border-radius: 12px;
  background-color: #F1FAEE;
  border:1px solid #457B9D;
  padding: 20px;
}

.sliderInnerContour {
    border: 1px solid #A8DADC;
    border-radius: 10px;
    width: calc(100%-20px);
    height: 420px;
    padding: 15px;
}

.sliderFlex {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.sliderText {
  flex: 1;
  text-align: left;
}

.sliderText h3 {
  color: #1D3557;
  margin-bottom: 10px;
}

.sliderText p {
  color: #343232;
}

.slider {
  flex: 1;
  display: flex;
  justify-content: center;
}

.slider img {
  width: 450px;
  height: 400px;
  display: none;
  border-radius: 12px;
}

img.displaySlide {
  display: block;
  animation: fade 1.5s;
}

.slider button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 25px;
    background-color: #FFFFFF;
    color: #343232;
    padding: 10px 15px;
    border: none;
    cursor: pointer;
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.prev, .next {
    font-size: 30px;
    background-color: #457B9D;
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.prev:hover, .next:hover {
    background-color: #1D3557;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.aboutWrap h2{
    text-align: center;
    color: #1D3557;
    margin-bottom: 20px;
}

.aboutAround {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.aboutWrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 50px;
}

.aboutImg img {
    width: 350px;
    height: 300px;
}

.aboutText {
    width: 30%;
    text-align: left;
}

.tracky {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    background-color: #F1FAEE;
    padding-bottom: 20px;
    margin-top: 80px;
    color: #1D3557;
    padding-top: 20px;
}

.tracky h2 {
    color: #1D3557;
    margin-bottom: 40px;
}

.tracky p {
    width: 85%;
    padding-bottom: 25px;
}
input[type="submit"]  {
    background-color: #E96C1D;
    display: inline-block;
    width: 90px;
    height: 30px;
    font-size: 16px;
    margin-top: 15px ;
    color: #F2F0EF;
    text-align: center;
    border-radius: 8px;
    border-style: none;
}

input[type="text"] {
    height: 40px;
    width: 600px;
    border: none;
    border-radius: 10px;
    background-color: #F2F0EF;
} 

.contactForm {
    width: 80%;
    max-width: 600px;
    margin: auto;
    text-align: center;
    color: #1D3557;
    padding-top: 80px;
}

.contactForm h2 {
    margin-bottom: 20px;
}

.flexForm {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.shortInput {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background-color: #F2F0EF;
    font-style: italic;
}

.message {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 10px;
    background-color: #F2F0EF;
    font-style: italic;
}

.contactForm .namee {
    width: 600px;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 10px;
    background-color: #F2F0EF;
    font-style: italic;
}

textarea.message {
    height: 120px;
    resize: none;
}

input[type="submit"]:hover {
    background-color: #a80000;
}


.infoo {
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: center;
    margin-top: 60px;
    text-align: center;
    flex-wrap: wrap;
}

.infoContent {
    border: 1px solid #457B9D;
    width: 280px;
    height: 120px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    background-color: #FFFFFF;
    margin: 0 auto;
}

.infoContent:nth-child(1), .infoContent:nth-child(3)  {
    background-color: #F1FAEE;
}

.infoCorner {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid #A8DADC;
    width: 257px;
    height: 108px;
    border-radius: 15px;
    margin: 5px auto 0 auto;
}

.footer {
  background: #315485;
  color: white;
  padding-top: 20px;
  margin-top: 150px;
  text-align: center;
}

.social-icons a {
  color: white;        
  text-decoration: none; 
  margin-right: 10px;  
  font-size: 1.5rem; 
}

#formStatus {
  margin-top: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 12px;
  border-radius: 6px;
  display: inline-block;
}

#formStatus.success {
  color: #155724;
  background: #d4edda;
  border: 1px solid #c3e6cb;
}

#formStatus.error {
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

#formStatus.sending {
  color: #0c5460;
  background: #d1ecf1;
  border: 1px solid #bee5eb;
}

@keyframes fade {
    from {opacity: .5}
    to {opacity: .1}
}

@keyframes scroll-left {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(0);
  }
}

@media screen and (max-width: 768px) {
    h1 { 
        font-size: 42px; 
    }
    h2 {
         font-size: 26px; 
        }
    h3 {
         font-size: 18px; 
        }
    p { 
        font-size: 15px; 
        }
    .navbar a { 
        font-size: 16px; 
        }

    .logo img {
    height: 40px;
    }

    .scrollTrack span {
        font-size: 16px;
        padding: 0 20px;
    }

    .serviceGrid {
        grid-template-columns: 1fr;
        gap: 20px;
        }

     .sliderContainer {
        max-width: 90%;
        margin: 30px auto;
    }

    .sliderWrapper {
        width: 100%;
        height: auto;
        padding: 15px;
    }

    .sliderInnerContour {
        height: auto;
        padding: 10px;
    }

    .sliderFlex {
        flex-direction: column;
        gap: 20px;
    }

    .sliderText {
        text-align: center;
        flex: none;
    }

    .sliderText h3 {
        font-size: 1.5 rem;
    }

    .sliderText p {
        font-size: 1rem;
    }

    .slider {
        flex: none;
        display: flex;
        justify-content: center;
    }

    .slider img {
        width: 100%;
        max-width: 350px;
        height: auto;
        border-radius: 12px;
    }

    .prev, .next {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .contactForm .namee, input[type="text"], .shortInput {
        width: 100%;
        }

    .contactForm {
        align-items: center;
    }   
    .flexForm {
        flex-direction: column;
        }

    .aboutWrapper {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .aboutText {
        width: 90%;
        text-align: center;
    }

    .aboutImg img {
    width: 250px;
    height: 200px;
    }  
    
    .hamburgerToggle {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #1D3557;
        flex-direction: column;
        align-items: center;
        display: none;
        padding: 10px 0;
        z-index: 99;
    }

    .navbar.active {
        display: flex;
    }

    .navbar a {
        margin: 10px 0;
    }

    .infoo {
        flex-direction: column;
        gap: 15px;
        margin-top: 40px;
        align-items: center;
    }

    .infoContent {
        width: 80%;
        max-width: 350px;
        height: auto;
    }

    .infoCorner {
        width: 90%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
        margin-top: 10px;
        padding: 15px 10px;
    }

    h3 {
        font-size: 16px;
    }

}
@media screen and (max-width: 480px) {
    h1 { font-size: 32px; }
    h2 { font-size: 22px; }
    h3 { font-size: 16px; }
    p { font-size: 14px; }
    .navbar a { font-size: 14px; }

    .logo img {
    height: 30px;
    }

    .scrollTrack span {
        font-size: 16px;
        padding: 0 20px;
    }

    .vehicles h2 {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .sliderWrapper {
        padding: 10px;
    }

    .sliderText h3 {
        font-size: 1.2rem;
    }

    .sliderText p {
        font-size: 0.9rem;
    }

    .slider img {
        max-width: 280px;
    }

    .prev, .next {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .aboutImg img {
    width: 250px;
    height: 200px;
    } 

    .contactForm {
        width: 95%;
        padding-top: 40px;
    }

    .shortInput, .contactForm .namee, .message {
        padding: 10px;
        font-size: 14px;
    }

    textarea.message {
        height: 100px;
    }

    .infoo {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .infoContent {
        width: 100%;
        max-width: 300px;
        height: auto;
    }

    .infoCorner {
        width: 95%;
        padding: 10px;
    }
    h3 {
        font-size: 16px;
    }
}
