/* MODERN CSS VARIABLES AND RESET */
:root {
    --bg-dark: #0a0806;
    --bg-card: rgba(25, 20, 15, 0.6);
    --border-glass: rgba(255, 255, 255, 0.08);
    --primary-color: #d4af37; /* Gold */
    --primary-hover: #f3c746;
    --text-main: #fcfcfc;
    --text-muted: #a39e99;
    --accent-red: #8B4513;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* subtle noise or gradient background */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(139, 69, 19, 0.06) 0%, transparent 50%);
}

/* TYPOGRAPHY */
h1, h2, h3, h4, h5, .logo {
    font-family: var(--font-heading);
}

span {
    color: var(--primary-color);
    font-style: italic;
}

/* GLASSMORPHISM UTILITIES */
.glass-nav {
    background: rgba(10, 8, 6, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
}

.glass-card {
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* BUTTONS */
button {
    font-family: var(--font-body);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary-color);
    color: #111;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    padding: 0.8rem 2rem;
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #111;
}

/* NAVBAR */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    transition: var(--transition-smooth);
}

.logo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 400;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition-smooth);
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 4rem;
    gap: 4rem;
    position: relative;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    animation: fadeUp 1s ease-out;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-coffee {
    width: 80%;
    max-width: 450px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: float 6s ease-in-out infinite, morph 8s ease-in-out infinite;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 2;
    object-fit: cover;
    aspect-ratio: 1;
}

.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    filter: blur(100px);
    opacity: 0.15;
    z-index: 1;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

/* FEATURES SECTION */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 4rem 5%;
    position: relative;
    z-index: 10;
    margin-top: -3rem;
}

.feature-card {
    padding: 2rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.icon-wrap {
    width: 50px;
    height: 50px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* MENU SECTION */
.menu-section {
    padding: 6rem 5%;
}

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

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.menu-item {
    overflow: hidden;
    padding: 0;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.menu-item:hover {
    transform: translateY(-10px);
}

.item-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.price-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(10, 8, 6, 0.8);
    backdrop-filter: blur(5px);
    color: var(--primary-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.item-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.item-content h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.item-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.btn-add {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-glass);
    padding: 0.6rem;
    width: 100%;
    border-radius: 8px;
}

.btn-add:hover {
    background: var(--primary-color);
    color: #111;
    border-color: var(--primary-color);
}

/* BANNER SECTION */
.banner-section {
    padding: 4rem 5%;
}

.banner-content {
    position: relative;
    padding: 5rem 2rem;
    text-align: center;
    background-image: linear-gradient(rgba(10, 8, 6, 0.85), rgba(10, 8, 6, 0.95)), url('https://images.unsplash.com/photo-1611162458324-aae1eb4129a4?auto=format&fit=crop&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border: 1px solid var(--border-glass);
}

.banner-content h2, .banner-content p, .banner-content button {
    position: relative;
    z-index: 2;
}

.banner-content h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.banner-content p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #dfdfdf;
    font-size: 1.1rem;
}

/* TESTIMONIALS */
.testimonials {
    padding: 6rem 5%;
}

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

.testimonial-card {
    padding: 2.5rem 2rem;
}

.stars {
    color: var(--primary-color);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-style: italic;
    color: #e5e5e5;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.customer {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-glass);
    padding-top: 1.5rem;
}

.customer img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.customer h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.customer span {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* FOOTER */
footer {
    background: #050403;
    padding: 5rem 5% 2rem;
    border-top: 1px solid var(--border-glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-muted);
    margin: 1rem 0 2rem;
    max-width: 300px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid var(--border-glass);
}

.social-links a:hover {
    background: var(--primary-color);
    color: #111;
    border-color: var(--primary-color);
}

.footer-links h3, .footer-subscribe h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
}

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

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-subscribe p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.subscribe-form {
    display: flex;
    border: 1px solid var(--border-glass);
    border-radius: 30px;
    padding: 0.3rem;
    background: rgba(255, 255, 255, 0.02);
}

.subscribe-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.5rem 1rem;
    color: var(--text-main);
    outline: none;
}

.subscribe-form button {
    background: var(--primary-color);
    color: #111;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subscribe-form button:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-glass);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ANIMATIONS */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes morph {
    0%, 100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    25% { border-radius: 58% 42% 75% 25% / 76% 46% 54% 24%; }
    50% { border-radius: 50% 50% 33% 67% / 55% 27% 73% 45%; }
    75% { border-radius: 33% 67% 58% 42% / 63% 68% 32% 37%; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.15; }
    50% { transform: scale(1.1); opacity: 0.2; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 10rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none; /* In a real app, add a hamburger menu */
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .banner-content h2 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand p {
        margin: 1rem auto;
    }
    
    .social-links {
        justify-content: center;
    }
}