/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Colors - Chinese Restaurant Theme */
    --primary-color: #c41e3a;
    --primary-dark: #8b1429;
    --primary-light: #e63946;
    --secondary-color: #d4a574;
    --secondary-dark: #b8905f;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --text-white: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #2d2d2d;
    --border-color: #ddd;
    --overlay: rgba(26, 26, 26, 0.6);
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);

    /* Typography */
    --font-primary: 'Georgia', 'Times New Roman', serif;
    --font-secondary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --container-padding: 0 20px;
    --container-max-width: 1140px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   LAYOUT COMPONENTS
   ======================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: var(--container-padding);
}

.section-title {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-normal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn--primary {
    background: var(--primary-color);
    color: var(--text-white);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow-dark);
}

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

.btn--secondary:hover {
    background: var(--text-white);
    color: var(--primary-color);
}

/* Stars Rating */
.stars {
    display: inline-flex;
    gap: 2px;
}

.star {
    color: #ffd700;
    font-size: 1.2rem;
}

.star.filled {
    color: #ffd700;
}

.star.half {
    background: linear-gradient(90deg, #ffd700 50%, #ddd 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.star.empty {
    color: #ddd;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--text-white);
    box-shadow: 0 2px 10px var(--shadow);
    z-index: 1000;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: 0 4px 20px var(--shadow-dark);
}

.navbar__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.navbar__logo {
    font-family: var(--font-primary);
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.navbar__menu {
    display: flex;
    gap: 2rem;
}

.navbar__link {
    color: var(--text-dark);
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-normal);
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
}

.navbar__toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: var(--transition-normal);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 70px;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: parallax 20s ease-in-out infinite alternate;
}

@keyframes parallax {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--overlay);
}

.hero__content {
    text-align: center;
    color: var(--text-white);
    z-index: 1;
    padding: 0 20px;
}

.hero__title {
    font-family: var(--font-primary);
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero__subtitle {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero__rating-text {
    font-size: 1.1rem;
}

.hero__buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

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

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: var(--section-padding);
    background: var(--text-white);
}

.about__text {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.highlight {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition-normal);
}

.highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.highlight h3 {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.highlight p {
    color: var(--text-light);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.feature {
    background: var(--text-white);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition-normal);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--shadow);
}

.feature__icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature__title {
    font-family: var(--font-primary);
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 0.8rem;
}

.feature__text {
    color: var(--text-light);
    line-height: 1.6;
}

/* ========================================
   MENU SECTION
   ======================================== */
.menu {
    padding: var(--section-padding);
    background: var(--text-white);
}

.menu__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0 3rem;
}

.tag {
    background: var(--bg-light);
    color: var(--text-dark);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: var(--transition-normal);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--text-white);
    transform: scale(1.05);
}

.menu__link {
    text-align: center;
    margin-top: 2rem;
}

/* ========================================
   GALLERY SECTION
   ======================================== */
.gallery {
    padding: var(--section-padding);
    background: var(--bg-light);
}

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

.gallery__item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery__item:hover img {
    transform: scale(1.1);
}

.gallery__item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0;
    transition: var(--transition-normal);
}

.gallery__item:hover::after {
    opacity: 1;
}

/* ========================================
   REVIEWS SECTION
   ======================================== */
.reviews {
    padding: var(--section-padding);
    background: var(--text-white);
}

.reviews__summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin: 3rem 0;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.reviews__rating {
    text-align: center;
}

.reviews__rating h3 {
    font-family: var(--font-primary);
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.reviews__rating p {
    color: var(--text-light);
    margin-top: 1rem;
}

.reviews__breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.breakdown__item {
    display: grid;
    grid-template-columns: 30px 1fr 40px;
    align-items: center;
    gap: 1rem;
}

.breakdown__bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.breakdown__fill {
    height: 100%;
    background: var(--secondary-color);
    transition: var(--transition-slow);
}

.reviews__carousel {
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
}

.review {
    background: var(--bg-light);
    padding: 2rem;
    border-radius: 8px;
    margin: 0 1rem;
}

.review__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.review__date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.review__text {
    color: var(--text-dark);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.review__ratings {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-light);
}

.reviews__controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel__btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-white);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.carousel__btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

/* ========================================
   OPENING HOURS SECTION
   ======================================== */
.hours {
    padding: var(--section-padding);
    background: var(--bg-light);
}

.hours__grid {
    max-width: 600px;
    margin: 3rem auto 2rem;
    background: var(--text-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
}

.hours__item {
    display: flex;
    justify-content: space-between;
    padding: 1.2rem 2rem;
    border-bottom: 1px solid var(--border-color);
}

.hours__item:last-child {
    border-bottom: none;
}

.hours__item--weekend {
    background: var(--bg-light);
}

.hours__day {
    font-weight: 600;
    color: var(--text-dark);
}

.hours__time {
    color: var(--text-light);
}

.hours__note {
    text-align: center;
    max-width: 600px;
    margin: 2rem auto 0;
}

.hours__note p {
    color: var(--text-light);
    margin: 0.5rem 0;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: var(--section-padding);
    background: var(--text-white);
}

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

.contact__item {
    margin-bottom: 2rem;
}

.contact__item h3 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    margin-bottom: 0.8rem;
}

.contact__item p {
    color: var(--text-light);
    line-height: 1.8;
}

.contact__item a {
    color: var(--primary-color);
    font-weight: 500;
}

.contact__item a:hover {
    text-decoration: underline;
}

.amenities__list {
    list-style: disc;
    list-style-position: inside;
    color: var(--text-light);
}

.amenities__list li {
    padding: 0.3rem 0;
}

.contact__map {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px var(--shadow);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: var(--text-white);
    padding: 3rem 0 1rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer__brand h3 {
    font-family: var(--font-primary);
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer__brand p {
    color: #aaa;
    margin: 0.3rem 0;
}

.footer__links h4,
.footer__info h4 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer__links ul li {
    margin: 0.5rem 0;
}

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

.footer__info p {
    color: #aaa;
    margin: 0.3rem 0;
}

.footer__info a {
    color: var(--secondary-color);
}

.footer__bottom {
    border-top: 1px solid #444;
    padding-top: 2rem;
    text-align: center;
    color: #aaa;
}

/* ========================================
   LIGHTBOX
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox__image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    border: none;
    font-size: 2rem;
    padding: 1rem;
    cursor: pointer;
    transition: var(--transition-normal);
}

.lightbox__close {
    top: 20px;
    right: 20px;
    font-size: 2.5rem;
}

.lightbox__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ========================================
   ANIMATIONS & UTILITIES
   ======================================== */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   RESPONSIVE MEDIA QUERIES
   ======================================== */

/* Tablet */
@media (max-width: 1023px) {
    .section-title {
        font-size: 2rem;
    }

    .hero__title {
        font-size: 3rem;
    }

    .hero__subtitle {
        font-size: 1.2rem;
    }
}

/* Mobile */
@media (max-width: 767px) {
    :root {
        --section-padding: 50px 0;
    }

    .navbar__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: var(--text-white);
        flex-direction: column;
        padding: 2rem;
        transition: var(--transition-normal);
        box-shadow: 0 4px 12px var(--shadow);
    }

    .navbar__menu.active {
        left: 0;
    }

    .navbar__toggle {
        display: flex;
    }

    .hero {
        height: 80vh;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .hero__buttons {
        flex-direction: column;
    }

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

    .features__grid,
    .gallery__grid {
        grid-template-columns: 1fr;
    }

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

    .hours__item {
        flex-direction: column;
        gap: 0.5rem;
    }

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

    .lightbox__prev,
    .lightbox__next {
        padding: 0.5rem;
        font-size: 1.5rem;
    }
}