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

:root {
    --primary-gold: #D4AF37;
    --dark-gold: #B8860B;
    --background-dark: #0A0A0A;
    --background-secondary: #1A1A1A;
    --text-light: #FFFFFF;
    --text-muted: #CCCCCC;
    --accent-gold: #FFD700;
    --border-gold: #D4AF37;
    --shadow-gold: rgba(212, 175, 55, 0.3);
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-dark);
    color: var(--text-light);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
    position: relative;
}

/* Tree Background */
.tree-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.15;
}

.tree-svg,
.tree-background svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.tree-background svg {
    display: block;
    max-width: 100%;
    max-height: 100%;
}

/* Trunk - no animation */
.tree-background #trunk,
.tree-background svg #trunk {
    transform-origin: center bottom;
}

/* Lower Leaves - gentle sway */
.tree-background #lower_leaves,
.tree-background svg #lower_leaves {
    transform-origin: center bottom;
    animation: swayLower 4s ease-in-out infinite;
}

/* Middle Leaves - medium sway */
.tree-background #middle_leaves,
.tree-background svg #middle_leaves {
    transform-origin: center bottom;
    animation: swayMiddle 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Upper Leaves - more pronounced sway */
.tree-background #upper_leaves,
.tree-background svg #upper_leaves {
    transform-origin: center bottom;
    animation: swayUpper 3s ease-in-out infinite;
    animation-delay: 1s;
}

/* Sway Animations */
@keyframes swayLower {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(1.5deg);
    }
    75% {
        transform: rotate(-1.5deg);
    }
}

@keyframes swayMiddle {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(2.5deg);
    }
    75% {
        transform: rotate(-2.5deg);
    }
}

@keyframes swayUpper {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(3.5deg);
    }
    75% {
        transform: rotate(-3.5deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-gold);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-image {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.3));
    transition: transform 0.3s ease;
}

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

.logo-text h1 {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin: 0;
    font-weight: 400;
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--primary-gold);
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.25rem 0;
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gold);
    transition: width 0.3s ease;
}

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

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    border-color: var(--primary-gold);
    background: rgba(212, 175, 55, 0.1);
}

.lang-option {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.lang-option.active {
    color: var(--primary-gold);
    font-weight: 600;
}

.lang-separator {
    color: rgba(212, 175, 55, 0.4);
}

/* Mobile: show mobile toggle, hide desktop toggle */
.lang-toggle-mobile {
    display: none;
    margin-right: 15px;
}

.lang-toggle-desktop {
    display: block;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--background-dark) 0%, #1a1a1a 100%);
    overflow: hidden;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.5s forwards;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.7s forwards;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease 0.9s forwards;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    min-height: 44px;
    min-width: 140px;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-gold), var(--accent-gold));
    color: var(--background-dark);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--shadow-gold);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: var(--background-dark);
}

.hero-decoration {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.gold-leaf {
    position: absolute;
    width: 100px;
    height: 100px;
    background: var(--primary-gold);
    opacity: 0.1;
    border-radius: 50% 0;
    animation: float 6s ease-in-out infinite;
}

.gold-leaf:nth-child(1) {
    top: 20%;
    right: 10%;
    animation-delay: 0s;
}

.gold-leaf:nth-child(2) {
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.gold-leaf:nth-child(3) {
    top: 70%;
    right: 15%;
    animation-delay: 4s;
}

/* Menu Section */
.menu-section {
    padding: 100px 0;
    background: var(--background-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.menu-subtitle {
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-size: 0.95rem;
}

.menu-category-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    cursor: pointer;
}

.menu-category-text {
    text-align: left;
}

.category-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.category-toggle-icon {
    font-size: 0.9rem;
    color: var(--primary-gold);
    transition: transform 0.3s ease;
}

.menu-category.open .category-toggle-icon {
    transform: rotate(180deg);
}

.menu-items {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.menu-category.open .menu-items {
    max-height: 1000px; /* large enough for content */
}

/* Admin dashboard helpers */
.admin-category-header {
    margin-bottom: 1rem;
}

.admin-category-actions,
.admin-item-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.admin-item-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.btn-small {
    padding: 4px 10px;
    font-size: 0.8rem;
    min-height: 32px;
    min-width: auto;
}

.btn-danger-outline {
    background: transparent;
    border-color: #f44336;
    color: #f44336;
}

.schedule {
    margin-top: 2rem;
}

.schedule-days {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.schedule-times {
    font-size: 1rem;
    color: var(--text-muted);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Admin dashboard layout tweaks (single-column, no horizontal overflow) */
body.admin-dashboard .menu-section .container {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 12px;
}

body.admin-dashboard .menu-grid {
    display: block;              /* stack cards vertically */
}

body.admin-dashboard .menu-category {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

body.admin-dashboard .contact-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Admin dashboard: let JS control visibility, no accordion max-height constraints */
body.admin-dashboard .menu-items {
    max-height: none;
    overflow: visible;
}

.menu-category {
    background: var(--background-dark);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(212, 175, 55, 0.1);
}

.category-title {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--primary-gold);
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.menu-item:hover {
    padding-left: 10px;
    background: rgba(212, 175, 55, 0.05);
    border-radius: 5px;
}

.item-name {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

.item-price {
    font-size: 1rem;
    color: var(--primary-gold);
    font-weight: 600;
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--background-dark);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text h2 {
    text-align: center;
    margin-bottom: 2rem;
}

.about-text {
    text-align: center;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 1.5rem;
    background: var(--background-secondary);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2rem;
    color: var(--primary-gold);
    margin-bottom: 1rem;
}

.feature h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.feature p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--background-secondary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary-gold);
}

.image-placeholder i {
    font-size: 4rem;
    color: var(--primary-gold);
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background: var(--background-secondary);
}

.gallery-subtitle {
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-size: 0.95rem;
    text-align: center;
}

.gallery-carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 3rem auto 0;
    padding: 0 60px;
}

.gallery-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--background-dark);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gallery-slides-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.gallery-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(212, 175, 55, 0.2);
    border: 2px solid var(--primary-gold);
    color: var(--primary-gold);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    font-size: 1.2rem;
}

.gallery-nav:hover {
    background: var(--primary-gold);
    color: var(--background-dark);
    transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
    left: 10px;
}

.gallery-next {
    right: 10px;
}

.gallery-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-light);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.gallery-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.3);
    border: 1px solid var(--primary-gold);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-indicator:hover {
    background: rgba(212, 175, 55, 0.5);
    transform: scale(1.2);
}

.gallery-indicator.active {
    background: var(--primary-gold);
    transform: scale(1.3);
}

.gallery-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--text-muted);
    z-index: 5;
}

.gallery-loading i {
    font-size: 2rem;
    color: var(--primary-gold);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
    }
    to {
        transform: translateX(0);
    }
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--background-dark);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background-dark);
    border-radius: 10px;
    transition: transform 0.3s ease;
    width: min(400px, 100%);
}

.contact-item:hover {
    transform: translateX(10px);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-top: 0.2rem;
}

.contact-item h4 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

.contact-form {
    background: var(--background-dark);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.contact-form h3 {
    color: var(--primary-gold);
    margin-bottom: 1.5rem;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: var(--background-secondary);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 8px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--background-dark);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-logo .logo-image {
    width: 40px;
    height: 40px;
}

.footer-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.2));
}

.footer-logo h3 {
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin: 0;
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.footer-logo p {
    font-size: 0.75rem;
    color: var(--primary-gold);
    margin: 0;
    font-weight: 300;
    letter-spacing: 0.3px;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-gold);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--background-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary-gold);
    color: var(--background-dark);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

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

/* Tree Background Mobile Adjustments */
@media (max-width: 768px) {
    .tree-background {
        opacity: 0.1;
    }
    
    .tree-svg {
        object-position: center bottom;
        width: 150%;
        margin-left: -25%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .lang-toggle-mobile {
        display: flex;
    }
    
    .lang-toggle-desktop {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--background-dark);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        margin: 1rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .gallery-carousel-container {
        padding: 0 50px;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .gallery-prev {
        left: 5px;
    }

    .gallery-next {
        right: 5px;
    }

    .gallery-counter {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .menu-category {
        padding: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }
}

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

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

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

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

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