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

:root {
    --brown-primary: #8B4513;
    --brown-light: #A0522D;
    --brown-dark: #654321;
    --brown-accent: #D2691E;
    --cream: #F5F5DC;
    --light-cream: #FAFAF5;
    --coffee: #3E2723;
    --latte: #E8D5B7;
    --tan: #DEB887;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--light-cream);
    color: var(--coffee);
    overflow-x: hidden;
    line-height: 1.6;
}

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

/* Animated Background Elements */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-coffee-bean {
    position: absolute;
    width: 40px;
    height: 60px;
    background: var(--brown-primary);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.1;
    animation: float 20s infinite ease-in-out;
    transform: rotate(45deg);
}

.bean-1 {
    left: 10%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.bean-2 {
    left: 30%;
    animation-delay: 2s;
    animation-duration: 18s;
}

.bean-3 {
    left: 50%;
    animation-delay: 4s;
    animation-duration: 22s;
}

.bean-4 {
    left: 70%;
    animation-delay: 1s;
    animation-duration: 17s;
}

.bean-5 {
    left: 90%;
    animation-delay: 3s;
    animation-duration: 20s;
}

.coffee-steam {
    position: absolute;
    width: 4px;
    height: 60px;
    background: linear-gradient(to top, rgba(139, 69, 19, 0.3), transparent);
    border-radius: 50%;
    opacity: 0.5;
    animation: steam-rise 8s infinite ease-in-out;
}

.steam-1 {
    left: 15%;
    animation-delay: 0s;
}

.steam-2 {
    left: 45%;
    animation-delay: 2s;
}

.steam-3 {
    left: 75%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) rotate(45deg) translateX(0);
    }
    50% {
        transform: translateY(-100px) rotate(45deg) translateX(50px);
    }
}

@keyframes steam-rise {
    0% {
        transform: translateY(100vh) scaleY(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100px) scaleY(1.5);
        opacity: 0;
    }
}

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

.navbar.scrolled {
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(139, 69, 19, 0.15);
}

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

.logo-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.05);
}

.logo {
    font-size: 28px;
    font-weight: bold;
}

.logo-text {
    color: var(--brown-primary);
}

.logo-accent {
    color: var(--brown-accent);
    font-style: italic;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 50px;
}

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

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

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--brown-primary);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    z-index: 1;
}

.hero-text-wrapper {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 80px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    color: var(--brown-dark);
}

.title-line-1,
.title-line-2,
.title-line-3 {
    display: block;
    position: relative;
    animation: slideInLeft 0.8s ease-out backwards;
}

.title-line-1 {
    animation-delay: 0.2s;
}

.title-line-2 {
    animation-delay: 0.4s;
    color: var(--brown-primary);
}

.title-line-3 {
    animation-delay: 0.6s;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--brown-light);
    margin-bottom: 40px;
    animation: fadeIn 1s ease-out 0.8s backwards;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeIn 1s ease-out 1s backwards;
}

.btn {
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--brown-primary);
    color: white;
}

.btn-primary:hover {
    background: var(--brown-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(139, 69, 19, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--brown-primary);
    border: 2px solid var(--brown-primary);
}

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

/* Coffee Cup Animation */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: fadeInRight 1s ease-out;
}

.coffee-cup-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.coffee-cup {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    z-index: 2;
    transform: translateY(35px);
    animation: coffee-wave 3s ease-in-out infinite;
}

.cup-body {
    width: 150px;
    height: 120px;
    background: linear-gradient(to right, var(--latte), #F5DEB3);
    border: 8px solid var(--brown-primary);
    border-top: none;
    border-radius: 0 0 20px 20px;
    position: relative;
    margin: 0 auto;
}

.cup-top {
    width: 170px;
    height: 15px;
    background: var(--brown-primary);
    border-radius: 50%;
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
}

.coffee-liquid {
    width: 100%;
    height: 80px;
    background: var(--brown-dark);
    border-radius: 0 0 20px 20px;
    position: absolute;
    bottom: 0;
    animation: liquid-wave 3s ease-in-out infinite;
}

.foam {
    width: 100%;
    height: 25px;
    background: var(--cream);
    border-radius: 50% 50% 10px 10px;
    position: absolute;
    top: 5px;
    animation: foam-bubble 4s ease-in-out infinite;
}

.cup-handle {
    width: 50px;
    height: 50px;
    border: 8px solid var(--brown-primary);
    border-left: none;
    border-radius: 0 50px 50px 0;
    position: absolute;
    right: -30px;
    top: 30px;
}

.coffee-ring {
    position: absolute;
    border: 3px solid var(--brown-primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: ring-expand 4s ease-out infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring-1 {
    width: 250px;
    height: 250px;
    animation-delay: 0s;
}

.ring-2 {
    width: 300px;
    height: 300px;
    animation-delay: 1s;
}

.ring-3 {
    width: 350px;
    height: 350px;
    animation-delay: 2s;
}

@keyframes coffee-wave {
    0%, 100% {
        transform: translateY(35px);
    }
    50% {
        transform: translateY(30px);
    }
}

@keyframes liquid-wave {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes foam-bubble {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(1.1);
    }
}

@keyframes ring-expand {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.3;
    }
    50% {
        opacity: 0.1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0;
    }
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--brown-primary);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--brown-primary);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 1.5s ease-in-out infinite;
}

@keyframes scroll-wheel {
    0% {
        top: 10px;
        opacity: 1;
    }
    100% {
        top: 30px;
        opacity: 0;
    }
}

/* Featured Section */
.featured-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--cream) 0%, var(--light-cream) 100%);
    position: relative;
    z-index: 1;
}

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

.feature-card {
    background: white;
    padding: 50px 30px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(139, 69, 19, 0.1);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 69, 19, 0.1) 0%, transparent 70%);
    transform: scale(0);
    transition: transform 0.6s ease;
}

.feature-card:hover::before {
    transform: scale(1);
}

.feature-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: 0 15px 40px rgba(139, 69, 19, 0.2);
}

.card-icon {
    font-size: 60px;
    margin-bottom: 20px;
    animation: bounce 2s ease-in-out infinite;
}

.feature-card:nth-child(2) .card-icon {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) .card-icon {
    animation-delay: 0.4s;
}

.feature-card h3 {
    font-size: 24px;
    color: var(--brown-primary);
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--coffee);
    line-height: 1.8;
}

.card-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background: var(--brown-accent);
    border-radius: 50%;
    opacity: 0.1;
    transition: all 0.4s ease;
}

.feature-card:hover .card-decoration {
    transform: scale(2);
    opacity: 0.05;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Menu Section */
.menu-section {
    padding: 100px 20px;
    background: var(--light-cream);
    position: relative;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 48px;
    color: var(--brown-dark);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: linear-gradient(to right, var(--brown-accent), var(--brown-primary));
    margin: 0 auto;
    border-radius: 2px;
    animation: underline-expand 1s ease-out;
}

.section-header .title-underline {
    margin: 0 auto;
}

.about-text .title-underline,
.visit-info .title-underline {
    margin: 0;
}

@keyframes underline-expand {
    0% {
        width: 0;
    }
    100% {
        width: 100px;
    }
}

.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--brown-primary);
    color: var(--brown-primary);
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--brown-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: -1;
}

.tab-btn.active,
.tab-btn:hover {
    color: white;
}

.tab-btn.active::before,
.tab-btn:hover::before {
    width: 300px;
    height: 300px;
}

.menu-content {
    position: relative;
    min-height: 500px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
    display: none;
}

.menu-grid.active {
    display: grid;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInUp 0.5s ease-out;
}

.menu-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(139, 69, 19, 0.1);
}

.menu-item::after {
    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;
}

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

.menu-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
}

.item-image {
    font-size: 14px;
    font-weight: bold;
    color: var(--brown-light);
    opacity: 0.3;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.menu-item h3 {
    font-size: 22px;
    color: var(--brown-primary);
    margin-bottom: 10px;
}

.menu-item p {
    color: var(--coffee);
    margin-bottom: 15px;
    line-height: 1.6;
}

.price {
    display: inline-block;
    font-size: 20px;
    font-weight: bold;
    color: var(--brown-accent);
    background: rgba(210, 105, 30, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
}

/* About Section */
.about-section {
    padding: 100px 20px;
    background: linear-gradient(180deg, var(--light-cream) 0%, var(--cream) 100%);
    position: relative;
    z-index: 1;
}

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

.about-text {
    animation: fadeInLeft 1s ease-out;
}

.about-paragraph {
    font-size: 18px;
    line-height: 1.8;
    color: var(--coffee);
    margin-bottom: 25px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.1);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: var(--brown-primary);
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: var(--coffee);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 1s ease-out;
}

.roaster-machine {
    position: relative;
    width: 300px;
    height: 400px;
}

.machine-body {
    width: 250px;
    height: 350px;
    background: linear-gradient(135deg, #555 0%, #333 100%);
    border-radius: 20px 20px 5px 5px;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.machine-door {
    width: 200px;
    height: 250px;
    background: linear-gradient(135deg, #666 0%, #444 100%);
    border: 3px solid #222;
    border-radius: 10px;
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
}

.machine-vent {
    width: 180px;
    height: 30px;
    background: repeating-linear-gradient(
        90deg,
        #222 0px,
        #222 10px,
        transparent 10px,
        transparent 20px
    );
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.smoke {
    position: absolute;
    width: 8px;
    height: 60px;
    background: linear-gradient(to top, rgba(139, 69, 19, 0.6), transparent);
    border-radius: 50%;
    left: 50%;
    transform: translateX(-50%);
    top: -60px;
    animation: smoke-rise 3s ease-in-out infinite;
}

.smoke-1 {
    animation-delay: 0s;
}

.smoke-2 {
    left: 48%;
    animation-delay: 0.5s;
    opacity: 0.7;
}

.smoke-3 {
    left: 52%;
    animation-delay: 1s;
    opacity: 0.5;
}

@keyframes smoke-rise {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) translateY(-100px) scale(1.5);
        opacity: 0;
    }
}

/* Visit Section */
.visit-section {
    padding: 100px 20px;
    background: var(--light-cream);
    position: relative;
    z-index: 1;
}

.visit-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.visit-info {
    animation: fadeInLeft 1s ease-out;
}

.info-item {
    margin-bottom: 40px;
}

.info-item h3 {
    font-size: 24px;
    color: var(--brown-primary);
    margin-bottom: 15px;
}

.info-item p {
    font-size: 18px;
    color: var(--coffee);
    line-height: 1.8;
}

.visit-map {
    animation: fadeInRight 1s ease-out;
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--tan) 0%, var(--latte) 100%);
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(139, 69, 19, 0.2);
}

.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: var(--brown-primary);
    border-radius: 50% 50% 50% 0;
    transform: translate(-50%, -100%) rotate(-45deg);
    box-shadow: 0 3px 10px rgba(139, 69, 19, 0.5);
    animation: pin-bounce 2s ease-in-out infinite;
}

.map-pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
}

.map-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid var(--brown-primary);
    border-radius: 50%;
    animation: ripple 2s ease-out infinite;
}

@keyframes pin-bounce {
    0%, 100% {
        transform: translate(-50%, -100%) rotate(-45deg);
    }
    50% {
        transform: translate(-50%, -110%) rotate(-45deg);
    }
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

/* Footer */
.footer {
    background: var(--brown-dark);
    color: var(--cream);
    padding: 60px 20px 20px;
    position: relative;
    z-index: 1;
}

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

.footer-section h3,
.footer-section h4 {
    color: var(--brown-accent);
    margin-bottom: 20px;
    font-size: 20px;
}

.footer-section p {
    line-height: 1.8;
    opacity: 0.9;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: var(--cream);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(245, 245, 220, 0.2);
    opacity: 0.8;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 60px;
    }

    .about-content,
    .visit-content {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
    }

    .hamburger {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 48px;
    }

    .section-title {
        font-size: 36px;
    }

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

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