﻿/* Soliva Cafe - style.css */
:root {
    --pistachio: #9BCB8E;
    --pistachio-dark: #6f9f68;
    --white: #fff;
    --black: #111;
    --glass: rgba(255,255,255,.15);
    --border: rgba(255,255,255,.25);
    --shadow: 0 10px 30px rgba(0,0,0,.18);
    --background-dark: #0f172a; /* Slate-900 */
    --background-gradient-end: #312e81; /* Violet-800 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    font-family: 'Vazirmatn',sans-serif;
    background: linear-gradient(-45deg,#8fbf84,#dff1d8,#ffffff,#9bcb8e);
    background-size: 400% 400%;
    animation: bg 15s ease infinite;
    color: var(--black);
}

@keyframes bg {
    0% {
        background-position: 0 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0 50%
    }
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(18px);
    background: var(--pistachio);
    border-bottom: 1px solid var(--border);
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 3px;
    color: ghostwhite;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-5px)
    }
}

.category-bar {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 12px 16px;
    backdrop-filter: blur(16px);
    background: rgba(255,255,255,.12);
    scrollbar-width: none;
}

    .category-bar::-webkit-scrollbar {
        display: none
    }

.category {
    min-width: 110px;
    text-decoration: none;
    color: #111;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,.2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 10px;
    transition: .3s;
}

    .category img {
        width: 70px;
        height: 70px;
        border-radius: 14px;
        object-fit: cover;
        margin-bottom: 8px;
    }

    .category:hover, .category.active {
        background: var(--pistachio);
        transform: translateY(-4px);
    }

.hero {
    margin-top: 250px;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}


.hero-center {
    position: relative;
    width: 220px;
    height: 40px;
    border-radius: 28px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(18px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index:99;
}

    .hero-center h1 {
        font-size: 20px;
        letter-spacing: 4px;
    }

    .hero-center span {
        margin-top: 8px;
        letter-spacing: 8px;
    }

.hero-image {
    position: absolute;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    overflow: hidden;
}

    .hero-image img {
        width: 100%;
        height: 100%;
        object-fit: fill;
    }

.top {
    top: 20px;
}

.bottom {
    bottom: 20px;
}

.left {
    left: 18%;
}

.right {
    right: 18%;
}

.hero-image::before,
.hero-center::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient( from var(--angle), transparent 0deg, transparent 310deg, #ffffff, #ffe082, #9BCB8E, #ffffff, transparent 360deg );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorder 3s linear infinite;
}

@property --angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes rotateBorder {

    to {
        --angle: 360deg;
    }
}
.flash::before {
    animation: rotateBorder .8s linear infinite, flashGlow .8s;
}

@keyframes flashGlow {

    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(2.5);
    }

    100% {
        filter: brightness(1);
    }
}

.menu-section {
    padding: 140px 5%;
}

    .menu-section h2 {
        margin-bottom: 5px;
        text-align: center;
        font-size: 1.6rem;
        color: var(--pistachio-dark);
    }

    .menu-section h6 {
        margin-bottom: 5px;
        text-align: center;
        font-size: 1.4rem;
        color: var(--pistachio-dark);
    }

.menu-table {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.menu-item {
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    gap: 20px;
    align-items: center;
    background: rgba(255,255,255,.18);
    border: 1px solid var(--border);
    backdrop-filter: blur(16px);
    border-radius: 22px;
    padding: 20px;
    box-shadow: var(--shadow);
    transition: .3s;
}

    .menu-item:hover {
        transform: translateY(-6px);
    }

    .menu-item .image img {
        width: 180px;
        height: 180px;
        border-radius: 18px;
        object-fit: cover;
    }

.fa, .en {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.fa {
    text-align: right
}

.en {
    text-align: left;
    direction: ltr
}

    .fa h3, .en h3 {
        color: var(--pistachio-dark);
    }

    .fa span, .en span {
        font-size: 1.2rem;
        font-weight: 700;
    }

@media(max-width:992px) {
    .menu-item {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .fa, .en {
        text-align: center;
        direction: rtl;
    }

    .menu-item .image {
        display: flex;
        justify-content: center;
    }
}

@media(max-width:768px) {
    .logo {
        font-size: 1.5rem
    }

    .hero {
        min-height: 340px;
        top: 70px;
    }

    .hero-title {
        width: 180px;
        height: 180px;
    }

    .circle {
        width: 50px;
        height: 50px;
    }

    .top {
        top: -10%;
    }

    .bottom {
        bottom: -10%;
    }

    .left {
        left: 1%;
    }

    .right {
        right: 1%;
    }

.hidden {
    opacity: 0;
    transform: translateY(40px);
}

.show {
    opacity: 1;
    transform: translateY(0);
    transition: .7s;
}

.header-scroll {
    box-shadow: 0 10px 35px rgba(0,0,0,.25);
}

.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple .6s linear;
    background: rgba(255,255,255,.5);
}

@keyframes ripple {

    to {
        transform: scale(4);
        opacity: 0;
    }
}

.category {
    position: relative;
    overflow: hidden;
}

.topButton {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    background: #9BCB8E;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    transition: .4s;
    z-index: 9999;
}

.showTop {
    opacity: 1;
}

.loaded {
    animation: fadeIn .8s;
}

@keyframes fadeIn {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}