/* =========================================================
   GLOBAL VISION OF FUTURE CORP
   MOVING FREIGHT. BUILDING THE FUTURE.
   BLUE + RED CORPORATE DESIGN
========================================================= */


/* =========================================================
   1. VARIABLES
========================================================= */

:root {
    --blue: #003478;
    --blue-dark: #002653;
    --blue-deep: #001a3d;
    --blue-light: #0b4f91;

    --red: #d71920;
    --red-dark: #b51218;
    --red-light: #ed343b;

    --white: #ffffff;
    --light: #f4f6f9;
    --light-blue: #eef4fa;

    --text: #1b2735;
    --text-light: #667085;

    --border: #dfe5eb;

    --shadow: 0 10px 35px rgba(0, 38, 83, 0.10);
}


/* =========================================================
   2. RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: var(--white);
    color: var(--text);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    width: 100%;
}

button,
input,
textarea,
select {
    font-family: inherit;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}


/* =========================================================
   3. HEADER
========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;

    background: rgba(255, 255, 255, 0.98);

    box-shadow: 0 3px 20px rgba(0, 38, 83, 0.10);

    transition: 0.3s ease;
}

.header.scrolled {
    box-shadow: 0 6px 25px rgba(0, 38, 83, 0.16);
}

.nav-container {
    min-height: 82px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================================================
   4. LOGO
========================================================= */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo > span {
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--blue);

    color: var(--white);

    border-radius: 5px;

    font-size: 16px;
    font-weight: 800;
}

.logo h2 {
    color: var(--blue);

    font-size: 17px;
    font-weight: 800;

    line-height: 1.1;
}

.logo small {
    display: block;

    margin-top: 3px;

    color: var(--red);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 1px;
}


/* =========================================================
   5. NAVIGATION
========================================================= */

.navbar {
    display: flex;
    align-items: center;

    gap: 25px;
}

.navbar a {
    position: relative;

    color: var(--blue);

    font-size: 13px;
    font-weight: 600;

    transition: 0.3s ease;
}

.navbar a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -8px;

    width: 0;
    height: 2px;

    background: var(--red);

    transition: 0.3s ease;
}

.navbar a:hover {
    color: var(--red);
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a.active {
    color: var(--red);
}

.navbar a.active::after {
    width: 100%;
}


/* =========================================================
   6. GET A QUOTE BUTTON
========================================================= */

.quote-btn {
    padding: 12px 21px;

    background: var(--red);

    color: var(--white);

    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;

    transition: 0.3s ease;
}

.quote-btn:hover {
    background: var(--red-dark);

    transform: translateY(-2px);
}


/* =========================================================
   7. MOBILE MENU
========================================================= */

.menu-btn {
    display: none;

    border: none;
    background: transparent;

    color: var(--blue);

    font-size: 28px;

    cursor: pointer;
}


/* =========================================================
   8. HERO
========================================================= */

.hero {
    position: relative;

    min-height: 720px;
    height: 100vh;

    display: flex;
    align-items: center;

    background:
        url("https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?auto=format&fit=crop&w=1800&q=85")
        center / cover no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 26, 61, 0.94),
            rgba(0, 38, 83, 0.78),
            rgba(0, 38, 83, 0.35)
        );
}

.hero-content {
    position: relative;

    z-index: 2;

    width: 90%;
    max-width: 1200px;

    margin: auto;

    color: var(--white);

    animation: heroAppear 1s ease;
}

@keyframes heroAppear {

    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-small {
    margin-bottom: 18px;

    color: var(--red-light);

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 3px;
}

.hero h1 {
    max-width: 850px;

    margin-bottom: 25px;

    font-size: clamp(45px, 6vw, 82px);

    line-height: 1.04;

    font-weight: 800;
}

.hero h1 span {
    color: var(--red-light);
}

.hero-content > p:not(.hero-small) {
    max-width: 600px;

    color: #e3ebf3;

    font-size: 18px;
}


/* =========================================================
   9. HERO BUTTONS
========================================================= */

.hero-buttons {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-top: 35px;
}

.btn-primary,
.btn-secondary {
    display: inline-block;

    padding: 14px 26px;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.3s ease;
}

.btn-primary {
    border: 2px solid var(--red);

    background: var(--red);

    color: var(--white);
}

.btn-primary:hover {
    background: var(--red-dark);

    border-color: var(--red-dark);

    transform: translateY(-2px);
}

.btn-secondary {
    border: 2px solid var(--white);

    color: var(--white);

    background: transparent;
}

.btn-secondary:hover {
    background: var(--white);

    color: var(--blue);
}


/* =========================================================
   10. STATISTICS
========================================================= */

.stats {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    background: var(--blue-dark);

    color: var(--white);
}

.stat {
    padding: 35px 15px;

    text-align: center;

    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat:last-child {
    border-right: none;
}

.stat h2 {
    margin-bottom: 4px;

    color: var(--red);

    font-size: 36px;
    font-weight: 800;
}

.stat p {
    color: #dce6ef;

    font-size: 13px;
}


/* =========================================================
   11. GENERAL SECTIONS
========================================================= */

.section {
    padding: 100px 0;
}

.section-label {
    margin-bottom: 12px;

    color: var(--red);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2.5px;
}

.section-heading {
    max-width: 700px;

    margin: 0 auto 55px;

    text-align: center;
}

.section-heading h2,
.about-text h2,
.tracking-box h2,
.solutions h2,
.contact h2 {
    margin-bottom: 20px;

    color: var(--blue);

    font-size: 42px;

    line-height: 1.15;

    font-weight: 800;
}

.section-heading h2 span,
.about-text h2 span,
.tracking-box h2 span,
.solutions h2 span,
.contact h2 span {
    color: var(--red);
}


/* =========================================================
   12. ABOUT
========================================================= */

.about {
    background: var(--light);
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;

    align-items: center;
}

.about-image {
    position: relative;
}

.about-image::after {
    content: "";

    position: absolute;

    right: -15px;
    bottom: -15px;

    width: 100%;
    height: 100%;

    border: 3px solid var(--red);

    z-index: 0;
}

.about-image img {
    position: relative;

    z-index: 1;

    height: 500px;

    object-fit: cover;

    border-radius: 5px;
}

.about-text p {
    margin-bottom: 20px;

    color: var(--text-light);

    font-size: 15px;
}


/* =========================================================
   13. SERVICES
========================================================= */

.services {
    background: var(--white);
}

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.service-card {
    padding: 35px 28px;

    background: var(--white);

    border: 1px solid var(--border);

    border-top: 4px solid transparent;

    transition: 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);

    border-top-color: var(--red);

    box-shadow: var(--shadow);
}

.icon {
    width: 65px;
    height: 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 20px;

    background: var(--light-blue);

    color: var(--blue);

    border-radius: 50%;

    font-size: 29px;
}

.service-card h3 {
    margin-bottom: 12px;

    color: var(--blue);

    font-size: 19px;
}

.service-card p {
    margin-bottom: 20px;

    color: var(--text-light);

    font-size: 14px;
}

.service-card a {
    color: var(--red);

    font-size: 13px;
    font-weight: 700;
}

.service-card a:hover {
    color: var(--red-dark);
}


/* =========================================================
   14. SOLUTIONS
========================================================= */

.solutions {
    min-height: 600px;

    display: flex;
    align-items: center;

    color: var(--white);

    background:
        linear-gradient(
            rgba(0, 26, 61, 0.92),
            rgba(0, 52, 120, 0.85)
        ),
        url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=80")
        center / cover;
}

.solutions-content {
    display: flex;

    justify-content: flex-end;
}

.solutions-content > div {
    max-width: 600px;
}

.solutions h2 {
    color: var(--white);
}

.solutions p {
    margin-bottom: 20px;

    color: #dce6ef;
}

.solutions ul {
    margin: 25px 0;

    list-style: none;
}

.solutions li {
    margin: 13px 0;

    color: #ffffff;

    font-weight: 600;
}

.solutions li::first-letter {
    color: var(--red);
}


/* =========================================================
   15. TRACKING
========================================================= */

.tracking {
    background: var(--light);
}

.tracking-box {
    max-width: 800px;

    text-align: center;
}

.tracking-box h2 {
    color: var(--blue);
}

.tracking-box form {
    display: flex;

    margin-top: 35px;
}

.tracking-box input {
    flex: 1;

    padding: 17px 20px;

    background: var(--white);

    border: 1px solid var(--border);

    outline: none;

    color: var(--text);

    font-size: 14px;
}

.tracking-box input:focus {
    border-color: var(--blue);
}

.tracking-box button {
    border-radius: 0 4px 4px 0;
}

#trackingResult {
    min-height: 25px;

    margin-top: 20px;

    color: var(--blue);

    font-size: 14px;
}

.tracking-success {
    padding: 20px;

    margin-top: 20px;

    background: var(--white);

    border-left: 4px solid var(--red);

    box-shadow: var(--shadow);
}

.tracking-success h3 {
    color: var(--blue);

    margin-bottom: 8px;
}


/* =========================================================
   16. FLEET
========================================================= */

.fleet {
    background: var(--white);
}

.fleet-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}

.fleet-card {
    overflow: hidden;

    background: var(--white);

    border: 1px solid var(--border);

    transition: 0.3s ease;
}

.fleet-card:hover {
    transform: translateY(-5px);

    box-shadow: var(--shadow);
}

.fleet-card img {
    height: 230px;

    object-fit: cover;

    transition: 0.4s ease;
}

.fleet-card:hover img {
    transform: scale(1.05);
}

.fleet-card div {
    padding: 22px;
}

.fleet-card h3 {
    margin-bottom: 7px;

    color: var(--blue);
}

.fleet-card p {
    color: var(--text-light);

    font-size: 14px;
}


/* =========================================================
   17. QUOTE
========================================================= */

.quote {
    background: var(--light);
}

.quote-form {
    max-width: 900px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 7px;

    color: var(--blue);

    font-size: 13px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;

    padding: 14px;

    background: var(--white);

    border: 1px solid var(--border);

    outline: none;

    color: var(--text);

    font-size: 14px;

    transition: 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);

    box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.08);
}

.form-group textarea {
    resize: vertical;
}

.form-group.full {
    grid-column: 1 / -1;
}

.quote-form button {
    width: fit-content;
}


/* =========================================================
   18. CONTACT
========================================================= */

.contact {
    padding: 90px 0;

    background:
        linear-gradient(
            135deg,
            var(--blue-deep),
            var(--blue)
        );

    color: var(--white);
}

.contact-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;
}

.contact h2 {
    color: var(--white);

    font-size: 45px;
}

.contact > .container > div > p:not(.section-label) {
    color: #dce6ef;
}

.contact-info {
    margin-top: 35px;
}

.contact-info p {
    margin: 15px 0;

    color: #dce6ef;
}


/* =========================================================
   19. CONTACT FORM
========================================================= */

.contact-form {
    display: flex;

    flex-direction: column;

    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;

    padding: 15px;

    background: rgba(255, 255, 255, 0.08);

    border: 1px solid rgba(255, 255, 255, 0.22);

    outline: none;

    color: var(--white);

    font-size: 14px;

    border-radius: 3px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--red);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #cbd7e2;
}

.contact-form textarea {
    resize: vertical;
}


/* =========================================================
   20. FOOTER
========================================================= */

footer {
    background: #00142e;

    color: var(--white);
}

.footer-content {
    padding: 40px 0;

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.footer-content h2 {
    color: var(--white);
}

.footer-content p {
    color: #9fb0c1;

    font-size: 13px;
}

.footer-links {
    display: flex;

    gap: 25px;
}

.footer-links a {
    color: #ffffff;

    font-size: 13px;

    transition: 0.3s ease;
}

.footer-links a:hover {
    color: var(--red);
}

.copyright {
    padding: 20px;

    border-top: 1px solid rgba(255, 255, 255, 0.10);

    color: #8fa1b2;

    font-size: 12px;

    text-align: center;
}


/* =========================================================
   21. SCROLL ANIMATION
========================================================= */

.reveal {
    opacity: 0;

    transform: translateY(40px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.show {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================================
   22. TABLET
========================================================= */

@media (max-width: 1000px) {

    .navbar {
        gap: 14px;
    }

    .navbar a {
        font-size: 12px;
    }

    .services-grid,
    .fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}


/* =========================================================
   23. MOBILE
========================================================= */

@media (max-width: 768px) {

    /* HEADER */

    .navbar,
    .quote-btn {
        display: none;
    }

    .menu-btn {
        display: block;
    }

    .navbar.active {
        position: absolute;

        top: 82px;
        left: 0;

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

        padding: 25px;

        background: var(--white);

        box-shadow: 0 10px 25px rgba(0, 38, 83, 0.12);
    }

    .navbar.active a {
        font-size: 14px;
    }


    /* HERO */

    .hero {
        min-height: 680px;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-content > p:not(.hero-small) {
        font-size: 15px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }


    /* STATS */

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat {
        border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    }


    /* SECTIONS */

    .section {
        padding: 70px 0;
    }

    .section-heading h2,
    .about-text h2,
    .tracking-box h2,
    .solutions h2,
    .contact h2 {
        font-size: 34px;
    }


    /* ABOUT */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .about-image img {
        height: 350px;
    }


    /* SERVICES */

    .services-grid {
        grid-template-columns: 1fr;
    }


    /* SOLUTIONS */

    .solutions {
        min-height: 650px;
    }

    .solutions-content {
        justify-content: flex-start;
    }


    /* TRACKING */

    .tracking-box form {
        flex-direction: column;

        gap: 10px;
    }

    .tracking-box button {
        border-radius: 4px;
    }


    /* FLEET */

    .fleet-grid {
        grid-template-columns: 1fr;
    }


    /* QUOTE */

    .quote-form {
        grid-template-columns: 1fr;
    }

    .form-group.full {
        grid-column: auto;
    }


    /* CONTACT */

    .contact-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }


    /* FOOTER */

    .footer-content {
        flex-direction: column;

        gap: 25px;

        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;

        justify-content: center;
    }

}


/* =========================================================
   24. SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .container {
        width: 92%;
    }

    .logo h2 {
        font-size: 14px;
    }

    .logo small {
        font-size: 7px;
    }

    .logo > span {
        width: 42px;
        height: 42px;
    }

    .hero {
        min-height: 650px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero-small {
        font-size: 10px;

        letter-spacing: 2px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
    }

    .stat h2 {
        font-size: 28px;
    }

    .stat p {
        font-size: 11px;
    }

    .section-heading h2,
    .about-text h2,
    .tracking-box h2,
    .solutions h2,
    .contact h2 {
        font-size: 30px;
    }

}