:root {
    --primary-color: #002C54;
    --secondary-color: #FCF6F5;
    --accent-color: #CADCFC;
    --section-bg-color: #e5e9f0;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    /* background-color: var(--secondary-color); */
    background: radial-gradient(circle, #002C54, #FCF6F5) ;
    color: var(--primary-color);
    font-family: "Noto Serif", "Lora", serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


header, footer, main {
    width: 70%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

header, footer {
    position: relative;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-align: center;
    border-radius: 10px;
    margin: 1rem auto;
    padding: 1rem;
    width: 70%;
    box-sizing: border-box;
    z-index: 1;
    /* box-shadow: 5px 5px 5px var(--primary-color);  */
}

main {
    flex: 1;
    text-align: center;
    margin: 1rem auto;
    padding: 1rem;
    width: 70%;
}

#about,
#services,
#data {
    background-color: var(--section-bg-color);
    width: 100%;
    border-radius: 6px;
    margin: 1rem auto;
    padding: 1rem;
    box-sizing: border-box;
    animation: fadeInUp 1.5s ease-out forwards;
}

#about {
    margin-top: 0%;
}

nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

nav ul li a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    padding: 0.5rem 1rem;
}

nav ul li a:hover {
    color: var(--primary-color);
    transform: scale(1.3);
    background-color: whitesmoke;
}

 /* Add these new styles */
 .truck-wrapper {
    width: 100%;
    overflow: hidden; /* Prevents any overflow */
    display: flex;
    justify-content: center;
  }
  
  .truck-container {
    max-width: 600px;
    width: 100%;
    margin: 2rem auto;
    padding: 0 1rem;
    box-sizing: border-box; /* Ensures padding is included in width */
  }
  
  .truck-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    display: block; /* Removes any inline spacing */
  }
  
  /* Update existing image styles */
  .image-container img {
    min-width: auto;
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 5px;
  }

/* .image-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin: 2rem 0;
    align-items: center;
}

img {
    min-width: 300px;
    width: 600px;
    height: auto;
    border-radius: 5px;
    max-width: 100%;
} */

h1 {
    margin-top: 0;
    font-size:x-large;
}

h2 {
    margin-bottom: 0;
}

p {
    margin-top: 0;
}

section:target {
    border: 2px solid var(--primary-color);
    padding: 10px;
  }

form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    font-family: "Lora"
}

form fieldset {
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    padding: 2rem;
    background-color: var(--accent-color);
    margin: 1rem 0;
    font-size: large;
    font-family: "Lora";
}

form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    text-align: left;
    font-family: "Lora";
}

form input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    box-sizing: border-box;
}

input:focus {
    border: 2px solid var(--secondary-color);
    outline: none;
}

input:required {
    border: 2px solid var(--primary-color);
}

input:valid {
    border-color: green;
  }

  input::placeholder{
    font-style: italic;
  }

main ul {
    list-style-position: inside;
    padding-left: 0;
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

button {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    border-radius: 5px;
}

button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    margin-top: 1.5rem; 
}

.contact-icons a {
    color: var(--secondary-color);
    transition: color 0.3s ease;
}

.contact-icons a:hover {
    color: var(--accent-color);
    transform: scale(1.2) rotate(1turn);
}

#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1;
    border: none;
    outline: none;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    cursor: pointer;
    padding: 1rem;
    border-radius: 50%;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#scrollToTopBtn:hover {
    background-color: var(--accent-color);
}



/* Animations */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to   { opacity: 1; transform: translateY(0); }
  }


@media (max-width: 768px) {
    header, footer, main {
        width: 95%;
    }

    nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .image-container {
        gap: 1rem;
    }

    #about,
    #services,
    #data {
        padding: 1rem;
    }

    form fieldset {
        padding: 1rem;
    }

    /* Responsive */

/* Mobile adjustments */
@media (max-width: 768px) {
  .truck-container {
    padding: 0 1rem;
  }
  
  .image-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .image-container img {
    width: calc(100% - 2rem); /* Accounts for padding */
    margin: 0 auto;
  }
}
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.nav-menu {
    display: flex;
    gap: 1rem;
    list-style: none;
}

/* Hide hamburger on large screens */
@media (max-width: 768px) {
    .hamburger {
        display: flex; 
        font-size: 20px;
        color: var(--secondary-color);
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-menu {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 50px;
        left: 0;
        width: 200px;
        background: var(--primary-color);
        padding: 1rem;
        text-align: center;
        border-radius: 20px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }

    .nav-menu.active {
        display: flex;
    }

    .close-menu {
        background: none;
        border: none;
        color: var(--accent-color);
        font-size: 1.6rem;
        cursor: pointer;
        padding: 0.2rem;
        margin-top: 0.2rem;
      }
      
      .close-menu:hover {
        color: var(--secondary-color);
      }
}

@media (min-width: 769px) {
    .close-menu {
      display: none;
    }
  }

