:root {
    --bg-dark: #050505;
    --primary: #ff3333;
    --gemini-blue: #1e3a8a;
    --gemini-sand: #d4a017;
    --glass-bg: rgba(5, 5, 5, 0.92);
    --glass-border: rgba(255, 255, 255, 0.08);
    --text-main: #ffffff;
    --text-muted: #cccccc;
    --waze: #33ccff;
    --scroll: 0;
}

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

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

h1, h2, h3 { font-family: 'Oswald', sans-serif; text-transform: uppercase; letter-spacing: 2px; }

/* --- ЖИВ БЕКГРАУНД --- */
.living-bg {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -2;
    background: radial-gradient(circle at center, transparent 0%, #000 70%),
                conic-gradient(
                    from 0deg at 50% 50%,
                    #000000 0deg,
                    var(--gemini-blue) 120deg,
                    #000000 180deg,
                    var(--gemini-sand) 260deg,
                    #000000 360deg
                );
    background-size: 100% 100%;
    opacity: 0.8;
    transform: translateY(calc(var(--scroll) * -15%)) rotate(calc(var(--scroll) * 20deg));
    transition: transform 0.1s linear;
    filter: blur(80px);
}

.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; pointer-events: none; opacity: 0.07;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- SNOW --- */
.snow-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.pixel-flake {
    position: absolute; width: 4px; height: 4px; background: white; opacity: 0.6; top: -10px;
    animation: fall linear infinite;
}
.pixel-flake:nth-child(1) { left: 10%; animation-duration: 10s; }
.pixel-flake:nth-child(2) { left: 25%; animation-duration: 15s; width: 6px; height: 6px; opacity: 0.3; }
.pixel-flake:nth-child(3) { left: 40%; animation-duration: 12s; }
.pixel-flake:nth-child(4) { left: 60%; animation-duration: 8s; }
.pixel-flake:nth-child(5) { left: 85%; animation-duration: 14s; width: 3px; height: 3px; }

@keyframes fall {
    0% { transform: translateY(-10px); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: translateY(110vh); opacity: 0; }
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 5; }

/* GLASS UTILS */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

/* --- NAVBAR --- */
.navbar {
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,51,51,0.2);
    padding: 12px 0;
    position: fixed; top: 0; width: 100%; z-index: 1000;
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.6rem; font-weight: 900; letter-spacing: -1px; text-shadow: 0 0 15px rgba(255, 51, 51, 0.4); white-space: nowrap;}
.logo span { color: var(--primary); }
.call-btn-nav {
    background: rgba(255, 51, 51, 0.1); border: 1px solid var(--primary);
    color: var(--primary); text-decoration: none; font-weight: 900;
    padding: 8px 20px;
    clip-path: polygon(15% 0, 100% 0, 100% 70%, 85% 100%, 0 100%, 0 30%);
    display: flex; align-items: center; gap: 8px; transition: 0.3s;
}
.call-btn-nav:hover { background: var(--primary); color: white; box-shadow: 0 0 20px var(--primary); }

/* HERO - TASTY VIBES */
.hero {
    min-height: 85vh; 
    display: flex; align-items: center; justify-content: center; text-align: center; 
    margin-top: 60px; padding: 40px 0;
    position: relative; overflow: hidden;
}
.hero-bg-image {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1565299624946-b28f40a0ae38?q=80&w=1981&auto=format&fit=crop');
    background-size: cover; background-position: center; z-index: -1;
    opacity: 0.4;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}
.glitch-wrapper {
    background: radial-gradient(circle, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 70%);
    padding: 20px; border-radius: 50%;
}
.glitch-text {
    font-size: 3.5rem; line-height: 1.1; margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(0,0,0,0.8), 3px 3px 0px rgba(255, 51, 51, 0.5);
}
.sub-glitch { display: block; color: var(--primary); font-size: 2rem; margin-top: 10px; text-shadow: none; }

.promos { display: flex; justify-content: center; gap: 15px; margin-bottom: 40px; flex-wrap: wrap; }
.promo-box {
    padding: 15px; min-width: 140px; font-weight: 700; color: white;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 85% 100%, 0 100%);
    transition: 0.3s; display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.promo-box:hover { transform: translateY(-5px); background: rgba(255,255,255,0.15); }
.promo-box i { font-size: 1.5rem; color: var(--primary); display: block; margin-bottom: 5px; }
.promo-box.highlight { border-bottom: 2px solid var(--gemini-sand); }
.promo-box.highlight i { color: var(--gemini-sand); }
.promo-box.active-discount {
    border-bottom: 2px solid #ff0000; background: rgba(255, 0, 0, 0.25);
    box-shadow: 0 0 15px rgba(255, 51, 51, 0.4); animation: pulse-active 1s infinite alternate;
}
.promo-box.active-discount i { color: #fff; text-shadow: 0 0 10px #ff3333; animation: icon-bounce 0.8s infinite alternate; }

.promo-label-text { font-size: 0.85rem; line-height: 1.2; display: block; }
.timer-digits {
    font-family: 'Oswald', monospace; font-size: 1.4rem; font-weight: 700; margin-top: 5px;
    letter-spacing: 1px; color: var(--gemini-sand); text-shadow: 0 0 10px rgba(0,0,0,0.8);
}

@keyframes pulse-active { 0% { transform: scale(1); box-shadow: 0 0 10px rgba(255,0,0,0.3); } 100% { transform: scale(1.05); box-shadow: 0 0 25px rgba(255,0,0,0.6); } }
@keyframes icon-bounce { 0% { transform: translateY(0); } 100% { transform: translateY(-3px); } }

.hero-buttons { display: flex; gap: 15px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 15px 30px; font-weight: 900; text-decoration: none; text-transform: uppercase; transition: 0.3s; clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 0 15px rgba(255, 51, 51, 0.3); }
.btn-outline { border: 1px solid white; color: white; }

/* MENU CARDS & FRAMES */
.menu-section { padding: 60px 0; }
.section-title { font-size: 2.5rem; margin-bottom: 40px; text-align: center; text-shadow: 0 4px 15px rgba(0,0,0,0.8); }
.pizza-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 25px; }

.pizza-card { transition: 0.4s; position: relative; overflow: hidden; }
.pizza-card:hover { transform: translateY(-8px); border-color: var(--primary); }

/* Рамкирана картинка */
.img-holder.framed-image {
    width: 100%; height: 230px; position: relative; overflow: hidden;
    /* Двойна рамка за по-премиум вид */
    border-bottom: 4px solid var(--primary);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.9);
}
.img-holder img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.pizza-card:hover img { transform: scale(1.1); }

/* Scan line ефектът остава */
.scan-line { position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: rgba(255,255,255,0.8); box-shadow: 0 0 10px white; opacity: 0; animation: scan 2.5s infinite linear; display: none; }
.pizza-card:hover .scan-line { opacity: 0.5; }
@keyframes scan { 0% { top: 0%; } 100% { top: 100%; } }

/* BADGES */
.badges-container {
    position: absolute; top: 10px; left: 10px;
    display: flex; flex-direction: column; gap: 5px; z-index: 10;
}
.badge {
    padding: 4px 10px; font-size: 0.75rem; font-weight: 900; color: white;
    text-transform: uppercase; border-radius: 2px;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.8); letter-spacing: 0.5px;
}
.badge-best { background: var(--gemini-sand); color: black; }
.badge-new { background: #28a745; }
.badge-hot, .badge-spicy { background: #dc3545; }
.badge-veggie { background: #20c997; color: black; }
.default-badge { background: #6c757d; }

.card-body { padding: 20px; }

/* Заглавие и Рейтинг на един ред */
.title-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 5px; }
.card-body h3 { margin: 0; font-size: 1.3rem; }
.rating-display { color: var(--gemini-sand); font-weight: bold; font-size: 0.95rem; white-space: nowrap; }
.rating-display i { margin-right: 3px; }

/* Meta Info (Грамаж + Алергени) */
.meta-info {
    display: flex; justify-content: space-between; align-items: center; margin-top: 10px; margin-bottom: 15px;
    border-top: 1px solid rgba(255,255,255,0.1); padding-top: 8px;
}
.weight { font-size: 0.85rem; color: #aaa; margin: 0; }
.allergens-list { display: flex; align-items: center; gap: 5px; }
.allergen-icon { color: #888; font-size: 0.9rem; }
.allergen-tag { 
    font-size: 0.7rem; background: rgba(255,255,255,0.1); padding: 2px 6px; 
    border-radius: 4px; color: #ddd; 
}

.price-list { background: rgba(0,0,0,0.4); padding: 10px; margin-bottom: 15px; border-radius: 4px; }
.price-row { display: flex; justify-content: space-between; padding: 5px 0; border-bottom: 1px dashed #333; font-size: 0.95rem; }
.price-val { color: var(--gemini-sand); font-weight: bold; }

.btn-order-card { display: block; border: 1px solid var(--primary); color: var(--primary); text-align: center; padding: 10px; text-decoration: none; font-weight: 800; transition: 0.3s; text-transform: uppercase; }
.btn-order-card:hover { background: var(--primary); color: white; }

/* CONTACTS */
.contact-section { padding: 60px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.info-panel { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.info-item { margin-bottom: 35px; }
.info-item h3 { margin-bottom: 8px; font-size: 1.4rem; color: white; letter-spacing: 1px; }
.info-item p { font-size: 1.1rem; color: #ccc; line-height: 1.8; }
.info-item i { color: var(--gemini-sand); font-size: 1.4rem; margin-bottom: 12px; display: inline-block; }
.navigation-buttons { display: flex; flex-direction: column; gap: 15px; margin-top: 10px; }
.nav-btn { display: flex; align-items: center; justify-content: center; width: 100%; padding: 18px; text-decoration: none; color: white; font-weight: 800; font-size: 1.1rem; border-radius: 6px; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; gap: 15px; }
.nav-btn.gmaps { background: transparent; border: 2px solid #4285F4; color: white; }
.nav-btn.gmaps i { color: #4285F4; }
.nav-btn.waze { background: transparent; border: 2px solid var(--waze); color: white; }
.nav-btn.waze i { color: var(--waze); }
.nav-btn:hover { transform: translateY(-3px); box-shadow: 0 0 25px rgba(255, 255, 255, 0.1); }
.nav-btn.gmaps:hover { background: rgba(66, 133, 244, 0.15); border-color: #4285F4; }
.nav-btn.waze:hover { background: rgba(51, 204, 255, 0.15); border-color: var(--waze); }
.map-container iframe { width: 100%; height: 100%; min-height: 500px; border-radius: 10px; filter: grayscale(100%) invert(90%) contrast(1.1); border: 1px solid #333; transition: 0.5s; }
.map-container iframe:hover { filter: none; }

.about-section { padding: 80px 0; text-align: center; }
.about-content { padding: 40px; display: inline-block; max-width: 800px; }
.about-logo { width: 150px; border-radius: 50%; border: 3px solid var(--primary); margin-bottom: 20px; }
footer { background: black; padding: 30px 0; text-align: center; border-top: 1px solid #222; }
.social-btn { display: inline-flex; width: 40px; height: 40px; background: #222; color: white; justify-content: center; align-items: center; border-radius: 50%; margin: 0 8px; text-decoration: none; transition: 0.3s; }
.social-btn:hover { background: var(--primary); transform: scale(1.1); }

@media (max-width: 768px) {
    .navbar .container { padding: 0 15px; }
    .logo { font-size: 1.3rem; }
    .call-btn-nav { padding: 8px 12px; }
    .call-btn-nav .btn-text { display: none; }
    .call-btn-nav i { font-size: 1.1rem; margin: 0; }
    .glitch-text { font-size: 2.2rem; }
    .sub-glitch { font-size: 1.2rem; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn { width: 100%; text-align: center; }
    .promos { flex-direction: row; flex-wrap: wrap; }
    .promo-box { flex: 1 1 45%; font-size: 0.8rem; }
    .contact-grid { grid-template-columns: 1fr; }
    .map-container iframe { min-height: 300px; height: 300px; }
    
    .hero { min-height: 70vh; }
    .hero-bg-image { opacity: 0.3; }
}
