/* General Reset and Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

/* Header */
header {
    background: linear-gradient(to right, #371375, #00bcd4);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
}

/* LOGO SECTION */
header .logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-grow: 1;
}

.logo-img {
    height: 100px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-text h1 {
    font-size: 3rem;
    margin: 0;
    color: white;
    line-height: 1.2;
}

.logo-text p {
    font-size: 1rem;
    margin: 2px 0 0;
    color: #ddd;
}

/* Header Actions: Button + Menu Toggle */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Button Styling */
.btn, #loginBtn, #registerBtn {
    background-color: #ffcc00;
    color: #0044cc;
    border: none;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover, #loginBtn:hover, #registerBtn:hover {
    background-color: #e0a800;
}

/* NAVIGATION */
header nav {
    position: relative;
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: #282829;
    z-index: 998;
}

header nav.active {
    display: block;
}

header nav ul {
    list-style: none;
    flex-direction: column;
    text-align: center;
    padding: 20px 0;
}

header nav ul li {
    margin: 10px 0;
}

header nav ul li a {
    font-size: 1.2rem;
    color: white;
    text-transform: uppercase;
    text-decoration: none;
}

header nav ul li a:hover {
    text-decoration: underline;
}

/* HAMBURGER MENU */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 999;
    position: relative;
}

/* Animate Hamburger into X */
.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* DESKTOP NAV OPTION */
@media (min-width: 768px) {
    header nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #282829;
    }

    header nav.active {
        display: block;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    header nav ul li {
        margin: 10px 0;
    }
}

/* Logo layout and header actions for small screens */
@media (max-width: 480px) {
    header .logo {
        flex-direction: column;
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .logo-img {
        height: 50px;
    }

    .logo-text h1 {
        font-size: 1.5rem;
    }

    .logo-text p {
        font-size: 0.9rem;
    }

    .header-actions {
        flex-direction: column;
        align-items: center;
        margin-top: 10px;
        width: 100%;
        gap: 10px;
    }

    .menu-toggle {
        margin-top: 10px;
        align-self: center;
    }
}

/* Home Section */
.intro {
    background: linear-gradient(to right, #a75224, #b87e29);
    color: white;
    padding: 100px;
    text-align: center;
    margin-top: 8px;
}

.intro h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.intro p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.intro .btn {
    padding: 10px 20px;
    background-color: #0044cc;
    color: white;
    font-size: 1.2rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.intro .btn:hover {
    background-color: #003399;
}

/* National Tours Section */
.services {
    padding: 50px 20px;
    text-align: center;
    background: linear-gradient(to right, #a75224, #b87e29);
    margin-bottom: 8px;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: white;
}

.services-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.service-card {
    background-color: #f0f0f0;
    border-radius: 10px;
    width: 30%;
    margin: 10px 0;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9);
    animation: pop-up 0.5s ease-out forwards;
    animation-delay: 0.2s;
}

/* Buses Section */
.transport {
    background: linear-gradient(to right, #171a69, #169273);
    padding: 50px 20px;
    text-align: center;
}

.transport h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: rgb(219, 199, 176);
}

.transport-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.transport-card {
    background-color: #ffffff;
    border-radius: 10px;
    width: 30%;
    margin: 10px 0;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9);
    animation: pop-up 0.5s ease-out forwards;
    animation-delay: 0.4s;
}

/* Common Card Styles */
@keyframes pop-up {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.service-card img,
.transport-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.transport-card img {
    height: 230px;
}

.service-card h3,
.transport-card h3 {
    margin: 20px 0;
}

.service-card p,
.transport-card p {
    font-size: 1rem;
}

.service-card:hover img,
.transport-card:hover img {
    transform: scale(1.05);
}

/* Contact Section */
.contact {
    background: linear-gradient(to right, #0044cc, #00bcd4);
    color: white;
    padding: 50px 20px;
    text-align: center;
}

.contact h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.contact input,
.contact textarea {
    padding: 10px;
    margin: 10px 0;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}


/* Success Message */
.form-success {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 20px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* Error Message */
.form-error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 12px 20px;
    margin-top: 15px;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    animation: fadeIn 0.5s ease-in-out forwards;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hidden Utility Class */
.hidden {
    display: none;
}

.contact button {
    padding: 10px;
    background-color: #ffcc00;
    color: #0044cc;
    border: none;
    border-radius: 5px;
    font-size: 1.2rem;
    cursor: pointer;
}

.contact button:hover {
    background-color: #e0a800;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 12px 20px;
    margin-top: 15px;
    border: 1px solid #c3e6cb;
    border-radius: 5px;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.hidden {
    display: none;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px 10px;
    position: relative;
    bottom: 0;
    width: 100%;
    margin-top: 1px;
}

.footer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.footer-logo {
    height: 60px;
    width: auto;
    object-fit: contain;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}


/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    animation: popUp 0.4s ease;
}

@keyframes popUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content input {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

.modal-content .btn {
    background-color: #0044cc;
    color: white;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

.close {
    position: absolute;
    right: 25px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.booking-alert {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px 20px;
    text-align: center;
    font-size: 1.1rem;
    border: 1px solid #ffeeba;
    border-radius: 5px;
    margin: 20px auto;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.booking-alert span {
    font-weight: bold;
    color: #333;
    text-decoration: underline;
    cursor: pointer;
}

/* Vehicles Modal */
#vehiclesModal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.85);
}

.vehicles-gallery {
    background-color: #fff;
    margin: 80px auto;
    padding: 20px;
    width: 90%;
    max-width: 1000px;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

.gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    width: 200px;
    height: 150px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.hover-text {
    position: absolute;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    width: 100%;
    padding: 5px 0;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .hover-text {
    opacity: 1;
}

/* Responsive Cards Stacking */
@media (max-width: 768px) {
    .services-container,
    .transport-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card,
    .transport-card {
        width: 90%;
    }
}
html {
  scroll-behavior: smooth;
}
.contact-error,
.register-error {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 10px;
}

