:root {
    --primary-color: #dfa66a;
    /* Gold/Bronze */
    --secondary-color: #2c3e50;
    /* Dark Blue/Slate */
    --accent-color: #c0392b;
    /* Deep Red */
    --bg-color: #0f1115;
    /* Very dark, almost black */
    --text-color: #ecf0f1;
    --card-bg: #1a1d24;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

ul {
    list-style: none;
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 300;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
}

/* Hero Section */
#hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6)), url('assets/hanoi_landingpage.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    position: relative;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.5s;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    font-weight: 300;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 0.8s;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s forwards 1.1s;
}

.cta-button:hover {
    background: var(--primary-color);
    color: var(--bg-color);
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Duck Specialty Section (Scroll Animation) */
#duck-special {
    height: 400vh;
    /* Scrollytelling length */
    position: relative;
    background-color: #000;
}

.sticky-container {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#duck-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 65%;
    /* Reduced from 100% to avoid pixelation */
    max-height: 80vh;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.text-main {
    position: absolute;
    z-index: 2;
    top: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: 100%;
    opacity: 0;
    transition: opacity 0.5s;
}

.text-main h2 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 3rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.text-side {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    /* Less obtrusive background */
    padding: 1.5rem;
    border-left: 3px solid var(--primary-color);
    max-width: 300px;
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: all 0.8s ease;
}

.text-left {
    left: 5%;
    transform: translate(-50px, -50%);
}

.text-right {
    right: 5%;
    text-align: right;
    border-left: none;
    border-right: 3px solid var(--primary-color);
    transform: translate(50px, -50%);
}

.text-side h3 {
    color: var(--primary-color);
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.text-side p {
    font-size: 1.1rem;
    font-style: italic;
    color: #ddd;
}

/* Visibility states */
.visible {
    opacity: 1 !important;
    transform: translate(0, -50%) !important;
}

.text-main.visible {
    transform: translateX(-50%) !important;
}

/* Menu Section */
#menu {
    padding: var(--spacing-lg) 2rem;
    background-color: var(--bg-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

#menu h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

/* Menu Search */
.menu-search {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

#search-input {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1.25rem;
    font-size: 1rem;
    font-family: var(--font-body);
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

#search-input::placeholder {
    color: #7f8c8d;
}

#search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(223, 166, 106, 0.2);
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: #7f8c8d;
    font-size: 1.2rem;
}

.tab-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    position: relative;
    opacity: 0.6;
    transition: all 0.3s;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.tab-btn:hover,
.tab-btn.active {
    opacity: 1;
    color: var(--primary-color);
}

.tab-btn.active::after {
    width: 100%;
}

/* Menu Categories */
.menu-category {
    margin-bottom: 3rem;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.category-items {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.menu-item {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 4px;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 3px solid transparent;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    border-left: 3px solid var(--primary-color);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
    gap: 0.75rem;
}

.item-id {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    min-width: 2rem;
}

.item-name {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
}

.item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.item-desc {
    color: #95a5a6;
    font-size: 0.95rem;
}

/* Gallery Section */
#gallery {
    padding: var(--spacing-lg) 2rem;
    background-color: #0a0b0e;
}

#gallery h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 2.5rem;
    cursor: pointer;
    padding: 1rem;
    transition: color 0.3s, transform 0.3s;
    z-index: 2001;
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev {
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--primary-color);
}

.lightbox-prev:hover {
    transform: translateY(-50%) translateX(-5px);
}

.lightbox-next:hover {
    transform: translateY(-50%) translateX(5px);
}

/* Anfahrt Section */
#anfahrt {
    padding: var(--spacing-lg) 2rem;
    background-color: var(--bg-color);
}

#anfahrt h2 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.anfahrt-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    min-height: 500px;
}

.anfahrt-image {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.anfahrt-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.anfahrt-info {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
}

.anfahrt-info h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.anfahrt-info > p {
    color: #bdc3c7;
    margin-bottom: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-details p {
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.contact-details i {
    color: var(--primary-color);
    width: 20px;
}

.anfahrt-map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-height: 500px;
}

.anfahrt-map iframe {
    display: block;
}

@media (max-width: 768px) {
    .anfahrt-content {
        grid-template-columns: 1fr;
    }

    .anfahrt-map {
        min-height: 350px;
    }
}

/* Footer */
footer {
    padding: 4rem 2rem 2rem;
    background-color: #0a0b0e;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: center;
}

.footer-col h3 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.footer-col p {
    margin-bottom: 0.5rem;
    color: #bdc3c7;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* News Page */
.news-page {
    padding-top: 100px;
    min-height: 100vh;
}

.news-section {
    padding: var(--spacing-lg) 2rem;
}

.news-section h1 {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

#news-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: transform 0.3s;
}

.news-item:hover {
    transform: translateX(5px);
}

.news-date {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
}

.news-item h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0.5rem 0 1rem;
}

.news-item p {
    color: #bdc3c7;
    line-height: 1.7;
}

.nav-links a.active {
    color: var(--primary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .text-panel {
        bottom: 5%;
        right: 5%;
        left: 5%;
        max-width: none;
    }
}