/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    display: flex;
    flex-direction: column;
}

#cursorContainer {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* Menghindari scroll tambahan */
    pointer-events: none;
    z-index: 2000;
    overflow: hidden;
}

/* Font untuk halaman Home */
body.home {
    font-family: 'Vogue', serif;
}

/* Font untuk halaman About */
body.about {
    font-family: 'Merriweather', serif;
}

/* Font untuk halaman Gallery */
body.gallery {
    font-family: 'Roboto', sans-serif;
}

/* Font untuk halaman Review */
body.review {
    font-family: 'Open Sans', sans-serif;
}

/* Font untuk teks copyright di Footer */
footer .copyright {
    font-family: 'Courier New', monospace; /* Font monospace untuk copyright */
    font-size: 12px;
    color: #ccc; /* Warna yang lebih soft */
    margin-top: 1rem;
}

/* Navbar Styles */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.7s ease;
}

.nav-container {
    max-width: fit-content;
    margin: 1rem auto;
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    border-radius: 9999px;
    padding: 0.5rem 2rem;
    transition: all 0.7s ease;
}

@media (max-width: 768px) {
    .nav-container {
        transition: all 0.8s ease;
        position: relative;
        overflow: hidden;
        margin: 1rem auto;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    #navbar.scrolled .nav-container {
        width: 50px;
        height: 50px;
        margin: 1rem;
        padding: 0.5rem;
        position: fixed;
        left: 0;
        cursor: pointer;
        background-color: rgba(0, 0, 0, 0.5);
    }

    #navbar.scrolled.menu-open .nav-container {
        width: auto;
        height: auto;
        padding: 1rem 2rem;
        border-radius: 15px;
        background-color: rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(8px);
    }
    
    .nav-links {
        transition: all 0.7s ease;
        opacity: 1;
        display: flex;
        gap: 2rem;
    }

    #navbar.scrolled .nav-links {
        display: none;
    }

    #navbar.scrolled.menu-open .nav-links {
        display: flex;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links button {
        transition: all 0.7s ease;
    }

    #navbar.scrolled .nav-links {
        opacity: 0;
        pointer-events: none;
    }



    #navbar.menu-open .nav-links {
        opacity: 1;
        pointer-events: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    #navbar.menu-open .nav-links button {
        transform: scale(1) translateY(0);
        opacity: 1;
        transition-delay: 0.7s;
    }

    .nav-container .hamburger-icon {
        display: none;
        position: relative;
        width: 25px;
        height: 18px;
    }

    #navbar.scrolled .hamburger-icon {
        display: block;
    }

    .hamburger-icon {
        width: 25px;
        height: 18px;
        position: relative;
        display: none;
        margin: auto;
    }

    #navbar.scrolled .hamburger-icon {
        display: block;
    }

    .hamburger-icon::before,
    .hamburger-icon::after,
    .hamburger-icon .menu-line {
        content: '';
        display: block;
        width: 25px;
        height: 2px;
        background-color: white;
        position: absolute;
        transition: all 0.7s ease;
    }

    .hamburger-icon::before {
        top: 0;
    }

    .hamburger-icon::after {
        bottom: 0;
    }

    .hamburger-icon .menu-line {
        top: 50%;
        transform: translateY(-50%);
    }

    #navbar.menu-open .hamburger-icon::before {
        transform: translateY(8px) rotate(45deg);
    }

    #navbar.menu-open .hamburger-icon::after {
        transform: translateY(-8px) rotate(-45deg);
    }

    #navbar.menu-open .hamburger-icon .menu-line {
        opacity: 0;
    }

    #navbar.menu-open .hamburger-icon::before {
        transform: translateY(8px) rotate(45deg);
    }

    #navbar.menu-open .hamburger-icon::after {
        transform: translateY(-8px) rotate(-45deg);
    }

    #navbar.menu-open .hamburger-icon .menu-line {
        opacity: 0;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links button {
    color: white;
    background: none;
    border: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: color 0.7s;
}

.nav-links button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background-color: white;
    transform: scaleX(0);
    transition: transform 0.7s ease;
}

.nav-links button:hover::after {
    transform: scaleX(1);
}

.nav-links button.active::after {
    transform: scaleX(1);
}

/* Home Section */
#home {
    position: relative;
    height: 100vh; /* Mengisi tinggi layar penuh */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Video background */
#bg-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan video menutupi seluruh area */
    z-index: -1; /* Menempatkan video di belakang konten */
}

/* Home content */
.home-content {
    text-align: center;
    position: relative;
    z-index: 1; /* Menempatkan konten di atas video */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Logo */
.home-content .logo {
    max-width: 600px; /* Sesuaikan ukuran logo */
    margin-bottom: 20px; /* Jarak antara logo dan teks */
    animation: popup 1.3s ease-in-out; /* Efek animasi */
}

/* Tagline */
.home-content .tagline {
    position: absolute;
    bottom: 20px; /* Menempatkan teks di dekat bagian bawah */
    font-size: 1.2rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Efek bayangan teks */
    animation: popup 1.5s ease-in-out; /* Efek animasi */
}

/* Animasi popup */
@keyframes popup {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About Section */
#about {
    min-height: 100vh;
    background-color: #800000;
    padding: 6rem 2rem;
    color: white;
}

.about-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    flex: 1;
}

.about-image {
    flex: 1;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
}

/* Gallery Section */
#gallery {
    min-height: 100vh;
    padding: 6rem 2rem;
    text-align: center;
}

.gallery-grid {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s, transform 0.6s;
}

.gallery-grid.visible {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.overlay span {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

/* Review Section */
#review {
    min-height: 100vh;
    padding: 6rem 2rem;
    text-align: center;
    background-color: #f9f9f9;
}

#review h1 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #333;
}

.review-container {
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    padding: 0 60px; /* Space for buttons */
}

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

.review-slide {
    display: none;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
}

.review-slide.active {
    display: block;
    opacity: 1;
    position: relative;
}

.review-slide img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.review-content {
    max-width: 800px;
    margin: 0 auto;
}

blockquote {
    font-size: 1.25rem;
    line-height: 1.8;
    color: #555;
    font-style: italic;
    margin: 0 auto 2rem;
}

.client-name {
    font-size: 1.1rem;
    color: #333;
    font-weight: 600;
    margin-top: 2rem;
    padding-top: 1rem;
    position: relative;
}

.client-name::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background-color: #ddd;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #666;
}

.nav-btn:hover {
    background: #f8f8f8;
    color: #333;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Slide Animations */
.slide-enter {
    opacity: 0;
    transform: translateX(50px);
}

.slide-enter-active {
    opacity: 1;
    transform: translateX(0);
}

.slide-exit {
    opacity: 1;
    transform: translateX(0);
}

.slide-exit-active {
    opacity: 0;
    transform: translateX(-50px);
}

@media (max-width: 768px) {
    .review-container {
        padding: 0 40px;
    }
    
    blockquote {
        font-size: 1.1rem;
    }
    
    .review-slide img {
        width: 120px;
        height: 120px;
    }
}

/* Footer */
footer {
    margin-top: auto;
    background-color: #800000;
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
}

.footer-logo {
    max-width: 200px;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.social-icon img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.social-icon:hover img {
    transform: scale(1.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        margin: 0.5rem 1rem;
        padding: 0.5rem 1rem;
    }

    .nav-links {
        gap: 1rem;
    }

    .about-content {
        flex-direction: column;
        text-align: center;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .review-container {
        padding: 0 3rem;
    }
}