/* Root Color Variables */
:root {
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-tertiary: #1a1a1e;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #06b6d4;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --card-bg: rgba(255, 255, 255, 0.04);
    --card-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --button-bg: rgba(255, 255, 255, 0.95);
    --button-text: #18181b;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.25);
    --shadow-heavy: rgba(0, 0, 0, 0.4);
    --price-bg: rgba(99, 102, 241, 0.15);
    --price-text: #6366f1;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    background: var(--bg-primary);
    position: relative;
    overflow-x: hidden;
}

/* Modern Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    background: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.04) 0%, transparent 50%);
}

/* Language Selector Styles */
.language-selector {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
}

.current-language {
    width: 40px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.current-language:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.language-flag {
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
    display: none; /* Hide emoji flags */
}

.flag-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1;
    border-radius: 50%;
}

.flag-mk {
    background-image: url('https://flagcdn.com/w40/mk.png');
}

.flag-en {
    background-image: url('https://flagcdn.com/w40/gb.png');
}

.flag-sq {
    background-image: url('https://flagcdn.com/w40/al.png');
}

.flag-tr {
    background-image: url('https://flagcdn.com/w40/tr.png');
}

.language-dropdown {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    min-width: 40px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
}

.language-option {
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
}

.language-option:hover {
    background: var(--accent-primary);
}

.language-option::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
}

.language-option[data-lang="mk"]::before {
    background-image: url('https://flagcdn.com/w40/mk.png');
}

.language-option[data-lang="en"]::before {
    background-image: url('https://flagcdn.com/w40/gb.png');
}

.language-option[data-lang="sq"]::before {
    background-image: url('https://flagcdn.com/w40/al.png');
}

.language-option[data-lang="tr"]::before {
    background-image: url('https://flagcdn.com/w40/tr.png');
}

/* Grid Pattern */
.grid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: gridShift 25s ease-in-out infinite;
}

@keyframes gridShift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-20px, -20px); }
}

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

.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0.1;
    animation: float 15s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 70%;
    right: 10%;
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: -10s;
    background: linear-gradient(45deg, var(--accent-tertiary), var(--accent-secondary));
}

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

/* Container Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    gap: 32px;
}

/* Logo Container */
.logo-container {
    position: relative;
    margin-bottom: 15px;
}

.logo-img {
    max-width: 250px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-img:hover {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 12px 48px rgba(99, 102, 241, 0.2));
}

/* Menu Section */
.menu-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 400px;
}

.menu-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 18px 32px;
    background: var(--button-bg);
    color: var(--button-text);
    text-decoration: none;
    border-radius: 16px;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px var(--shadow-light),
        0 0 0 1px var(--card-border);
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
}

.menu-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-btn:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px var(--shadow-medium),
        0 0 0 1px rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

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

.menu-btn:active {
    transform: translateY(-2px);
}

/* Social Links */
.social-links {
    margin-top: 24px;
    text-align: center;
}

.social-links h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.05);
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
    border-color: var(--accent-primary);
}

/* Footer */
.footer {
    margin-top: 32px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.highlight, .phone {
    color: var(--accent-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.highlight:hover, .phone:hover {
    color: var(--accent-secondary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-btn {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.menu-btn:nth-child(1) { animation-delay: 0.1s; }
.menu-btn:nth-child(2) { animation-delay: 0.2s; }
.menu-btn:nth-child(3) { animation-delay: 0.3s; }
.menu-btn:nth-child(4) { animation-delay: 0.4s; }
.menu-btn:nth-child(5) { animation-delay: 0.5s; }

/* Menu Page Styles */
.menu-page .container {
    padding-top: 0;
    justify-content: flex-start;
}

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(10, 10, 11, 0.95);
    padding: 16px 24px;
    margin: 0 -24px 24px -24px;
    width: calc(100% + 48px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--card-border);
}

.sticky-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    z-index: -1;
}

.back-btn {
    position: absolute;
    left: 24px;
    color: var(--accent-primary);
    text-decoration: none;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--glass-bg);
    border: 1px solid var(--card-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.back-btn:hover {
    transform: translateX(-4px);
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.compact-logo {
    max-width: 100px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
    transition: all 0.3s ease;
    z-index: 1001;
}

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

/* Language selector inside header */
.sticky-header .language-selector {
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

/* Menu Title */
.menu-page-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.2rem;
    font-weight: 600;
    text-align: center;
    margin: 60px 0 32px 0;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    position: relative;
}

.menu-page-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
    width: 100%;
}

/* Menu Items */
.menu-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    position: relative;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.03), transparent);
    transition: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(99, 102, 241, 0.2);
    background: rgba(255, 255, 255, 0.06);
}

.menu-item:hover::before {
    left: 100%;
}

/* Menu Item Images */
.menu-item-image,
.menu-item-image-less-zoomed {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.menu-item-image-less-zoomed {
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
}

.menu-item-image::after,
.menu-item-image-less-zoomed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}


/* No Zoom - Shows image at original size without scaling */
.menu-item-image-natural {
    height: 200px;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.menu-item-image-natural::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}

/* Cropped Top - Cuts off 40% of the top portion */
.menu-item-image-cropped {
    height: 200px;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center 60%; /* Shows bottom 60% of image */
    position: relative;
    overflow: hidden;
}

.menu-item-image-cropped::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
}
/* Menu Item Details */
.menu-item-details {
    padding: 24px;
    position: relative;
    z-index: 2;
}

.menu-item-details h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.menu-item:hover .menu-item-details h3 {
    color: var(--accent-primary);
}

.menu-item-details h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--accent-secondary);
}

.menu-item-details p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Menu Item Footer */
.menu-item-footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.price {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    color: var(--price-text);
    background: var(--price-bg);
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.menu-item:hover .price {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: none !important;
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .menu-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
        gap: 24px;
    }
    
    .logo-img {
        max-width: 220px;
    }
    
    .menu-section {
        max-width: 100%;
    }
    
    .menu-btn {
        font-size: 1rem;
        padding: 16px 28px;
    }
    
    .social-icon {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    .sticky-header {
        padding: 14px 20px;
        margin: 0 -20px 24px -20px;
        width: calc(100% + 40px);
    }
    
    .compact-logo {
        max-width: 80px;
    }
    
    .menu-page-title {
        font-size: 2rem;
        margin: 50px 0 24px 0;
    }
    
    .back-btn {
        width: 36px;
        height: 36px;
        font-size: 1.3rem;
        left: 20px;
    }
    
    .sticky-header .language-selector {
        right: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 16px;
        gap: 20px;
    }
    
    .logo-img {
        max-width: 180px;
    }
    
    .menu-btn {
        font-size: 0.95rem;
        padding: 14px 24px;
    }
    
    .social-links h3 {
        font-size: 1.2rem;
    }
    
    .social-icons {
        gap: 12px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .menu-page-title {
        font-size: 1.8rem;
        margin: 40px 0 20px 0;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .menu-item-image,
    .menu-item-image-less-zoomed {
        height: 180px;
    }

    .menu-item-image-natural,
    .menu-item-image-cropped {
        height: 180px;
    }
    
    .menu-item-details {
        padding: 20px;
    }
    
    .menu-item-details h3 {
        font-size: 1.2rem;
    }
    
    .menu-item-details p {
        font-size: 0.9rem;
    }
    
    .price {
        font-size: 1.2rem;
    }
    
    .sticky-header {
        padding: 12px 16px;
        margin: 0 -16px 24px -16px;
        width: calc(100% + 32px);
    }
    
    .compact-logo {
        max-width: 70px;
    }
    
    .back-btn {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
        left: 16px;
    }
    
    .sticky-header .language-selector {
        right: 16px;
    }
}