@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Montserrat:wght@300;400;600&display=swap');

:root {
    --primary-color: #000000;
    --secondary-color: #02060e;
    --accent-color: #ae8707;
    --text-color: #ffffff;
    --text-color-dark: #161103;
}

* {
    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;
    justify-content: flex-start; /* default: kiri di desktop */
}

.logo img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}

/* Layar besar (desktop) */
@media screen and (min-width: 1024px) {
    .logo img {
        width: 120px;
        height: 120px;
    }
}

/* Layar kecil (mobile) */
@media screen and (max-width: 768px) {
    .logo {
        justify-content: center; /* tengah di mobile */
        width: 100%;
    }

    .logo img {
        width: 100px;
        height: 100px;
        margin: 0 auto;
        display: block;
    }
}


.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: 11px;
}

section {
    padding: 5rem 10%;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 2.5rem;
    color: var(--accent-color);
}

.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  transition: transform 0.3s ease;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 0 1rem;
}

.hero h1 {
  font-size: 2.3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-weight: 300;
}


@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    padding: 0.8rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out 1s backwards;
}

.cta-button:hover {
    background-color: #e6c200;
}

.about {
    background-color: var(--secondary-color);
    text-align: center;
    padding: 5rem 10%;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.about-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.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: 5rem 10%;
}

.car-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.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;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.car-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.car-card h3, .car-card p {
    padding: 1rem;
    margin: 0;
}

.car-card h3 {
    font-size: 1.5rem;
    color: var(--accent-color);
}

.car-card p {
    font-size: 1rem;
    color: var(--text-color);
}

.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;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rent-button:hover {
    background-color: #e6c200;
}

.testimonials {
    background-color: var(--primary-color);
    padding: 5rem 10%;
    text-align: center;
}

.testimonials h2 {
    margin-bottom: 3rem;
}

.testimonial-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    perspective: 1000px;
}

.testimonial-card {
    background-color: var(--secondary-color);
    border-radius: 5px;
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.testimonial-card:hover {
    transform: rotateY(10deg);
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 10%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-color);
}

.testimonial-card h3 {
    margin-bottom: 0.5rem;
}

.role {
    color: var(--accent-color);
    font-style: italic;
    margin-bottom: 1rem;
}

.quote {
    font-style: italic;
    margin-bottom: 1rem;
}

.rating {
    color: var(--accent-color);
}

@media screen and (max-width: 768px) {
    .testimonial-container {
        flex-direction: column;
    }
}

/* Animasi untuk testimonial cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.testimonial-card:nth-child(1) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.4s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.6s;
}


.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);
    }
}

.reservation {
    background-color: var(--secondary-color);
    padding: 5rem 10%;
}

.reservation h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.reservation-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--primary-color);
    color: var(--text-color);
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}

.submit-button {
    grid-column: 1 / -1;
    background-color: var(--accent-color);
    color: var(--text-color-dark);
    padding: 1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    background-color: #e6c200;
}

@media screen and (max-width: 768px) {
    .reservation-form {
        grid-template-columns: 1fr;
    }
}

.wa-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #066127;
    color: white;
    border-radius: 50px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    font-family: sans-serif;
    transition: transform 0.3s ease;
}

.wa-float:hover {
    transform: scale(1.05);
}

.wa-text {
    font-size: 16px;
    font-weight: bold;
    color: white;
}
