@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

/* Global Helpers */
.no-scroll {
    overflow: hidden !important;
}

:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.05);
    --accent-red: #e63946;
    --accent-gold: #d4af37;
    --text-white: #ffffff;
    --text-gray: #b0b0b0;
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, .serif {
    font-family: 'Playfair Display', serif;
}

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8), transparent);
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.logo {
    text-align: center;
    line-height: 1;
}

.logo-text {
    color: var(--accent-red);
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo-text span {
    color: white;
    font-size: 1.8rem;
    display: block;
    margin-top: -5px;
}

.logo-sub {
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: var(--accent-gold);
    font-weight: 700;
    margin-top: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--accent-red);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-icon {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.cart-count {
    background: var(--accent-red);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 50%;
    position: absolute;
    top: -5px;
    right: -5px;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.9)), url('https://images.unsplash.com/photo-1541745537411-b8046dc6d66c?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    position: relative;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.5);
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-content .subtitle {
    color: var(--accent-gold);
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-style: italic;
    margin-bottom: 0px;
}

.hero-content h1 {
    font-size: 6rem;
    line-height: 0.9;
    margin-bottom: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.hero-content .details {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.hero-content .details span {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-content .details span b {
    color: var(--accent-red);
}

.btn-primary {
    background: var(--accent-red);
    color: white;
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    transition: transform 0.3s, background 0.3s;
    display: inline-block;
}

.btn-primary:hover {
    transform: scale(1.05);
    background: #c92c3a;
}

/* Categories */
.categories-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: -40px 0 50px;
    position: relative;
    z-index: 100;
    padding: 0 5%;
    flex-wrap: wrap;
}

.category-item {
    background: #1a1a1a;
    border: 1px solid var(--glass-border);
    padding: 15px 30px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 160px;
    justify-content: center;
}

.category-item i {
    font-size: 1.2rem;
}

.category-item span {
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.category-item.active, .category-item:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
}

/* Menu Grid */
.menu-section {
    padding: 50px 5%;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.section-title h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
}

.view-all {
    color: var(--accent-red);
    text-decoration: none;
    font-size: 0.9rem;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--glass-border);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.product-image {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
    position: relative;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 15px;
    height: 40px;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--accent-gold);
}

.add-btn {
    background: var(--accent-red);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    border: none;
    color: white;
    font-size: 1.2rem;
}

/* Info Bar */
.info-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 40px 5%;
    background: rgba(255,255,255,0.02);
    margin-top: 50px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item i {
    font-size: 2rem;
    color: var(--accent-gold);
}

.info-text h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
}

.info-text p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Footer */
footer {
    padding: 80px 5% 40px;
    background: #050505;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 25px;
    color: var(--accent-gold);
}

.footer-col p, .footer-col ul {
    color: var(--text-gray);
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--glass-border);
    color: var(--text-gray);
    font-size: 0.8rem;
}

/* 3D Showcase Section */
#canvas-container {
    width: 100%;
    height: 500px;
    background: radial-gradient(circle, #1a1a1a 0%, #0a0a0a 100%);
    position: relative;
}

.canvas-overlay {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Language Selector */
.lang-selector {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
}

/* =========================================
   LANGUAGE OVERLAY (ENTRY GATE)
   ========================================= */
.lang-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.9)),
        url('https://images.unsplash.com/photo-1590947132387-155cc02f3212?auto=format&fit=crop&q=80&w=1200');
    background-size: cover;
    background-position: center;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.lang-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.lang-overlay-content {
    max-width: 900px;
    width: 90%;
    text-align: center;
    animation: fadeInScale 1s ease-out;
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.brand-header { margin-bottom: 3rem; }

.brand-name-main {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--text-white);
    letter-spacing: 10px;
    line-height: 0.9;
}

.brand-name-main span {
    color: var(--accent-red);
    font-size: 0.8em;
}

.brand-subtitle-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 10px;
}

.brand-subtitle-line .line {
    height: 1px;
    width: 60px;
    background: linear-gradient(to right, transparent, var(--accent-gold), transparent);
}

.brand-subtitle-line .subtitle {
    font-size: 0.8rem;
    letter-spacing: 4px;
    color: var(--accent-gold);
}

.lang-welcome {
    font-size: 1.2rem;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.lang-instruction {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 3rem;
}

.lang-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 3rem;
}

.lang-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    padding: 2rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none;
    color: white;
}

.lang-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

.lang-card.selected {
    border: 1px solid var(--accent-red);
    background: rgba(230, 57, 70, 0.1);
}

.lang-flag-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 2px solid var(--glass-border);
}

.lang-flag-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lang-card-text h3 {
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.btn-continue-site {
    background: var(--accent-red);
    border: none;
    color: white;
    padding: 1.2rem 3rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 50px;
    opacity: 0.3;
    pointer-events: none;
    transition: all 0.4s;
}

.btn-continue-site.active {
    opacity: 1;
    pointer-events: auto;
}

.btn-continue-site:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

/* =========================================
   RESPONSIVE DESIGN (MOBILE)
   ========================================= */
@media (max-width: 768px) {
    header {
        padding: 15px 5%;
    }

    .logo-text { font-size: 1.8rem; }
    .logo-text span { font-size: 1.5rem; }
    
    nav ul { display: none; } /* Mobile menu could be added later */

    /* Hero */
    .hero-content h1 {
        font-size: 3.5rem;
        letter-spacing: -1px;
    }
    
    .hero-content .subtitle { font-size: 1.8rem; }
    
    .hero-content .details {
        flex-direction: column;
        gap: 10px;
        font-size: 0.8rem;
    }

    /* Menu */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .categories-nav {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        margin: -30px 0 30px;
        padding-bottom: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .category-item {
        min-width: 140px;
        padding: 10px 20px;
    }

    /* Info Bar */
    .info-bar {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .info-item {
        flex-direction: column;
        gap: 10px;
    }

    /* 3D Showcase */
    #canvas-container { height: 300px; }
    .canvas-overlay h2 { font-size: 2rem; }

    /* Language Overlay Refinements */
    .lang-overlay-content {
        padding: 20px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 100vh;
    }
    
    .brand-header { margin-bottom: 1.5rem; }
    .brand-name-main { font-size: 2.2rem; letter-spacing: 4px; }
    .brand-subtitle-line .line { width: 40px; }

    .lang-welcome { font-size: 0.9rem; margin-bottom: 5px; }
    .lang-instruction { margin-bottom: 1.5rem; font-size: 0.8rem; }

    .lang-cards-container {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 2rem;
        width: 100%;
        max-height: none; /* Let it flow if needed, but we've reduced sizes */
    }
    
    .lang-card { 
        padding: 0.8rem 1.5rem; 
        flex-direction: row; 
        gap: 15px; 
        text-align: left;
        min-height: 60px;
    }
    
    .lang-flag-wrapper { width: 35px; height: 35px; }
    .lang-card-text h3 { font-size: 0.85rem; margin: 0; }
    
    .btn-continue-site { 
        width: 100%; 
        padding: 1rem; 
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 2.8rem; }
    .brand-name-main { font-size: 2.2rem; }
}
