/* layout.css – grids, sections, spacing */

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

/* Change link color to black when scrolled */
.navbar.scrolled a {
    color: #000000;
}

/* Keep the logo brand color – adjust if needed */
.navbar.scrolled .logo {
    color: #000000; /* or keep as is, but ensure contrast */
}
.navbar.scrolled .logo span {
    color: var(--gold); /* keep gold accent */
}

/* Optional: change hamburger icon color on scroll if needed */
.navbar.scrolled .hamburger .bar {
    background: #000000;
}
.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--white);
}


.logo img {
    max-height: 40px;
    width: auto;
}

.navbar.scrolled .hamburger .bar {
    background: var(--soft-charcoal); /* dark color */
}






.logo span {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu a {
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--gold);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image, .hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease;
}


.hero-image.active, .hero-video.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10,26,255,0.3) 0%, rgba(0,0,0,0.5) 100%);
    z-index: -1;
}

.hero-content {
    z-index: 2;
    animation: riseUp 1.2s ease;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Booking Panel */
.booking-panel-section {
    margin-top: -80px;
    position: relative;
    z-index: 10;
}

.booking-panel {
    padding: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    align-items: end;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    color: var(--soft-charcoal);
}

.form-group input, .form-group select {
    padding: 0.75rem;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: rgba(255,255,255,0.8);
}

/* Featured Vehicles */
.featured-vehicles {
    padding: 6rem 0;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-slide {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-slide > * {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-bg);
    backdrop-filter: blur(5px);
    border: 1px solid var(--glass-border);
    color: var(--soft-charcoal);
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.carousel-prev:hover, .carousel-next:hover {
    background: var(--royal-blue);
    color: white;
}

.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--royal-blue);
    width: 20px;
    border-radius: 10px;
}

/* Fleet Categories */

.values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
.fleet-categories {
    padding: 4rem 0;
    background: var(--fog-white);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 2fr));
    gap: 1.5rem;
}

.category-card {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s;
}

.category-card:hover {
    transform: translateY(-5px) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.category-card h3 {
    color: white;
    font-size: 1.5rem;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
    z-index: 2;
}

.category-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    z-index: 1;
}


/* About Preview Section */
.about-preview {
    padding: 4rem 0;
    background: var(--fog-white);
}

.gold-title {
    color: var(--gold) !important;
}

.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.profile-container {
    position: relative;
    min-height: 380px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.profile {
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    text-align: center;
}

.profile.active {
    opacity: 1;
    position: relative;
    top: 0;
    left: 0;
    right: 0;
    pointer-events: auto;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 60%;
    object-fit: contain;
    margin: 0 auto 1rem;
    border: 3px solid var(--gold);
}

.profile-role {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.profile-story {
    font-size: 0.95rem;
    line-height: 1.6;
}

.profile-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    z-index: 10;
}

.profile-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.profile-dots .dot.active {
    background: var(--royal-blue);
    width: 20px;
    border-radius: 10px;
}

.headquarters {
    height: 100%;
    min-height: 350px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.headquarters .parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2));
    z-index: 1;
}

.headquarters-content {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    padding: 2rem;
    width: 100%;
}

.headquarters-content h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--gold);
}

@media (max-width: 768px) {
    .about-preview-grid {
        grid-template-columns: 1fr;
    }
    .headquarters {
        background-attachment: scroll;
        min-height: 250px;
    }
}



/* Why Mauya */
.why-mauya {
    padding: 4rem 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card img {
    width: 50px;
    margin: 0 auto 1rem;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--royal-blue);
}

/* Find Us */
.find-us {
    padding: 4rem 0;
    background: linear-gradient(to bottom, var(--fog-white), white);
}

.map-card {
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.map-card h3 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.map-container {
    width: 100%;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.map-contact {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.map-contact a {
    color: var(--soft-charcoal);
    font-weight: 500;
}

/* Testimonials */
.testimonials {
    padding: 4rem 0;
    background: var(--fog-white);
}

.testimonial-carousel {
    max-width: 700px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
}

.testimonial-slide {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide > * {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 1rem;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem;
    text-align: center;
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-card h4 {
    color: var(--royal-blue);
    margin-bottom: 0.3rem;
}

/* Stats */
.stats {
    padding: 4rem 0;
    text-align: center;
}

.stats-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 600;
    color: var(--royal-blue);
    position: relative;
    margin-bottom: 0.5rem;
}

.stat-number::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 0.5rem auto 0;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--soft-charcoal);
}

/* Parallax Banner */
.parallax-banner {
    height: 400px;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.parallax-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.3);
}

.parallax-content {
    position: relative;
    z-index: 2;
}

.parallax-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--soft-charcoal);
    color: var(--white);
    padding: 3rem 0 1rem;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.footer.revealed {
    opacity: 1;
    transform: translateY(0);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-col ul li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: #ccc;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links img {
    width: 24px;
    height: 24px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background: #25D366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}


/* QR code in footer */
.footer-col .qr-code {
    width: 200px;
    height: 200px;
    border-radius: 5px;
    margin-top: 0.5rem;
    z-index: 2;

}

.qr-code img {
    width: 150px;
    height: 150px;
    border-radius: 16px;        /* Smooth corners – adjust as needed */
    margin: 1rem auto;
    display: block;
}



/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--glass-bg);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        transition: right 0.3s ease;
        z-index: 999;
    }
    .nav-menu.active {
        right: 0;
    }
    .hamburger {
        display: flex;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .booking-form {
        grid-template-columns: 1fr;
    }
    .stats-grid {
        gap: 2rem;
    }
    .parallax-banner {
        background-attachment: scroll;
    }
}


/*Udpate mobile menu styles for better visibility and usability*/
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;                /* Slightly wider for better readability */
        max-width: 300px;          /* Limit width on larger phones */
        height: 100vh;
        background: rgba(255, 255, 255, 0.85); /* White glass */
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-left: 1px solid rgba(255,255,255,0.3);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu a {
        color: #000000;             /* Black text */
        font-size: 1.2rem;
        margin: 1rem 0;
        transition: color 0.3s;
    }

    .nav-menu a:hover {
        color: var(--gold);         /* Gold on hover */
    }

    /* Optional: style the "Book a Car" button inside mobile menu */
    .nav-menu .btn-primary {
        background: var(--royal-blue);
        color: white;
        margin-top: 1rem;
        border: none;
    }

    .nav-menu .btn-primary:hover {
        background: #0a1acc;
    }

    .hamburger {
        display: flex;
        z-index: 1000;
    }

    /* Keep hamburger bars visible (white on hero, adjust if needed) */
    .hamburger .bar {
        background: var(--white);    /* White bars – visible on dark hero */
        transition: 0.3s;
    }

    /* Optional: animate hamburger to X when menu is open */
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
}
















