:root {
    --text-color: #333;
    --price-color: #000;
    --glass-bg: rgba(255, 255, 255, 0.45);
    --glass-border: rgba(255, 255, 255, 0.6);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: #f0f0f0;
    /* Simulating the leafy shadow background */
    background-image:
        radial-gradient(circle at 10% 20%, rgba(0, 0, 0, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(0, 0, 0, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(0, 0, 0, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #e0e0e0 0%, #f5f5f5 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Container to mimic the phone/poster screen */
.container {
    position: relative;
    width: 100%;
    max-width: 480px;
    height: 95vh;
    background: rgba(255, 255, 255, 0.0);
    display: flex;
    flex-direction: column;
    padding: 20px;
}

/* Large Header */
.header-title {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    color: #222;
    margin-bottom: 20px;
    margin-left: 10px;
    letter-spacing: -2px;
    line-height: 0.8;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.header-title.fade-out {
    opacity: 0;
    transform: translateY(-20px);
}

/* The Main Glass Card */
.menu-card {
    background: var(--glass-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    padding: 30px 20px;
    box-shadow: var(--shadow);
    flex-grow: 1;
    margin-right: 50px;
    /* Space for side nav */
    display: flex;
    flex-direction: column;
    position: relative;
    /* For absolute positioning of sections */
    overflow: hidden;
}

.menu-title {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

/* Section Container */
.section-container {
    position: relative;
    flex-grow: 1;
    overflow: hidden;
    /* Hide overflow specifically here */
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    height: 100%;
    padding-right: 5px;
    /* Space for scrollbar */

    /* Animation props */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.menu-list.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
    position: relative;
    /* Make it flow normally when active if needed, but absolute stack is smoother for transitions. Let's stick to absolute but manage scroll inside. */
    height: 100%;
    /* Ensure it takes full height */
    position: absolute;
    /* Keep absolute to overlap */
    z-index: 10;
}

/* Scrollbar styling */
.menu-list::-webkit-scrollbar {
    width: 4px;
}

.menu-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 4px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 0.95rem;
    color: #444;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.05);
}

.menu-item:last-child {
    border-bottom: none;
}

.item-name {
    font-weight: 500;
}

.item-price {
    font-weight: 700;
    color: #111;
}

/* Side Navigation */
.side-nav {
    position: absolute;
    top: 20px;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 20;
}

.nav-tab {
    background: rgba(255, 255, 255, 0.4);
    color: #333;
    width: 40px;
    padding: 20px 5px;
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    cursor: pointer;
    box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: 2px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.7);
    width: 45px;
    /* Slight pop */
}

.nav-tab.active {
    background: #333;
    color: #fff;
    box-shadow: -2px 2px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
}

/* Adjust positions based on image */
.nav-hair {
    height: 140px;
}

.nav-skin {
    height: 140px;
}

.nav-academy {
    height: 160px;
}

/* Pink dots decoration */
.decor-dots {
    position: absolute;
    right: 60px;
    top: 50%;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: transform 0.5s ease;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff80ff, #aa00aa);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: scaleY(0.6);
    border: 1px solid white;
}