/* Enhanced CSS Variables for interactive theming */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #F4A460;
    --text-dark: #2C1810;
    --text-light: #8B4513;
    --bg-light: #FFF8F3;
    --bg-white: #FFFFFF;
    --shadow: rgba(139, 69, 19, 0.1);
    --shadow-hover: rgba(139, 69, 19, 0.2);
    --coffee-steam: #F5F5DC;
    --coffee-foam: #FFF8DC;
    --coffee-bean: #654321;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

/* Enhanced Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: inherit;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 50%, var(--bg-light) 100%);
    overflow-x: hidden;
    position: relative;
}

/* Animated coffee bean background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(139, 69, 19, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(210, 105, 30, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(244, 164, 96, 0.02) 0%, transparent 50%);
    z-index: -1;
    animation: coffeeBeans 20s ease-in-out infinite;
}

@keyframes coffeeBeans {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

/* Enhanced container with glass effect */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

/* Enhanced section title with coffee steam effect */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% { text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.1); }
    100% { text-shadow: 2px 2px 20px rgba(139, 69, 19, 0.3); }
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color), var(--secondary-color));
    border-radius: 2px;
    animation: titleUnderline 4s ease-in-out infinite;
}

@keyframes titleUnderline {
    0%, 100% { width: 60px; }
    50% { width: 100px; }
}

/* Enhanced Header with glassmorphism */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(139, 69, 19, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 40px rgba(139, 69, 19, 0.15);
}

.navbar {
    padding: 1rem 0;
}

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

/* Enhanced Navigation with interactive effects */
.nav-brand {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-brand::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(45deg, var(--accent-color), var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.nav-brand:hover::before {
    opacity: 0.1;
    animation: brandGlow 2s ease-in-out infinite;
}

@keyframes brandGlow {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.05); opacity: 0.2; }
}

.nav-brand i {
    font-size: 2rem;
    margin-right: 10px;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    animation: coffeeSteam 3s ease-in-out infinite;
}

@keyframes coffeeSteam {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-5deg) scale(1.1); }
    75% { transform: rotate(5deg) scale(1.1); }
}

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

/* Enhanced Navigation Links with coffee steam effect */
.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-link:hover::before {
    left: 100%;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-color), var(--secondary-color));
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(139, 69, 19, 0.05);
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 80%;
}

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

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

/* Enhanced Hero Section with parallax and interactive elements */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 100vh;
    padding: 120px 20px 60px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 50%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 69, 19, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(210, 105, 30, 0.1) 0%, transparent 50%);
    animation: coffeeSteam 15s ease-in-out infinite;
}

@keyframes coffeeSteam {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(-1deg); }
    75% { transform: translateY(-15px) rotate(1deg); }
}

.hero-content {
    flex: 1;
    max-width: 600px;
    position: relative;
    z-index: 2;
}

/* Enhanced Hero Title with typing effect */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    animation: titleSlideIn 1s ease-out;
}

@keyframes titleSlideIn {
    0% { transform: translateX(-100%); opacity: 0; }
    100% { transform: translateX(0); opacity: 1; }
}

.hero-title::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 3px;
    height: 100%;
    background: var(--secondary-color);
    animation: typingCursor 1s infinite;
}

@keyframes typingCursor {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* Enhanced CTA Button with coffee steam animation */
.cta-button {
    display: inline-block;
    padding: 18px 35px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--bg-white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: var(--accent-color);
}

.cta-button:active {
    transform: translateY(-1px) scale(1.02);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Enhanced Coffee Cup Illustration with steam effect */
.coffee-cup-illustration {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 
        0 20px 40px var(--shadow),
        inset 0 10px 20px rgba(255, 255, 255, 0.2);
    animation: coffeeFloat 4s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.coffee-cup-illustration::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background: 
        radial-gradient(circle, rgba(245, 245, 220, 0.6) 0%, transparent 70%),
        radial-gradient(circle, rgba(245, 245, 220, 0.4) 0%, transparent 60%);
    border-radius: 50%;
    animation: coffeeSteam 3s ease-in-out infinite;
}

@keyframes coffeeSteam {
    0% { transform: translateX(-50%) translateY(0) scale(1); opacity: 0.8; }
    50% { transform: translateX(-50%) translateY(-30px) scale(1.2); opacity: 0.4; }
    100% { transform: translateX(-50%) translateY(-60px) scale(1.5); opacity: 0; }
}

@keyframes coffeeFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-15px) rotate(2deg); }
    50% { transform: translateY(-25px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-2deg); }
}

.coffee-cup-illustration i {
    font-size: 8rem;
    color: var(--bg-white);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: coffeeIcon 2s ease-in-out infinite alternate;
}

@keyframes coffeeIcon {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

/* Enhanced Menu Section with 3D card effects */
.menu {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 50%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(139, 69, 19, 0.05) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(210, 105, 30, 0.05) 0%, transparent 30%);
    animation: menuBackground 20s linear infinite;
}

@keyframes menuBackground {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    perspective: 1000px;
}

/* Enhanced Menu Items with 3D hover effects */
.menu-item {
    background: var(--bg-white);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 10px 30px var(--shadow),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(139, 69, 19, 0.1);
    transform-style: preserve-3d;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.05), transparent);
    transition: left 0.6s ease;
}

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

.menu-item:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(2deg);
    box-shadow: 
        0 20px 50px rgba(139, 69, 19, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, var(--bg-white), var(--coffee-foam));
}

.menu-item-image {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color), var(--primary-color));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3);
    transition: all 0.3s ease;
}

.menu-item:hover .menu-item-image {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
}

.menu-item-image i {
    font-size: 2rem;
    color: var(--bg-white);
    transition: all 0.3s ease;
    animation: coffeeIcon 2s ease-in-out infinite;
}

.menu-item:hover .menu-item-image i {
    animation: coffeeIconHover 0.5s ease-in-out;
}

@keyframes coffeeIconHover {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* Enhanced Menu Item Content */
.menu-item-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover .menu-item-content h3 {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.menu-item-content .description {
    color: var(--text-light);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.menu-item:hover .menu-item-content .description {
    color: var(--text-dark);
    transform: translateX(3px);
}

.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
    position: relative;
}

.menu-item:hover .price {
    transform: scale(1.1);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price::after {
    content: '☕';
    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    opacity: 0;
    transition: all 0.3s ease;
}

.menu-item:hover .price::after {
    opacity: 1;
    right: -35px;
}

/* About Section */
.about {
    padding: 80px 0;
    background: var(--bg-white);
}

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

.about-text p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

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

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature i {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.feature span {
    font-size: 0.9rem;
    color: var(--text-dark);
    font-weight: 500;
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.coffee-shop-illustration {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 35px var(--shadow);
}

.coffee-shop-illustration i {
    font-size: 6rem;
    color: var(--bg-white);
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--bg-light);
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-top: 0.2rem;
}

.contact-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.contact-item p {
    color: var(--text-light);
    margin: 0;
}

.map-container {
    background: var(--bg-white);
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px var(--shadow);
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.map-placeholder {
    text-align: center;
    color: var(--text-light);
}

.map-placeholder i {
    font-size: 4rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--bg-white);
    padding: 3rem 0 1rem;
}

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

.footer-brand {
    display: flex;
    align-items: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand i {
    font-size: 2rem;
    margin-right: 10px;
    color: var(--accent-color);
}

.footer-section p {
    color: #E6E6E6;
    margin-bottom: 1rem;
}

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

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--bg-white);
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #E6E6E6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

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

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

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

    .hamburger {
        display: flex;
    }

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

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

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

    .hero {
        flex-direction: column;
        text-align: center;
        padding: 100px 20px 40px;
    }

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

    .coffee-cup-illustration {
        width: 200px;
        height: 200px;
        margin-top: 2rem;
    }

    .coffee-cup-illustration i {
        font-size: 6rem;
    }

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

    .menu-item {
        flex-direction: column;
        text-align: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .features {
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

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

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

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

    .container {
        padding: 0 15px;
    }

    .menu-item {
        padding: 1.5rem;
    }

    .cta-button {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}