@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');



:root {

    --primary-color: #1a1a1a;

    --secondary-color: #333333;

    --accent-color: #ffd700;

    --text-color: #ffffff;

    --text-color-dark: #1a1a1a;

}



* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: 'Montserrat', sans-serif;

    line-height: 1.6;

    color: var(--text-color);

    background-color: var(--primary-color);

}



header {

    background-color: rgba(26, 26, 26, 0.8);

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);

    position: fixed;

    width: 100%;

    z-index: 1000;

}



nav {

    display: flex;

    justify-content: space-between;

    align-items: center;

    padding: 1px 5%;

    background-color: var(--primary-color);

    position: fixed;

    width: 100%;

    top: 0;

    z-index: 1000;

}






.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 130px;    /* Increased base size */
    height: 130px;
    object-fit: contain;
    margin-right: 15px;
}

/* Larger screens */
@media screen and (min-width: 1024px) {
    .logo img {
        width: 190px;    /* Increased desktop size */
        height: 100px;
    }
}

/* Mobile screens */
@media screen and (max-width: 768px) {
    .logo img {
        width: 150px;    /* Increased mobile size */
        height: 100px;
    }
}



.nav-links {

    display: flex;

    list-style: none;

}


.nav-links li {

    margin-left: 2rem;

}



.nav-links a {

    text-decoration: none;

    color: var(--text-color);

    font-weight: 600;

    transition: color 0.3s ease;

}



.nav-links a:hover {

    color: var(--accent-color);

}



.burger {

    display: none;

    cursor: pointer;

}



.burger div {

    width: 25px;

    height: 3px;

    background-color: var(--text-color);

    margin: 5px;

    transition: all 0.3s ease;

}



@media screen and (max-width: 768px) {

    body {

        overflow-x: hidden;

    }



    .nav-links {

        position: fixed;

        right: -100%;

        top: 80px;

        height: calc(100vh - 80px);

        background-color: rgba(26, 26, 26, 0.95);
        /* Slightly transparent background */

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        width: 100%;

        transition: right 0.5s ease;

        backdrop-filter: blur(10px);
        /* Adds a blur effect to the background */

    }



    .nav-links li {

        opacity: 0;

        margin: 15px 0;

        width: 100%;

        text-align: center;

    }



    .nav-links a {

        font-size: 1.2rem;

        display: block;

        padding: 10px 0;

        width: 100%;

        transition: background-color 0.3s ease;

    }



    .nav-links a:hover {

        background-color: rgba(255, 215, 0, 0.1);
        /* Slight highlight on hover */

    }



    .burger {

        display: block;

    }



    .nav-active {

        right: 0;

    }

}



/* Navigation Animation */

@keyframes navLinkFade {

    from {

        opacity: 0;

        transform: translateX(50px);

    }

    to {

        opacity: 1;

        transform: translateX(0px);

    }

}



.toggle .line1 {

    transform: rotate(-45deg) translate(-5px, 6px);

}



.toggle .line2 {

    opacity: 0;

}



.toggle .line3 {

    transform: rotate(45deg) translate(-5px, -6px);

}

main {

    padding-top: 80px;

}



section {

    padding: 5rem 10%;

}



h1,
h2,
h3 {

    font-family: 'Playfair Display', serif;

    margin-bottom: 2rem;

    color: var(--accent-color);

}


.about {

    background-color: var(--secondary-color);

    text-align: center;

    padding: 5rem 10%;

}



.banner {
    background-image: url('images/image-beranda.webp');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    padding: 8rem 2rem;
    text-align: center;
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.banner-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.banner h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.store-name {
    font-size: 3.5rem;
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-family: system-ui, -apple-system, sans-serif;
}

.banner p {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 2rem;
    line-height: 1.6;
}


.banner-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    text-decoration: none;
}


.banner-button:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

@media screen and (max-width: 768px) {
    .banner {
        background-image: url('images/mobile-beranda.webp');
        padding: 0;
        height: 100vh;
        width: 100%;
        background-size: contain;
        background-position: bottom;
        margin-top: -65%;
    }
    
    .banner-content {
        padding: 1rem;
        width: 100%;
        position: absolute;
        top: 60%;
        transform: translateY(-50%);
    }
    
    .banner h1 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .store-name {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .banner p {
        font-size: 1rem;
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .banner-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

.about h2 {

    font-size: 2rem;

    margin-bottom: 1rem;

}



.about-description {

    max-width: 800px;

    margin: 0 auto 3rem;

    font-size: 0.9rem;

}



.about-cards {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));

    gap: 2rem;

}



.about-card {

    background-color: var(--primary-color);

    border-radius: 10px;

    padding: 2rem;

    transition: transform 0.3s ease, box-shadow 0.3s ease;

}



.about-card:hover {

    transform: translateY(-10px);

    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);

}



.about-card i {

    font-size: 3rem;

    color: var(--accent-color);

    margin-bottom: 1rem;

}



.about-card h3 {

    font-size: 1.5rem;

    margin-bottom: 1rem;

}



.about-card p {

    font-size: 1rem;

}



.cars {
    background-color: var(--primary-color);
    padding: 4rem 5%;
    width: 100%;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.car-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.car-card img {
    width: 100%;
    height: auto;
    display: block;
}

.car-card h3 {
    font-size: 1.25rem;
    color: var(--accent-color);
    padding: 1rem;
    margin: 0;
}

.car-card p {
    font-size: 0.95rem;
    color: var(--text-color);
    padding: 0 1rem 1rem;
    margin: 0;
}

.rent-button {
    display: block;
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    text-align: center;
    padding: 0.8rem;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: auto;
}

.rent-button:hover {
    background-color: #e6c200;
}

@media screen and (max-width: 992px) {
    .car-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .car-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .cars {
        padding: 2rem 1rem;
    }
}

.testimonials {
    padding: 5rem 0;
    background-color: var(--primary-color);
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    font-weight: bold;
    color: #e6c200;
}

.testimonial-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1rem;
}

.testimonial-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.video-wrapper {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.testimonial-card h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.rating {
    color: var(--accent-color);
    font-size: 1.1rem;
}



.contact {

    background-color: var(--secondary-color);

    padding: 5rem 10%;

}



.contact h2 {

    text-align: center;

    margin-bottom: 2rem;

}



.contact-container {

    display: flex;

    justify-content: space-between;

    gap: 2rem;

}



.contact-info {

    flex: 1;

}



.contact-item {

    display: flex;

    align-items: center;

    margin-bottom: 1rem;

}



.contact-item i {

    font-size: 1.5rem;

    color: var(--accent-color);

    margin-right: 1rem;

}



.social-media {

    margin-top: 2rem;

}



.social-media a {

    display: inline-block;

    margin-right: 1rem;

    font-size: 1.5rem;

    color: var(--text-color);

    transition: color 0.3s ease;

}



.social-media a:hover {

    color: var(--accent-color);

}



.map {

    flex: 1;

}



.map iframe {

    width: 100%;

    height: 100%;

    min-height: 300px;

    border-radius: 10px;

}



@media screen and (max-width: 768px) {

    .contact-container {

        flex-direction: column;

    }

}





footer {

    background-color: var(--secondary-color);

    color: var(--text-color);

    text-align: center;

    padding: 1rem;

}



@media screen and (max-width: 968px) {

    .about-cards {

        grid-template-columns: repeat(2, 1fr);

    }

}



@media screen and (max-width: 768px) {

    .nav-links {

        position: absolute;

        right: 0px;

        height: 92vh;

        top: 8vh;

        background-color: var(--secondary-color);

        display: flex;

        flex-direction: column;

        align-items: center;

        width: 50%;

        transform: translateX(100%);

        transition: transform 0.5s ease-in;

    }



    .nav-links li {

        opacity: 0;

    }



    .burger {

        display: block;

    }



    .about-cards {

        grid-template-columns: 1fr;

    }



    .car-grid {

        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    }

}



.nav-active {

    transform: translateX(0%);

}



@keyframes navLinkFade {

    from {

        opacity: 0;

        transform: translateX(50px);

    }

    to {

        opacity: 1;

        transform: translateX(0px);

    }

}



.marketplace {
    background-color: var(--primary-color);
    padding: 4rem 0;
}

.marketplace .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.marketplace h2 {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 0.8rem;
}

.marketplace .underline {
    width: 5rem;
    height: 2px;
    background-color: var(--accent-color);
    margin: 0 auto;
    transition: all 0.3s ease;
}

.marketplace .underline:hover {
    width: 7rem;
    background-color: white;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.marketplace-card {
    background-color: white;
    padding: 1.5rem;
    border-radius: 0.8rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.marketplace-card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.marketplace-card img {
    height: 4rem;
    width: auto;
    margin: 0 auto;
    display: block;
}

.marketplace-cta {
    text-align: center;
    padding: 0 1rem;
}

.marketplace-cta p {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.marketplace-cta .cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.8rem 1.8rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.marketplace-cta .cta-button:hover {
    background-color: white;
    transform: scale(1.03);
}

@media screen and (max-width: 992px) {
    .marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 600px;
    }
}

@media screen and (max-width: 480px) {
    .marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .marketplace-card {
        padding: 1rem;
    }
    
    .marketplace-card img {
        height: 3rem;
    }
}

.whatsapp-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #22c55e;
    color: white;
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    transform: scale(1);
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none; /* Added this line */
}

.whatsapp-button:hover {
    background-color: #16a34a;
    transform: scale(1.1);
}

.whatsapp-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 9999px;
    background-color: #22c55e;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0.75;
}

.whatsapp-icon {
    position: relative;
    font-size: 1.875rem;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}
