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

:root {
    --primary: #1a0f0a;
    --secondary: #D4A574;
    --accent: #C73E3A;
    --gold: #FFD700;
    --cream: #F5F0E8;
    --dark: #0d0705;
    --light: #FFFFFF;
    --purple: #6B46C1;
    --pink: #EC4899;
    --blue: #3B82F6;
    
    --gradient-primary: linear-gradient(135deg, #1a0f0a 0%, #2C1810 50%, #4A2C1A 100%);
    --gradient-accent: linear-gradient(135deg, #C73E3A 0%, #E85D5A 50%, #FF6B6B 100%);
    --gradient-gold: linear-gradient(135deg, #FFD700 0%, #FFA500 50%, #FF8C00 100%);
    --gradient-purple: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 50%, #A78BFA 100%);
    --gradient-pink: linear-gradient(135deg, #EC4899 0%, #F472B6 50%, #F9A8D4 100%);
    --gradient-blue: linear-gradient(135deg, #3B82F6 0%, #60A5FA 50%, #93C5FD 100%);
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 30px 60px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 40px 80px rgba(0, 0, 0, 0.3);
    
    --glass: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-blur: blur(20px);
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: var(--cream);
    background-image: url('./image/backgrand/b2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
    overflow-y: auto;
    position: relative;
    min-height: 100vh;
}

@media (max-width: 768px) {
    body {
        background-attachment: fixed;
        background-size: cover;
        background-position: center;
    }
}

/* Particle Background */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
    touch-action: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Floating Elements */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    touch-action: none;
}

.floating-coffee-1,
.floating-coffee-2,
.floating-coffee-3,
.floating-coffee-4 {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    animation: float-random 20s ease-in-out infinite;
}

.floating-coffee-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-coffee-2 {
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-coffee-3 {
    top: 40%;
    left: 70%;
    animation-delay: 10s;
}

.floating-coffee-4 {
    top: 80%;
    right: 30%;
    animation-delay: 15s;
}

@keyframes float-random {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -30px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, 20px) rotate(180deg);
    }
    75% {
        transform: translate(20px, 30px) rotate(270deg);
    }
}

/* Ultra-Premium Header */
.header {
    position: relative;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--light);
    overflow: hidden;
    background: var(--gradient-primary);
    background-image: url('./image/backgrand/h3.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .header {
        min-height: 60vh;
        background-attachment: scroll;
        background-size: cover;
        background-position: center top;
    }
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Star Field Effect */
.star-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40px 70px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 50px 160px, #ddd, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90px 40px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 130px 80px, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 160px 120px, #ddd, rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: twinkle 5s ease-in-out infinite;
    opacity: 0.3;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

/* Aurora Effect */
.aurora-effect {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent 0%, 
        rgba(212, 165, 116, 0.1) 25%, 
        transparent 50%, 
        rgba(199, 62, 58, 0.1) 75%, 
        transparent 100%);
    animation: aurora-move 15s linear infinite;
}

@keyframes aurora-move {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Floating Premium Stickers */
.floating-premium {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.premium-sticker {
    position: absolute;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: premium-float 8s ease-in-out infinite;
    cursor: default;
}

.sticker-emoji {
    font-size: 3.5rem;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    position: relative;
    z-index: 2;
    animation: emoji-pulse 2s ease-in-out infinite;
}

@keyframes emoji-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.sticker-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.4) 0%, transparent 70%);
    animation: glow-expand 3s ease-in-out infinite;
}

@keyframes glow-expand {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0.3;
    }
}

.sticker-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.sticker-1 .sticker-glow {
    background: radial-gradient(circle, rgba(212, 165, 116, 0.5) 0%, transparent 70%);
}

.sticker-2 {
    top: 25%;
    right: 15%;
    animation-delay: 2s;
}

.sticker-2 .sticker-glow {
    background: radial-gradient(circle, rgba(236, 72, 153, 0.5) 0%, transparent 70%);
}

.sticker-3 {
    top: 60%;
    left: 20%;
    animation-delay: 4s;
}

.sticker-3 .sticker-glow {
    background: radial-gradient(circle, rgba(107, 70, 193, 0.5) 0%, transparent 70%);
}

.sticker-4 {
    top: 70%;
    right: 10%;
    animation-delay: 6s;
}

.sticker-4 .sticker-glow {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.5) 0%, transparent 70%);
}

.sticker-5 {
    top: 40%;
    left: 50%;
    animation-delay: 8s;
}

.sticker-5 .sticker-glow {
    background: radial-gradient(circle, rgba(255, 215, 0, 0.5) 0%, transparent 70%);
}

@keyframes premium-float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.9;
    }
    25% {
        transform: translateY(-30px) rotate(15deg) scale(1.15);
        opacity: 1;
    }
    50% {
        transform: translateY(-10px) rotate(-10deg) scale(1.1);
        opacity: 0.95;
    }
    75% {
        transform: translateY(-40px) rotate(5deg) scale(1.2);
        opacity: 1;
    }
}

/* Enhanced Logo Glow */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: logo-pulse-glow 3s ease-in-out infinite;
    z-index: 1;
}

@keyframes logo-pulse-glow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.3);
        opacity: 0.8;
    }
}

/* Third Logo Ring */
.logo-ring.ring-3 {
    width: 200px;
    height: 200px;
    animation-delay: 3s;
    border-color: var(--gold);
}

/* Premium Badges Container */
.premium-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
    animation: badges-appear 1s ease-out 2.2s both;
}

@keyframes badges-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.premium-badge {
    animation: badge-appear 1s ease-out 1.8s both;
}

.badge-2 {
    animation-delay: 2s;
    background: linear-gradient(135deg, #6B46C1 0%, #8B5CF6 100%);
}

.badge-3 {
    animation-delay: 2.2s;
    background: linear-gradient(135deg, #EC4899 0%, #F472B6 100%);
}

/* Enhanced Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--light);
    z-index: 10;
}

.scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: scroll-bounce 1.5s ease-in-out infinite;
    opacity: 0.7;
}

.arrow-1 {
    animation-delay: 0s;
}

.arrow-2 {
    animation-delay: 0.2s;
}

.arrow-3 {
    animation-delay: 0.4s;
}

@keyframes scroll-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    50% {
        transform: translateY(10px);
        opacity: 1;
    }
}

.scroll-text {
    text-align: center;
    position: relative;
}

.scroll-text span {
    font-size: 0.9rem;
    letter-spacing: 2px;
    animation: text-pulse 2s ease-in-out infinite;
}

@keyframes text-pulse {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 1;
    }
}

.scroll-underline {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    animation: underline-expand 2s ease-in-out infinite;
}

@keyframes underline-expand {
    0%, 100% {
        width: 0;
    }
    50% {
        width: 100%;
    }
}

/* Header Wave */
.header-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 5;
}

.wave-svg {
    width: 100%;
    height: auto;
    animation: wave-move 10s ease-in-out infinite;
}

@keyframes wave-move {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-20px);
    }
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: orb-float 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--gradient-purple);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--gradient-pink);
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

.orb-3 {
    width: 250px;
    height: 250px;
    background: var(--gradient-gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 10s;
}

@keyframes orb-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.header-content {
    position: relative;
    z-index: 10;
    padding: 2rem;
    animation: header-appear 1.5s ease-out;
}

@keyframes header-appear {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Container */
.logo-container {
    margin-bottom: 2rem;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid var(--secondary);
    border-radius: 50%;
    opacity: 0.3;
    animation: ring-pulse 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
}

.ring-1 {
    width: 140px;
    height: 140px;
    animation-delay: 0s;
    border-width: 3px;
}

.ring-2 {
    width: 180px;
    height: 180px;
    animation-delay: 1s;
    border-width: 2px;
}

.ring-3 {
    width: 220px;
    height: 220px;
    animation-delay: 2s;
    border-width: 1px;
}

@keyframes ring-pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
        box-shadow: 0 0 20px rgba(212, 165, 116, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.2;
        box-shadow: 0 0 40px rgba(212, 165, 116, 0.5);
    }
}

.logo-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(26, 15, 10, 0.9) 0%, rgba(44, 24, 16, 0.9) 100%);
    border: 2px solid var(--secondary);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    animation: logo-float 4s ease-in-out infinite;
    position: relative;
    z-index: 5;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(212, 165, 116, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.logo-placeholder::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--secondary), var(--gold), var(--secondary));
    border-radius: 22px;
    z-index: -1;
    opacity: 0.5;
    animation: border-glow 3s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes logo-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.logo-icon {
    width: 50px;
    height: 50px;
    color: var(--secondary);
    filter: drop-shadow(0 0 10px rgba(212, 165, 116, 0.5));
}

.logo-image {
    width: 150px;
    height: 150px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--secondary);
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
}

/* Title Container */
.title-container {
    position: relative;
    text-align: center;
    padding: 4rem 0 2rem 0;
    margin-top: 2rem;
}

.cafe-name {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow:
        0 0 60px rgba(212, 165, 116, 1),
        0 0 100px rgba(212, 165, 116, 0.8),
        0 0 140px rgba(212, 165, 116, 0.6),
        0 8px 30px rgba(0, 0, 0, 0.9);
    letter-spacing: 12px;
    background: linear-gradient(135deg, #FFD700 0%, #D4A574 25%, #FFD700 50%, #D4A574 75%, #FFD700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shine 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.8));
}

@keyframes text-shine {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

@media (max-width: 768px) {
    .cafe-name {
        font-size: 3rem;
        letter-spacing: 4px;
    }
}

.cafe-subtitle {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 8px;
    margin-bottom: 1.5rem;
    text-shadow:
        0 0 30px rgba(212, 165, 116, 0.9),
        0 0 50px rgba(212, 165, 116, 0.7),
        0 4px 15px rgba(0, 0, 0, 0.7);
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.cafe-subtitle::before,
.cafe-subtitle::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary), transparent);
}

.cafe-subtitle::before {
    right: calc(100% + 20px);
}

.cafe-subtitle::after {
    left: calc(100% + 20px);
}

@media (max-width: 768px) {
    .cafe-subtitle {
        font-size: 1.2rem;
        letter-spacing: 3px;
    }
    
    .cafe-subtitle::before,
    .cafe-subtitle::after {
        width: 30px;
    }
}

.cafe-slogan {
    font-size: 1.3rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 2px;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: slogan-fade 4s ease-in-out infinite;
}

@keyframes slogan-fade {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .cafe-slogan {
        font-size: 1rem;
    }
}

.letter {
    display: inline-block;
    animation: letter-appear 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.letter:nth-child(1) { animation-delay: 0.1s; }
.letter:nth-child(2) { animation-delay: 0.2s; }
.letter:nth-child(3) { animation-delay: 0.3s; }
.letter:nth-child(4) { animation-delay: 0.4s; }
.letter:nth-child(5) { animation-delay: 0.5s; }
.letter:nth-child(6) { animation-delay: 0.6s; }
.letter:nth-child(7) { animation-delay: 0.7s; }
.letter:nth-child(8) { animation-delay: 0.8s; }
.letter:nth-child(9) { animation-delay: 0.9s; }
.letter:nth-child(10) { animation-delay: 1.0s; }
.letter:nth-child(11) { animation-delay: 1.1s; }

.space {
    display: inline-block;
    width: 1rem;
}

@keyframes letter-appear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    color: var(--secondary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
    animation: expand-width 1.5s ease-out 1.2s both;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

@keyframes expand-width {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.cafe-slogan {
    font-size: 1.5rem;
    opacity: 0.9;
    font-weight: 300;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
    animation: slogan-appear 1s ease-out 1.5s both;
}

@keyframes slogan-appear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 0.9;
        transform: translateY(0);
    }
}

.premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-gold);
    color: var(--dark);
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.3);
    animation: badge-appear 1s ease-out 1.8s both;
}

@keyframes badge-appear {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.premium-badge i {
    animation: crown-shine 2s ease-in-out infinite;
}

@keyframes crown-shine {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--light);
    opacity: 0.7;
    animation: scroll-bounce 2s ease-in-out infinite;
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--light);
    border-radius: 20px;
    position: relative;
}

.wheel {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background: var(--light);
    border-radius: 3px;
    animation: wheel-scroll 2s ease-in-out infinite;
}

@keyframes wheel-scroll {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(15px);
        opacity: 0.3;
    }
}

.scroll-indicator span {
    font-size: 0.8rem;
    letter-spacing: 2px;
}

/* Premium Category Navigation */
.category-nav {
    position: sticky;
    top: 0;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: var(--glass-blur);
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    z-index: 100;
    box-shadow: var(--shadow-lg);
    scrollbar-width: none;
    position: relative;
    animation: nav-slide-down 0.8s ease-out;
}

@keyframes nav-slide-down {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.category-nav::-webkit-scrollbar {
    display: none;
}

.nav-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
    pointer-events: none;
}

.category-btn {
    flex-shrink: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--light);
    border: 2px solid transparent;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
    min-width: 90px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .category-btn {
        padding: 0.8rem 1rem;
        min-width: 70px;
        font-size: 0.8rem;
    }
    
    .category-btn .icon {
        font-size: 1.5rem;
    }
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 18px;
}

.category-btn:hover .btn-glow {
    opacity: 0.1;
}

.category-btn.active .btn-glow {
    opacity: 1;
}

.category-btn .icon {
    font-size: 1.8rem;
    transition: transform 0.4s ease;
    position: relative;
    z-index: 2;
}

.category-btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.category-btn:hover .icon {
    transform: scale(1.3) rotate(10deg);
}

.category-btn.active {
    color: var(--light);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-5px);
}

.category-btn.active .icon {
    animation: icon-bounce 0.6s ease;
}

@keyframes icon-bounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.4);
    }
}

.btn-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 3px;
    background: var(--gradient-gold);
    border-radius: 2px;
    transition: transform 0.4s ease;
}

.category-btn.active .btn-indicator {
    transform: translateX(-50%) scaleX(1);
}

/* Search Container */
.search-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 10;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--light);
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.4s ease;
}

.search-wrapper:focus-within {
    box-shadow: var(--shadow-2xl);
    transform: scale(1.02);
}

.search-icon {
    padding: 1rem 1.5rem;
    color: var(--secondary);
    font-size: 1.2rem;
}

.search-input {
    flex: 1;
    padding: 1rem 0;
    border: none;
    outline: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 1rem;
    background: transparent;
    color: var(--dark);
}

.search-input::placeholder {
    color: #999;
}

.search-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.1), transparent);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.search-wrapper:focus-within .search-glow {
    opacity: 1;
}

/* Menu Container */
.menu-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 1rem;
    position: relative;
    z-index: 5;
}

/* Section Styles */
.menu-section {
    margin-bottom: 4rem;
    animation: section-appear 0.8s ease-out;
}

@keyframes section-appear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
        gap: 0.5rem;
    }
}

.title-icon {
    font-size: 3rem;
    animation: title-icon-pulse 3s ease-in-out infinite;
}

@keyframes title-icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

.title-underline {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transform: scaleX(0);
    animation: underline-expand 1s ease-out 0.3s both;
}

@keyframes underline-expand {
    to {
        transform: scaleX(1);
    }
}

.section-count {
    padding: 0.5rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--light);
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Premium Menu Item */
.premium-card {
    background: var(--light);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    animation: card-appear 0.8s ease-out forwards;
    opacity: 0;
}

@keyframes card-appear {
    from {
        opacity: 0;
        transform: translateY(50px) rotateX(10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

.premium-card:nth-child(1) { animation-delay: 0.1s; }
.premium-card:nth-child(2) { animation-delay: 0.2s; }
.premium-card:nth-child(3) { animation-delay: 0.3s; }
.premium-card:nth-child(4) { animation-delay: 0.4s; }

.premium-card:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

.item-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 25px;
    z-index: 0;
}

.premium-card:hover .item-glow {
    opacity: 0.1;
}

.item-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@media (max-width: 768px) {
    .item-image {
        height: 200px;
    }
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.3) 0%, transparent 50%);
    animation: pattern-shift 10s ease-in-out infinite;
}

@keyframes pattern-shift {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.7));
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-card:hover .item-overlay {
    opacity: 1;
}

.overlay-icon {
    font-size: 4rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.premium-card:hover .overlay-icon {
    transform: translateY(0);
}

.item-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 2;
    animation: badge-pop 0.6s ease-out;
    box-shadow: var(--shadow-md);
}

@keyframes badge-pop {
    from {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    to {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.premium-badge {
    background: var(--gradient-gold);
    color: var(--dark);
}

.new-badge {
    background: var(--gradient-accent);
    color: var(--light);
}

.item-content {
    padding: 2rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .item-content {
        padding: 1.5rem;
    }
}

.item-rating {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-bottom: 1rem;
    color: var(--gold);
    font-size: 0.9rem;
}

.item-rating span {
    color: var(--dark);
    font-weight: 700;
    margin-right: 0.5rem;
}

.item-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.premium-card:hover .item-name {
    color: var(--accent);
}

.item-description {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.item-ingredients {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.ingredient-tag {
    padding: 0.4rem 0.8rem;
    background: rgba(212, 165, 116, 0.1);
    color: var(--secondary);
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(212, 165, 116, 0.3);
    transition: all 0.3s ease;
}

.ingredient-tag:hover {
    background: var(--secondary);
    color: var(--light);
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.item-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.currency {
    font-size: 0.8rem;
    color: #999;
    font-weight: 500;
}

.add-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--light);
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.add-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.add-btn:hover::before {
    left: 100%;
}

.add-btn:hover {
    transform: scale(1.1) rotate(-3deg);
    background: var(--gradient-accent);
    box-shadow: var(--shadow-xl);
}

.add-btn:active {
    transform: scale(0.95);
}

.btn-icon {
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-text {
    font-size: 0.9rem;
}

/* Hidden sections */
.menu-section.hidden {
    display: none;
}

/* Premium Footer */
.footer {
    position: relative;
    background: var(--gradient-primary);
    color: var(--light);
    padding: 4rem 1rem 2rem;
    margin-top: 5rem;
    overflow: hidden;
}

.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.footer-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
}

.footer-orb.orb-1 {
    width: 500px;
    height: 500px;
    background: var(--gradient-purple);
    top: -200px;
    right: -200px;
}

.footer-orb.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--gradient-gold);
    bottom: -150px;
    left: -150px;
}

.footer-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.footer-logo-icon {
    font-size: 3rem;
    animation: footer-logo-bounce 3s ease-in-out infinite;
}

.footer-logo-image {
    width: 80px;
    height: 80px;
    object-fit: contain;
    animation: footer-logo-bounce 3s ease-in-out infinite;
}

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

.footer-logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary);
}

.footer-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 1.1rem;
    opacity: 0.9;
}

.info-item i {
    color: var(--secondary);
    font-size: 1.3rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.5rem;
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: var(--glass-blur);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

.social-link.instagram:hover {
    background: linear-gradient(135deg, #833AB4, #FD1D1D, #F77737);
}

.social-link.telegram:hover {
    background: #0088cc;
}

.social-link.whatsapp:hover {
    background: #25D366;
}

.footer-bottom {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cafe-name {
        font-size: 2.5rem;
    }
    
    .category-nav {
        padding: 1rem;
    }
    
    .category-btn {
        padding: 0.8rem 1.2rem;
        min-width: 75px;
        font-size: 0.8rem;
    }
    
    .category-btn .icon {
        font-size: 1.5rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .item-image {
        height: 200px;
    }
    
    .premium-card {
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        min-height: 80vh;
    }
    
    .cafe-name {
        font-size: 2rem;
    }
    
    .logo-placeholder {
        padding: 1rem 1.5rem;
    }
    
    .menu-container {
        padding: 2rem 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .add-btn {
        padding: 0.6rem 1rem;
    }
    
    .btn-text {
        display: none;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--cream);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

/* Ensure main content is scrollable */
main {
    overflow-y: visible;
}

.menu-container {
    overflow-y: visible;
}

/* Loading animation */
@keyframes loading {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* 3D effect for cards */
.premium-card {
    perspective: 1000px;
}

.premium-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg) scale(1.02);
}

/* Glow effects */
.premium-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.premium-card:hover::after {
    opacity: 1;
}

/* Text selection */
::selection {
    background: var(--secondary);
    color: var(--light);
}

/* ============================================
   MOBILE OPTIMIZATIONS
   ============================================ */

/* Base mobile settings */
@media (max-width: 768px) {
    /* Disable complex animations on mobile for performance */
    .particles-container,
    .floating-elements {
        display: none;
    }
    
    /* Simplified header for mobile */
    .header {
        min-height: auto;
        padding: 2rem 1rem;
        height: auto;
    }
    
    .header-bg {
        opacity: 0.5;
    }
    
    .gradient-orb {
        opacity: 0.2;
        filter: blur(40px);
    }
    
    .orb-1 {
        width: 200px;
        height: 200px;
    }
    
    .orb-2 {
        width: 150px;
        height: 150px;
    }
    
    .orb-3 {
        width: 100px;
        height: 100px;
    }
    
    /* Logo adjustments */
    .logo-placeholder {
        padding: 1rem 1.5rem;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-ring {
        display: none;
    }
    
    /* Title adjustments */
    .cafe-name {
        font-size: 2rem;
        letter-spacing: 1px;
    }
    
    .letter {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .highlight::after {
        animation: none;
        width: 100%;
    }
    
    .cafe-slogan {
        font-size: 1rem;
        letter-spacing: 1px;
    }
    
    .premium-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Scroll indicator - hide on mobile */
    .scroll-indicator {
        display: none;
    }
    
    /* Category navigation */
    .category-nav {
        padding: 0.8rem;
        gap: 0.5rem;
        top: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }
    
    .category-btn {
        padding: 0.6rem 0.8rem;
        min-width: 60px;
        font-size: 0.75rem;
        border-radius: 15px;
    }
    
    .category-btn .icon {
        font-size: 1.3rem;
    }
    
    .category-btn .btn-text {
        display: block;
    }
    
    .btn-indicator {
        height: 2px;
    }
    
    /* Search container */
    .search-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .search-wrapper {
        border-radius: 15px;
    }
    
    .search-icon {
        padding: 0.8rem 1rem;
        font-size: 1rem;
    }
    
    .search-input {
        padding: 0.8rem 0;
        font-size: 0.9rem;
    }
    
    /* Menu container */
    .menu-container {
        padding: 1.5rem 1rem;
    }
    
    /* Section header */
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding: 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        gap: 0.5rem;
    }
    
    .title-icon {
        font-size: 2rem;
    }
    
    .section-count {
        padding: 0.3rem 0.8rem;
        font-size: 0.75rem;
        align-self: flex-start;
    }
    
    /* Menu grid - single column on mobile */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Premium card */
    .premium-card {
        border-radius: 15px;
        overflow: hidden;
    }
    
    .premium-card:hover {
        transform: none;
        box-shadow: var(--shadow-lg);
    }
    
    /* Disable 3D effects on mobile */
    .premium-card {
        perspective: none;
    }
    
    .item-glow {
        display: none;
    }
    
    /* Item image */
    .item-image {
        height: 180px;
    }
    
    .item-badge {
        top: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    .item-overlay {
        display: none;
    }
    
    /* Item content */
    .item-content {
        padding: 1rem;
    }
    
    .item-rating {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .item-rating i {
        font-size: 0.7rem;
    }
    
    .item-name {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .item-description {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.4;
    }
    
    /* Ingredients */
    .item-ingredients {
        gap: 0.3rem;
        margin-bottom: 0.8rem;
    }
    
    .ingredient-tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    /* Item footer */
    .item-footer {
        padding-top: 1rem;
        gap: 0.5rem;
    }
    
    .item-price {
        font-size: 1.2rem;
    }
    
    .currency {
        font-size: 0.7rem;
    }
    
    /* Add button */
    .add-btn {
        padding: 0.6rem 1rem;
        border-radius: 15px;
    }
    
    .btn-icon {
        font-size: 1rem;
    }
    
    .btn-text {
        font-size: 0.8rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 1rem 1rem;
        margin-top: 2rem;
    }
    
    .footer-logo-icon {
        font-size: 2rem;
    }
    
    .footer-logo-text {
        font-size: 1.5rem;
    }
    
    .footer-info {
        gap: 0.8rem;
    }
    
    .info-item {
        font-size: 0.9rem;
        flex-direction: column;
        gap: 0.3rem;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Further optimizations for small screens */
    body {
        font-size: 14px;
    }
    
    .header {
        min-height: 60vh;
    }
    
    .cafe-name {
        font-size: 1.6rem;
    }
    
    .logo-placeholder {
        padding: 0.8rem 1.2rem;
    }
    
    .logo-icon {
        width: 30px;
        height: 30px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .cafe-slogan {
        font-size: 0.9rem;
    }
    
    .premium-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
    
    /* Category buttons even smaller */
    .category-nav {
        padding: 0.6rem;
        gap: 0.4rem;
    }
    
    .category-btn {
        padding: 0.5rem 0.6rem;
        min-width: 50px;
        font-size: 0.7rem;
        border-radius: 12px;
    }
    
    .category-btn .icon {
        font-size: 1.1rem;
    }
    
    .category-btn .btn-text {
        font-size: 0.65rem;
    }
    
    /* Search */
    .search-container {
        margin: 0.8rem auto;
    }
    
    .search-wrapper {
        border-radius: 12px;
    }
    
    .search-icon {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .search-input {
        font-size: 0.85rem;
        padding: 0.6rem 0;
    }
    
    /* Menu */
    .menu-container {
        padding: 1rem 0.8rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .title-icon {
        font-size: 1.5rem;
    }
    
    .item-image {
        height: 150px;
    }
    
    .item-content {
        padding: 0.8rem;
    }
    
    .item-name {
        font-size: 1rem;
    }
    
    .item-description {
        font-size: 0.8rem;
    }
    
    .item-price {
        font-size: 1.1rem;
    }
    
    .add-btn {
        padding: 0.5rem 0.8rem;
    }
    
    .btn-text {
        display: none;
    }
    
    /* Footer */
    .footer {
        padding: 1.5rem 0.8rem 0.8rem;
    }
    
    .footer-logo {
        margin-bottom: 1rem;
    }
    
    .footer-logo-icon {
        font-size: 1.5rem;
    }
    
    .footer-logo-text {
        font-size: 1.2rem;
    }
    
    .info-item {
        font-size: 0.85rem;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .premium-card:hover {
        transform: none;
    }
    
    .category-btn:hover {
        transform: none;
    }
    
    .add-btn:hover {
        transform: none;
    }
    
    .ingredient-tag:hover {
        background: rgba(212, 165, 116, 0.1);
        color: var(--secondary);
    }
    
    .social-link:hover {
        transform: none;
    }
    
    /* Add active states for touch */
    .premium-card:active {
        transform: scale(0.98);
    }
    
    .category-btn:active {
        transform: scale(0.95);
    }
    
    .add-btn:active {
        transform: scale(0.95);
    }
    
    /* Make buttons larger for touch */
    .category-btn {
        min-height: 60px;
    }
    
    .social-link {
        min-height: 50px;
        min-width: 50px;
    }
}

/* Performance optimizations for mobile */
@media (max-width: 768px) {
    /* Reduce complex animations */
    @keyframes float-particle {
        display: none;
    }
    
    @keyframes float-random {
        display: none;
    }
    
    @keyframes orb-float {
        0%, 100% {
            transform: translate(0, 0) scale(1);
        }
        50% {
            transform: translate(10px, -10px) scale(1.05);
        }
    }
    
    @keyframes logo-float {
        0%, 100% {
            transform: translateY(0);
        }
        50% {
            transform: translateY(-5px);
        }
    }
    
    @keyframes card-appear {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    /* Disable GPU-heavy effects */
    .premium-card::after {
        display: none;
    }
    
    .item-glow {
        display: none;
    }
    
    .btn-glow {
        display: none;
    }
    
    .nav-glow {
        display: none;
    }
    
    .search-glow {
        display: none;
    }
    
    /* Simplify gradients */
    .gradient-orb {
        background: var(--secondary);
    }
    
    /* Optimize shadows */
    .premium-card {
        box-shadow: var(--shadow-sm);
    }
    
    .premium-card:hover {
        box-shadow: var(--shadow-md);
    }
}

/* Landscape mobile optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .header {
        min-height: 50vh;
    }
    
    .cafe-name {
        font-size: 1.5rem;
    }
    
    .category-nav {
        padding: 0.5rem;
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    
    .item-image {
        height: 120px;
    }
}

/* Prevent text selection on mobile for better UX */
@media (max-width: 768px) {
    .category-btn,
    .add-btn,
    .social-link,
    .menu-item {
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        user-select: none;
    }
}

/* Safe area for notched phones */
@supports (padding: max(0px)) {
    .category-nav {
        padding-left: max(0.8rem, env(safe-area-inset-left));
        padding-right: max(0.8rem, env(safe-area-inset-right));
    }
    
    .menu-container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }
    
    .footer {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
        padding-bottom: max(1rem, env(safe-area-inset-bottom));
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-icon,
    .item-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Mobile-specific fixes */
@media (max-width: 768px) {
    /* Improve tap targets */
    .category-btn {
        min-width: 70px;
        min-height: 65px;
    }
    
    .add-btn {
        min-width: 50px;
        min-height: 50px;
    }
    
    /* Better spacing for touch */
    .menu-section {
        margin-bottom: 2rem;
    }
    
    /* Optimize font loading */
    .logo-text,
    .cafe-name,
    .item-name {
        font-display: swap;
    }
    
    /* Optimize font loading */
    .logo-text,
    .cafe-name,
    .item-name {
        font-display: swap;
    }
}

/* Mobile-first approach adjustments */
@media (min-width: 769px) {
    /* Enable desktop features */
    .particles-container,
    .floating-elements {
        display: block;
    }
    
    .logo-ring {
        display: block;
    }
    
    .scroll-indicator {
        display: flex;
    }
    
    .item-overlay {
        display: flex;
    }
    
    .btn-text {
        display: block;
    }
}

/* Prevent horizontal scroll on mobile */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
}

/* Fix iOS Safari scroll bounce */
body {
    -webkit-overflow-scrolling: touch;
}

/* Improve text rendering on mobile */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Mobile notification positioning */
@media (max-width: 768px) {
    .premium-notification {
        bottom: 20px !important;
        left: 50% !important;
        right: 20px !important;
        transform: translateX(-50%) translateY(100px) !important;
        min-width: auto !important;
        width: calc(100% - 40px) !important;
        max-width: 350px !important;
    }
}

/* Mobile search improvements */
@media (max-width: 768px) {
    .search-input:focus {
        font-size: 16px; /* Prevent iOS zoom */
    }
}

/* Mobile card swipe hint */
@media (max-width: 768px) and (hover: none) {
    .premium-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, transparent, var(--secondary), transparent);
        animation: swipe-hint 2s ease-in-out infinite;
    }
    
    @keyframes swipe-hint {
        0%, 100% {
            transform: translateX(-100%);
        }
        50% {
            transform: translateX(100%);
        }
    }
}

/* Optimize images for mobile */
@media (max-width: 768px) {
    .image-placeholder {
        background-size: cover;
        background-position: center;
    }
}

/* Mobile-friendly typography */
@media (max-width: 768px) {
    h1, h2, h3 {
        word-break: keep-word;
        overflow-wrap: break-word;
    }
    
    .item-name,
    .item-description {
        word-break: keep-word;
        overflow-wrap: break-word;
    }
}

/* Fix for mobile viewport height */
@media (max-width: 768px) {
    .header {
        min-height: auto; /* Remove fixed height to allow scrolling */
        padding: 2rem 1rem;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --cream: #1a1a1a;
        --light: #2d2d2d;
        --dark: #f5f5f5;
    }
    
    body {
        background: #0d0d0d;
    }
    
    .category-nav {
        background: rgba(26, 26, 26, 0.95);
    }
    
    .premium-card {
        background: #2d2d2d;
        color: #f5f5f5;
    }
    
    .item-name {
        color: #f5f5f5;
    }
    
    .item-description {
        color: #ccc;
    }
    
    .search-wrapper {
        background: #2d2d2d;
    }
    
    .search-input {
        color: #f5f5f5;
    }
    
    .search-input::placeholder {
        color: #888;
    }
}
