/* Root Variables */
:root {
    --primary-color: #dc3545;
    --secondary-color: #ffc107;
    --accent-color: #17a2b8;
    --dark-bg: #121212;
    --dark-alt: #1a1a1a;
    --card-bg: #2d2d2d;
    --text-light: #f8f9fa;
    --text-muted: #adb5bd;
    --gradient-primary: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    --gradient-secondary: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
    --shadow-primary: 0 10px 30px rgba(220, 53, 69, 0.3);
    --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

/* Enhanced smooth scrolling for better performance */
@media (prefers-reduced-motion: no-preference) {
    * {
        scroll-behavior: smooth;
    }
}

/* Optimize scrolling performance */
.hero-section,
.navbar,
section {
    will-change: transform;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
}

.section-title {
    color: var(--text-light);
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.text-accent {
    color: var(--secondary-color) !important;
}

.text-glow {
    text-shadow: 0 0 20px rgba(220, 53, 69, 0.5);
}

/* Navigation */
.navbar {
    background: rgba(18, 18, 18, 0.95) !important;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--text-light) !important;
    text-shadow: 0 0 10px rgba(220, 53, 69, 0.5);
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

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

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

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-alt) 100%);
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(220, 53, 69, 0.1) 0%, transparent 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 1s ease-out;
}

.hero-image {
    animation: fadeInRight 1s ease-out 0.3s both;
}

.hero-image img {
    border: 3px solid var(--primary-color);
    box-shadow: var(--shadow-primary);
    transition: transform 0.3s ease;
}

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

.pulse-btn {
    animation: pulse 2s infinite;
    background: var(--gradient-primary) !important;
    border: none;
    box-shadow: var(--shadow-primary);
}

.pulse-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(220, 53, 69, 0.4);
}

/* Buttons */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary);
}

.btn-outline-light {
    border: 2px solid var(--text-light);
    color: var(--text-light);
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: var(--text-light);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* About Section */
#about {
    background: var(--dark-alt);
}

.restaurant-photo {
    transition: all 0.3s ease;
}

.restaurant-photo img {
    border: 2px solid rgba(220, 53, 69, 0.2);
    transition: all 0.3s ease;
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.restaurant-photo:hover img {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.photo-caption {
    color: var(--text-light);
    font-style: italic;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(220, 53, 69, 0.2);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-dark);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    color: var(--secondary-color);
}

/* Menu Section */
.bg-dark-alt {
    background-color: var(--dark-alt) !important;
}

.menu-section {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-category-title {
    color: var(--primary-color);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
}

.menu-subtitle {
    color: var(--secondary-color);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

.menu-note {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.menu-items {
    margin-bottom: 2rem;
}

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

.menu-item:hover {
    background: rgba(220, 53, 69, 0.1);
    padding-left: 1rem;
    border-radius: 5px;
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item.special {
    background: rgba(220, 53, 69, 0.1);
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.item-name {
    color: var(--text-light);
    font-weight: 500;
    flex: 1;
    margin-right: 1rem;
    line-height: 1.4;
}

.item-price {
    color: var(--secondary-color);
    font-weight: 700;
    white-space: nowrap;
    font-size: 1.1rem;
}

.badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    vertical-align: middle;
}

.menu-category {
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-dark);
    border-color: var(--primary-color);
}

.contact-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.hours-list {
    text-align: left;
    max-width: 250px;
    margin: 0 auto;
}

.hour-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hour-item:last-child {
    border-bottom: none;
}

.day {
    font-weight: 500;
}

.time {
    color: var(--secondary-color);
    font-weight: 600;
}

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



/* Footer */
footer {
    background: var(--dark-bg) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a {
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: var(--primary-color) !important;
    transform: translateY(-3px);
}

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

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding-top: 80px; /* Account for fixed navbar */
    }
    
    .display-2 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1.25rem; /* Increased gap for better spacing */
        align-items: center;
        justify-content: center;
        width: 100%;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 280px; /* Slightly wider for better touch targets */
        padding: 0.875rem 1.5rem; /* Better mobile padding */
    }
    
    /* Menu item mobile optimization */
    .menu-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        padding: 0.5rem 0;
    }
    
    .menu-item .item-price {
        align-self: flex-end;
        font-weight: 600;
        color: var(--secondary-color);
        font-size: 0.9rem;
    }
    
    /* Coffee/Tea pricing mobile optimization */
    .coffee-tea-item {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    .coffee-tea-price {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0.25rem;
        font-size: 0.85rem;
        color: var(--secondary-color);
        font-weight: 600;
        margin-top: 0.5rem;
    }
    
    .coffee-tea-price div {
        white-space: nowrap;
    }
    
    /* Hero section mobile spacing fix */
    .hero-text {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .hero-text .mb-5 {
        margin-bottom: 2.5rem !important;
    }
    
    .menu-image {
        height: 200px;
    }
    
    .feature-card,
    .contact-card {
        margin-bottom: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding-top: 1rem;
    }
}

@media (max-width: 576px) {
    .display-2 {
        font-size: 2rem;
    }
    
    .hero-text {
        padding: 1.5rem 1rem;
    }
    
    .hero-buttons {
        gap: 1rem; /* Proper spacing on small screens */
        padding: 0 1rem;
    }
    
    .btn-lg {
        max-width: 260px;
        font-size: 1rem;
    }
    
    .feature-card,
    .contact-card,
    .menu-card {
        margin-bottom: 1.5rem;
    }
    
    .hours-list {
        max-width: 100%;
    }
    
    .hour-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
    
    /* Menu optimizations for very small screens */
    .menu-item .item-price {
        font-size: 0.85rem;
    }
    
    .coffee-tea-price {
        font-size: 0.8rem !important;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Focus States for Accessibility */
.btn:focus,
.nav-link:focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.3);
    outline: none;
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #ff4757;
        --secondary-color: #ffc048;
        --text-light: #ffffff;
        --dark-bg: #000000;
        --card-bg: #111111;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Review Styles */
.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 10px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.2);
}

.review-header {
    margin-bottom: 1rem;
}

.reviewer-info {
    text-align: center;
}

.reviewer-name {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.review-stars {
    color: var(--secondary-color);
    margin-bottom: 0.25rem;
}

.review-stars i {
    margin-right: 2px;
}

.review-date {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.review-content p {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-ratings {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-item {
    background: rgba(220, 53, 69, 0.1);
    color: var(--text-light);
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.85rem;
}

.recommended-dish, .customer-loyalty {
    background: rgba(255, 193, 7, 0.1);
    color: var(--secondary-color);
    padding: 0.5rem;
    border-radius: 5px;
    border-left: 3px solid var(--secondary-color);
}

.recommended-dish small, .customer-loyalty small {
    color: var(--secondary-color);
}
