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

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

:root {
    --coffee-brown: #2c1810;
    --coffee-dark: #1a0f08;
    --coffee-medium: #3d2317;
    --coffee-light: #5a3a2a;
    --cream: #f5f1eb;
    --white: #ffffff;
    --gray-light: #e8e8e8;
    --gray-medium: #999999;
    --gray-dark: #666666;
    --accent: #d4a574;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--coffee-brown);
    background-color: var(--cream);
    overflow-x: hidden;
}

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

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(44, 24, 16, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 900;
}

.coffee-icon {
    font-size: 2rem;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

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

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

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

.menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

/* Scroll Distance for Parallax */
.scrollDist {
    width: 100%;
    height: 300vh;
    position: relative;
}

/* Hero Section with Scroll Text Mask */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background: var(--coffee-dark);
    margin-top: 0;
}

.main {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.main svg {
    width: 100%;
    height: 100%;
    max-width: 100vw;
    max-height: 100vh;
}

.hero-text-top,
.hero-text-bottom {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: 0.1em;
}

/* Hero Video Overlay */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.hero-video-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 24, 16, 0.8) 0%, rgba(26, 15, 8, 0.9) 100%);
}

/* Floating Coffee Cups */
.floating-cups {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4rem;
    z-index: 10;
    pointer-events: none;
}

.coffee-cup {
    position: relative;
    width: 140px;
    height: 160px;
    animation: float 4s ease-in-out infinite;
}

.coffee-cup:nth-child(2) {
    animation-delay: 0.7s;
    transform: scale(1.15);
}

.coffee-cup:nth-child(3) {
    animation-delay: 1.4s;
}

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

.cup-body {
    width: 110px;
    height: 90px;
    background: linear-gradient(to bottom, #8b6914 0%, #6b4e0a 100%);
    border-radius: 0 0 50px 50px;
    position: relative;
    margin: 0 auto;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.cup-body::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 70px;
    background: linear-gradient(to bottom, #3d2317 0%, #2c1810 100%);
    border-radius: 0 0 40px 40px;
}

.cup-body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 25px;
    background: #8b6914;
    border-radius: 50px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.cup-handle {
    position: absolute;
    right: -18px;
    top: 25px;
    width: 45px;
    height: 70px;
    border: 10px solid #8b6914;
    border-left: none;
    border-radius: 0 50px 50px 0;
    box-shadow: 3px 0 8px rgba(0, 0, 0, 0.3);
}

/* Steaming Animation */
.steam {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 100px;
    display: flex;
    justify-content: center;
    gap: 10px;
    pointer-events: none;
}

.steam span {
    display: block;
    width: 5px;
    height: 50px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
    border-radius: 50px;
    animation: steam 2.5s ease-in-out infinite;
    opacity: 0.8;
    filter: blur(1px);
}

.steam-1 span:nth-child(1) {
    animation-delay: 0s;
    margin-left: -12px;
}

.steam-1 span:nth-child(2) {
    animation-delay: 0.4s;
}

.steam-1 span:nth-child(3) {
    animation-delay: 0.8s;
    margin-right: -12px;
}

.steam-2 span:nth-child(1) {
    animation-delay: 0.2s;
    margin-left: -12px;
}

.steam-2 span:nth-child(2) {
    animation-delay: 0.6s;
}

.steam-2 span:nth-child(3) {
    animation-delay: 1s;
    margin-right: -12px;
}

.steam-3 span:nth-child(1) {
    animation-delay: 0.3s;
    margin-left: -12px;
}

.steam-3 span:nth-child(2) {
    animation-delay: 0.7s;
}

.steam-3 span:nth-child(3) {
    animation-delay: 1.1s;
    margin-right: -12px;
}

@keyframes steam {
    0% {
        transform: translateY(0) scaleY(1) translateX(0);
        opacity: 0.8;
    }
    25% {
        transform: translateY(-15px) scaleY(1.1) translateX(3px);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) scaleY(1.3) translateX(-2px);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-45px) scaleY(1.1) translateX(2px);
        opacity: 0.2;
    }
    100% {
        transform: translateY(-60px) scaleY(0.7) translateX(0);
        opacity: 0;
    }
}

/* CTA Button */
.cta-button {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(212, 165, 116, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cta-button:hover {
    transform: translateX(-50%) translateY(-5px);
    box-shadow: 0 12px 35px rgba(212, 165, 116, 0.6);
    background: #c59564;
}

/* Video Parallax Section */
.video-parallax-section {
    position: relative;
    height: 100vh;
    overflow: hidden;
    margin-top: 0;
    z-index: 2;
}

.video-container-parallax {
    position: relative;
    width: 100%;
    height: 100%;
}

.parallax-video {
    width: 100%;
    height: 120%;
    object-fit: cover;
    position: absolute;
    top: -10%;
    left: 0;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-content {
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 2rem;
}

.parallax-title {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.parallax-text {
    font-size: 1.5rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

/* Menu Section */
.menu-section {
    padding: 6rem 0 4rem 0;
    background: var(--cream);
    position: relative;
    z-index: 2;
}

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

.section-title {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--coffee-brown);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    color: var(--gray-dark);
    font-weight: 300;
}

.menu-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.9rem 2rem;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--coffee-brown);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background: var(--coffee-brown);
    color: var(--white);
    border-color: var(--coffee-brown);
    box-shadow: 0 5px 20px rgba(44, 24, 16, 0.3);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    position: relative;
}

.menu-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    position: relative;
    z-index: 0;
}

.menu-item.hidden {
    display: none;
}

.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.menu-item-image {
    height: 200px;
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid var(--coffee-brown);
}

.video-bg {
    position: relative;
}

.item-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    transform: none !important;
    will-change: auto;
}

.item-overlay {
    display: none;
}

.item-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 220px;
    height: 220px;
    object-fit: contain;
    z-index: 1;
    opacity: 1;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.menu-item:hover .item-icon {
    transform: translate(-50%, -50%) scale(1.05);
}

.menu-item-content {
    padding: 2rem;
    transition: transform 0.3s ease;
}

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

.item-name {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--coffee-brown);
}

.item-description {
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--coffee-brown);
}

.add-to-cart {
    padding: 0.7rem 2rem;
    background: var(--coffee-brown);
    color: var(--white);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.add-to-cart:hover {
    background: var(--accent);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(212, 165, 116, 0.4);
}

.add-to-cart:active {
    transform: scale(0.95);
}

/* Experience Section */
.experience-section {
    position: relative;
    padding: 8rem 0;
    background: var(--coffee-brown);
    overflow: hidden;
    z-index: 2;
}

.experience-content {
    position: relative;
    text-align: center;
    color: var(--white);
    z-index: 2;
    padding: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.experience-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 0.5);
}

.experience-text {
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.95;
}

.experience-stats {
    display: flex;
    justify-content: space-around;
    gap: 3rem;
    margin-top: 4rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.9;
}

/* Contact Section */
.contact-section {
    padding: 8rem 0;
    background: var(--coffee-brown);
    color: var(--white);
    position: relative;
    z-index: 2;
}

.contact-section .section-title {
    color: var(--white);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    font-weight: 700;
}

.contact-card p {
    margin-bottom: 0.8rem;
    opacity: 0.9;
    font-weight: 300;
    font-size: 1.1rem;
}

/* Cart */
.cart-button {
    position: fixed !important;
    bottom: 2rem !important;
    right: 2rem !important;
    left: auto !important;
    width: 70px;
    height: 70px;
    background: var(--coffee-brown);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.8rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-button:hover {
    transform: scale(1.15);
    background: var(--accent);
    box-shadow: 0 12px 35px rgba(212, 165, 116, 0.5);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--accent);
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 900;
    border: 2px solid var(--white);
}

.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.cart-modal.active {
    display: flex;
}

.cart-content {
    background: var(--white);
    border-radius: 20px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.cart-header {
    padding: 2rem;
    background: var(--coffee-brown);
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-header h3 {
    font-size: 1.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.close-cart {
    background: none;
    border: none;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.close-cart:hover {
    transform: rotate(90deg);
}

.cart-items {
    padding: 2rem;
    flex: 1;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--gray-light);
}

.cart-item-name {
    font-weight: 600;
    color: var(--coffee-brown);
    font-size: 1.1rem;
}

.cart-item-price {
    color: var(--gray-dark);
    font-size: 1.2rem;
    font-weight: 700;
}

.empty-cart {
    text-align: center;
    color: var(--gray-medium);
    padding: 3rem;
    font-size: 1.2rem;
}

.cart-footer {
    padding: 2rem;
    background: var(--cream);
    border-top: 2px solid var(--gray-light);
}

.cart-total {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--coffee-brown);
    font-weight: 900;
}

.checkout-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--coffee-brown);
    color: var(--white);
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.checkout-btn:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 165, 116, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: var(--coffee-brown);
        width: 100%;
        padding: 2rem;
        transition: left 0.3s ease;
    }

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

    .menu-toggle {
        display: flex;
    }

    .hero-text-top,
    .hero-text-bottom {
        font-size: 60px !important;
    }

    .floating-cups {
        gap: 1.5rem;
        bottom: 20%;
    }

    .coffee-cup {
        width: 80px;
        height: 100px;
    }

    .cup-body {
        width: 70px;
        height: 60px;
    }

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

    .parallax-text {
        font-size: 1.2rem;
    }

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

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

    .item-icon {
        width: 225px;
        height: 225px;
    }

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

    .experience-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .stat-number {
        font-size: 3rem;
    }

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

@media (max-width: 480px) {
    .floating-cups {
        gap: 1rem;
    }

    .coffee-cup {
        width: 60px;
        height: 80px;
    }

    .cup-body {
        width: 50px;
        height: 50px;
    }

    .hero-text-top,
    .hero-text-bottom {
        font-size: 40px !important;
    }

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

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .item-icon {
        width: 180px;
        height: 180px;
    }
}
