/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #F4A460;
    --dark-brown: #3E2723;
    --light-cream: #FFF8DC;
    --warm-white: #FEFEFE;
    --text-dark: #2C1810;
    --text-light: #6D4C41;
    --gold: #DAA520;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-hover: rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --gradient-hero: linear-gradient(rgba(46, 24, 16, 0.7), rgba(46, 24, 16, 0.5));
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--warm-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

.section-title {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
    text-align: center;
}

.section-title2 {
    font-size: 2.5rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 3rem;
}

.section-header {
    margin-bottom: 4rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px var(--shadow);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 30px var(--shadow-hover);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav-logo i {
    margin-right: 0.5rem;
    font-size: 1.8rem;
}

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

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.nav-link:hover {
    color: var(--primary-color);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: var(--gradient-hero), url('c.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
}

.hero-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(45deg);
}

/* Menu Section - Enhanced Version */
.menu-section {
    padding: 120px 0;
    background: linear-gradient(to bottom, var(--warm-white), var(--light-cream));
    overflow: hidden;
    position: relative;
}

/* Decorative coffee bean background elements */
.menu-section::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 5%;
    width: 120px;
    height: 120px;
    background: radial-gradient(var(--accent-color) 10%, transparent 60%);
    opacity: 0.1;
    border-radius: 50%;
}

.menu-section::after {
    content: '';
    position: absolute;
    bottom: 60px;
    right: 8%;
    width: 150px;
    height: 150px;
    background: radial-gradient(var(--accent-color) 10%, transparent 60%);
    opacity: 0.1;
    border-radius: 50%;
}

/* Enhanced section header */
.menu-section .section-header {
    position: relative;
    margin-bottom: 5rem;
}

.menu-section .section-title {
    font-size: 2.8rem;
    color: var(--dark-brown);
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
    position: relative;
    display: inline-block;
}

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

.menu-section .section-subtitle {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-light);
    max-width: 600px;
    margin: 1.5rem auto 0;
    line-height: 1.8;
}

/* Improved category buttons */
.menu-categories {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    padding: 0 15px;
    position: relative;
    z-index: 5;
}

.category-btn {
    padding: 12px 28px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    min-width: 140px;
    text-align: center;
    font-size: 1rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: -1;
}

.category-btn:hover::before,
.category-btn.active::before {
    width: 100%;
}

.category-btn:hover,
.category-btn.active {
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(139, 69, 19, 0.2);
    border-color: transparent;
}

/* Enhanced menu grid layout */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 450px;
    position: relative;
    padding: 0 20px;
}

/* Improved menu item cards */
.menu-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    transform: translateY(30px);
    display: none;
    height: 100%;
    position: relative;
}

.menu-item.active {
    display: block;
    animation: menuItemFadeIn 0.7s ease-out forwards;
}

@keyframes menuItemFadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(139, 69, 19, 0.15);
}

/* Enhanced image container */
.menu-item-image {
    height: 220px;
    overflow: hidden;
    background-color: #f8f8f8;
    position: relative;
}

.menu-item-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover .menu-item-image::after {
    opacity: 1;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.menu-item:hover .menu-item-image img {
    transform: scale(1.08);
}

/* Enhanced content styling */
.menu-item-content {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    position: relative;
}

.menu-item-content h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    color: var(--dark-brown);
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.menu-item:hover .menu-item-content h3 {
    color: var(--primary-color);
}

.menu-item-content p {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary-color);
    display: inline-block;
    position: relative;
    padding: 5px 0;
}

.price::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.menu-item:hover .price::before {
    width: 100%;
}

/* Add a subtle badge for popular items */
.menu-item.coffee:first-child::before {
    content: 'Popular';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--accent-color);
    color: white;
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text .section-header {
    text-align: left;
    margin-bottom: 2rem;
}

.about-text .section-title {
    text-align: left;
}

.about-text .section-subtitle {
    text-align: left;
}

.about-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.about-stats {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-light);
    font-weight: 500;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--light-cream);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.contact-icon i {
    color: white;
    font-size: 1.2rem;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark-brown);
}

.contact-details p {
    color: var(--text-light);
    line-height: 1.6;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--dark-brown);
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-logo i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

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

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

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Design for Music Player */
@media (max-width: 768px) {
    .music-player-section {
        padding: 40px 0;
    }

    .music-player {
        padding: 20px;
    }

    .track-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .album-art {
        width: 100px;
        height: 100px;
    }

    .track-details {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .music-player {
        padding: 15px;
    }

    .control-buttons {
        gap: 10px;
    }

    .control-btn {
        width: 32px;
        height: 32px;
    }

    .track-title {
        font-size: 1.1rem;
    }

    .track-artist {
        font-size: 0.85rem;
    }
}

/* General Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .section-title {
        font-size: 2rem;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        justify-content: center;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-categories {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .menu-categories {
        flex-direction: column;
        align-items: center;
    }

    .category-btn {
        width: 200px;
    }
}