/* Reset CSS cơ bản */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Thiết lập font chữ và màu nền chung */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background: linear-gradient(135deg, #ffeaa7 0%, #fab1a0 100%);
    min-height: 100vh;
}

/* Header */
header {
    background: linear-gradient(135deg, #d63031 0%, #e17055 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="70" r="1" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

header h1 {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
}

.subtitle {
    font-size: 1.2rem;
    font-style: italic;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Navigation Menu */
nav {
    background: linear-gradient(135deg, #00b894 0%, #00cec9 100%);
    padding: 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 18px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover {
    background-color: rgba(255,255,255,0.2);
    transform: translateY(-2px);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: #fdcb6e;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

nav ul li a:hover::after {
    width: 80%;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Intro Section */
.intro-section {
    text-align: center;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.intro-section h2 {
    color: #d63031;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.intro-section p {
    font-size: 1.1rem;
    color: #636e72;
    max-width: 600px;
    margin: 0 auto;
}

/* Food List Grid */
.food-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Food Card */
.food-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: hidden;
    transition: all 0.4s ease;
    position: relative;
}

.food-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
}

/* Container cho hình ảnh */
.food-card .image-container {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #ddd 0%, #f8f9fa 100%);
}

.food-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
    display: block;
}

.food-card:hover img {
    transform: scale(1.1);
}

/* Overlay gradient cho hình ảnh */
.food-card .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.1) 100%);
    pointer-events: none;
}

.food-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 50%, #e17055 100%);
    transition: transform 0.4s ease;
    border: none;
    border-radius: 0;
    display: block;
}

/* Tối ưu hiển thị cho từng loại món ăn */
.food-card img[src*="pho.jpg"] {
    object-position: center center;
}

.food-card img[src*="bun-bo.jpg"] {
    object-position: center center;
}

.food-card img[src*="banh-canh.jpg"] {
    object-position: center center;
}

.food-card img[src*="mi-quang.jpg"] {
    object-position: center center;
}

.food-card img[src*="hu-tieu.jpg"] {
    object-position: center center;
}

.food-card img[src*="com-tam.jpg"] {
    object-position: center center;
}

.food-card:hover img {
    transform: scale(1.1);
}

.food-info {
    padding: 1.5rem;
}

.food-info h3 {
    color: #d63031;
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
}

.description {
    color: #2d3436;
    margin-bottom: 1rem;
    font-size: 1rem;
    line-height: 1.6;
}

.ingredients {
    color: #636e72;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    font-style: italic;
    background-color: #f8f9fa;
    padding: 0.5rem;
    border-radius: 8px;
    border-left: 4px solid #00b894;
}

.price {
    font-weight: bold;
    color: #e17055;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

/* Order Button */
.order-btn {
    background: linear-gradient(135deg, #fd79a8 0%, #e84393 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(232, 67, 147, 0.3);
    width: 100%;
}

.order-btn:hover {
    background: linear-gradient(135deg, #e84393 0%, #fd79a8 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 67, 147, 0.4);
}

.order-btn:active {
    transform: translateY(0);
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    text-align: center;
}

.contact-section h2 {
    color: #d63031;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
    color: #2d3436;
}

.contact-info strong {
    color: #00b894;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.1);
}

footer p {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    nav ul {
        flex-direction: column;
    }
    
    nav ul li a {
        padding: 15px 20px;
    }
    
    .food-list {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    main {
        padding: 1rem 0.5rem;
    }
    
    .intro-section h2 {
        font-size: 2rem;
    }
    
    .food-info h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    
    .food-card {
        margin: 0 0.5rem;
    }
    
    .food-info {
        padding: 1rem;
    }
    
    .intro-section, .contact-section {
        padding: 1.5rem;
        margin: 0 0.5rem 2rem 0.5rem;
    }
}