/* Variables & Theme */
:root {
    --primary: #800000;
    /* Maroon */
    --primary-light: #A52A2A;
    --primary-dark: #5C0000;
    --secondary: #FFFFFF;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #F8F9FA;
    --bg-dark: #121212;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(128, 0, 0, 0.15);
    --shadow-3d:
        0px 2px 0px #5c0000,
        0px 4px 0px #4d0000,
        0px 6px 15px rgba(0, 0, 0, 0.4);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

.highlight {
    color: var(--primary);
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--text-main);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Utilities / Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--secondary);
    box-shadow: 0 10px 20px rgba(128, 0, 0, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(128, 0, 0, 0.4);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--primary);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background-color: #f1f1f1;
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--secondary);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

/* 3D Effects */
.card-3d {
    background: var(--secondary);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(2deg);
    box-shadow: var(--shadow-lg);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.logo span {
    color: var(--text-main);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
}

.navbar.scrolled .nav-links a {
    color: var(--text-main);
}

.navbar:not(.scrolled) .nav-links a {
    color: var(--secondary);
}

.navbar:not(.scrolled) .logo span {
    color: var(--secondary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* Hero Section updated for Massive Product Background & Spices */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    background-color: var(--bg-dark);
}

.hero-spices-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bumbu_rempah_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.7;
}

.hero-product-bg {
    position: absolute;
    top: 0;
    right: -10vw;
    width: 70vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    pointer-events: none;
}

.hero-massive-img {
    width: 100%;
    height: auto;
    max-height: 130vh;
    object-fit: contain;
    filter: drop-shadow(-20px 20px 30px rgba(0,0,0,0.8));
    transform: scale(1.4) rotate(-5deg);
    animation: slowFloat 10s ease-in-out infinite;
}

@keyframes slowFloat {
    0% { transform: scale(1.4) rotate(-5deg) translateY(0); }
    50% { transform: scale(1.4) rotate(-5deg) translateY(-20px); }
    100% { transform: scale(1.4) rotate(-5deg) translateY(0); }
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.1) 100%);
    z-index: 2;
}

.hero-content-full {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-text-overlay {
    max-width: 650px;
    padding-left: 20px;
}

.hero-text-overlay h1 {
    font-size: 4.5rem;
    color: var(--secondary);
    margin-bottom: 10px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
    line-height: 1.1;
}

.highlight-light {
    color: #ffd700;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.subtitle-spices {
    font-size: 1.4rem;
    color: #ffcccc;
    font-style: italic;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-text-overlay p {
    font-size: 1.2rem;
    color: #e0e0e0;
    margin-bottom: 40px;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-outline-light {
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline-light:hover {
    background: var(--secondary);
    color: var(--primary-dark);
}

/* Menu Section */
.menu-section {
    padding: 100px 0;
    background-color: var(--secondary);
    position: relative;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    padding: 20px 0;
}

.menu-card {
    overflow: hidden;
    padding-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.card-img {
    position: relative;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.card-img img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.8s ease;
    filter: drop-shadow(0 15px 15px rgba(0, 0, 0, 0.15));
}

.menu-card:hover .card-img img {
    transform: scale(1.1) rotate(-5deg);
}

.price-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 5px 15px rgba(128, 0, 0, 0.3);
}

.card-content {
    padding: 30px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

.card-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    height: 70px;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, #f9f9f9, var(--secondary));
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.text-left {
    text-align: left;
}

.history-card {
    padding: 40px;
    background: white;
    border-left: 8px solid var(--primary);
}

.lead {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
    font-style: italic;
}

.history-card p {
    margin-bottom: 15px;
}

.vision-mission-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.vision-card,
.mission-card {
    padding: 35px;
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

.mission-card {
    background: white;
    color: var(--text-main);
    border: 2px solid var(--primary);
}

.icon-wrapper {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--secondary);
}

.mission-card .icon-wrapper {
    color: var(--primary);
}

.vision-card h3,
.mission-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.vision-card p {
    font-size: 1.1rem;
    opacity: 0.9;
}

.mission-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.mission-card ul li i {
    color: var(--primary);
    margin-top: 5px;
}

/* Footer & Contact */
.footer {
    position: relative;
    background-color: var(--primary-dark);
    color: white;
    padding-top: 150px;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
}

.footer-wave svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

.footer-wave .shape-fill {
    fill: var(--secondary);
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-info h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-info h2 span {
    color: #ffcccc;
}

.footer-info p {
    font-size: 1.1rem;
    opacity: 0.8;
    max-width: 80%;
}

.footer-contact h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-contact h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background: white;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateX(10px);
    color: #ffcccc;
}

.contact-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    background: white;
    color: var(--primary-dark);
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    background-color: #3b0000;
}

/* Responsive Design */
@media (max-width: 992px) {

    .hero-content-full {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .hero-text-overlay {
        padding-left: 0;
        max-width: 100%;
    }

    .hero-buttons {
        justify-content: center;
    }

    .about-content,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        gap: 40px;
    }

    .hero-product-bg {
        right: -30vw;
        opacity: 0.5; /* fade duck somewhat on mobile */
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-text-overlay h1 {
        font-size: 3rem;
    }

    .subtitle-spices {
        font-size: 1.2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}