body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    background: linear-gradient(135deg, rgba(0, 60, 113, 0.8), rgba(240, 248, 255, 0.8)), url('background-photo.jpg');
    background-size: cover;
    background-attachment: fixed;
}

header {
    background-color: #003c71;
    color: white;
    padding: 10px 20px;
    position: relative;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px; /* Adjust gap as needed */
}

.logo img {
    height: 50px; /* Ensure both logos have the same height */
}

.secondary-logo {
    height: 50px; /* Same height as the primary logo */
}

.nav-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s;
}

.nav-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    font-size: 18px;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 5px;
}

.nav-links a:hover {
    background-color: #005b96;
    color: #fff;
}

/* General Styles for the Home Section */
.home-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #003c71 0%, #005b96 100%);
    color: #fff;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    margin-bottom: 40px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    background: linear-gradient(90deg, red, yellow, blue, white, red);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: colorChange 10s linear infinite;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.3);
}

.hero-text p {
    font-size: 1.125rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Profile Container */
.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.profile-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
}

.profile-photo {
    border-radius: 50%;
    width: 180px;
    height: 180px;
    object-fit: cover;
    border: 5px solid #003c71;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.about-me {
    margin-top: 20px;
}

.about-me h2 {
    font-size: 2rem;
    color: #003c71;
    margin-bottom: 15px;
    font-weight: 700;
}

.about-me p {
    font-size: 1rem;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.6;
}

.about-me button {
    background-color: #003c71;
    color: #fff;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.about-me button:hover {
    background-color: #005b96;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.about-me button:focus {
    outline: none;
}

/* Animation for changing text color */
@keyframes colorChange {
    0% {
        background-position: 0% 0%;
    }
    25% {
        background-position: 100% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    75% {
        background-position: 0% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .profile-container {
        padding: 20px;
    }

    .profile-photo {
        width: 150px;
        height: 150px;
    }

    .about-me h2 {
        font-size: 1.5rem;
    }

    .about-me p {
        font-size: 0.875rem;
    }
}


.motor-section {
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.motor-slider {
    overflow: hidden;
    position: relative;
}

.motor-container {
    display: flex;
    gap: 20px;
    overflow: auto;
    scroll-behavior: smooth;
    transition: transform 0.3s ease-in-out;
}

.motor-card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 300px;
    flex: none;
    transition: transform 0.3s ease, box-shadow 0.3s;
    position: relative;
}

.motor-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.motor-info {
    padding: 15px;
    text-align: center;
}

.motor-info button {
    background-color: #003c71;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.motor-info button:hover {
    background-color: #005b96;
}

/* Menjaga elemen utama */
.contact-section {
    padding: 60px 20px;
    background: url('./path/to/yamaha-logo.png') no-repeat center center/cover;
    position: relative;
}

/* Overlay form kontak dengan perubahan */
.contact-form-overlay {
    display: none; /* Default hidden */
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
}

/* Kontainer form kontak */
.contact-form-container {
    background: #ffffff;
    padding: 20px; /* Mengurangi padding pada perangkat kecil */
    border-radius: 20px;
    position: relative;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
    transition: opacity 0.5s ease, transform 0.5s ease;
    overflow: hidden;
    border: 1px solid #005b96;
}

/* Menampilkan kontainer form */
.contact-form-container.show {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* Menyembunyikan kontainer form */
.contact-form-container.hide {
    opacity: 0;
    transform: scale(0.9);
}

/* Menyusun tombol close dengan ukuran yang lebih besar */
.contact-form-container .close {
    position: absolute;
    top: 10px; /* Mengurangi jarak dari atas */
    right: 10px; /* Mengurangi jarak dari kanan */
    font-size: 36px; /* Meningkatkan ukuran font */
    color: #005b96;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}

/* Menambahkan efek hover pada tombol close */
.contact-form-container .close:hover {
    color: #ff4d4d;
    transform: rotate(90deg);
}

/* Judul */
h2 {
    font-size: 24px; /* Mengurangi ukuran font pada perangkat kecil */
    margin-bottom: 20px;
    text-align: center;
    color: #005b96;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

/* Formulir */
form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Mengurangi jarak antar elemen */
}

/* Label */
label {
    font-size: 16px; /* Mengurangi ukuran font */
    font-weight: 500;
    color: #333;
}

/* Input dan select */
input, select {
    padding: 12px; /* Mengurangi padding */
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 14px; /* Mengurangi ukuran font */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Input dan select fokus */
input:focus, select:focus {
    border-color: #005b96;
    outline: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Tombol */
button[type="button"] {
    background-color: #005b96;
    color: white;
    border: none;
    padding: 12px 20px; /* Mengurangi padding */
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px; /* Mengurangi ukuran font */
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover dan active state tombol */
button[type="button"]:hover {
    background-color: #003c71;
    transform: translateY(-2px);
}

button[type="button"]:active {
    background-color: #002a52;
    transform: translateY(0);
}

/* Responsivitas menggunakan media query */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 20px;
    }

    .contact-form-container .close {
        top: 5px;
        right: 5px;
        font-size: 28px;
    }

    h2 {
        font-size: 20px;
    }

    form {
        gap: 10px;
    }

    label {
        font-size: 14px;
    }

    input, select {
        padding: 10px;
        font-size: 14px;
    }

    button[type="button"] {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contact-form-container {
        width: 95%;
        max-width: none; /* Menghilangkan batas max-width untuk perangkat yang lebih kecil */
    }
}


.details-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.popup-content {
    background: white;
    padding: 20px;
    border-radius: 15px;
    position: relative;
    width: 80%;
    max-width: 600px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.popup-content .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}



/* Footer Base Styles */
.footer {
    background-color: #003c71; /* Deep blue background */
    color: #f0f0f0; /* Light grey text */
    text-align: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    border-top: 5px solid #c0c0c0; /* Silver top border */
    font-family: 'Arial', sans-serif;
    z-index: 10;
}

/* Footer Content */
.footer-content {
    position: relative;
    z-index: 2; /* Ensure content is above the animation */
    max-width: 800px;
    margin: 0 auto;
}

/* Footer Text Styles */
.footer p {
    font-size: 16px;
    margin: 10px 0;
    color: #d0d0d0; /* Slightly lighter grey for text */
}

.footer p.address {
    font-size: 14px;
    color: #b0b0b0; /* Lighter grey for address */
}

/* Footer Links */
.footer a {
    color: #c0c0c0;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Animated Gradient Background */
.footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.3));
    z-index: 1;
    animation: gradientAnimation 15s infinite alternate;
}

/* Gradient Animation Keyframes */
@keyframes gradientAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* Responsive Styling */
@media (max-width: 768px) {
    .footer p {
        font-size: 14px;
    }

    .footer p.address {
        font-size: 12px;
    }
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 20px;
        background: #003c71;
        width: 200px;
        border-radius: 5px;
        flex-direction: column;
        align-items: center;
        padding: 10px;
        z-index: 1000;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    .nav-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .motor-card {
        width: 90%;
    }
}

.product-section {
    padding: 60px 20px;
    background: #b4b4b4;
    text-align: center;
}

.product-section h2 {
    font-size: 2.5em;
    color: #1976c2;
    margin-bottom: 40px;
    font-weight: 600;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.product-card {
    background: #ffffff;
    border: 1px solid #cccccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    width: 250px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    padding: 20px;
}

.product-card img {
    width: 80px;
    height: auto;
    margin-bottom: 10px;
}

.product-card p {
    font-size: 1.2em;
    color: #004d40;
}

.product-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

/* Popup */
/* Base styles for the popup and grid layout */
.details-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    opacity: 0;
    visibility: hidden;
}

.details-popup.show {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: #ececec;
    padding: 20px;
    position: relative;
    width: 95%;
    max-width: 1200px;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: popup-in 0.6s ease-out;
    max-height: 90vh; /* Ensure it fits within the viewport height */
    overflow-y: auto; /* Enable scroll if necessary */
}

@keyframes popup-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 40px;
    color: #333;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close:hover {
    color: #e74c3c;
    transform: scale(1.1);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: center;
    justify-content: center;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-item p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-top: 2px solid #ffd700; /* Elegant gold border */
    transition: background 0.3s ease, color 0.3s ease;
}

.gallery-item:hover p {
    background: rgba(0, 0, 0, 0.8);
    color: #ffd700; /* Gold color for an elegant touch */
}

/* Responsive styles */
@media (max-width: 768px) {
    .popup-content {
        width: 100%;
        padding: 10px;
    }

    .close {
        top: 10px;
        right: 10px;
        font-size: 30px;
    }

    .gallery-item p {
        font-size: 14px;
        padding: 8px;
    }
}



/* WhatsApp Button */
/* WhatsApp Button */
.whatsapp-logo {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.whatsapp-logo img {
    width: 32px; /* Adjust size as needed */
    height: auto;
}

.whatsapp-logo:hover {
    background-color: #128c7e;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
}
