/* CSS4 Variables and Modern Features */
:root {
    --texas-primary: #8B0000;
    --texas-secondary: #1a1a1a;
    --texas-accent: #B8860B;
    --texas-smoke: #2F2F2F;
    --texas-light-smoke: #4A4A4A;
    --texas-gold: #FFD700;
    --texas-fire: #FF4500;
    --texas-cream: #F5F5DC;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.3);
    --shadow-heavy: rgba(0, 0, 0, 0.5);
    --gradient-fire: linear-gradient(135deg, var(--texas-fire), var(--texas-primary));
    --gradient-gold: linear-gradient(135deg, var(--texas-gold), var(--texas-accent));
    --gradient-smoke: linear-gradient(135deg, var(--texas-secondary), var(--texas-smoke));
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: var(--gradient-smoke);
    overflow-x: hidden;
}

/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--gradient-fire);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.1);
}

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

.fire-icon {
    font-size: 4rem;
    color: var(--texas-gold);
    margin-bottom: 1rem;
    animation: fireFlicker 2s ease-in-out infinite alternate;
}

.splash-logo {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 900;
    color: var(--texas-gold);
    text-shadow: 
        0 0 20px var(--texas-fire),
        0 0 40px var(--texas-primary),
        2px 2px 8px var(--shadow-heavy);
    margin-bottom: 1rem;
    letter-spacing: 4px;
    animation: textGlow 3s ease-in-out infinite alternate;
}

.splash-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--texas-cream);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    margin: 0 auto;
    overflow: hidden;
}

.loading-progress {
    width: 0;
    height: 100%;
    background: var(--gradient-gold);
    border-radius: 2px;
    animation: loadingProgress 5s linear forwards;
}

.smoke-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 69, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 0, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(184, 134, 11, 0.05) 0%, transparent 50%);
    animation: smokeMove 10s ease-in-out infinite;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 60vh;
    background: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)),
        url('https://images.pexels.com/photos/1565982/pexels-photo-1565982.jpeg?auto=compress&cs=tinysrgb&w=1600') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-smoke);
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem 0;
}

.hero-icon {
    font-size: 3rem;
    color: var(--texas-gold);
    margin-bottom: 1rem;
    animation: fireFlicker 2s ease-in-out infinite alternate;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    color: var(--texas-gold);
    text-shadow: 2px 2px 8px var(--shadow-heavy);
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--texas-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-divider {
    width: 100px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 0 auto 1.5rem;
    border-radius: 2px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--texas-cream);
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}

/* Menu Container */
.menu-container {
    padding: 4rem 0;
    background: var(--gradient-smoke);
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
}

.section-icon {
    font-size: 2.5rem;
    color: var(--texas-gold);
    margin-bottom: 1rem;
    animation: iconPulse 2s ease-in-out infinite;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--texas-gold);
    text-shadow: 1px 1px 4px var(--shadow-medium);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.section-divider {
    width: 120px;
    height: 3px;
    background: var(--gradient-gold);
    margin: 0 auto 1rem;
    border-radius: 2px;
}

.section-description {
    font-size: 1.1rem;
    color: var(--texas-accent);
    font-style: italic;
    opacity: 0.9;
}

/* Menu Cards */
.menu-card {
    background: linear-gradient(145deg, var(--texas-smoke), var(--texas-light-smoke));
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 
        0 10px 30px var(--shadow-medium),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(184, 134, 11, 0.2);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.menu-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 40px var(--shadow-heavy),
        0 0 30px rgba(184, 134, 11, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: var(--texas-gold);
}

.menu-card.featured {
    border: 2px solid var(--texas-gold);
    box-shadow: 
        0 15px 35px var(--shadow-heavy),
        0 0 25px rgba(255, 215, 0, 0.2);
}

.card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(139, 0, 0, 0.8) 0%,
        rgba(184, 134, 11, 0.6) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-card:hover .image-overlay {
    opacity: 1;
}

.view-icon {
    font-size: 2rem;
    color: white;
    animation: iconBounce 0.6s ease;
}

.featured-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gradient-gold);
    color: var(--texas-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.dish-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--texas-gold);
    margin: 0;
    flex: 1;
    line-height: 1.3;
}

.dish-price {
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    white-space: nowrap;
    text-shadow: none;
}

.dish-description {
    font-size: 0.95rem;
    color: #e0e0e0;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.rating {
    display: flex;
    gap: 0.2rem;
}

.rating i {
    color: var(--texas-gold);
    font-size: 0.9rem;
}

.card-footer span {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.chef-special {
    background: var(--gradient-fire);
    color: white;
}

.popular {
    background: var(--gradient-gold);
    color: var(--texas-secondary);
}

.signature {
    background: linear-gradient(45deg, #8B0000, #FF4500);
    color: white;
}

.gourmet {
    background: linear-gradient(45deg, #4B0082, #8B008B);
    color: white;
}

.healthy {
    background: linear-gradient(45deg, #228B22, #32CD32);
    color: white;
}

.slow-cooked {
    background: linear-gradient(45deg, #8B4513, #D2691E);
    color: white;
}

.brazilian {
    background: linear-gradient(45deg, #009739, #FEDD00);
    color: var(--texas-secondary);
}

.classic {
    background: linear-gradient(45deg, #2F4F4F, #708090);
    color: white;
}

.creamy {
    background: linear-gradient(45deg, #F5DEB3, #DEB887);
    color: var(--texas-secondary);
}

.volcanic {
    background: linear-gradient(45deg, #8B0000, #FF6347);
    color: white;
}

/* Footer */
.footer-section {
    background: var(--texas-secondary);
    padding: 3rem 0;
    border-top: 3px solid var(--texas-gold);
}

.footer-content {
    text-align: center;
}

.footer-icon {
    font-size: 2rem;
    color: var(--texas-gold);
    margin-bottom: 1rem;
}

.footer-title {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--texas-gold);
    margin-bottom: 0.5rem;
}

.footer-subtitle {
    color: var(--texas-accent);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    letter-spacing: 1px;
}

.footer-divider {
    width: 80px;
    height: 2px;
    background: var(--gradient-gold);
    margin: 0 auto 1.5rem;
    border-radius: 1px;
}

.footer-text {
    color: #ccc;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fireFlicker {
    0% { 
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    50% { 
        transform: scale(1.05) rotate(1deg);
        filter: hue-rotate(10deg);
    }
    100% { 
        transform: scale(1.1) rotate(-1deg);
        filter: hue-rotate(-10deg);
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 
            0 0 20px var(--texas-fire),
            0 0 40px var(--texas-primary),
            2px 2px 8px var(--shadow-heavy);
    }
    100% {
        text-shadow: 
            0 0 30px var(--texas-fire),
            0 0 60px var(--texas-primary),
            0 0 80px var(--texas-gold),
            2px 2px 8px var(--shadow-heavy);
    }
}

@keyframes loadingProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

@keyframes smokeMove {
    0%, 100% { 
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    33% { 
        transform: translateX(10px) translateY(-5px) rotate(1deg);
        opacity: 0.5;
    }
    66% { 
        transform: translateX(-5px) translateY(10px) rotate(-1deg);
        opacity: 0.4;
    }
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        opacity: 1;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
    }
    
    .menu-container {
        padding: 2rem 0;
    }
    
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .dish-price {
        font-size: 1.2rem;
    }
    
    .card-image {
        height: 200px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 40vh;
    }
    
    .menu-container {
        padding: 1.5rem 0;
    }
    
    .card-content {
        padding: 1.2rem;
    }
    
    .card-image {
        height: 180px;
    }
    
    .dish-name {
        font-size: 1.2rem;
    }
    
    .dish-description {
        font-size: 0.9rem;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--texas-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--texas-gold);
}

/* CSS4 Features */
@supports (backdrop-filter: blur(10px)) {
    .hero-overlay {
        backdrop-filter: blur(2px);
    }
}

@supports (color: color(display-p3 1 0 0)) {
    :root {
        --texas-gold: color(display-p3 1 0.843 0);
        --texas-fire: color(display-p3 1 0.271 0);
    }
}