@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@300;400;500;600&display=swap');

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #121212;
    --text-primary: #ffffff;
    --text-secondary: #a8a8a8;
    --accent-red: #ff4444;
    --accent-gold: #d4af37;
    --font-display: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #1a0a0a 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Boot Screen */
.boot-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a0505 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeOutBoot 0.5s ease 2.5s forwards;
}

.boot-content {
    text-align: center;
}

.boot-logo {
    margin-bottom: 2rem;
    animation: logoFloat 2s ease-in-out infinite;
}

.logo-img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 30px rgba(255, 68, 68, 0.5));
    animation: logoGlow 2s ease-in-out infinite;
}

.boot-title {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 8px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    animation: titleReveal 1s ease forwards;
}

.loading-bar {
    width: 300px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 0 auto 1rem;
    overflow: hidden;
}

.loading-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-red), var(--accent-gold));
    width: 0;
    animation: loadingProgress 2s ease forwards;
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.8);
}

.boot-tagline {
    font-size: 0.9rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeIn 0.5s ease 1s forwards;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 2rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.95), rgba(10, 10, 10, 0.7));
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 68, 68, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.logo {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    filter: drop-shadow(0 0 10px rgba(255, 68, 68, 0.3));
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    width: 100%;
}

/* Cart Icon */
.cart-icon {
    position: relative;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.cart-icon:hover {
    transform: scale(1.1);
}

.cart-icon svg {
    color: var(--text-primary);
}

.cart-count {
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    text-align: center;
    line-height: 0.85;
    z-index: 2;
    position: relative;
}

.hero-title span {
    display: block;
    opacity: 0;
    transform: translateY(120px);
    animation: heroReveal 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-title span:first-child {
    animation-delay: 0.2s;
    background: linear-gradient(135deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title span:last-child {
    animation-delay: 0.4s;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    width: clamp(300px, 45vw, 600px);
    height: clamp(300px, 45vw, 600px);
    z-index: 1;
    opacity: 0;
    animation: imageReveal 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.6s forwards;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    filter: brightness(0.85) contrast(1.3) saturate(1.1);
    box-shadow: 0 0 80px rgba(255, 68, 68, 0.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeIn 1s ease 1.5s forwards, float 3s ease-in-out infinite;
}

/* Menu Section */
.menu-section {
    padding: 15vh 0;
    position: relative;
}

.section-header {
    padding: 0 5% 6rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 2rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 1;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 400px;
}

.menu-gallery {
    display: flex;
    gap: 3rem;
    padding: 0 5%;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.menu-gallery::-webkit-scrollbar {
    display: none;
}

.menu-item {
    min-width: clamp(280px, 35vw, 450px);
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.menu-item:hover {
    transform: translateY(-15px);
    border-color: rgba(255, 68, 68, 0.3);
    box-shadow: 0 20px 60px rgba(255, 68, 68, 0.2);
}

.item-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    position: relative;
}

.item-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    filter: brightness(0.9);
}

.menu-item:hover .item-image {
    transform: scale(1.1);
    filter: brightness(1);
}

.item-info {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-details {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.item-name {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-red);
}

.price-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.item-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.qty-input {
    width: 80px;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-align: center;
}

.qty-input:focus {
    outline: none;
    border-color: var(--accent-red);
}

.add-to-cart-btn {
    flex: 1;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent-red), #ff6666);
    border: none;
    border-radius: 8px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 68, 68, 0.4);
}

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 450px;
    height: 100vh;
    background: var(--bg-card);
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
}

.cart-modal.active {
    right: 0;
}

.cart-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cart-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
}

.close-cart {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: var(--accent-red);
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 2rem;
}

.empty-cart {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem 0;
}

.cart-item {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cart-item-details {
    flex: 1;
}

.cart-item-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cart-item-qty {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.cart-item-price {
    color: var(--accent-red);
    font-weight: 600;
}

.remove-item {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
    font-size: 1.2rem;
}

.remove-item:hover {
    color: var(--accent-red);
}

.cart-footer {
    padding: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.checkout-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border: none;
    border-radius: 12px;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.checkout-btn::before {
    content: "📱";
    font-size: 1.2rem;
}

/* Philosophy Section */
.philosophy {
    padding: 15vh 5%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 6rem;
    align-items: center;
}

.philosophy-text {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.7;
    color: var(--text-secondary);
}

.philosophy-text strong {
    color: var(--text-primary);
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-red), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Footer */
footer {
    padding: 6rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-content p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: clamp(4rem, 15vw, 10rem);
    font-weight: 900;
    line-height: 0.8;
    opacity: 0.05;
}

/* Animations */
@keyframes fadeOutBoot {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes logoGlow {

    0%,
    100% {
        filter: drop-shadow(0 0 30px rgba(255, 68, 68, 0.5));
    }

    50% {
        filter: drop-shadow(0 0 50px rgba(255, 68, 68, 0.8));
    }
}

@keyframes titleReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingProgress {
    to {
        width: 100%;
    }
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes imageReveal {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeIn {
    to {
        opacity: 0.6;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(-50%, 0);
    }

    50% {
        transform: translate(-50%, -10px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        padding: 1.5rem 5%;
    }

    .nav-links {
        display: none;
    }

    .hero {
        min-height: 80vh;
    }

    .hero-image-container {
        width: 80vw;
        height: 80vw;
    }

    .menu-gallery {
        flex-direction: column;
        padding: 0 5%;
    }

    .menu-item {
        min-width: 100%;
    }

    .philosophy {
        gap: 3rem;
    }

    .cart-modal {
        max-width: 100%;
    }
}