/* 
   Snack Corner - Modern Dark Luxury Theme 
   Consolidated Stylesheet
*/

/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    --bg-dark: #0a0a0a;
    --bg-card: #141414;
    --bg-accent: #1f1f1f;
    --primary-gold: #D4AF37;
    --primary-gold-hover: #F4C430;
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', sans-serif;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.5);
    --radius-lg: 16px;
    --radius-md: 8px;
    --nav-height: 80px;
    
    /* Default Dark Theme Colors */
    --nav-bg: rgba(10, 10, 10, 0.8);
    --footer-bg: #050505;
    --overlay-color: rgba(0, 0, 0, 0.8);
}

/* Light Theme Variables */
body.light-theme {
    --bg-dark: #e0e0e0;
    --bg-card: #f5f5f5;
    --bg-accent: #d6d6d6;
    --text-main: #1a1a1a;
    --text-muted: #4a4a4a;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(245, 245, 245, 0.95);
    --footer-bg: #d6d6d6;
    --overlay-color: rgba(255, 255, 255, 0.8);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

a {
    text-decoration: none !important;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =========================================
   2. Navigation
   ========================================= */
.top-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.top-navbar .navbar {
    background: var(--nav-bg) !important;
    backdrop-filter: blur(15px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme .top-navbar .navbar {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .nav-link {
    color: var(--text-main) !important;
}

body.light-theme .navbar-toggler-icon {
    filter: invert(1);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--primary-gold) !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand i {
    font-size: 1.2rem;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 20px !important;
    opacity: 0.8;
    position: relative;
}

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

.nav-item.active .nav-link::after,
.nav-link:hover::after {
    width: 80%;
}

.nav-item.active .nav-link,
.nav-link:hover {
    opacity: 1;
    color: var(--primary-gold) !important;
}

.navbar-toggler {
    border: none;
    outline: none !important;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(212, 175, 55, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

/* Light Theme Navigation Overrides */
body.light-theme .navbar-brand {
    color: var(--text-main) !important;
}

body.light-theme .nav-item.active .nav-link,
body.light-theme .nav-link:hover {
    color: var(--text-main) !important;
}

body.light-theme .nav-link::after {
    background: var(--text-main);
}

/* =========================================
   3. Hero Section (Slider)
   ========================================= */
.cover-slides {
    height: 85vh;
    position: relative;
    overflow: hidden;
}

.slides-container {
    height: 100%;
    width: 100%;
    position: relative;
}

.slides-container li {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
}

.overlay-background {
    background: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.cover-slides .container {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cover-slides .row {
    width: 100%;
    justify-content: center;
}

.hero-content {
    max-width: 800px;
    padding: 30px 0;
    margin: 0 auto;
    text-align: center !important;
}

.cover-slides h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.5s;
}

body.light-theme .cover-slides h1 {
    color: #fff !important;
}

.cover-slides h1 span {
    color: var(--primary-gold);
}

.cover-slides p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.8s;
}

.btn-hero {
    padding: 12px 35px;
    border: 1px solid var(--primary-gold);
    color: var(--primary-gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 4px;
    background: transparent;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 1.1s;
    transition: all 0.3s ease;
}

.btn-hero:hover {
    background: var(--primary-gold);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

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

/* =========================================
   4. About Section
   ========================================= */
.about-section {
    padding: 30px 0;
    background: var(--bg-dark);
    position: relative;
}

.about-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.about-content h1 span {
    color: var(--primary-gold);
    font-style: italic;
}

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

.about-img {
    position: relative;
    margin-top: 10px;
}

.about-img img {
    border-radius: var(--radius-lg);
    box-shadow: -10px 10px 0 rgba(212, 175, 55, 0.1);
    transition: transform 0.5s ease;
    max-height: 400px;
    object-fit: cover;
}

.about-img:hover img {
    transform: scale(1.02);
}

/* =========================================
   5. Quote Section
   ========================================= */
.qt-section {
    background: url('../images/gallery-img-011.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 50px 0;
    position: relative;
}

.qt-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--overlay-color);
}

body.light-theme .qt-content p {
    color: var(--text-main);
}

.qt-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.qt-content p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 2rem;
}

.qt-content span {
    color: var(--primary-gold);
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* =========================================
   6. Gallery Section (Masonry)
   ========================================= */
.gallery-section {
    padding: 40px 0;
    background: var(--bg-accent);
}

.tz-gallery .row {
    column-count: 3;
    column-gap: 15px;
    display: block;
}

.gallery-item {
    margin-bottom: 15px;
    overflow: hidden;
    border-radius: var(--radius-md);
    position: relative;
    break-inside: avoid;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transform: rotate(-2deg);
    transition: all 0.4s ease;
}

.gallery-item:nth-child(even) {
    transform: rotate(2deg);
}

.gallery-item:hover {
    transform: rotate(0) scale(1.05);
    z-index: 10;
    border-color: var(--primary-gold);
}

.gallery-item img {
    width: 100%;
    transition: transform 0.5s ease;
    filter: sepia(20%);
}

.gallery-item:hover img {
    filter: sepia(0%);
}

@media (max-width: 768px) {
    .tz-gallery .row {
        column-count: 2;
    }
}

@media (max-width: 576px) {
    .tz-gallery .row {
        column-count: 1;
    }
}

/* =========================================
   7. Menu Description (Creative List Layout)
   ========================================= */
.menu-desc-section {
    padding: 40px 0;
    background: var(--bg-dark);
}

.menu-card {
    background: transparent;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
    padding: 20px 0;
    height: auto;
    transition: all 0.3s ease;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    border-radius: 0;
    border-top: none;
    border-left: none;
    border-right: none;
}

.menu-card:hover {
    transform: translateX(10px);
    border-bottom-color: var(--primary-gold);
    background: transparent;
    box-shadow: none;
}

.menu-card::before {
    display: none;
}

.menu-icon {
    width: 60px;
    height: 60px;
    margin: 0 20px 0 0;
    background: transparent;
    border: 1px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.menu-card:hover .menu-icon {
    background: var(--primary-gold);
    color: #000;
}

.menu-content {
    flex-grow: 1;
}

.menu-title {
    color: var(--text-main);
    font-size: 1.25rem;
    margin-bottom: 0;
    display: inline-block;
}

.menu-subtitle {
    color: var(--primary-gold);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 10px;
    display: inline-block;
    font-weight: 400;
}

.menu-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 5px;
    font-style: italic;
}

.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 1;
    border: 1px solid rgba(255,255,255,0.1);
}

.carousel-control-prev { left: -25px; }
.carousel-control-next { right: -25px; }

.carousel-control-prev:hover, .carousel-control-next:hover {
    background: var(--primary-gold);
}

/* =========================================
   8. Contact Section
   ========================================= */
.contact-section {
    position: relative;
    margin-bottom: 0;
    z-index: 10;
    padding: 0 15px;
}

.contact-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 900px;
    margin: 0 auto;
}

body.light-theme .contact-box {
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-item {
    text-align: center;
    padding: 5px;
}

.contact-item i {
    font-size: 1.2rem;
    color: var(--primary-gold);
    margin-bottom: 5px;
}

.contact-item h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
}

.contact-item p {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.8rem;
}

/* =========================================
   9. Footer
   ========================================= */
.footer-area {
    background: var(--footer-bg);
    padding-top: 50px;
    padding-bottom: 20px;
    color: #888;
}

.footer-widget h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-gold);
}

.footer-widget p, .footer-widget a {
    color: #888;
    font-size: 0.95rem;
}

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

.social-links li {
    display: inline-block;
    margin-right: 10px;
}

.social-links a {
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: var(--bg-card);
    color: var(--text-main);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

body.light-theme .social-links a {
    border: 1px solid rgba(0,0,0,0.1);
}

.social-links a:hover {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

.copyright {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.05);
    text-align: center;
    font-size: 0.9rem;
}

body.light-theme .copyright {
    border-top: 1px solid rgba(0,0,0,0.05);
}

.copyright span {
    color: var(--primary-gold);
}

/* =========================================
   10. Responsive
   ========================================= */
@media (max-width: 991px) {
    .cover-slides h1 { font-size: 3.5rem; }
    .about-img { margin-top: 40px; }
    .contact-section { margin-bottom: 0; }
    .footer-area { padding-top: 40px; }
    .carousel-control-prev { left: 0; }
    .carousel-control-next { right: 0; }
}

@media (max-width: 768px) {
    .cover-slides h1 { font-size: 2.5rem; }
    .qt-content p { font-size: 1.8rem; }
    .section-title h2 { font-size: 2.2rem; }
    .contact-box { padding: 30px; }
}

/* Back to Top */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-gold);
    color: #000;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    z-index: 999;
    display: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}
