/*-----Font Import-----*/
/* Importing Google Fonts: Roboto and Exo for font usage throughout the website */
@import url('https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Exo:400,600,700');

/*-----Base Styles-----*/
/* Setting base styles for the entire webpage including font, colors, and line height */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

/* Removing default margin and padding for all heading elements */
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}

/*-----Navigation-----*/
/* Styling for the navigation bar and its elements */
.navbar {
    background-color: #222;
    padding: 15px;
}

/* Styling for navigation links with a hover effect */
.navbar .nav-link {
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    padding-left: 15px;
    padding-right: 15px;
}

/* Hover effect for navigation links: color change and scaling */
.navbar .nav-link:hover {
    color: #ffcc00;
    transform: scale(1.1);
}

/* Styling for the brand text/logo in the navigation bar */
.navbar .navbar-brand {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    color: #ffcc00;
    text-transform: uppercase;
}

/* Hover effect for the brand logo */
.navbar .navbar-brand:hover {
    color: #fff;
}

/* Default hiding of the navbar toggler (used in mobile view) */
.navbar-toggler {
    display: none;
}

/*----- Media Query for Navbar Responsiveness -----*/
/* Adjusting navigation bar for smaller screens */
@media (max-width: 768px) {
    /* Display navbar toggler button on smaller screens */
    .navbar-toggler {
        display: block;
        background-color: transparent;
        border: none;
        outline: none;
    }

    /* Default hiding of navbar menu (for mobile) */
    #navbarNav {
        display: none;
    }

    /* Styling the navigation when the toggler is clicked */
    #navbar-toggle:checked + .navbar-toggler,
    #navbar-toggle:checked + .navbar-toggler + .navbar-collapse {
        background-color: #ffcc00;
    }

    /* Displaying the navbar collapse section when toggled */
    #navbar-toggle:checked + .navbar-toggler + .navbar-collapse {
        display: block;
        width: 100%;
        background-color: #222;
    }

    /* Adjusting the navbar layout to be vertical (column) for mobile screens */
    .navbar-collapse ul {
        flex-direction: column;
        align-items: center;
    }

    /* Adding space between menu items in mobile view */
    .navbar-collapse ul li {
        margin-bottom: 10px;
    }

    /* Centering links in mobile view */
    .navbar-collapse ul li a {
        width: 100%;
        text-align: center;
    }
}

/*-----Hero Section-----*/
/* Styling for the hero section, with background image, alignment, and padding */
header.jumbotron {
    padding: 120px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: #fff;
    background-blend-mode: overlay;
    background-color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* Hero section heading styles */
header h1 {
    font-family: 'Exo', sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
    margin-bottom: 20px;
}

/* Paragraph text styles in the hero section */
header p {
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 30px;
}

/* Button styles in the hero section with hover and active effects */
header .btn {
    background-color: #ffcc00;
    border: none;
    padding: 15px 30px;
    font-weight: 500;
    text-transform: uppercase;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hover effect for hero section buttons */
header .btn:hover {
    background-color: #333;
    color: #ffcc00;
    transform: translateY(-3px);
}

/* Active and focus state for the hero section buttons */
header .btn:active,
header .btn:focus {
    background-color: #ffcc00;
    color: #fff;
}

/* Logo styling in the hero section */
.logo {
    height: 50px;
    width: auto;
    margin-right: 10px;
}

/* Fade-in effect for elements with the 'fade-in-element' class */
.fade-in-element {
    opacity: 0;
    animation: fadeIn 1s forwards;
}

/* Keyframe animation for the fade-in effect */
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/*-----Content Section-----*/
/* Styling for the welcome section */
section#welcome {
    padding: 80px 0;
}

section#welcome h2 {
    margin-bottom: 40px;
}

/* Flexbox layout for cards in the welcome section */
.row.equal-height-cards {
    display: flex;
    flex-wrap: wrap;
}

/* Card image styling to maintain consistent size */
.card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-bottom: 5px solid #ffcc00;
}

/* Styling for cards with hover effects */
.card {
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Centering the card body content */
.card-body {
    text-align: center;
    padding: 20px;
    flex-grow: 1;
}

/* Title styling inside the cards */
.card-title {
    font-family: 'Exo', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 20px;
}

/* Text styling inside the cards */
.card-text {
    font-weight: 300;
    color: #777;
}

/* Hover effect for cards */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/* Button styling inside the cards */
.card .btn {
    background-color: #222;
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    border: none;
    padding: 10px 20px;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    align-self: center;
}

/* Hover effect for buttons inside cards */
.card .btn:hover {
    background-color: #ffcc00;
    color: #333;
    transform: scale(1.05);
}

/*-----Fleet Section-----*/
/* Fleet section styles */
section#fleet {
    padding: 80px 0;
    background-color: #fff;
}

/* Fleet section title styling */
section#fleet h2 {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-align: center;
    font-size: 36px;
    color: #333;
}

/* Styling for cards in the fleet section */
.card {
    border: none;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.1);
}

/* Adjusting the height of images inside fleet section cards */
.card img {
    height: 200px;
    object-fit: contain;
    width: 100%;
    border-bottom: 5px solid #ffcc00;
}

/* Image styling for index cards */
.index-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    border-bottom: 5px solid #ffcc00;
}

/* Fleet card body styling */
.card-body {
    text-align: center;
    padding: 20px;
}

/* Fleet card title styling */
.card-title {
    font-family: 'Exo', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 15px;
    font-size: 20px;
}

/* Fleet card text styling */
.card-text {
    font-weight: 300;
    color: #777;
}

/* Hover effect for fleet cards */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
}

/*-----Services Section-----*/
/* Services section styles */
section#services {
    background-color: #f8f8f8;
    padding: 80px 0;
}

/* Services section title styling */
section#services h2 {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-align: center;
    font-size: 36px;
    color: #333;
}

/* Service heading (h3) styles */
section#services h3 {
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 24px;
    color: #222;
}

/* Paragraph styling inside services section */
section#services p {
    font-weight: 300;
    color: #666;
    line-height: 1.7;
}

/* Center alignment of the services cards */
#services .row {
    margin-bottom: 0px;
}

/* Adjusting services card alignment */
#services .card {
    margin: 0 auto;
}

/* Media query for adjusting services cards on smaller screens */
@media (max-width: 576px) {
    /* Adding margin between rows in smaller screens */
    section#services .row {
        margin-bottom: 15px;
    }

    /* Removing extra margin from the last row */
    section#services .row:last-child {
        margin-bottom: 0;
    }

    /* Adding margin between cards on small screens */
    section#services .card {
        margin-bottom: 15px;
    }

    /* Removing extra margin from the last card */
    section#services .card:last-child {
        margin-bottom: 0;
    }
}

/*-----Why Choose Us Section-----*/
/* Styling for the "Why Choose Us" section */
section#why-choose-us {
    padding: 80px 0;
    background-color: #fff;
}

/* Title styling in "Why Choose Us" section */
section#why-choose-us h2 {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    margin-bottom: 40px;
    text-transform: uppercase;
    text-align: center;
    font-size: 36px;
    color: #333;
}

/* Column heading styling for the section (with a shadow effect) */
section#why-choose-us .col-md-3 h3 {
    font-size: 48px;
    color: #ffcc00;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

/* Paragraph styling for columns in "Why Choose Us" section */
section#why-choose-us .col-md-3 p {
    font-weight: 300;
    color: #777;
}

/*-----Form Section-----*/
section.form-section {
    padding: 10px 0;
    padding-left: 10px;
    padding-right: 10px;
    margin-top: 0;
    background-color: #f8f8f8;
}

/* Form label styling inside the form section */
section.form-section .form-group label {
    font-weight: 500;
    color: #333;
}

/* Input and textarea styling inside the form section */
section.form-section .form-group input,
section.form-section .form-group textarea {
    border-radius: 5px;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 16px;
}

/* Prevent textarea resizing */
section.form-section .form-group textarea {
    resize: none;
}

/* Button styling for all forms */
.form-section .btn {
    background-color: #ffcc00;
    color: #fff;
    text-transform: uppercase;
    font-weight: 500;
    border: none;
    padding: 10px 20px;
    transition: background-color 0.3s ease-in-out, transform 0.3s ease-in-out;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hover effect for buttons in all forms */
.form-section .btn:hover {
    background-color: #222;
    color: #ffcc00;
    transform: translateY(-3px);
}

/* Add required label styling */
.form-label-required {
    font-weight: bold;
    color: red;
    font-size: 0.9em;
}

/*-----Modal Styles for Centering-----*/
/* Center the modal on the screen */
.modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* Back button styling */
.back-btn {
    margin-right: 10px;
}

/*-----Footer-----*/
/* Footer styling */
footer {
    background-color: #222;
    color: #fff;
    padding: 50px 0 10px 0;
    text-align: center;
}

/* Footer heading styling */
footer .footer-heading {
    font-family: 'Exo', sans-serif;
    font-weight: 600;
    color: #ffcc00;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-size: 24px;
}

/* Footer link and icon styling */
footer a {
    color: #ffcc00;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
    font-size: 24px;
}

/* Hover effect for footer links */
footer a:hover {
    color: #fff;
    transform: scale(1.2);
}

/* Styling for footer icons */
footer .fa {
    font-size: 24px;
    margin: 0 15px;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

/* Hover effect for footer icons */
footer .fa:hover {
    color: #ffcc00;
    transform: scale(1.2);
}

/*-----Responsive Design-----*/
/* Media query for screens smaller than 768px */
@media (max-width: 768px) {
    /* Centering the navigation menu */
    .navbar .navbar-collapse {
        text-align: center;
    }

    /* Adding space between nav items */
    .navbar .nav-item {
        margin-bottom: 10px;
    }

    /* Decreasing font size for smaller screens */
    .navbar .nav-link {
        font-size: 16px;
    }

    /* Adjusting hero section padding and font size for smaller screens */
    header.jumbotron {
        padding: 80px 0;
    }

    header.jumbotron h1 {
        font-size: 32px;
    }

    /* Adjusting padding for sections in smaller screens */
    section#fleet,
    section#services,
    section#why-choose-us,
    section#contact {
        padding: 50px 0;
    }

    /* Adjusting font size for the "Why Choose Us" section on smaller screens */
    section#why-choose-us .col-md-3 h3 {
        font-size: 36px;
    }
}

/* Media query for screens smaller than 576px */
@media (max-width: 576px) {
    /* Reducing padding for sections on smaller screens */
    section#fleet,
    section#services,
    section#why-choose-us,
    section#contact {
        padding: 40px 0;
    }

    /* Further reducing font size for headings in the "Why Choose Us" section */
    section#why-choose-us .col-md-3 h3 {
        font-size: 32px;
    }
}