:root {
    --dark-bg: #121212;
    --gold: #D4AF37;
    --dark-green: #1A2E1A;
    --light-gold: #E8D9A0;
    --text-light: #E0E0E0;
    --text-dark: #333333;
    --menu-bg: #0a0a0a;
}

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

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

header {
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

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

.navbar {
    transition: transform 0.3s ease-in-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo h1 {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 1px;
    margin-left: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
    color: var(--gold);
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--gold);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.hero {
    height: 100vh;
    background: url('https://images.unsplash.com/photo-1445116572660-236099ec97a0?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2071&q=80') no-repeat center center/cover;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 600px;
}

.hero h2 {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.btn {
    display: inline-block;
    background-color: var(--gold);
    color: var(--dark-bg);
    padding: 0.8rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn:hover {
    background-color: transparent;
    color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background-color: transparent;
    color: var(--gold);
    margin-left: 1rem;
}

.btn-outline:hover {
    background-color: var(--gold);
    color: var(--dark-bg);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--gold);
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.menu-section {
    padding: 5rem 0;
    background-color: var(--dark-green);
    flex-wrap: nowrap;
    min-height: 100vh; /* Make the section take at least the full viewport height */
}

.menu-viewer {
    background-color: var(--menu-bg);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin: 0 auto;
    /* Increase the max-width to allow the menu to be wider */
    max-width: 95%; /* Or a specific pixel value like 900px or 1000px */
    position: relative;
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Add transition for hover effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-container {
    position: relative;
    /* Increase the height to better accommodate the image's aspect ratio */
    height: auto; /* Let the content determine the height */
    min-height: 100px; /* Add a minimum height to prevent collapse if content is very small initially */
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: center;
    align-items: center; /* Keep this for horizontal centering of the image */
    background-color: #000;
    /* Removed overflow: auto */
}

.menu-image {
    /* Adjust width to control the size more directly */
    width: 90%; /* Or a specific pixel value like 700px or 750px */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain;
    display: block;
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.menu-nav {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    align-items: center;
}

.menu-nav-btn {
    background-color: var(--dark-bg);
    color: var(--gold);
    border: 2px solid var(--gold);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-nav-btn:hover {
    background-color: var(--gold);
    color: var(--dark-bg);
    transform: scale(1.1);
}

.page-indicator {
    display: flex;
    align-items: center;
    margin: 0 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
    min-width: 100px;
    justify-content: center;
}

.page-indicator .page-label {
    margin-right: 0.5em; /* Adjust the value as needed */
}

.page-indicator .page-number {
    margin-right: 0.5em; /* Adjust the value as needed */
}

.about-section {
    padding: 5rem 0;
    background-color: var(--dark-bg);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.about-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

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

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(26, 46, 26, 0.3), transparent);
    z-index: 1;
}

.hours-section {
    padding: 5rem 0;
    background-color: var(--dark-green);
}

.hours-container {
    display: flex;
    justify-content: center;
}

.hours-card {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    position: relative;
    overflow: hidden;
}

.hours-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hours-card h3 {
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.hours-list {
    list-style: none;
    position: relative;
    z-index: 1;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hours-list li:last-child {
    border-bottom: none;
}

.day {
    color: var(--gold);
    font-weight: 500;
}

.time {
    color: var(--text-light);
}

footer {
    background-color: #000;
    padding: 3rem 0;
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.social-links {
    display: flex;
    margin-bottom: 1.5rem;
}

.social-links a {
    color: var(--text-light);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: all 0.3s ease;
    position: relative;
}

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

.social-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--gold);
    transition: width 0.3s ease;
}

.social-links a:hover::after {
    width: 100%;
}

.footer-links {
    display: flex;
    list-style: none;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links li {
    margin: 0.5rem 1rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--gold);
}

.copyright {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Floating coffee beans animation */
#floating-beans-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Allows clicking through the container */
    z-index: -1;
}

.floating-bean {
    position: absolute;
    bottom: -30px; /* Start below the viewport */
    width: 20px;
    height: 20px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23D4AF37"><path d="M15.5,12C15.5,10.07 17.07,8.5 19,8.5C20.93,8.5 22.5,10.07 22.5,12C22.5,13.5 21.6,14.77 20.25,15.26C20.91,15.83 21.25,16.68 21.25,17.5C21.25,19.16 19.91,20.5 18.25,20.5C17.32,20.5 16.47,20.11 15.88,19.5C14.55,20.45 12.83,21 11,21C6.03,21 2,16.97 2,12C2,7.03 6.03,3 11,3C15.97,3 20,7.03 20,12C20,12.42 19.96,12.83 19.91,13.24C19.36,12.69 18.62,12.35 17.81,12.3C16.25,12.21 15.5,13.5 15.5,15C15.5,15.35 15.57,15.68 15.68,16C15.18,16.38 14.75,16.84 14.42,17.36C13.3,16.8 12.5,15.64 12.5,14.29C12.5,12.29 14.29,11.5 15.5,12Z" /></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    animation: float 15s infinite linear;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        transform: translateY(-110vh) rotate(360deg); /* Ensure it goes well above viewport */
        opacity: 0;
    }
}

/* Pulse animation for CTA */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* Menu flip animation */
@keyframes flipIn {
    0% {
        transform: perspective(1000px) rotateY(90deg);
        opacity: 0;
    }
    100% {
        transform: perspective(1000px) rotateY(0deg);
        opacity: 1;
    }
}

.flip-in {
    animation: flipIn 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@media (max-width: 768px) {
    .navbar.hide-on-scroll {
        transform: translateY(-100%);
    }
    
    .navbar.show-on-scroll {
        transform: translateY(0);
    }
    
    .nav-links {
        display: none; /* Consider adding a hamburger menu */
    }

    .logo h1 {
        font-size: 1.5rem; /* Adjust logo size */
    }

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

    .about-content {
        flex-direction: column;
    }

    .menu-viewer {
        padding: 1rem;
        max-width: 100%; /* Allow full width on smaller screens */
    }
    .menu-image {
        width: 100%; /* Ensure image fits container */
    }
    .page-indicator {
        font-size: 1rem;
        min-width: 80px;
    }
    .menu-nav-btn {
        width: 35px;
        height: 35px;
    }

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

    .hours-card {
        max-width: 90%;
    }

    .footer-links {
        font-size: 0.9rem;
    }
}

/* Animation - Initial state setup for Intersection Observer */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.delay-1 {
    transition-delay: 0.2s;
}

.fade-in.delay-2 {
    transition-delay: 0.4s;
}

.fade-in.delay-3 {
    transition-delay: 0.6s;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-light);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2; /* Ensure it's above hero overlay */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-20px) translateX(-50%);
    }
    60% {
        transform: translateY(-10px) translateX(-50%);
    }
}