/* Color Palette */
:root {
    --celeste: #d2d3c5;
    --celtic: #153223;
    --eucalyptus: #257354;
    --oxley: #79a28e;
    --green-pea: #235941;
    --tobacco-brown: #6a5849;
    --corduroy: #57635c;
    --cape-cod: #404744;
    --sepia-skin: #916240;
    --oslo-gray: #849494;
    --Atlantis: #94c943;
    --Bon-Jour: #e3dddd;
    --Black-Haze: #e7e8e8;
    --background-color: #17442e;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    background-color: var(--background-color);
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* Header & Navigation */
.header-content {
    display: flex;
    align-items: center;
    padding: 20px;
    position: relative;
}

.hamburger {
    position: fixed; /* Makes the menu float on the screen */
    top: 20px; /* Distance from the top */
    left: 20px; /* Distance from the left */
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background-color: var(--celeste);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Keeps it above other elements */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds a shadow for better visibility */
}

.hamburger span {
    display: block;
    width: 20px;
    height: 3px;
    background-color: var(--background-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Styling for active (open) state */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--eucalyptus);
}

.hamburger.active span:nth-child(2) {
    opacity: 0; /* Hide the middle bar */
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--eucalyptus);
}

/* Updated Styles for Navigation Menu */
.nav-menu {
    position: fixed; /* Keeps it floating on the screen */
    top: 20px; /* Aligns below the hamburger menu */
    left: 65px; /* Matches the hamburger's left position */
    background-color: var(--celeste); /* Menu background color */
    color: var(--background-color); /* Menu text color */
    width: 200px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds shadow for better visibility */
    display: none; /* Hide by default */
    z-index: 1000; /* Keeps it above other content */
}

.nav-menu.show {
    display: block; /* Makes the menu visible */
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    margin: 10px 0;
}

.nav-menu ul li a {
    color: var(--background-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    transition: background-color 0.3s ease;
    display: block;
}

.nav-menu ul li a:hover {
    color: var(--eucalyptus); /* Changes color on hover */
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    width: 60px;
    height: 30px;
    background-color: var(--oxley);
    border-radius: 15px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.toggle-circle {
    width: 35px;
    height: 35px;
    background-color: var(--celeste);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--background-color);
    position: absolute;
    transition: 0.3s;
    left: 2px;
}

.language-toggle.esp .toggle-circle {
    left: 28px;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 5px 20px;
    text-align: center;
}

.logo-container img {
    max-width: 250px;
    height: auto;
}

.hero-text h1 {
    font-size: 2.75rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--celeste);
}

.hero-text p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: var(--celeste);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--celeste);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Latest News Section */
.latest-news {
    padding: 40px 0;
    background-color: var(--background-color);
    color: var(--celeste);
    width: 100%;
}

.news-container {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.news-item {
    flex: 0 0 200px;
    min-width: 200px;
    background-color: var(--celtic);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 250px;
    display: flex;
    flex-direction: column;
}

.news-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.news-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.news-date {
    color: var(--oxley);
    font-size: 0.8rem;
}

.news-title {
    color: var(--celeste);
    font-size: 1rem;
    font-weight: bold;
    margin: 6px 0;
}

.show-more-btn {
    background-color: var(--Atlantis);
    color: var(--celtic);
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    width: fit-content;
    margin-top: auto;
}

.show-more-btn:hover {
    background-color: var(--celeste);
}

/* Statistics Section */
.statistics {
    padding: 40px 0;
    background-color: var(--background-color);
    color: var(--celeste);
    position: relative;
}

.stats-container {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.stat-item {
    flex: 0 0 200px;
    min-width: 200px;
    background-color: var(--celtic);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--Atlantis);
    margin: 10px 0;
}

.stat-label {
    font-size: 1rem;
    color: var(--celeste);
}

/* About Section */
.about-section {
    padding: 30px;
    background-color: var(--eucalyptus);
    border-radius: 20px;
    margin: 20px auto;
    color: var(--celeste);
    max-width: 1000px;
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
}

.mission-vision-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.info-card {
    flex: 1;
    background-color: var(--celtic);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.info-card h3 {
    font-size: 1.75rem;
    color: var(--celeste);
    margin-bottom: 15px;
}

.info-card p {
    color: var(--celeste);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Modal */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}


.news-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
    overflow-y: auto;
}

.news-modal:not(.hidden) {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    margin: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.article-content {
    color: var(--celeste);
    line-height: 1.6;
    margin-top: 20px;
}

/* Info Icon */
.info-icon {
    width: 16px;
    height: 16px;
    background-color: var(--oxley);
    color: var(--celeste);
    border-radius: 50%;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: background-color 0.3s ease;
    position: relative;
    margin-left: 8px;
}

.info-icon:hover {
    background-color: var(--Atlantis);
}

.info-icon[title]:hover::before {
    content: attr(title);
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background-color: var(--cape-cod);
    color: var(--celeste);
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    width: max-content;
    max-width: 250px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Core values and hotshot */
.hotshot-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
}

.hotshot-background {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    position: relative;
    margin-top: -63px; /* Move trailer up slightly */
}

.core-values-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    background-color: var(--eucalyptus);
    border-radius: 20px;
    padding: 20px;
    margin: 0 auto;
    margin-bottom: -30px; /* Slightly overlap trailer */
    margin-left: 400px; /* Desktop offset */
    z-index: 10;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.core-values-container h2 {
    text-align: center;
    color: var(--celeste);
    font-size: 2rem;
    margin-bottom: 20px;
}

.values-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.value-item {
    flex: 1;
    background-color: var(--celtic);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.value-item h3 {
    color: var(--celeste);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.value-item p {
    color: var(--celeste);
    font-size: 0.9rem;
    line-height: 1.3;
}

/* How We Help section */

.how-we-help {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
}

.help-container {
    width: 50%;
    max-width: 800px;
    background-color: var(--eucalyptus);
    border-radius: 20px;
    padding: 15px;
    margin: 0 auto;
    margin-bottom: -155px;
    margin-right: 400px;
    z-index: 10;
    text-align: center;
}

.help-container h2 {
    font-size: 2rem;
    color: var(--celeste);
    margin-bottom: 20px;
}

.help-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.help-item {
    background-color: var(--celtic);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.help-item h3 {
    color: var(--celeste);
    font-size: 1.3rem;
}

.flatbed-background {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    position: relative;
    margin-top: -63px;
}

/* Animation */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animated .flatbed-background {
    animation: slideInFromLeft 1.5s ease-out forwards;
}

/* Who We Serve section */
.who-we-serve {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
}

.serve-container {
    width: 90%;
    max-width: 700px;
    background-color: var(--eucalyptus);
    border-radius: 20px;
    padding: 25px;
    margin: 0 auto;
    margin-bottom: -90px;
    margin-left: 325px; /* Positioned to the right */
    z-index: 10;
    text-align: center;
}

.serve-container h2 {
    font-size: 2rem;
    color: var(--celeste);
    margin-bottom: 20px;
}

.serve-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.serve-item {
    background-color: var(--celtic);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.serve-item h3 {
    color: var(--celeste);
    font-size: 1.3rem;
}

.serve-background {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    position: relative;
    margin-top: -63px;
    transform: scaleX(-1); /* Flip the truck horizontally */
}

/* Color Palette */
:root {
    --celeste: #d2d3c5;
    --celtic: #153223;
    --eucalyptus: #257354;
    --oxley: #79a28e;
    --green-pea: #235941;
    --tobacco-brown: #6a5849;
    --corduroy: #57635c;
    --cape-cod: #404744;
    --sepia-skin: #916240;
    --oslo-gray: #849494;
    --Atlantis: #94c943;
    --Bon-Jour: #e3dddd;
    --Black-Haze: #e7e8e8;
    --background-color: #17442e;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Styling */
body {
    background-color: var(--background-color);
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

/* Header & Navigation */
.header-content {
    display: flex;
    align-items: center;
    padding: 20px;
    position: relative;
}

.hamburger {
    position: fixed; /* Makes the menu float on the screen */
    top: 20px; /* Distance from the top */
    left: 20px; /* Distance from the left */
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    background-color: var(--celeste);
    border-radius: 8px;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
    z-index: 1001; /* Keeps it above other elements */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds a shadow for better visibility */
}

.hamburger span {
    display: block;
    width: 20px;
    height: 3px;
    background-color: var(--background-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Styling for active (open) state */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
    background-color: var(--eucalyptus);
}

.hamburger.active span:nth-child(2) {
    opacity: 0; /* Hide the middle bar */
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: var(--eucalyptus);
}

/* Updated Styles for Navigation Menu */
.nav-menu {
    position: fixed; /* Keeps it floating on the screen */
    top: 20px; /* Aligns below the hamburger menu */
    left: 65px; /* Matches the hamburger's left position */
    background-color: var(--celeste); /* Menu background color */
    color: var(--background-color); /* Menu text color */
    width: 200px;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3); /* Adds shadow for better visibility */
    display: none; /* Hide by default */
    z-index: 1000; /* Keeps it above other content */
}

.nav-menu.show {
    display: block; /* Makes the menu visible */
}

.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu ul li {
    margin: 10px 0;
}

.nav-menu ul li a {
    color: var(--background-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    display: block;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    transition: background-color 0.3s ease;
    display: block;
}

.nav-menu ul li a:hover {
    color: var(--eucalyptus); /* Changes color on hover */
}

/* Language Toggle */
.language-toggle {
    display: flex;
    align-items: center;
    width: 60px;
    height: 30px;
    background-color: var(--oxley);
    border-radius: 15px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
}

.toggle-circle {
    width: 35px;
    height: 35px;
    background-color: var(--celeste);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--background-color);
    position: absolute;
    transition: 0.3s;
    left: 2px;
}

.language-toggle.esp .toggle-circle {
    left: 28px;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 5px 20px;
    text-align: center;
}

.logo-container img {
    max-width: 250px;
    height: auto;
}

.hero-text h1 {
    font-size: 2.75rem;
    font-weight: bold;
    line-height: 1.2;
    color: var(--celeste);
}

.hero-text p {
    font-size: 1.2rem;
    margin-top: 10px;
    color: var(--celeste);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--celeste);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Latest News Section */
.latest-news {
    padding: 40px 0;
    background-color: var(--background-color);
    color: var(--celeste);
    width: 100%;
}

.news-container {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    flex-wrap: wrap;
}

.news-item {
    flex: 0 0 200px;
    min-width: 200px;
    background-color: var(--celtic);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    height: 250px;
    display: flex;
    flex-direction: column;
}

.news-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.news-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.news-date {
    color: var(--oxley);
    font-size: 0.8rem;
}

.news-title {
    color: var(--celeste);
    font-size: 1rem;
    font-weight: bold;
    margin: 6px 0;
}

.show-more-btn {
    background-color: var(--Atlantis);
    color: var(--celtic);
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    width: fit-content;
    margin-top: auto;
}

.show-more-btn:hover {
    background-color: var(--celeste);
}

/* Statistics Section */
.statistics {
    padding: 40px 0;
    background-color: var(--background-color);
    color: var(--celeste);
    position: relative;
}

.stats-container {
    display: flex;
    gap: 20px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
}

.stat-item {
    flex: 0 0 200px;
    min-width: 200px;
    background-color: var(--celtic);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: var(--Atlantis);
    margin: 10px 0;
}

.stat-label {
    font-size: 1rem;
    color: var(--celeste);
}

/* About Section */
.about-section {
    padding: 30px;
    background-color: var(--eucalyptus);
    border-radius: 20px;
    margin: 20px auto;
    color: var(--celeste);
    max-width: 1000px;
}

.about-header {
    text-align: center;
    margin-bottom: 30px;
}

.mission-vision-container {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.info-card {
    flex: 1;
    background-color: var(--celtic);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.info-card h3 {
    font-size: 1.75rem;
    color: var(--celeste);
    margin-bottom: 15px;
}

.info-card p {
    color: var(--celeste);
    line-height: 1.5;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

/* Modal */
.modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}


.news-modal {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0.3s;
}

.news-modal:not(.hidden) {
    visibility: visible;
    opacity: 1;
}

.modal-content {
    background: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.article-content {
    color: var(--celeste);
    line-height: 1.6;
    margin-top: 20px;
}

/* Info Icon */
.info-icon {
    width: 16px;
    height: 16px;
    background-color: var(--oxley);
    color: var(--celeste);
    border-radius: 50%;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: background-color 0.3s ease;
    position: relative;
    margin-left: 8px;
}

.info-icon:hover {
    background-color: var(--Atlantis);
}

.info-icon[title]:hover::before {
    content: attr(title);
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background-color: var(--cape-cod);
    color: var(--celeste);
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1000;
    width: max-content;
    max-width: 250px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Core values and hotshot */
.hotshot-section {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
}

.hotshot-background {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    position: relative;
    margin-top: -63px; /* Move trailer up slightly */
}

.core-values-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    background-color: var(--eucalyptus);
    border-radius: 20px;
    padding: 20px;
    margin: 0 auto;
    margin-bottom: -30px; /* Slightly overlap trailer */
    margin-left: 400px; /* Desktop offset */
    z-index: 10;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.core-values-container h2 {
    text-align: center;
    color: var(--celeste);
    font-size: 2rem;
    margin-bottom: 20px;
}

.values-container {
    display: flex;
    gap: 15px;
    justify-content: space-between;
}

.value-item {
    flex: 1;
    background-color: var(--celtic);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
}

.value-item h3 {
    color: var(--celeste);
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.value-item p {
    color: var(--celeste);
    font-size: 0.9rem;
    line-height: 1.3;
}

/* How We Help section */

.how-we-help {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
}

.help-container {
    width: 50%;
    max-width: 800px;
    background-color: var(--eucalyptus);
    border-radius: 20px;
    padding: 15px;
    margin: 0 auto;
    margin-bottom: -155px;
    margin-right: 400px;
    z-index: 10;
    text-align: center;
}

.help-container h2 {
    font-size: 2rem;
    color: var(--celeste);
    margin-bottom: 20px;
}

.help-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.help-item {
    background-color: var(--celtic);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.help-item h3 {
    color: var(--celeste);
    font-size: 1.3rem;
}

.flatbed-background {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    position: relative;
    margin-top: -63px;
}

/* Animation */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animated .flatbed-background {
    animation: slideInFromLeft 1.5s ease-out forwards;
}

/* Who We Serve section */
.who-we-serve {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding: 40px 20px;
}

.serve-container {
    width: 90%;
    max-width: 700px;
    background-color: var(--eucalyptus);
    border-radius: 20px;
    padding: 25px;
    margin: 0 auto;
    margin-bottom: -90px;
    margin-left: 325px; /* Positioned to the right */
    z-index: 10;
    text-align: center;
}

.serve-container h2 {
    font-size: 2rem;
    color: var(--celeste);
    margin-bottom: 20px;
}

.serve-items-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.serve-item {
    background-color: var(--celtic);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.serve-item h3 {
    color: var(--celeste);
    font-size: 1.3rem;
}

.serve-background {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    display: block;
    position: relative;
    margin-top: -63px;
    transform: scaleX(-1); /* Flip the truck horizontally */
}

/* Animation */
@keyframes slideInFromRight {
    0% {
        transform: translateX(100%) scaleX(-1);
        opacity: 0;
    }
    100% {
        transform: translateX(0) scaleX(-1);
        opacity: 1;
    }
}

.animated .serve-background {
    animation: slideInFromRight 1.5s ease-out forwards;
}

.dispatching-services {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.services-container {
    background-color: var(--eucalyptus);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 30px;
}

.logo-services {
    flex: 0 0 auto;
}

.logo-services img {
    width: 275px;
    height: auto;
}

.services-content {
    flex: 1;
    color: var(--celeste);
}

.services-content h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--celeste);
}

.services-content p {
    font-size: 1.1rem;
    color: var(--celeste);
    margin-bottom: 20px;
    line-height: 1.4;
}

.services-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-content li {
    color: var(--celeste);
    padding-left: 20px;
    position: relative;
    font-size: 1.1rem;
    line-height: 1.3;
}

.services-content li::before {
    content: "•";
    color: var(--Atlantis);
    position: absolute;
    left: 0;
}

.contact-cta {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    color: var(--background-color);
}

.contact-cta h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-btn {
    background-color: var(--Atlantis);
    color: var(--celtic);
    padding: 15px 60px;
    border: none;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact-btn:hover {
    background-color: var(--celeste);
}

.footer {
    background-color: var(--celtic);
    color: var(--celeste);
    padding: 60px 0 20px;
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-section {
    flex: 1;
    min-width: 200px;
}

.logo-section {
    flex: 2;
    min-width: 300px;
}

.footer-logo {
    width: 200px;
    height: auto;
}

.footer-section h3 {
    color: var(--Atlantis);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--celeste);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--Atlantis);
}

.contact-info {
    line-height: 1.8;
}

.footer-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 20px;
    text-align: center;
    border-top: 1px solid var(--eucalyptus);
}

/* Add this to your styles.css file */

.contact-modal {
    max-width: 800px;
    padding: 30px;
    background-color: var(--background-color);
}

.contact-modal h2 {
    color: var(--celeste);
    font-size: 2rem;
    margin-bottom: 25px;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--celeste);
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"] {
    padding: 10px;
    border: 1px solid var(--oxley);
    border-radius: 4px;
    background-color: var(--cape-cod);
    color: var(--celeste);
    font-size: 1rem;
}

#fleetSize {
    width: 100px !important; /* Force the narrow width */
    padding: 10px;
    border: 1px solid var(--oxley);
    border-radius: 4px;
    background-color: var(--cape-cod);
    color: var(--celeste);
    font-size: 1rem;
}

/* Hide number input arrows for Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide number input arrows for Firefox */
input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

/* Make the fleet size form group inline */
.form-group.fleet-size {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}

.form-group.fleet-size label {
    flex: 0 0 auto;
    margin: 0;
}

.form-group input:focus {
    outline: none;
    border-color: var(--Atlantis);
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.radio-item label,
.checkbox-item label {
    color: var(--celeste);
    font-size: 0.9rem;
}

.submit-btn {
    background-color: var(--Atlantis);
    color: var(--celtic);
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
    align-self: center;
}

.submit-btn:hover {
    background-color: var(--celeste);
}

/* Style for required field indicator */
.form-group label::after {
    content: " *";
    color: var(--Atlantis);
}

/* Remove required indicator for checkbox and radio labels */
.radio-item label::after,
.checkbox-item label::after {
    content: none;
}

/* Add focus styles for radio and checkbox inputs */
input[type="radio"]:focus + label,
input[type="checkbox"]:focus + label {
    color: var(--Atlantis);
}

/* Custom radio and checkbox styles */
input[type="radio"],
input[type="checkbox"] {
    accent-color: var(--Atlantis);
    width: 16px;
    height: 16px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-overlay.hidden {
    display: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #ccc;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 18px;
    border-radius: 5px;
    display: none; /* Initially hidden */
}

.loading.visible {
    display: block;
}

/* ------------------------------------------------Responsive Design--------------------------------------------------------- */

@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
    }

    .hero-text h1 {
        font-size: 1.8rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .news-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .news-item {
        flex: 0 0 calc(50% - 15px);
        min-width: calc(50% - 15px);
        scroll-snap-align: start;
    }

    .stats-container {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .stat-item {
        flex: 0 0 150px;
        min-width: 150px;
        padding: 15px;
    }

    .mission-vision-container {
        flex-direction: column;
    }
}

/* Core values responsive */

@media (max-width: 768px) {
    .core-values-container {
        margin-left: 105px; /* Center container for mobile */
        margin-bottom: -25px; /* Adjust overlap */
        width: 75%; /* Ensure it fits on smaller screens */
        padding: 15px; /* Reduce padding */
    }

    .hotshot-background {
        max-width: 500px; /* Resize trailer for mobile */
        margin-top: -10px; /* Adjust trailer position */
    }

    .core-values-container h2 {
        font-size: 1.5rem; /* Adjust heading size */
    }

    .value-item h3 {
        font-size: 1.2rem; /* Adjust subheading size */
    }

    .value-item p {
        font-size: 0.85rem; /* Adjust text size */
    }

    .values-container {
        flex-direction: column; /* Stack values vertically */
        gap: 10px;
    }
}
/* Rolling Animation for Truck and Core Values */
/* Keyframes for Sliding In */
@keyframes slideIn {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Truck Animation */
.hotshot-background {
    animation: none; /* No animation initially */
    transition: transform 1.5s ease-out, opacity 1.5s ease-out;
    will-change: transform, opacity;
    position: relative; /* Ensure it stays in flow */
}

/* Trigger Animation */
.animated .hotshot-background {
    animation: slideIn 1.5s ease-out forwards;
    position: relative; /* Maintain layout */
    pointer-events: auto; /* Ensure scrolling is not blocked */
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hotshot-background {
        animation-duration: 1s; /* Shorter animation for mobile */
    }
}
/* How We help*/

@media (max-width: 768px) {
    .help-container {
        margin-right: 150px;
        margin-bottom: -65px;
        width: 75%;
        padding: 15px;
    }
    
    .flatbed-background {
        max-width: 500px;
        margin-top: -10px;
    }
}

@media (max-width: 768px) {
    .serve-container {
        margin-left: 80px;
        margin-bottom: -37px;
        width: 75%;
        padding: 15px;
    }
    
    .serve-background {
        max-width: 500px;
        margin-top: -10px;
    }

    .serve-item h3 {
        font-size: 1.2rem;
    }
}

/* Our Services */

@media (max-width: 768px) {
    .services-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .logo-services img {
        width: 180px;
        margin-bottom: 15px;
    }
    
    .services-content h2 {
        font-size: 2rem;
    }
    
    .services-content ul {
        text-align: left;
        padding-left: 10px;
    }
}

/*Wanto to know more*/

@media (max-width: 768px) {
    .contact-cta h2 {
        font-size: 2.5rem;
    }
    
    .contact-cta p {
        font-size: 1.1rem;
    }
    
    .contact-btn {
        padding: 12px 50px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .footer-section {
        min-width: 100%;
    }

    .logo-section {
        display: flex;
        justify-content: center;
    }

    .footer-logo {
        width: 150px;
    }

    .contact-info {
        font-size: 0.9rem;
    }
}
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .form-group.half {
        width: 100%;
    }

    .radio-group,
    .checkbox-group {
        flex-direction: column;
        gap: 10px;
    }
}
@media (max-width: 768px) {
    .modal-content {
        width: 95%; /* Reduce width for smaller screens */
        padding: 10px; /* Adjust padding for smaller screens */
    }

    .news-modal {
        align-items: flex-start; /* Align modal at the top */
        padding-top: 20px; /* Add spacing at the top */
    }
}


