:root {
    --primary-color: #000000;
    --secondary-color: #FFA500;
    --accent-color: #FFFFFF;
    --text-color: #FFFFFF;
    --light-text: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #000000;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(26, 26, 26, 0.8);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-logo {
    display: flex;
    align-items: center;
    padding: 10px;
}

.logo-image {
    height: 70px;
    width: auto;
    transition: transform 0.3s ease;
    /* Removed the filter that was making it white */
}

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

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: var(--light-text);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.lang-button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
    padding: 5px;
    transition: transform 0.2s;
}

.lang-button:hover {
    transform: scale(1.1);
}

.lang-button.active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    font-weight: bold;
}

.lang-button img {
    width: 30px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    vertical-align: middle; /* Align images nicely */
}

.mobile-menu {
    display: none;
    color: var(--light-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-background.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/hero-background.jpg') center/cover;
    background-attachment: fixed;
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.cta-button:hover {
    background-color: #ff8c00;
}

/* Menu Section */
.menu-section {
    padding: 5rem 2rem;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.menu-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
    position: relative;
}

.menu-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 15px auto;
}

#menu-category-toggle {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
    background-color: var(--secondary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#menu-category-toggle:hover {
    background-color: #ffcc80;
}

#menu-category-selector {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(26, 26, 26, 0.95); /* Dark background with transparency */
    display: none; /* Add this line to initially hide the selector */
    z-index: 1000; /* Ensure it appears above other content */
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    flex-direction: column; /* To stack links vertically */
    align-items: center;
}

#close-menu-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    border: none;
    color: var(--secondary-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 5px;
}

#close-menu-selector:hover {
    color: #ffcc80;
}

#menu-category-selector a {
    color: var(--secondary-color);
    text-decoration: none;
    margin: 0.8rem 0; /* Add vertical margin between links */
    font-size: 1.2rem;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem; /* Add padding for clickable area */
    border-radius: 5px;
    display: block; /* Ensure link takes full width for centering */
    text-align: center;
}

#menu-category-selector a:hover {
    color: #ffcc80;
    text-decoration: none; /* Remove underline on hover */
    background-color: rgba(255, 165, 0, 0.1); /* Subtle background on hover */
}

/* Optional: Add an overlay background when popup is active */
/* This requires adding/removing a class to a parent element or body via JS */
/* For now, the popup itself has a semi-transparent background */

.menu-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    padding: 0 1rem;
    justify-content: center;
}

@media (max-width: 1024px) {
    .menu-container {
        /* Flexbox will handle wrapping automatically */
    }
}

@media (max-width: 768px) {
    .menu-container {
        /* Flexbox will handle wrapping automatically */
    }

    /* Adjust hero background for mobile */
    .hero {
        background-attachment: scroll; /* Change fixed to scroll on mobile */
    }
}

.menu-category {
    background-color: var(--accent-color);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    flex: 1 1 0;
    min-width: 300px;
    margin-bottom: 2rem;
}

.menu-category:last-child {
    margin-bottom: 0;
}

.menu-category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--secondary-color), #ffcc80);
}

.menu-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

.menu-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    position: relative;
    padding-bottom: 10px;
    white-space: nowrap; /* Prevent text from wrapping */
}

.menu-category h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.menu-category h3 i,
.menu-category-icon {
    margin-right: 10px;
    color: var(--secondary-color);
    font-size: 1.2em;
    vertical-align: middle;
    opacity: 0.9;
}

.menu-category:hover h3 i,
.menu-category:hover .menu-category-icon {
    transform: scale(1.1);
    opacity: 1;
}

.menu-items {
    position: relative;
    color: var(--text-color);
}

.menu-items::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 165, 0, 0.2), transparent);
}

.menu-items .item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    color: var(--primary-color);
    flex-wrap: wrap;
}

.menu-items .item:hover {
    padding-left: 5px;
    border-bottom-color: var(--secondary-color);
}

.menu-items .item:last-child {
    margin-bottom: 0;
}

.menu-items .item span:first-child {
    font-weight: 500;
    color: var(--primary-color);
    flex-grow: 1;
    align-self: flex-start;
}

.price {
    color: var(--secondary-color);
    font-weight: bold;
    font-size: 1.1rem;
    background: rgba(255, 165, 0, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-left: auto;
    flex-shrink: 0;
    text-align: center;
    align-self: flex-start;
}

/* Specific rule to ensure Cold Chocolate price is on the right */
.menu-items .item:has(span:contains('Cold Chocolate')) .price {
    margin-left: auto;
}

.item-description {
    display: block;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    color: var(--primary-color);
    width: 100%;
}

/* About Section */
.about-section {
    padding: 5rem 2rem;
    background-color: var(--primary-color);
    color: var(--light-text);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 165, 0, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 1;
}

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

.about-content h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.about-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-align: left;
    color: var(--light-text);
}

@media (max-width: 768px) {
    .about-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
}

/* Contact Section */
.contact-section {
    padding: 5rem 2rem;
    background-color: var(--primary-color);
    color: var(--light-text);
}

.contact-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.info-item {
    padding: 2rem;
    background-color: var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(255, 255, 255, 0.1);
    color: var(--primary-color);
}

.info-item i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

/* Styles for the Instagram link in the contact section */
.contact-info .info-item a {
    color: var(--light-text); /* Ensure color is inherited or set */
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.contact-info .info-item a:hover {
    color: var(--secondary-color);
}

.contact-info .info-item a i {
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 2rem 1rem;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-text-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.social-links {
    margin-bottom: 0.5rem;
}

.social-links a {
    color: var(--light-text);
    font-size: 1.5rem;
    margin: 0 10px;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color);
}

.developer-credit a {
    color: var(--secondary-color); /* Make KAD Development text orange */
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: #ffcc80; /* Slightly lighter orange on hover */
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: rgba(26, 26, 26, 0.95);
        padding: 1rem;
        flex-direction: column;
    }

    .nav-links a {
        margin: 1rem 0;
    }

    .mobile-menu {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .menu-container {
        /* Flexbox will handle wrapping automatically */
        padding: 0 0.5rem;
        gap: 1rem;
    }

    .menu-category {
        padding: 1.5rem;
        min-width: auto;
        flex-basis: auto;
    }

    .menu-category h3 {
        font-size: 1.2rem; /* Further reduced font size for smaller screens */
    }

    .menu-items .item {
        padding: 0.6rem 0;
    }

    .price {
        font-size: 1rem;
        padding: 0.2rem 0.6rem;
    }
    
    .about-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }

    .team-shirt-image {
        max-width: 80%; /* Keep 80% for mobile too, or adjust if needed */
    }

    .logo-image {
        height: 50px;
    }
}

/* Team Section */
.team-section {
    padding: 5rem 2rem;
    background-image: url('../images/logo.png');
    background-repeat: repeat;
    background-size: auto;
    background-position: center;
    color: var(--light-text);
    text-align: center;
}

.team-content {
    max-width: 800px;
    margin: 0 auto;
}

.team-content-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 165, 0, 0.6); /* Adjusted box-shadow for a shining effect using secondary color */
    text-align: center;
}

.team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.team-shirt-image {
    max-width: 80%;
    height: auto;
    display: block;
    margin: 2rem auto 0 auto;
}
