/* =================================== */
/*        VARIABEL & RESET DASAR       */
/* =================================== */
:root {
    --primary-color: #102E50;
    --secondary-color: #E78B48;
    --background-color: #f4f4f4;
    --text-color: #333;
    --white-color: #fff;
    --header-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================================== */
/*          HEADER STYLES              */
/* =================================== */
header {
    background: transparent;
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

header.header-scrolled {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

header .logo {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--white-color);
}

.main-nav ul {
    list-style: none;
    display: flex;
}

.main-nav ul li {
    margin-left: 30px;
}

.main-nav ul li a {
    color: var(--white-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
    padding-bottom: 5px;
    position: relative;
}

.main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav ul li a:hover::after {
    width: 100%;
}

.main-nav ul li a:hover {
    color: var(--secondary-color);
}

.header-right {
    display: flex;
    align-items: center;
}

.btn-cta {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-cta:hover {
    background-color: #d67a3a;
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    color: var(--white-color);
    font-size: 1.5rem;
    cursor: pointer;
    margin-left: 15px;
}

/* =================================== */
/*       HERO SLIDESHOW SECTION        */
/* =================================== */
.hero {
    position: relative;
    height: 100vh;
    color: var(--white-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('images/hero-1.jpg') no-repeat center center/cover;
    transition: background-image 1s ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5em;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.3em;
    margin-top: 15px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* =================================== */
/*          INFO SECTIONS              */
/* =================================== */
.info-section, .info-section-alt {
    padding: 80px 0;
}

.info-section {
    background-color: var(--white-color);
}

.info-section-alt {
    background-color: var(--background-color);
}

.info-section h2, .info-section-alt h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    color: var(--primary-color);
}

/* Styling for "Mengapa Kami" */
.reasons-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.reason-card {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    border-left: 5px solid var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.reason-card p {
    line-height: 1.7;
}

/* Styling for "Cara Memesan" */
.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.step-card {
    padding: 20px;
}

.step-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px auto;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    border: 3px solid var(--primary-color);
}

.step-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.step-card p {
    line-height: 1.6;
}

/* =================================== */
/*          KATALOG SECTION            */
/* =================================== */
.katalog-section {
    padding: 80px 0;
    background-color: var(--white-color);
}

.katalog-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: var(--primary-color);
}

.filters {
    text-align: center;
    margin-bottom: 30px;
}

.filter-btn {
    background: var(--white-color);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 10px 20px;
    margin: 5px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary-color);
    color: var(--white-color);
}

.car-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.car-card {
    background: var(--white-color);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.car-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

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

.car-card-content {
    padding: 20px;
}

.car-card-content h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.car-card-content p {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1em;
}

/* =================================== */
/*          GALLERY SECTION STYLES     */
/* =================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 5 Free', 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 40px;
    opacity: 0;
    transition: opacity 0.3s;
    text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* =================================== */
/*        "TENTANG KAMI" SECTION       */
/* =================================== */
#tentang-kami.full-page-section {
    min-height: 100vh;
    padding: 60px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--background-color);
}

.about-us-wrapper {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background-color: var(--white-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
}

.about-us-image {
    flex: 1 1 40%;
    min-height: 550px;
    background: url('images/about-us-photo.jpg') no-repeat center center/cover;
}

.about-us-text {
    flex: 1 1 60%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-us-text h2 {
    text-align: left;
    margin-bottom: 20px;
    font-size: 2.8em;
}

.about-us-text h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin-top: 10px;
}

.about-us-text p {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1em;
}

.about-us-text .btn-cta {
    margin-top: 20px;
    align-self: flex-start;
}

/* =================================== */
/*    MAP & ADDRESS SECTION STYLES     */
/* =================================== */
.map-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.location-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.address-details {
    flex: 1 1 40%;
}

.address-details h2 {
    text-align: left;
    font-size: 2.5em;
    color: var(--primary-color);
    margin-bottom: 25px;
}

.address-details h3 {
    font-size: 1.5em;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--secondary-color);
    display: inline-block;
}

.address-details p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 1em;
}

.address-details .contact-info {
    margin-top: 20px;
    margin-bottom: 20px;
}

.address-details .contact-info i {
    color: var(--secondary-color);
    margin-right: 10px;
    width: 20px;
}

.address-details .btn-cta {
    display: inline-block;
}

.social-links-contact {
    margin-top: 25px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.social-links-contact h4 {
    margin-right: 15px;
    font-size: 1.1em;
    color: var(--text-color);
}

.social-links-contact a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: var(--background-color);
    color: var(--primary-color);
    border: 1px solid #ddd;
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

.social-links-contact a:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
    transform: translateY(-3px);
}

.map-container {
    flex: 1 1 60%;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =================================== */
/*          POP-UP / MODAL             */
/* =================================== */
.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
}

.popup-content {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 2em;
    cursor: pointer;
    color: var(--white-color);
    line-height: 1;
}

.popup-content h3 {
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-size: 1.8em;
}

.popup-content p {
    line-height: 1.6;
}

.popup-details {
    margin-top: 20px;
}

.popup-form-group {
    margin-bottom: 15px;
}

.popup-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.popup-form-group input[type="date"],
.popup-form-group select,
.popup-form-group input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid var(--secondary-color);
    background: var(--white-color);
    color: var(--primary-color);
}

.popup-options label {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
    cursor: pointer;
}

.popup-price {
    margin-top: 20px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}

.popup-price span {
    color: var(--secondary-color);
}

.btn-whatsapp {
    display: block;
    width: 100%;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    margin-top: 20px;
    text-align: center;
    text-decoration: none;
}

/* Gallery Popup Styles */
.gallery-popup {
    display: none;
    position: fixed;
    z-index: 3000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.gallery-popup-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 900px;
    animation: zoomIn 0.6s;
}

@keyframes zoomIn {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

.gallery-close {
    position: absolute;
    top: 35px;
    right: 55px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.gallery-close:hover,
.gallery-close:focus {
    color: #bbb;
}

.gallery-prev,
.gallery-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    border-radius: 0 3px 3px 0;
}

.gallery-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.gallery-prev {
    left: 0;
}

.gallery-prev:hover,
.gallery-next:hover {
    background-color: rgba(0,0,0,0.8);
}

/* =================================== */
/*          FOOTER STYLES              */
/* =================================== */
.site-footer {
    background-color: var(--primary-color);
    color: #a9b3c9;
    padding-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    padding-bottom: 40px;
}

.footer-col h4 {
    color: var(--white-color);
    font-size: 1.2em;
    margin-bottom: 20px;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-col p {
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #a9b3c9;
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-links a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    color: var(--white-color);
    border-radius: 50%;
    margin-right: 10px;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.3s;
}

.social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

/* =================================== */
/*          UTILITIES & RESPONSIVE     */
/* =================================== */
#back-to-top-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
    z-index: 999;
    text-decoration: none;
}

#back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top-btn:hover {
    transform: scale(1.1);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
    .main-nav {
        position: absolute;
        top: calc(var(--header-height) + 15px);
        right: -100%;
        width: 300px;
        background: var(--primary-color);
        box-shadow: -2px 2px 10px rgba(0,0,0,0.1);
        border-radius: 5px;
        transition: right 0.4s ease-in-out;
        padding: 20px;
    }

    .main-nav.active {
        right: 20px;
    }
    
    .main-nav ul {
        flex-direction: column;
    }

    .main-nav ul li {
        margin: 15px 0;
    }

    .hamburger {
        display: block;
    }

    .about-us-wrapper,
    .location-wrapper {
        flex-direction: column;
    }

    .about-us-image {
        min-height: 300px;
    }
    
    .about-us-text {
        padding: 40px;
    }

    .about-us-text h2 {
        font-size: 2.2em;
    }

    .location-wrapper {
        text-align: left;
        padding: 30px;
    }
    
    .address-details {
        margin-bottom: 30px;
        width: 100%;
    }

    .address-details .btn-cta {
        display: block;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5em;
    }
    .hero p {
        font-size: 1.1em;
    }
}