* {
    box-sizing: border-box;
}

/* CSS for Black & Gold Korean Design */

:root {
    --bg-color: transparent;
    --text-color: #c08060;
    /* Bronze */
    --accent-color: #c08060;
    /* Bronze border/icon */
    --curve-panel: #000000;
    /* Black */
    --btn-bg: transparent;
    /* Transparent buttons */
    --card-bg: #ffffff;
    --title-color: #e5c783;
    /* Light Gold */
    --nav-active-bg: #faf5bf;
    /* Home Button Background */
    --title-font: 'Cormorant', serif;
    --body-font: 'SUIT', sans-serif;
}

body {
    background-color: #000000;
    /* Black background outside container */
    color: var(--text-color);
    font-family: var(--body-font);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-image: url('../images/background.png');
    /* Mobile background only */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Header Top Row - Removed in this design */
.header-top-row {
    display: none;
}

/* Header Title area */
.header-title-area {
    margin-top: 60px;
    /* Reduced top margin to pull title up */
    text-align: center;
    z-index: 10;
    position: relative;
    padding: 0 20px;
}

.header-title {
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--title-color);
    font-family: var(--title-font);
    /* #e5c783 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Black Curved Bottom Panel */
.bottom-curve-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 66%;
    /* Back to 74% as requested */
    background-color: var(--curve-panel);
    /* Black */
    border-top-left-radius: 50% 15%;
    /* Convex curve */
    border-top-right-radius: 50% 15%;
    z-index: 1;
}

/* Action Buttons Container */
.circular-buttons-container {
    position: absolute;
    top: 32%;
    /* Positioned slightly higher */
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 10;
    padding: 0 20px;
}

.circular-btn-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100px;
    /* Wider for Korean text */
}

.circular-btn {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background-color: #000000;
    /* Black background */
    border: 2px solid var(--accent-color);
    /* Bronze Border */
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    text-decoration: none;
    transition: transform 0.2s;
    color: var(--accent-color);
    /* Bronze Icon */
    font-size: 1.5rem;
}

/* Middle button slightly elevated */
.circular-btn-wrapper:nth-child(2) .circular-btn {
    margin-top: -25px;
}

.circular-btn:hover {
    transform: scale(1.05);
    background-color: #000000;
}

.circular-btn:active {
    transform: scale(0.97);
    background-color: #000000;
}

.circular-btn-label {
    color: var(--text-color);
    /* Bronze */
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    word-break: keep-all;
    /* Prevent awkward breaks in Korean */
}

/* Central Image */
.central-coffee-img {
    position: absolute;
    bottom: 140px;
    /* Positioned above bottom nav */
    left: 50%;
    transform: translateX(-50%);
    max-width: 350px;
    /* Larger size */
    width: 75%;
    height: auto;
    z-index: 5;
    /* Above curve */
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.5));
}

/* Bottom Area for Logo - REMOVED */
.bottom-area {
    display: none;
}

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background-color: #1a1a1a;
    /* Dark sidebar */
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.sidebar.active {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-item {
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 10px;
    border-bottom: 1px solid rgba(201, 173, 115, 0.2);
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1900;
    display: none;
}

.sidebar-overlay.active {
    display: block;
}


/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    max-width: 480px;
    /* Match main width */
    height: 70px;
    background-color: #000000;
    /* Changed to solid black */
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
    padding-bottom: 10px;
}

/* Separator line with semi-circle cutout */
.bottom-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
            var(--accent-color) 0%,
            var(--accent-color) calc(50% - 50px),
            transparent calc(50% - 50px),
            transparent calc(50% + 50px),
            var(--accent-color) calc(50% + 50px),
            var(--accent-color) 100%);
}

/* Semi-circle cutout for home button */
.bottom-nav::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 50px;
    border: 2px solid var(--accent-color);
    border-bottom: none;
    border-radius: 50px 50px 0 0;
    background: transparent;
}

.nav-item {
    background: none;
    border: none;
    color: #666;
    /* Default icon color if any */
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.3s;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    pointer-events: auto;
    z-index: 101;
}

.nav-item.active {
    background-color: transparent;
    /* Remove black background */
    color: var(--accent-color);
    border: none;
    /* Remove border */
    width: 80px;
    height: 60px;
    box-shadow: none;
    /* Remove shadow */
    margin-bottom: 20px;
}

.nav-img-logo {
    width: 65px;
    /* Enlarged from 50px */
    height: auto;
    object-fit: contain;
}

.nav-item:hover {
    color: var(--text-color);
}

.nav-item.active:hover {
    transform: scale(1.05);
}