/* css/style.css */

@import url('https://fonts.googleapis.com/css2?family=Sarabun:wght@300;400;700&display=swap');

:root {
    --primary-color: #8B0000; /* Dark Red */
    --secondary-color: #FFD700; /* Gold */
    --text-color: #f8f9fa; /* Changed to light for dark theme */
    --bg-light: #212529; /* Changed to dark gray */
    --bg-dark: #343a40;
}

body {
    font-family: 'Sarabun', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background: linear-gradient(to right, #000000, #FF69B4); /* Black to Pink Gradient */
}

.navbar {
    background-color: var(--primary-color) !important;
}

.navbar .nav-link {
    color: white !important;
    font-weight: 400;
    transition: color 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: var(--secondary-color) !important;
}

.hero-section {
    background: url('pic/image.png') no-repeat center center/cover; /* Hero image */
    color: white;
    padding: 100px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.5rem;
    font-weight: 300;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color); /* Changed to light for dark theme */
    margin-bottom: 40px;
    text-align: center;
}

.card {
    border: none;
    background-color: var(--bg-dark); /* Darker card background */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Adjusted shadow for dark theme */
    transition: transform 0.3s ease;
}

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

.card-title {
    color: var(--secondary-color); /* Changed to gold for better contrast */
    font-weight: 700;
}

.card-text {
    color: var(--text-color); /* Ensure card text is readable */
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #a01010; /* Slightly darker red */
    border-color: #a01010;
}

.footer {
    background-color: var(--bg-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Menu Page Specific */
.menu-category {
    margin-bottom: 60px;
}

.menu-category h2 {
    font-size: 2rem;
    color: var(--text-color); /* Changed to light for dark theme */
    margin-bottom: 30px;
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    display: inline-block;
}

.menu-item-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color); /* Changed to gold for better contrast */
}

/* Gallery Page Specific */
.gallery-item {
    margin-bottom: 30px;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Adjusted shadow for dark theme */
}

/* Contact Page Specific */
.contact-info p {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.contact-info i {
    color: var(--primary-color);
    margin-right: 10px;
}

.map-container {
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Adjusted shadow for dark theme */
}

/* Text Animation */
.animate__animated {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    -webkit-animation-name: fadeInUp;
    animation-name: fadeInUp;
}

@-webkit-keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 100%, 0);
        transform: translate3d(0, 100%, 0);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
}

.animate__fadeIn {
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

.dark-section {
    background-color: var(--bg-light); /* Use the dark background variable */
    color: var(--text-color); /* Ensure text is light */
}