@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,500;1,400&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-size: 14px;
}

/* right scrollingbar personalising */

/* Hide the default scrollbar */
body::-webkit-scrollbar {
    width: 10px;
    /* Set the width of the scrollbar */
}

/* Track (background) of the scrollbar */
body::-webkit-scrollbar-track {
    background: #f1f1f1;
    /* Color of the scrollbar track */
}

/* Handle (thumb) of the scrollbar */
body::-webkit-scrollbar-thumb {
    background: #003366;
    /* Color of the scrollbar thumb */
    border-radius: 5px;
    /* Rounded corners for the scrollbar thumb */
}

/* Handle on hover */
body::-webkit-scrollbar-thumb:hover {
    background: #002244;
    /* Darker color when hovered */
}

/* btn styling */
.carousel-caption .btn {
    padding: 10px 80px;
    font-size: 16px;
}

.btn-primary {
    background: #003366ec !important;
    margin: 20px !important;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.945) !important;
    color: #003366 !important;
}

.btn-secondary:hover {
    background: #ff6666 !important;
}

.btn-primary:hover {
    background: #705608;
}

html {
    font-size: 62.5%;
    font-family: 'Roboto', sans-serif;
}

body {
    color: red;
}

li {
    list-style: none;
}

a {
    text-decoration: none;
}

h1 {
    font-size: 4.5rem !important;
}

h2 {
    font-size: 5rem !important;
    font-weight: bold;
    text-transform: capitalize;
}

p {
    font-size: 20px;
}

/* Header styling */
.header {
    border-bottom: 1px solid #E2E8F0;
    background-color: #003366;
}

/* Flex bar styling */
.flex-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(0, 0, 0);
    padding: 5px 5px;
    border: 1px solid #ddd;
    font-family: Arial, sans-serif;
}

.flex-bar .left {
    font-size: 14px;
    color: #ffffff;
    border: 1px solid white;
    padding: 9px 10px 0;
}

.flex-bar .right {
    display: flex;
    gap: 5px;
}

.flex-bar .right a {
    text-decoration: none;
    color: #ffffff;
    font-size: 14px;
    border: 1px solid white;
    padding: 9px;
}

.flex-bar .right a:hover {
    text-decoration: underline;
    color: #0056b3;
}

/* Navbar styling */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem;
}

.hamburger {
    display: none;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-item {
    margin-left: 6rem;
    margin-right: 6rem;
    margin-bottom: -2rem;
}

.nav-link {
    font-size: 2rem;
    font-weight: 400;
    color: #fff;
    position: relative;
    /* Ensure positioning context for pseudo-element */
    text-decoration: none;
    /* Remove underline from links */
}

/* nav links css for bottom line  */
.nav-link:hover {
    color: #ff0000;
    /* Change text color on hover */
}

.nav-link::after {
    content: '';
    /* Add pseudo-element for the bottom line */
    position: absolute;
    left: 0;
    bottom: -3px;
    /* Adjust as needed */
    width: 0;
    /* Start with zero width */
    height: 3px;
    /* Thickness of the bottom line */
    background-color: #ffffff;
    /* Color of the bottom line */
    transition: width 0.3s ease;
    /* Smooth transition for width change */
}

.nav-link:hover::after {
    width: 100%;
    /* Expand the width to full on hover */
}

/* Banner styling */
#carouselExampleRide {
    margin: 0;
    padding: 0;
}

#carouselExampleRide .carousel-inner img {
    max-height: 650px !important;
    object-fit: cover;
    width: 100%;
}

.carousel-caption {
    position: absolute;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 100% !important;
}

.carousel-caption p {
    margin: 2rem 20%;
}

/* Flex container styling */
.sub-title {
    color: #003366;
}

.card-container {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 20px;
    padding: 20px;
}

.card {
    position: relative;
    width: 350px;
    height: 400px;
    overflow: hidden;
    border-radius: 0px;
    transition: transform 0.3s ease;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
}

.card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover .overlay {
    opacity: 1;
}

.overlay .btn {
    padding: 10px 25px;
    background-color: #003366;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-radius: 0px;
    transition: background-color 0.3s ease;
}

.overlay .btn:hover {
    background-color: #ff0000;
}

/* Footer styling */
.footer {
    background-color: #333333;
    color: #ffffff;
}

.footer-top {
    padding: 30px 0;
}

.footer h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.footer h2,
.footer h3:before {
    content: '|';
    color: #c65039;
    padding-right: 10px;
}

.footer p {
    line-height: 25px;
    font-size: 1.4rem;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    line-height: 40px;
}

.footer ul li a {
    color: #999999;
    text-decoration: none;
}

.footer ul li a:hover {
    color: #ffffff;
}

.footer .icons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.footer .icons img {
    width: 30px;
}

.footer .segment-one,
.footer .segment-two,
.footer .segment-three,
.footer .segment-four {
    margin-bottom: 30px;
}

.footer .segment-four form {
    display: flex;
    flex-direction: column;
}

.footer .segment-four input[type=email] {
    padding: 3px 0;
    margin-bottom: 10px;
}

.footer .segment-four input[type=submit] {
    background: #c65039;
    border: none;
    padding: 10px;
    color: #ffffff;
    text-transform: uppercase;
    cursor: pointer;
}

.footer .segment-four input[type=submit]:hover {
    background: #ff0000;
}

.footer-bottom {
    background: #000000;
    color: #999999;
    text-align: center;
    line-height: 55px;
}

/* Footer responsiveness */
@media (max-width: 768px) {
    .footer .icons {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer .row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 20px;
    }

    .footer .segment-one,
    .footer .segment-two,
    .footer .segment-three,
    .footer .segment-four {
        width: 100%;
        text-align: center;
    }

    .footer .segment-four form {
        flex-direction: column;
        align-items: center;
    }
}





/* Navbar breakpoints */
@media (max-width: 1096px) {
    .nav-item {
        margin-left: 12rem;
    }
}

@media (max-width: 977px) {
    .nav-item {
        margin-left: 8rem;
    }
}

@media (max-width: 817px) {
    .nav-item {
        margin-left: 5rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 8.5rem;
        flex-direction: column;
        background-color: #003366;
        width: 100%;
        border-radius: 10px;
        text-align: center;
        transition: 0.3s;
        z-index: 100;
    }

    .nav-logo {
        margin-left: 0;
    }

    .nav-link {
        color: #fff;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-item {
        margin: 2.5rem 0;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* Tablet and Phone responsiveness */
@media (max-width: 768px) {

    .carousel-caption {
        top: 50% !important;
    }

    .carousel-caption p {
        margin: 2rem 10% !important;
    }

    .carousel-control-next-icon,
    .carousel-control-prev-icon {
        display: none !important;
    }

    .btn-primary,
    .btn-secondary {
        margin: 10px !important;
        font-size: 14px !important;
    }

    h1 {
        font-size: 3.5rem !important;
    }

    h2 {
        font-size: 4rem !important;
    }

    p {
        font-size: 18px !important;
    }

    .card {
        width: 100% !important;
        height: 300px !important;
    }

    .overlay {
        opacity: 1 !important;
    }

    .flex-bar {
        display: none !important;
    }

    .card-container {
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer .icons {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .footer .segment-one,
    .footer .segment-two,
    .footer .segment-three,
    .footer .segment-four {
        text-align: center !important;
    }
}

@media (max-width: 480px) {

    .btn-primary,
    .btn-secondary {
        margin: 5px !important;
        font-size: 12px !important;
    }

    h1 {
        font-size: 3.5rem !important;
        margin: 50px auto !important;
    }

    h2 {
        font-size: 3rem !important;
    }

    p {
        font-size: 16px !important;
    }

    .card {
        width: 100% !important;
        height: 300px !important;
    }

    .footer .icons {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        display: flex !important;
    }

    .footer .segment-one,
    .footer .segment-two,
    .footer .segment-three,
    .footer .segment-four {
        text-align: center !important;
    }

    .flex-bar {
        display: none !important;
    }
}