/* ===== CUSTOM BOOTSTRAP STYLES ===== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* CSS Variables */
:root {
    --primary-color: #a5815c;
    --secondary-color: #212529;
    --accent-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --text-color: #495057;
    --text-light: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    --transition: all 0.3s ease;
    --font-primary: 'Poppins', sans-serif;
    --font-secondary: 'Playfair Display', serif;
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.display-1, .display-2, .display-3, .display-4 {
    font-family: var(--font-secondary);
    font-weight: 700;
}

/* Custom Button Styles */
.btn {
    font-family: var(--font-primary);
    font-weight: 500;
    border-radius: var(--border-radius);
    padding: 0.75rem 1.5rem;
    transition: var(--transition);
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-warning {
    background: linear-gradient(135deg, #a5815c 0%, #795548 100%);
    color: var(--light-color);
    box-shadow: var(--shadow);
}

.btn-warning:hover {
    background: linear-gradient(135deg, #795548 0%, #ff8f00 100%);
    color: var(--dark-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
    transform: translateY(-2px);
}

.btn-dark {
    background: linear-gradient(135deg, #212529 0%, #495057 100%);
    color: white;
}

.btn-dark:hover {
    background: linear-gradient(135deg, #495057 0%, #6c757d 100%);
    color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Navbar Styles */
.navbar {
    backdrop-filter: blur(10px);
    transition: var(--transition);
    padding: 1rem 0;
}

.navbar.scrolled {
    box-shadow: var(--shadow);
    padding: 0.5rem 0;
}

.navbar-brand {
    font-family: var(--font-secondary);
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background: rgba(255, 193, 7, 0.1);
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 600px;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    object-fit: cover;
}

.hero-overlay {
    background: linear-gradient(
        135deg,
        rgba(33, 37, 41, 0.7) 0%,
        rgba(33, 37, 41, 0.5) 50%,
        rgba(255, 193, 7, 0.3) 100%
    );
}

.hero-title {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.6s both;
}

.scroll-indicator {
    animation: bounce 2s infinite;
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

.animate-bounce {
    animation: bounce 2s infinite;
}

/* About Section */
.about-image-container {
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

.about-badge {
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.feature-icon {
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow);
}

/* Menu Cards */
.menu-card {
    transition: var(--transition);
    border: none;
}

.menu-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.menu-image {
    overflow: hidden;
}

.menu-image img {
    transition: var(--transition);
}

.menu-card:hover .menu-image img {
    transform: scale(1.05);
}

.menu-price {
    font-size: 1.2rem;
    box-shadow: var(--shadow);
}

.rating .fas {
    color: var(--primary-color);
}

/* Gallery */
.gallery-item {
    cursor: pointer;
    transition: var(--transition);
}

.gallery-overlay {
    background: rgba(33, 37, 41, 0.8);
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Section */
.contact-item {
    transition: var(--transition);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    transition: var(--transition);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
}

.contact-form {
    box-shadow: var(--shadow-lg);
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Stats Section */
.stat-item {
    transition: var(--transition);
}

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

.stat-item i {
    transition: var(--transition);
}

.stat-item:hover i {
    transform: scale(1.1);
}

/* Footer */
.bg-dark {
    background: linear-gradient(135deg, #3f240d 0%, #432400 100%);
}

footer a {
    transition: var(--transition);
}

footer a:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

/* Back to Top Button */
#backToTop {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

#backToTop:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

/* Utility Classes */
.text-warning {
    color: var(--primary-color) !important;
}

.bg-warning {
    background: linear-gradient(135deg, #a5815c 0%, #795548 100%) !important;
}

.shadow-lg {
    box-shadow: var(--shadow-lg) !important;
}

.rounded-4 {
    border-radius: var(--border-radius-lg) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.2rem !important;
    }
    
    .hero-buttons {
        flex-direction: column !important;
    }
    
    .display-4 {
        font-size: 2rem !important;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        height: 80vh;
        min-height: 500px;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

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

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

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #795548;
}

/* Selection Color */
::selection {
    background: var(--primary-color);
    color: var(--dark-color);
}

::-moz-selection {
    background: var(--primary-color);
    color: var(--dark-color);
}

/* Focus Styles */
.btn:focus,
.form-control:focus {
    outline: none;
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    #backToTop {
        display: none !important;
    }
}

/* High Contrast Mode */
/* ===== MENU NAV PILLS STYLES ===== */
.nav-pills .nav-link {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-color);
    border-radius: 50px;
    transition: var(--transition);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.nav-pills .nav-link:hover {
    background: var(--primary-color);
    color: var(--light-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #795548 100%);
    color: var(--light-color);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.nav-pills .nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.nav-pills .nav-link.active:hover::before {
    left: 100%;
}

.nav-pills .nav-link i {
    transition: var(--transition);
}

.nav-pills .nav-link:hover i,
.nav-pills .nav-link.active i {
    transform: scale(1.1);
}

/* Menu Categories Animation */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-pills .nav-item {
    animation: slideInUp 0.6s ease forwards;
}

.nav-pills .nav-item:nth-child(1) { animation-delay: 0.1s; }
.nav-pills .nav-item:nth-child(2) { animation-delay: 0.2s; }
.nav-pills .nav-item:nth-child(3) { animation-delay: 0.3s; }
.nav-pills .nav-item:nth-child(4) { animation-delay: 0.4s; }
.nav-pills .nav-item:nth-child(5) { animation-delay: 0.5s; }

/* Responsive Nav Pills */
@media (max-width: 768px) {
    .nav-pills .nav-link {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .nav-pills {
        justify-content: center !important;
    }
}

@media (max-width: 576px) {
    .nav-pills .nav-link {
        padding: 0.6rem 1.2rem !important;
        font-size: 0.85rem;
    }
    
    .nav-pills .nav-link i {
        display: none;
    }
}

/* ===== MOBILE OVERFLOW FIXES ===== */
/* Prevent horizontal scroll on mobile devices */
@media (max-width: 991.98px) {
    /* Fix wide elements */
    img, video, iframe, embed, object {
        max-width: 100% !important;
        height: auto !important;
    }
    
    /* Fix tables */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix cards and content */
    .card, .card-body {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Fix hero sections */
    .hero, .hero-section {
        max-width: 100vw;
        overflow-x: hidden;
    }
    
    /* Fix navbar */
    .navbar-brand {
        max-width: 70%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}

@media (max-width: 575.98px) {
    /* Extra small devices fixes */
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Fix buttons */
    .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
    }
    
    /* Fix text sizes */
    .display-1 { font-size: 2.5rem !important; }
    .display-2 { font-size: 2rem !important; }
    .display-3 { font-size: 1.75rem !important; }
    .display-4 { font-size: 1.5rem !important; }
    
    /* Fix spacing */
    .py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }
    .my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
}

@media (prefers-contrast: high) {
    :root {
        --primary-color: #000;
        --text-color: #000;
        --border-color: #000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .nav-pills .nav-item {
        animation: none;
    }
}