/* ========================================
   CUPSTORE - PREMIUM COFFEE EXPERIENCE
   Award-Winning Design Aesthetics
======================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Cormorant+Garamond:wght@300;400;600;700&family=Montserrat:wght@200;300;400;600;700&display=swap');

:root {
    --primary-green: #015930;
    --dark-green: #013d20;
    --coffee-brown: #3E2723;
    --cream: #D4A574;
    --gold: #C9A961;
    --black: #000000;
    --white: #ffffff;
    --smoke: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--white);
    background: var(--black);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    letter-spacing: 2px;
}

/* ========================================
   COFFEE BEAN PARTICLES BACKGROUND
======================================== */
.coffee-beans-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.coffee-bean {
    position: absolute;
    width: 15px;
    height: 20px;
    background: var(--coffee-brown);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    opacity: 0.15;
    animation: float-bean 20s infinite ease-in-out;
}

.coffee-bean::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 12px;
    background: rgba(0,0,0,0.3);
    border-radius: 2px;
}

@keyframes float-bean {
    0%, 100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* ========================================
   NAVBAR - Elegant & Minimal
======================================== */
.navbar {
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    box-shadow: 0 4px 30px rgba(1, 89, 48, 0.2);
    border-bottom: 1px solid rgba(1, 89, 48, 0.3);
    transition: all 0.3s;
}

.navbar.scrolled {
    padding: 15px 0;
    background: rgba(0, 0, 0, 0.98);
}

.navbar-brand img {
    filter: brightness(0) invert(1);
    transition: all 0.3s;
}

.navbar-brand:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--primary-green));
}

.navbar-dark .navbar-nav .nav-link {
    color: var(--white);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 10px 25px;
    position: relative;
    transition: all 0.4s;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.4s;
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 60%;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--cream);
}

/* ========================================
   HERO SECTION - Cinematic Experience
======================================== */
main {
    position: relative;
    z-index: 1;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at center, transparent 0%, rgba(0,0,0,0.8) 70%),
        linear-gradient(135deg, #000000 0%, #013d20 50%, #000000 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 0;
}

/* Steam Effect */
.hero::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    filter: blur(30px);
    animation: steam 8s infinite ease-in-out;
}

@keyframes steam {
    0%, 100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateX(-50%) translateY(-100px) scale(1.2);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    animation: hero-entrance 1.5s ease-out;
}

@keyframes hero-entrance {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    margin-bottom: 20px;
    text-shadow: 
        0 0 20px rgba(1, 89, 48, 0.5),
        0 0 40px rgba(1, 89, 48, 0.3),
        0 10px 30px rgba(0,0,0,0.8);
    letter-spacing: 15px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        text-shadow: 
            0 0 20px rgba(1, 89, 48, 0.5),
            0 0 40px rgba(1, 89, 48, 0.3);
    }
    50% {
        text-shadow: 
            0 0 30px rgba(1, 89, 48, 0.8),
            0 0 60px rgba(1, 89, 48, 0.5),
            0 0 80px rgba(1, 89, 48, 0.3);
    }
}

.hero .subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 300;
    letter-spacing: 8px;
    margin-bottom: 30px;
    color: var(--cream);
    text-transform: uppercase;
}

.hero .lead {
    font-size: clamp(1rem, 2vw, 1.3rem);
    max-width: 700px;
    margin: 0 auto 50px;
    line-height: 1.8;
    font-weight: 300;
    color: rgba(255,255,255,0.8);
}

/* Premium Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    border: 2px solid var(--cream);
    color: var(--white);
    padding: 18px 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.5s;
    box-shadow: 0 10px 40px rgba(1, 89, 48, 0.3);
}

.btn-premium::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.5s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(1, 89, 48, 0.5);
    border-color: var(--gold);
    color: var(--white);
}

.btn-outline-premium {
    background: transparent;
    border: 2px solid var(--cream);
    color: var(--cream);
    padding: 18px 50px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.4s;
}

.btn-outline-premium:hover {
    background: var(--cream);
    color: var(--black);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(212, 165, 116, 0.4);
}

/* Hero Buttons Container */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    margin: 0 !important;
}

/* ========================================
   SECTION LAYOUTS
======================================== */
.section {
    padding: 120px 0;
    position: relative;
    background: var(--black);
}

.section-dark {
    background: linear-gradient(180deg, #000000 0%, #0a0a0a 100%);
}

.section-title {
    text-align: center;
    margin-bottom: 80px;
    animation: fade-in-up 1s ease-out;
}

.section-title h2 {
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--cream);
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-green), transparent);
}

.section-title p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.6);
    max-width: 600px;
    margin: 30px auto 0;
    line-height: 1.8;
}

/* ========================================
   FEATURE CARDS - 3D Effect
======================================== */
.feature-card {
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(1, 89, 48, 0.2);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(1, 89, 48, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 
        0 30px 60px rgba(1, 89, 48, 0.3),
        0 0 60px rgba(1, 89, 48, 0.2);
    border-color: var(--primary-green);
}

.feature-card i {
    font-size: 4rem;
    color: var(--cream);
    margin-bottom: 30px;
    display: inline-block;
    transition: all 0.5s;
}

.feature-card:hover i {
    transform: scale(1.2) rotate(10deg);
    color: var(--primary-green);
}

.feature-card h4 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.feature-card p {
    color: rgba(255,255,255,0.7);
    line-height: 1.8;
    font-size: 1rem;
}

/* ========================================
   MENU ITEMS - Premium Display
======================================== */
.menu-category {
    margin-bottom: 100px;
    animation: fade-in-up 0.8s ease-out;
}

.menu-category h3 {
    font-size: 3rem;
    color: var(--cream);
    border-bottom: 3px solid var(--primary-green);
    padding-bottom: 20px;
    margin-bottom: 50px;
    position: relative;
    font-family: 'Playfair Display', serif;
}

.menu-category h3::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 150px;
    height: 3px;
    background: var(--gold);
}

.menu-item {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(1, 89, 48, 0.2);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(1, 89, 48, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover {
    transform: translateX(10px) scale(1.02);
    box-shadow: 
        -10px 0 30px rgba(1, 89, 48, 0.3),
        0 10px 40px rgba(0,0,0,0.5);
    border-color: var(--primary-green);
}

.menu-item h5 {
    color: var(--cream);
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-family: 'Playfair Display', serif;
}

.menu-item p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.menu-item .price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 10px rgba(201, 169, 97, 0.5);
    font-family: 'Cormorant Garamond', serif;
}

.menu-item .badge {
    margin-right: 8px;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    border-radius: 20px;
}

/* Menu Closed Message */
.menu-closed {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(1, 89, 48, 0.3);
    border-radius: 30px;
    padding: 100px;
    text-align: center;
    margin: 100px 0;
}

.menu-closed i {
    font-size: 6rem;
    color: var(--cream);
    margin-bottom: 30px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.menu-closed h3 {
    color: var(--cream);
    margin-bottom: 20px;
    font-size: 2.5rem;
}

.menu-closed p {
    color: rgba(255,255,255,0.8);
    font-size: 1.2rem;
}

/* ========================================
   FOOTER - Elegant & Minimal
======================================== */
.footer {
    background: linear-gradient(180deg, #000000 0%, #013d20 100%);
    color: var(--white);
    padding: 80px 0 30px;
    margin-top: 100px;
    border-top: 1px solid rgba(1, 89, 48, 0.3);
}

.footer .col-md-4 {
    text-align: center;
}

.footer h5 {
    color: var(--cream);
    margin-bottom: 25px;
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 2px;
    text-align: center;
}

.footer img {
    margin: 0 auto;
    display: block;
}

.footer ul {
    text-align: center;
    padding-left: 0;
    list-style: none;
}

.footer ul li {
    margin-bottom: 12px;
    color: rgba(255,255,255,0.7);
    transition: all 0.3s;
    text-align: center;
}

.footer ul li:hover {
    color: var(--cream);
    transform: none;
}

.footer ul li i {
    margin-right: 12px;
    color: var(--gold);
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-links a {
    display: inline-block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(1, 89, 48, 0.3);
    border-radius: 50%;
    color: var(--cream);
    margin: 0 8px;
    transition: all 0.4s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary-green);
    border-color: var(--gold);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(1, 89, 48, 0.4);
    color: var(--white);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fade-in-up 1s ease-out;
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE DESIGN - Mobile First
======================================== */

/* Extra Small Devices (320px - 480px) */
@media (max-width: 480px) {
    /* Navbar */
    .navbar {
        padding: 15px 0;
    }
    
    .navbar-brand img {
        height: 45px !important;
    }
    
    /* Navbar Mobile - Force Center */
    .navbar-collapse {
        text-align: center !important;
    }
    
    .navbar-nav {
        background: rgba(0, 0, 0, 0.98) !important;
        padding: 20px !important;
        border-radius: 15px !important;
        margin-top: 15px !important;
        text-align: center !important;
        display: inline-block !important;
        width: 100% !important;
    }
    
    .navbar-nav .nav-item {
        text-align: center !important;
        display: block !important;
        width: 100% !important;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 12px 15px !important;
        font-size: 13px !important;
        text-align: center !important;
        display: block !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    .navbar-dark .navbar-nav .nav-link::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
        margin-left: 0 !important;
    }
    
    .navbar-toggler {
        border-color: var(--cream);
    }
    
    /* Hero */
    .hero {
        min-height: 100vh;
        padding: 100px 20px 50px;
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
        letter-spacing: 3px;
        margin-bottom: 15px;
    }
    
    .hero .subtitle {
        font-size: 1.2rem !important;
        letter-spacing: 4px;
    }
    
    .hero .lead {
        font-size: 0.95rem !important;
        padding: 0 10px;
        margin-bottom: 30px !important;
    }
    
    /* Hero Buttons - Mobile */
    .hero-buttons {
        flex-direction: column !important;
        gap: 25px !important;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 16px 25px !important;
        font-size: 12px !important;
    }
    
    /* CTA Sections - All buttons with spacing */
    .section .btn-premium,
    .section .btn-outline-premium,
    .btn-success,
    .btn-lg {
        margin-bottom: 15px !important;
    }
    
    .section .text-center .btn-premium:last-child,
    .section .text-center .btn-outline-premium:last-child {
        margin-bottom: 0 !important;
    }
    
    /* Sections */
    .section {
        padding: 50px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .section-title h2 {
        font-size: 2rem !important;
        padding: 0 15px;
    }
    
    .section-title p {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    /* Feature Cards */
    .feature-card {
        padding: 40px 25px;
        margin-bottom: 25px;
    }
    
    .feature-card i {
        font-size: 3rem;
        margin-bottom: 20px;
    }
    
    .feature-card h4 {
        font-size: 1.4rem;
    }
    
    .feature-card p {
        font-size: 0.95rem;
    }
    
    /* Menu */
    .menu-category h3 {
        font-size: 2rem;
        padding-bottom: 15px;
    }
    
    .menu-item {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .menu-item h5 {
        font-size: 1.2rem;
    }
    
    .menu-item .price {
        font-size: 1.5rem;
    }
    
    .menu-closed {
        padding: 40px 20px;
        margin: 50px 0;
    }
    
    .menu-closed i {
        font-size: 4rem;
    }
    
    .menu-closed h3 {
        font-size: 1.8rem;
    }
    
    .menu-closed p {
        font-size: 1rem;
    }
    
    /* Footer */
    .footer {
        padding: 50px 0 20px;
        margin-top: 50px;
        text-align: center;
    }
    
    .footer .row {
        justify-content: center;
    }
    
    .footer .col-md-4 {
        text-align: center !important;
        margin-bottom: 35px;
    }
    
    .footer img {
        height: 70px !important;
        margin: 0 auto;
        display: block;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-top: 25px;
        text-align: center;
    }
    
    .footer ul {
        text-align: center;
        padding-left: 0;
        list-style: none;
    }
    
    .footer ul li {
        font-size: 0.95rem;
        text-align: center;
    }
    
    .footer ul li:hover {
        transform: none;
    }
    
    .social-links {
        justify-content: center !important;
        display: flex;
        text-align: center;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
        line-height: 45px;
        font-size: 1.1rem;
        margin: 0 8px;
    }
    
    .footer .text-center {
        text-align: center !important;
    }
    
    /* Container padding */
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Small Devices (481px - 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .navbar-brand img {
        height: 50px !important;
    }
    
    .hero h1 {
        font-size: 3.5rem !important;
        letter-spacing: 5px;
    }
    
    .hero .subtitle {
        font-size: 1.6rem !important;
    }
    
    .hero .lead {
        font-size: 1.1rem !important;
    }
    
    .btn-premium, .btn-outline-premium {
        padding: 16px 35px;
        font-size: 12px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-title h2 {
        font-size: 2.5rem !important;
    }
    
    .feature-card {
        padding: 50px 30px;
    }
    
    .menu-category h3 {
        font-size: 2.3rem;
    }
    
    .menu-closed {
        padding: 60px 30px;
    }
    
    .footer img {
        height: 85px !important;
    }
}

/* Medium Devices - Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .navbar-brand img {
        height: 55px !important;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .hero h1 {
        font-size: 5rem !important;
        letter-spacing: 8px;
    }
    
    .hero .subtitle {
        font-size: 2rem !important;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .section-title h2 {
        font-size: 3.5rem !important;
    }
    
    .feature-card {
        padding: 50px 35px;
        margin-bottom: 30px;
    }
    
    .menu-item {
        padding: 25px;
    }
    
    .footer {
        padding: 70px 0 25px;
    }
    
    .footer img {
        height: 90px !important;
    }
}

/* Large Devices (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    .hero h1 {
        font-size: 7rem;
    }
    
    .container {
        max-width: 1200px;
    }
}

/* Extra Large Devices (1441px+) */
@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 8rem;
    }
    
    .section {
        padding: 150px 0;
    }
}

/* Landscape Mobile Fixes */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 120px 20px 60px;
    }
    
    .hero h1 {
        font-size: 2.5rem !important;
        margin-bottom: 10px;
    }
    
    .hero .subtitle {
        font-size: 1.2rem !important;
        margin-bottom: 15px;
    }
    
    .hero .lead {
        font-size: 0.9rem !important;
        margin-bottom: 20px !important;
    }
    
    .btn-premium, .btn-outline-premium {
        padding: 12px 30px;
        font-size: 11px;
    }
}

/* Fix for very small screens */
@media (max-width: 320px) {
    .hero h1 {
        font-size: 2rem !important;
    }
    
    .navbar-brand img {
        height: 40px !important;
    }
    
    .feature-card {
        padding: 30px 20px;
    }
    
    .menu-item {
        padding: 15px;
    }
}

/* ========================================
   CUSTOM SCROLLBAR
======================================== */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-green), var(--dark-green));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--cream);
}
