/* Base Styles for Ceviche */
body, html {
    margin: 0;
    padding: 0;
    height: 100vh;  /* Use viewport height */
    overflow: hidden;  /* Disable scrolling on the entire page */
    scroll-behavior: smooth;
    font-family: 'Playfair Display', serif;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Background Image with Overlay */
body::before {
    content: "";
    position: fixed; /* Keeps the background fixed while scrolling */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/bg.jpg') no-repeat center center fixed;
    background-size: cover;
    opacity: 0.4;
    z-index: -1;
}

/* Mobile Frame with Dimmed Background Overlay */
#mobile-frame {
    width: 375px;
    height: 667px;  /* Fixed height */
    border-radius: 20px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    background: url('../assets/images/cevichebg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;  /* Only the mobile frame scrolls */
    position: relative;
}

/* Overlay to Dim the Mobile Frame Background */
#mobile-frame::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 950px;
    border-radius: 20px;
    background: rgba(0, 31, 77, 0.7);
    z-index: 0;
}

/* Ensure content sits above the overlay */
#mobile-frame > * {
    position: relative;
    z-index: 1;
}

/* Navbar positioned at the top-left */
#navbar {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1000;
}

/* Home Button Styling */
#home-button {
    font-size: 16px;
    padding: 8px 12px;
    background: rgba(0, 31, 77, 0.9);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    transition: background 0.2s ease-in-out;
}

#home-button:hover {
    background: #004080;
}

/* Logo Styling */
#logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 80px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 0.3s;
}

#logo-container img {
    width: 150px;
    height: auto;
    transition: transform 0.3s ease-in-out;
}

#logo-container img:hover {
    transform: scale(1.1);
}

/* Restaurant Image */
#restaurant-image {
    width: 100%;
    max-height: 200px;
    border-radius: 10px;
    margin-top: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 0.6s;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

#restaurant-image:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Content Section */
#content {
    text-align: center;
    flex-grow: 1;
    padding: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 0.9s;
}

/* Typography for Fine Dining Look */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    text-transform: capitalize;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 1.2s;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
    color: #ffd700;  /* Rich gold color */
}

p, label, a, button {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: 18px;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards 1.5s;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

/* Footer Section */
footer {
    background: linear-gradient(90deg, #001f4d, #004080);
    color: #ffffff;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 15px 0;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    font-family: 'Lora', serif;
    font-weight: 700;
    transition: background 0.5s ease-in-out;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Footer Buttons */
.footer-button {
    text-decoration: none;
    display: inline-block;
    margin: 0 10px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.footer-button img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
}

.footer-button:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.8));
}

footer:hover {
    background: linear-gradient(90deg, #004080, #001f4d);
}

/* Fade-in Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media screen and (max-width: 768px) {
    #mobile-frame {
        width: 100%;
        height: auto;
        border-radius: 0;
    }

    #logo-container img {
        width: 120px;
    }
}
