/* Global Styles & Variables */
:root {
    --primary-color: #2EAD56;
    --accent-color: #FFD700;
    --text-color: #333;
    --white: #fff;
    --light-bg: #f9f9f9;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --bg-gradient: linear-gradient(135deg, #e74c3c, #c0392b);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; overflow-x: hidden; }
body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    position: relative;
    overflow-x: hidden;
}
body.mobile-nav-open { overflow: hidden; }
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page { display: none; animation: fadeIn 0.6s ease-in-out; overflow: hidden; }
.page.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.lang-switching [data-lang],
.lang-switching #pizza-name,
.lang-switching #pizza-description,
.lang-switching #menu-title {
    opacity: 0;
   transition: opacity 0.3s ease;
}

/* Header */
.header {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: padding 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}
.header .container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--white); text-transform: uppercase; line-height: 1.2; }
.logo span { font-size: 0.9rem; display: block; color: var(--accent-color); }
.main-nav { display: flex; align-items: center; }
.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    margin-left: 2rem;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-color); border-bottom-color: var(--accent-color); }
.mobile-nav-toggle { display: none; color: var(--white); font-size: 1.5rem; cursor: pointer; z-index: 1001; }

/* Language Switcher */
.language-switcher { position: relative; margin-left: 2rem; }
.selected-lang { display: flex; align-items: center; cursor: pointer; padding: 0.5rem 1rem; border-radius: 50px; background-color: rgba(255, 255, 255, 0.1); transition: background-color 0.3s ease; }
.selected-lang:hover { background-color: rgba(255, 255, 255, 0.2); }
.selected-lang img { width: 24px; height: 24px; margin-right: 0.5rem; border-radius: 50%; }
.selected-lang span { color: var(--white); font-weight: 500; }
.lang-dropdown {
    position: absolute;
    top: 120%;
    right: 0;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    padding: 0.5rem;
    width: max-content;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}
.language-switcher.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-dropdown a { display: flex; align-items: center; padding: 0.75rem 1rem; text-decoration: none; color: var(--text-color); transition: background-color 0.2s ease; border-radius: 4px; }
.lang-dropdown a:hover { background-color: var(--light-bg); }
.lang-dropdown img { width: 20px; height: 20px; margin-right: 0.75rem; border-radius: 50%; }

/* Hero Section */
.hero {
    background-color: #000; /* Fallback */
    background-image: 
        radial-gradient(ellipse at center, rgba(210, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.9) 70%),
        url('https://www.pngall.com/wp-content/uploads/2017/01/Albanian-Eagle-PNG-Image.png');
    background-size: 
        100% 100%,
        60% auto;
    background-position: 
        center center,
        center center;
    background-repeat: 
        no-repeat,
        no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative; /* For potential pseudo-elements if needed */
}
.hero-content h1 { font-family: 'Playfair Display', serif; font-size: 4rem; margin-bottom: 1rem; text-shadow: 2px 2px 8px rgba(0,0,0,0.7); }
.hero-content p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; }
.btn-primary, .btn-secondary { padding: 1rem 2.5rem; text-decoration: none; border-radius: 50px; font-weight: 700; transition: var(--transition); display: inline-block; }
.btn-primary { background: var(--accent-color); color: var(--text-color); box-shadow: var(--shadow); }
.btn-secondary { background: transparent; border: 2px solid var(--accent-color); color: var(--accent-color); }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.btn-secondary:hover { background: var(--accent-color); color: var(--text-color); }

/* Content Sections */
.featured-items, .about-preview, .about-page { padding: 5rem 0; }
.featured-items { background: var(--light-bg); }
.about-preview { background: #222; color: var(--white); text-align: center; }
.featured-items h2, .about-preview h2, .about-section h1, .about-section h2 { text-align: center; font-size: 2.5rem; margin-bottom: 2rem; }
.about-section h1, .about-section h2 { font-family: 'Playfair Display', serif; }
.about-preview p, .about-text p { max-width: 800px; margin: 0 auto 2rem; line-height: 1.8; color: #ccc; }
.about-text p, .pizzaiolo-section p { color: #555; }
.items-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.item-card { background: var(--white); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); text-align: center; transition: var(--transition); cursor: pointer; }
.item-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-hover); }

/* MODIFICATION: Style for the new <a> wrapper on item cards */
a.item-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-card img { width: 100%; height: 250px; object-fit: cover; }
.item-card h3 { font-size: 1.5rem; margin: 1.5rem 0 0.5rem; }
.item-card p { padding: 0 1.5rem 1.5rem; color: #666; }
.pizzaiolo-section { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pizzaiolo-section img { width: 200px; height: 200px; border-radius: 50%; object-fit: cover; margin-bottom: 1.5rem; border: 5px solid var(--white); box-shadow: var(--shadow); }

.pizzaiolo-section .title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.community-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 2rem; }
.community-gallery img, .about-hero-image { width: 100%; object-fit: cover; border-radius: 15px; box-shadow: var(--shadow); transition: var(--transition); }
.community-gallery img { height: 250px; }
.community-gallery img:hover { transform: scale(1.05); box-shadow: var(--shadow-hover); }

/* Menu Page */
#menu-page-container { width: 100vw; padding: 80px 0 4rem; background: var(--bg-gradient); min-height: 100vh; position: relative; overflow-x: hidden; transition: background 0.5s ease; }
.menu-nav-links.desktop-nav { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; justify-content: center; background: rgba(0,0,0,0.2); padding: 1rem; }
.menu-nav-links a { color: var(--white); text-decoration: none; font-weight: 500; text-transform: uppercase; font-size: 0.8rem; padding: 0.5rem 1rem; border-radius: 20px; transition: all 0.3s ease; }
.menu-nav-links a:hover, .menu-nav-links a.active { color: #000; background: var(--accent-color); }
#menu-title { text-align: center; color: var(--white); margin: 2rem 0; font-size: 2.5rem; text-shadow: 2px 2px 4px rgba(0,0,0,0.2); }
.pizza-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.size-selector-vertical { display: flex; flex-direction: column; gap: 1rem; }
.size-option { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.1); color: var(--white); font-weight: bold; cursor: pointer; transition: all 0.3s ease; border: 2px solid rgba(255,255,255,0.2); }
.size-option:hover { background: rgba(255, 255, 255, 0.2); transform: scale(1.1); }
.size-option.active { background: var(--accent-color); color: #000; border-color: var(--accent-color); box-shadow: 0 0 15px rgba(255,215,0,0.5); transform: scale(1.1); }
.pizza-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-grow: 1;
    width: 100%;
}
.pizza-image-container { 
    width: 100%; 
    max-width: 380px;
    aspect-ratio: 1/1; 
    margin-bottom: 0.5rem;
}
#pizza-image { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s ease; }
.pizza-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}
#pizza-name { 
    font-size: 2.2rem; 
    color: var(--white); 
    text-transform: uppercase; 
    font-weight: 700; 
}
.pizza-description { 
    font-size: 1.1rem; 
    color: #eee; 
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 1rem;
}
.ingredients { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 0.75rem; 
    margin: 0.75rem 0;
    max-width: 90%;
}
.ingredients span { background: rgba(255,255,255,0.1); padding: 0.4rem 0.9rem; border-radius: 20px; font-size: 0.9rem; color: var(--white); backdrop-filter: blur(5px); }
.pizza-navigation { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    width: 100%; 
    margin-top: 1rem;
    gap: 1rem;
    padding: 0 1rem;
}
.nav-btn { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.3); color: var(--white); width: 55px; height: 55px; border-radius: 50%; cursor: pointer; font-size: 1.2rem; transition: all 0.3s ease; backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; padding: 1rem; line-height: 1; }
.order-now-btn { background: var(--accent-color); color: var(--text-color); border: none; padding: 1rem 3rem; font-size: 1.1rem; font-weight: bold; border-radius: 50px; cursor: pointer; transition: all 0.3s ease; text-transform: uppercase; white-space: nowrap; min-width: 180px; text-align: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.nav-btn:hover { background: rgba(255,215,0,0.2); }
.order-now-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pizza-image-container, .pizza-info, .ingredients { transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); }
.pizza-display.is-navigating .pizza-image-container, .pizza-display.is-navigating .pizza-info, .pizza-display.is-navigating .ingredients { opacity: 0; transform: translateY(30px); }
.pizza-display.is-navigating #pizza-image { transform: scale(0.7); }

/* Floating Emojis & Phone Modal */
#floating-elements { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.floating-emoji { position: absolute; font-size: 2rem; opacity: 0; animation: floatUp 15s linear infinite; }
@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 0.1; }
    90% { opacity: 0.1; }
    100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}
.phone-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 2000; justify-content: center; align-items: center; opacity: 0; transition: opacity 0.3s ease; }
.phone-modal.show { display: flex; opacity: 1; }
.phone-modal-content { background: var(--white); padding: 2.5rem; border-radius: 15px; text-align: center; max-width: 400px; width: 90%; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.3); transform: scale(0.9); transition: transform 0.3s ease; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.phone-modal.show .phone-modal-content { transform: scale(1); }
.close-modal { position: absolute; top: 1rem; right: 1.5rem; font-size: 1.8rem; cursor: pointer; color: #666; }
.phone-modal-content a { display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 12px 20px; border-radius: 30px; text-decoration: none; font-weight: 600; font-size: 1.1rem; width: 90%; max-width: 280px; color: var(--white); }
.phone-number { background-color: #555; }
.whatsapp-btn { background-color: #25D366; }

/* Footer */
.footer {
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 4rem 0 2rem;
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.5rem; margin-bottom: 3rem; }


.footer-section h3 { color: var(--accent-color); font-size: 1.4rem; margin-bottom: 1.5rem; }
.footer-section p,
.footer-section a:not(.social-links a) {
    color: #ccc;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start; /* Align icon to the top of the text block */
    gap: 0.75rem;
    text-decoration: none;
}
.footer-section p i,
.footer-section a:not(.social-links a) i {
    color: var(--accent-color);
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    margin-top: 4px; /* Nudge icon down for perfect visual alignment */
}
.footer-section .info-text {
    align-self: center;
}

.social-links { display: flex; gap: 1rem; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: rgba(255, 255, 255, 0.1); border-radius: 50%; color: var(--white); font-size: 1.3rem; transition: all 0.3s ease; }
.social-links a:hover { background: var(--accent-color); color: #000; transform: translateY(-3px); }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; color: #888; }

/* Mobile Category Scroller (Hidden on Desktop) */
.category-scroller-container.mobile-nav { display: none; }

/* === Responsive Design === */
@media (max-width: 992px) {
    /* Tablet & Mobile Navigation */
    .mobile-nav-toggle { display: block; }
    .main-nav {
        display: none;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(26, 26, 26, 0.98);
        backdrop-filter: blur(15px);
        padding: 1rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        animation: slideDown 0.3s ease-in-out;
    }
    @keyframes slideDown {
        from { transform: translateY(-10px); opacity: 0; }
        to { transform: translateY(0); opacity: 1; }
    }
    .main-nav.mobile-open { display: flex; }
    .main-nav a { margin: 0.8rem 0; font-size: 1.1rem; border-bottom: none; }
    .main-nav a:hover, .main-nav a.active { border-bottom: none; }
    .language-switcher { margin: 0.8rem 0 0 0; }
    .lang-dropdown { top: auto; bottom: 120%; right: 50%; transform: translateX(50%); background-color: #333; }
    .lang-dropdown a { color: var(--white); }
    .lang-dropdown a:hover { background-color: rgba(255,255,255,0.1); }
}

@media (max-width: 768px) {
    /* General Mobile Layout */
    .container { width: 95%; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-content p { font-size: 1.1rem; padding: 0 1rem; }

    /* Mobile Menu Categories */
    .menu-nav-links.desktop-nav { display: none; }
    .category-scroller-container.mobile-nav {
        display: block;
        padding: 0.5rem 0;
        margin-bottom: 1.5rem;
        background: rgba(0,0,0,0.15);
    }
    .category-scroller { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 0.5rem 1rem; gap: 0.75rem; }
    .category-scroller::-webkit-scrollbar { display: none; }
    .category-chip { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 50px; background: rgba(0,0,0,0.2); color: var(--white); font-size: 1rem; text-decoration: none; white-space: nowrap; transition: all 0.3s ease; border: 1px solid rgba(255,255,255,0.2); }
    .category-chip.active, .category-chip:hover { background: var(--accent-color); color: #000; transform: translateY(-2px); border-color: var(--accent-color); box-shadow: 0 4px 10px rgba(0,0,0,0.2); }

    /* Mobile Pizza Display */
    #menu-page-container { padding-top: 70px; }
    .pizza-display { flex-direction: column; padding: 1.5rem 1rem; width: 95%; }
    .size-selector-vertical { flex-direction: row; order: 2; margin: 1rem 0; }
    .pizza-content { order: 1; gap: 0.75rem; }
    .pizza-image-container { max-width: 65vw; }
    #pizza-name { font-size: 1.8rem; }
    .pizza-description { font-size: 0.95rem; white-space: normal; } /* Allow wrapping on small screens */
    .pizza-navigation { justify-content: center; gap: 1rem; padding: 0 1rem; }
    .nav-btn { width: 45px; height: 45px; font-size: 1rem; }
    .order-now-btn { padding: 0.7rem 1.5rem; font-size: 1rem; flex-grow: 0; }
    
    /* Mobile Footer */
    .footer-content { text-align: left; }
    .social-links, .footer-section p { justify-content: flex-start; }
}

@media (max-width: 480px) {
    /* Small Phone Layout */
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .btn-primary, .btn-secondary { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
    #menu-title { font-size: 2rem; }
    #pizza-name { font-size: 1.6rem; }
    .pizza-description { font-size: 0.9rem; }
    .ingredients span { font-size: 0.8rem; }
}
