* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #fdf6f0;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ===== Navigation ===== */
nav {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 3rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

nav h1 {
    font-size: 1.5rem;
    color: #7b4b2a;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #7b4b2a;

}

/* ===== Hero Section ===== */
.hero {
    width: 100vw;
    height: 100vh;
    background: url('https://saparya05.github.io/Brew-Haven-Cafe/Images/main.jpg') center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeIn 2s ease;
}

.hero h2 {
    font-size: 3rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    animation: textGlow 2s ease-in-out infinite alternate;
}

.hero p {
    font-size: 1.2rem;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes textGlow {
    from {
        text-shadow: 0 0 5px #fff;
    }

    to {
        text-shadow: 0 0 20px #ffce8a, 0 0 30px #d17308;
    }
}

/* ===== Menu Section ===== */
.hero {
    padding: 5rem 3rem;
    max-width: 100%;
    margin: auto;
}

.section {
    padding: 5rem 3rem;
    max-width: 1200px;
    margin: auto;
}

h2.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #7b4b2a;
    position: relative;
}

h2.section-title::after {
    content: '';
    width: 60px;
    height: 3px;
    background: #7b4b2a;
    display: block;
    margin: 0.5rem auto;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.menu-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.menu-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.menu-item h3 {
    padding: 1rem;
    color: #7b4b2a;
}

/* ===== About Section ===== */
.about {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.about img {
    flex: 1 1 400px;
    border-radius: 10px;
    animation: fadeIn 1.5s ease;
    width: 100%;
}

.about-content {
    flex: 1 1 400px;
}

.about-content p {
    line-height: 1.6;
    font-size: 1.1rem;
    text-align: justify;
}

/* ===== Contact Section ===== */
.contact-form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #7b4b2a;
    box-shadow: 0 0 8px rgba(123, 75, 42, 0.3);
}

.contact-form button {
    background: #7b4b2a;
    color: white;
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.contact-form button:hover {
    background: #5c371e;
}

/* ===== Footer ===== */
footer {
    background: #7b4b2a;
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }

    .hero h2 {
        font-size: 2rem;
    }
}