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

body {
    font-family: 'Poppins', sans-serif;
    background: #000000;
    min-height: 100vh;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

.menu-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #000000;
}

/* Closed Book Styles */
.book-closed {
    perspective: 1000px;
    animation: fadeIn 1s ease-in-out;
}

.book-cover {
    width: 400px;
    height: 600px;
    background: linear-gradient(145deg, #8B0000, #DC143C);
    border-radius: 20px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 2px 10px rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s ease;
    border: 3px solid #FFD700;
}

.book-cover:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

.logo-container {
    margin-bottom: 30px;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #FFD700;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.restaurant-name {
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.tagline {
    font-size: 1.1rem;
    color: #FFFFFF;
    margin-bottom: 40px;
    font-weight: 300;
}

.open-book-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.open-book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(255, 215, 0, 0.4);
    background: linear-gradient(45deg, #FFA500, #FFD700);
}

.open-book-btn:active {
    transform: translateY(-1px);
}

/* Open Book Styles */
.book-open {
    width: 100%;
    height: 100vh;
    background: #000000;
    display: flex;
    flex-direction: column;
    animation: bookOpen 1s ease-in-out;
}

.page-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: linear-gradient(90deg, #8B0000, #DC143C);
    border-bottom: 3px solid #FFD700;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-btn {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.nav-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.page-indicator {
    color: #FFD700;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.book-pages {
    position: relative;
    flex: 1;
    overflow-y: auto;
    margin-top: 80px;
    background: #000000;
}

.menu-page {
    display: none;
    padding: 30px 20px;
    animation: pageSlide 0.5s ease-in-out;
    background: #000000;
    min-height: calc(100vh - 140px);
    overflow-x: hidden;
}

.menu-page.active {
    display: block;
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #FFD700;
}

.page-header h2 {
    font-size: 2.5rem;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.menu-section {
    margin-bottom: 40px;
}

.menu-section h3 {
    font-size: 1.8rem;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-left: 4px solid #FFD700;
    padding-left: 15px;
    text-align: center;
}

.price-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
}

.size-price {
    background: linear-gradient(45deg, #DC143C, #8B0000);
    color: #FFFFFF;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(220, 20, 60, 0.3);
}

.flavors {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.flavor-tag {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    color: #1a1a1a;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.dish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    justify-items: center;
    padding: 0 15px;
}

.dish-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #FFD700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-height: 200px;
}

.dish-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.5s ease;
}

.dish-card:hover::before {
    left: 100%;
}

.dish-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
    border-color: #FFA500;
}

.dish-card h4 {
    font-size: 1.3rem;
    color: #FFD700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.dish-card .description {
    color: #CCCCCC;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.dish-card .price {
    font-size: 1.2rem;
    color: #DC143C;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.buy-btn {
    width: 100%;
    background: linear-gradient(45deg, #25D366, #128C7E);
    color: #FFFFFF;
    border: none;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(45deg, #128C7E, #25D366);
}

.buy-btn:active {
    transform: translateY(0);
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
    justify-items: center;
    padding: 0 15px;
}

.deal-card {
    background: transparent;
    border-radius: 15px;
    padding: 0;
    border: 2px solid #FFD700;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    width: 100%;
    max-width: 350px;
}

.deal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.deal-card:hover::before {
    left: 100%;
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(220, 20, 60, 0.4);
}

.deal-card h4 {
    font-size: 1.4rem;
    color: #FFD700;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.deal-card p {
    color: #FFFFFF;
    font-size: 0.95rem;
    margin-bottom: 15px;
    line-height: 1.4;
}

.deal-card .price {
    font-size: 1.3rem;
    color: #FFD700;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.deal-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 13px 13px 0 0;
    position: relative;
    background: #000;
}

.deal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

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

.deal-content {
    padding: 15px;
    background: linear-gradient(145deg, #DC143C, #8B0000);
    border-radius: 0 0 13px 13px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 80px;
}

.contact-section {
    background: linear-gradient(145deg, #1a1a1a, #2d2d2d);
    border-radius: 15px;
    padding: 25px;
    border: 2px solid #FFD700;
    margin-top: 30px;
}

.contact-section h3 {
    font-size: 1.8rem;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #FFFFFF;
    font-size: 1.1rem;
    padding: 10px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 215, 0, 0.2);
    transform: translateX(5px);
}

.contact-item i {
    color: #FFD700;
    font-size: 1.2rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bookOpen {
    from {
        opacity: 0;
        transform: scale(0.5) rotateY(-180deg);
    }
    to {
        opacity: 1;
        transform: scale(1) rotateY(0deg);
    }
}

@keyframes pageSlide {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .menu-container {
        padding: 5px;
    }
    
    .book-cover {
        width: 320px;
        height: 500px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .restaurant-name {
        font-size: 2rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
    
    .open-book-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .book-open {
        margin: 0;
    }
    
    .page-nav {
        padding: 15px 20px;
    }
    
    .book-pages {
        margin-top: 70px;
    }
    
    .nav-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .page-header h2 {
        font-size: 2rem;
    }
    
    .menu-section h3 {
        font-size: 1.5rem;
    }
    
    .menu-page {
        padding: 15px 10px;
    }
    
    .dish-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
        margin: 0 5px;
    }
    
    .dish-card {
        padding: 15px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .dish-card h4 {
        font-size: 1.1rem;
    }
    
    .deals-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 5px;
        margin: 0 5px;
    }
    
    .deal-card {
        min-height: 280px;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .deal-image {
        height: 200px;
    }
    
    .deal-content {
        padding: 12px;
        min-height: 60px;
    }
    
    .contact-section {
        margin: 20px 5px;
        padding: 20px 15px;
    }
    
    .contact-item {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .menu-container {
        padding: 2px;
    }
    
    .book-cover {
        width: 280px;
        height: 450px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .restaurant-name {
        font-size: 1.8rem;
    }
    
    .page-header h2 {
        font-size: 1.8rem;
    }
    
    .menu-section h3 {
        font-size: 1.3rem;
    }
    
    .menu-page {
        padding: 10px 5px;
    }
    
    .dish-grid {
        padding: 0 2px;
        margin: 0 2px;
    }
    
    .deals-grid {
        padding: 0 2px;
        margin: 0 2px;
    }
    
    .price-info {
        flex-direction: column;
        align-items: center;
    }
    
    .flavors {
        justify-content: center;
    }
    
    .deal-card {
        min-height: 220px;
    }
    
    .deal-image {
        height: 140px;
    }
    
    .deal-content {
        padding: 10px;
        min-height: 50px;
    }
    
    .contact-section {
        margin: 15px 2px;
        padding: 15px 10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #FFD700;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Animation */
.success-animation {
    animation: successPulse 0.6s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}
