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

:root {
    --primary-brown: #D4A574;
    --secondary-brown: #B8956A;
    --dark-brown: #8B6F47;
    --light-brown: #F5E6D3;
    --white: #FFFFFF;
    --dark: #2C1810;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    overflow-x: hidden;
    background: var(--light-brown);
}

/* Loading Screen Styles */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-brown) 0%, var(--primary-brown) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-gif {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.loading-text {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    animation: fadeInOut 2s ease-in-out infinite;
    position: relative;
    z-index: 10;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.loading-progress {
    height: 100%;
    background: var(--white);
    border-radius: 2px;
    animation: loading 3s ease-out forwards;
}

@keyframes loading {
    0% { width: 0%; }
    100% { width: 100%; }
}

.logo {
    width: 25px;
    height: 40px;
}

/* Logo adjustments for different contexts */
.nav-logo .logo {
    width: 25px;
    height: 40px;
}

/* Main Content */
.main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

.main-content.visible {
    opacity: 1;
}

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

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

.navbar.scrolled {
    background: var(--dark-brown);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

/* For product detail pages, always show solid navbar */
.product-detail-page .navbar {
    background: var(--dark-brown);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Aladin', system-ui;
    font-weight: 400;
    
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
}

.nav-menu a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.back-btn {
    background: var(--primary-brown);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: var(--white);
    color: var(--dark-brown);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.nav-mobile {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-brown);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.nav-mobile.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-mobile ul {
    list-style: none;
    padding: 0;
}

.nav-mobile li {
    text-align: center;
    margin: 0.5rem 0;
}

.nav-mobile a {
    color: var(--white);
    text-decoration: none;
    padding: 1rem;
    display: block;
    transition: all 0.3s ease;
}

.nav-mobile a:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section with Video Background */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: black;
    opacity: 0.9;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 80px;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    font-weight: bold;
}

.btn-primary {
    background: var(--white);
    color: var(--dark-brown);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--light-brown);
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--dark-brown);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-brown);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.2rem;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.about-video {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    background: var(--dark);
    overflow: hidden;
    animation: slideInRight 1s ease-out;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-video video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Products Section */
.products {
    padding: 100px 0;
    background: var(--white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.product-card {
    background: var(--light-brown);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 3px solid transparent;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 420px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.product-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-brown);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.product-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--dark-brown);
    font-weight: 600;
    line-height: 1.3;
}

.product-info p {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
}

.product-price {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-brown);
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
    margin-top: auto;
}

/* Testimoni Section - Marquee Style */
.testimoni {
    padding: 100px 0;
    background: var(--light-brown);
    overflow: hidden;
}

.marquee-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    margin-top: 3rem;
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
    height: 500px;
}

.marquee-track {
    display: flex;
    animation: marqueeScroll 25s linear infinite;
    height: 100%;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.marquee-slide {
    min-width: 400px;
    height: 100%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.marquee-slide img {
    width: 100%;
    height: auto;
    max-height: 460px;
    object-fit: contain;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--dark-brown);
    color: var(--white);
}

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

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.contact-info {
    text-align: left;
    animation: slideInLeft 1s ease-out;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-brown);
}

.contact-info p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-btn {
    background: var(--primary-brown);
    color: var(--white);
    padding: 15px 25px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.contact-btn:hover {
    background: var(--white);
    color: var(--dark-brown);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.contact-address {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border-left: 4px solid var(--primary-brown);
}

.contact-address h4 {
    color: var(--primary-brown);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.contact-address p {
    margin: 0;
    font-size: 1rem;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    height: 450px;
    position: relative;
    animation: slideInRight 1s ease-out;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: sepia(20%) saturate(120%) brightness(90%);
    transition: filter 0.3s ease;
}

.map-container:hover iframe {
    filter: sepia(0%) saturate(100%) brightness(100%);
}

.map-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary-brown);
    color: var(--white);
    padding: 10px 15px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 3rem 0;
}

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

.footer h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-brown);
}

.footer p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

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

.social-links a {
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid var(--primary-brown);
}

.social-links a:hover {
    background: var(--primary-brown);
    transform: translateY(-2px);
}

.footer-bottom {
    border-top: 1px solid var(--dark-brown);
    padding-top: 1rem;
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .social-links {
        flex-direction: column;
        gap: 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-logo {
        font-size: 1.5rem;
        font-family: 'Aladin', system-ui;
        font-weight: 400;
        font-style: normal;
    }

    .loading-gif {
        width: 120px;
        height: 120px;
    }

    .loading-text {
        font-size: 1.2rem;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-card {
        height: auto;
        min-height: 380px;
    }

    .map-container {
        height: 300px;
    }

    .map-overlay {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .marquee-wrapper {
        height: 300px;
    }

    .marquee-slide {
        min-width: 300px;
        padding: 15px;
    }

    .marquee-slide img {
        max-height: 270px;
    }

    .marquee-track {
        animation: marqueeScroll 20s linear infinite;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .container, .contact-container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 0 15px;
    }

    .loading-gif {
        width: 100px;
        height: 100px;
    }

    .loading-bar {
        width: 150px;
    }

    .product-card {
        margin: 0 10px;
        height: auto;
        min-height: 350px;
    }

    .products-grid {
        gap: 1.5rem;
        grid-template-columns: 1fr;
    }

    .product-image {
        height: 180px;
    }

    .map-container {
        height: 250px;
    }

    .contact-info h3 {
        font-size: 1.5rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .marquee-container {
        padding: 0 10px;
    }

    .marquee-wrapper {
        height: 250px;
    }

    .marquee-slide {
        min-width: 250px;
        padding: 10px;
    }

    .marquee-slide img {
        max-height: 230px;
    }

    .marquee-track {
        animation: marqueeScroll 15s linear infinite;
    }
}