/* === Playful Glassmorphism & High Contrast Aesthetic === */
:root {
    /* Colors representing Grape & Grill */
    --color-grape-deep: #0a0a0a;
    /* Black background foundation */
    --color-grape-light: #1f1f1f;
    /* Dark gray for subtle gradients */
    --color-grape-vibrant: #d90429;
    /* Vibrant Red element */
    --color-grill-fire: #ff6200;
    /* Punchy Orange */
    --color-grill-sun: #ff9d00;
    /* Bright Orange accent */

    --color-white: #FFFFFF;
    --color-text-dim: rgba(255, 255, 255, 0.85);

    /* Typography */
    --font-heading: 'Fredoka', cursive, sans-serif;
    --font-body: 'Outfit', sans-serif;

    /* Shapes & Shadows */
    --radius-huge: 40px;
    --radius-pill: 100px;
    --radius-card: 24px;

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.12);
    --glass-blur: blur(30px);

    --shadow-soft: 0 30px 60px rgba(0, 0, 0, 0.4);
    --shadow-glow-orange: 0 15px 35px rgba(255, 98, 0, 0.35);
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    /* For smooth anchor scrolling to #menu-section */
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-grape-deep);
    color: var(--color-white);
    min-height: 100vh;
    padding: 2vw;
    display: flex;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* === Abstract Floating Orbs === */
.bg-orb {
    position: fixed;
    filter: blur(100px);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
    animation: drift 25s infinite alternate ease-in-out;
}

.orb-1 {
    top: -10%;
    left: 0;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-grape-light), transparent 70%);
}

.orb-2 {
    bottom: -10%;
    right: -5%;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, var(--color-grape-vibrant), transparent 70%);
    animation-delay: -5s;
    animation-duration: 30s;
}

.orb-3 {
    top: 30%;
    left: 40%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, var(--color-grill-fire), transparent 70%);
    opacity: 0.6;
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(8%, -8%) scale(1.1);
    }

    66% {
        transform: translate(-10%, 15%) scale(0.9);
    }

    100% {
        transform: translate(5%, -5%) scale(1.05);
    }
}

/* === Main Application Container === */
.app-container {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-huge);
    width: 100%;
    max-width: 1400px;
    padding: 2.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    z-index: 10;
    margin: 1rem 0;
    overflow: hidden;
    /* contain inner elements cleanly */
}

/* === Navbar === */
.pill-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-pill);
    padding: 0.75rem 1rem 0.75rem 1.5rem;
    border: 1px solid var(--glass-border);
    margin-bottom: 4rem;
}

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

/* Native white logo styling */
.brand-logo {
    height: 65px;
    object-fit: contain;
}

.btn-cta {
    background: linear-gradient(135deg, var(--color-grill-sun), var(--color-grill-fire));
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-glow-orange);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 45px rgba(255, 98, 0, 0.5);
}

/* === Hero Section Layout === */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    margin-bottom: 6rem;
    padding: 0 1rem;
}

.hero-content {
    flex: 1;
    max-width: 650px;
}

.badge {
    display: inline-block;
    background: rgba(255, 98, 0, 0.2);
    color: var(--color-grill-sun);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-pill);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 98, 0, 0.4);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.text-gradient {
    background: linear-gradient(to right, var(--color-grill-sun), var(--color-grill-fire));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-dim);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

/* 3-Step Feature Pills reminiscent of reference */
.feature-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.feature-pill {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--glass-border);
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-pill);
    font-weight: 500;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hero Right Side Graphic */
.hero-graphic {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    perspective: 1000px;
}

.hero-card {
    position: relative;
    width: 90%;
    max-width: 450px;
}

/* Displaying page 1 as a 3D graphic */
.hero-image {
    width: 100%;
    border-radius: var(--radius-card);
    border: 4px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    display: block;
    cursor: pointer;
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.6s ease;
}

.hero-image:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
}

.floating {
    animation: floatSoft 6s ease-in-out infinite;
}

@keyframes floatSoft {
    0% {
        transform: translateY(0px) rotateY(-10deg) rotateX(5deg);
    }

    50% {
        transform: translateY(-15px) rotateY(-8deg) rotateX(8deg);
    }

    100% {
        transform: translateY(0px) rotateY(-10deg) rotateX(5deg);
    }
}

.floating-badge {
    position: absolute;
    background: white;
    color: #121212;
    font-family: var(--font-heading);
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.badge-1 {
    top: -20px;
    right: -30px;
    animation: bounceSlow 4s infinite 1s;
}

.badge-2 {
    bottom: 30px;
    left: -40px;
    animation: bounceSlow 5s infinite;
}

@keyframes bounceSlow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* === Menu Showcase === */
.menu-showcase {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 30px;
    padding: 4rem 2rem;
    border: 1px solid var(--glass-border);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 80px;
    height: 6px;
    background: linear-gradient(90deg, var(--color-grill-sun), var(--color-grape-vibrant));
    border-radius: 10px;
    margin: 0 auto;
}

.menu-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 900px;
}

.menu-card {
    width: 100%;
    height: auto;
    border-radius: var(--radius-card);
    border: 2px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: block;
    cursor: pointer;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.5s ease;
}

@media (min-width: 768px) {
    .menu-card:hover {
        transform: scale(1.04) translateY(-10px);
        box-shadow: 0 35px 60px rgba(0, 0, 0, 0.7);
        z-index: 5;
        position: relative;
        border-color: rgba(255, 255, 255, 0.4);
    }
}

/* === Footer === */
.app-footer {
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Animations === */
.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.slide-up {
    animation: slideUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateY(50px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === Scroll Animations === */
.scroll-animate {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.scroll-animate.scrolled-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* === Responsive Design === */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }

    .hero-section {
        gap: 2rem;
    }
}

@media (max-width: 850px) {
    body {
        padding: 0;
    }

    .app-container {
        border-radius: 0;
        border: none;
        padding: 1.5rem;
        margin: 0;
    }

    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 4rem;
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .feature-pills {
        justify-content: center;
    }

    .hero-title {
        font-size: 3.5rem;
    }

    .hero-graphic {
        display: none;
        /* Hides the hero-card and floating badges on mobile */
    }

    .menu-showcase {
        padding: 3rem 1rem;
        border-radius: 20px;
    }

    .menu-stack {
        gap: 1.5rem;
    }
}

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

    .pill-nav {
        padding: 0.5rem;
        border-radius: 20px;
        flex-direction: column;
        gap: 1rem;
    }

    .btn-cta {
        width: 100%;
        text-align: center;
    }

    .brand-logo {
        height: 32px;
    }
}

/* === Lightbox Styles === */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8);
    animation: zoomIn 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 1001;
}

.close-lightbox:hover,
.close-lightbox:focus {
    color: var(--color-grill-fire);
    text-decoration: none;
    cursor: pointer;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}