/* ===== CSS Variables & Reset ===== */
:root {
    /* Colors - Dark Galactic Theme */
    --black-deep: #0a0a0a;
    --black-space: #0d0d0d;
    --blue-deep: #0a1628;
    --blue-space: #0f2847;
    --blue-nebula: #1a3a5c;
    
    /* Gold Neon */
    --gold-primary: #ffd700;
    --gold-light: #ffe44d;
    --gold-dark: #e6ac00;
    --gold-glow: rgba(255, 215, 0, 0.4);
    
    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #b8b8b8;
    --text-muted: #666666;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    --gradient-space: linear-gradient(180deg, var(--black-deep) 0%, var(--blue-deep) 50%, var(--blue-space) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 215, 0, 0.1), rgba(15, 40, 71, 0.3));
    
    /* Glass Effect */
    --glass-bg: rgba(13, 13, 13, 0.8);
    --glass-border: rgba(255, 215, 0, 0.2);
    
    /* Typography */
    --font-primary: 'Outfit', 'Prompt', sans-serif;
    --font-thai: 'Prompt', sans-serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--black-deep);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Container ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Coffee Beans Background ===== */
#coffee-beans-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.coffee-bean {
    position: absolute;
    font-size: 24px;
    opacity: 0.6;
    filter: drop-shadow(0 0 8px var(--gold-glow));
    animation: float-bean var(--float-duration, 20s) ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

@keyframes float-bean {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(30px, -40px) rotate(90deg);
    }
    50% {
        transform: translate(-20px, -80px) rotate(180deg);
    }
    75% {
        transform: translate(40px, -40px) rotate(270deg);
    }
}

/* ===== Navigation ===== */
.nav-glass {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1100px;
    padding: 16px 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-glass.scrolled {
    background: rgba(10, 10, 10, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 
                0 0 20px var(--gold-glow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
    position: relative;
}

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

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

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

.nav-cta {
    padding: 12px 28px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 100px;
    color: var(--black-deep);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px var(--gold-glow);
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 30px var(--gold-glow);
}

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gold-primary);
    transition: var(--transition-smooth);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 120px 48px 80px;
    background: var(--gradient-space);
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse at 20% 80%, rgba(255, 215, 0, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(15, 40, 71, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 600px;
    z-index: 3;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--gold-primary);
    margin-bottom: 24px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
    }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 24px;
    font-family: var(--font-thai);
}

.gold-glow {
    display: block;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px var(--gold-glow);
    filter: drop-shadow(0 0 20px var(--gold-glow));
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-family: var(--font-thai);
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    font-family: var(--font-thai);
}

.btn-primary {
    background: var(--gradient-gold);
    color: var(--black-deep);
    box-shadow: 0 8px 30px var(--gold-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 215, 0, 0.5);
}

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

.btn-secondary:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-glow);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 450px;
    height: 450px;
    z-index: 3;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 50%;
    animation: orbit-spin 20s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ring-2 {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    animation-duration: 15s;
    animation-direction: reverse;
}

.ring-3 {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    animation-duration: 10s;
}

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

.coffee-cup-main {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 120px;
    filter: drop-shadow(0 0 40px var(--gold-glow)) drop-shadow(0 0 80px rgba(255, 215, 0, 0.3));
    animation: float-cup 4s ease-in-out infinite;
}

@keyframes float-cup {
    0%, 100% { transform: translate(-50%, -50%) translateY(0); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

.cup-steam {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.cup-steam span {
    display: block;
    width: 8px;
    height: 40px;
    background: linear-gradient(to top, rgba(255, 215, 0, 0.4), transparent);
    border-radius: 100px;
    animation: steam 2s ease-in-out infinite;
}

.cup-steam span:nth-child(1) { animation-delay: 0s; height: 30px; }
.cup-steam span:nth-child(2) { animation-delay: 0.3s; height: 45px; }
.cup-steam span:nth-child(3) { animation-delay: 0.6s; height: 35px; }

@keyframes steam {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(0) scaleY(1);
    }
    50% {
        opacity: 0.7;
        transform: translateY(-10px) scaleY(1.2);
    }
}

/* ===== Section Styling ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--gold-primary);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    font-family: var(--font-thai);
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    font-size: 18px;
    color: var(--text-secondary);
    font-family: var(--font-thai);
}

/* ===== About Section ===== */
.about {
    padding: var(--section-padding);
    background: var(--black-deep);
    position: relative;
    z-index: 2;
}

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

.about-text h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--gold-primary);
    font-family: var(--font-thai);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    font-family: var(--font-thai);
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--gold-primary);
    text-shadow: 0 0 20px var(--gold-glow);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
    font-family: var(--font-thai);
}

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

.galaxy-orb {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: 
        radial-gradient(ellipse at 30% 30%, rgba(255, 215, 0, 0.3), transparent 50%),
        radial-gradient(ellipse at 70% 70%, rgba(15, 40, 71, 0.8), transparent 50%),
        linear-gradient(135deg, var(--blue-deep), var(--blue-space));
    box-shadow: 
        0 0 60px rgba(255, 215, 0, 0.2),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
    animation: galaxy-pulse 4s ease-in-out infinite;
}

@keyframes galaxy-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 60px rgba(255, 215, 0, 0.2);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 100px rgba(255, 215, 0, 0.4);
    }
}

/* ===== Menu Section ===== */
.menu {
    padding: var(--section-padding);
    background: linear-gradient(180deg, var(--black-deep) 0%, var(--blue-deep) 100%);
    position: relative;
    z-index: 2;
}

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

.menu-card {
    position: relative;
    background: var(--gradient-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    overflow: hidden;
}

.floating-card {
    animation: float-card var(--card-float-duration, 6s) ease-in-out infinite;
    animation-delay: var(--card-float-delay, 0s);
}

@keyframes float-card {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.menu-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--gold-primary);
    box-shadow: 0 20px 60px rgba(255, 215, 0, 0.2);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1), transparent 40%);
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.menu-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    font-size: 48px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 15px var(--gold-glow));
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gold-primary);
}

.card-desc {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.7;
    font-family: var(--font-thai);
}

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

.card-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold-light);
    text-shadow: 0 0 15px var(--gold-glow);
}

.card-btn {
    padding: 10px 24px;
    background: var(--gradient-gold);
    border: none;
    border-radius: 100px;
    color: var(--black-deep);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-family: var(--font-thai);
}

.card-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 20px var(--gold-glow);
}

/* ===== Contact Section ===== */
.contact {
    padding: var(--section-padding);
    background: var(--black-deep);
    position: relative;
    z-index: 2;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-icon {
    font-size: 28px;
    filter: drop-shadow(0 0 10px var(--gold-glow));
}

.contact-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 4px;
    font-family: var(--font-thai);
}

.contact-item p {
    font-size: 15px;
    color: var(--text-secondary);
    font-family: var(--font-thai);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 16px;
    font-family: var(--font-thai);
    transition: var(--transition-smooth);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-glow);
}

.contact-form textarea {
    resize: none;
}

/* ===== Footer ===== */
.footer {
    padding: 60px 0 30px;
    background: var(--blue-deep);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 2;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-brand .logo-icon {
    font-size: 40px;
}

.footer-brand .logo-text {
    font-size: 24px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 15px;
    font-family: var(--font-thai);
    max-width: 300px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 8px;
    font-family: var(--font-thai);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition-smooth);
    font-family: var(--font-thai);
}

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

.footer-social h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 16px;
    font-family: var(--font-thai);
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    font-size: 20px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px var(--gold-glow);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 140px 24px 80px;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-visual {
        width: 300px;
        height: 300px;
        margin-top: 40px;
    }
    
    .coffee-cup-main {
        font-size: 80px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .about-stats {
        justify-content: center;
    }
    
    .about-visual {
        order: -1;
    }
    
    .galaxy-orb {
        width: 250px;
        height: 250px;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-brand p {
        max-width: 100%;
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .nav-glass {
        width: calc(100% - 32px);
        padding: 12px 20px;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 24px;
        gap: 20px;
        border-radius: 24px;
        border: 1px solid var(--glass-border);
        margin-top: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        animation: slide-down 0.3s ease-out forwards;
    }

    .nav-links.active {
        display: flex;
    }

    @keyframes slide-down {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-cta {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===== Stars Background Effect ===== */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255, 215, 0, 0.4), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(1px 1px at 170px 20px, rgba(255, 215, 0, 0.2), transparent),
        radial-gradient(2px 2px at 200px 60px, rgba(255, 255, 255, 0.25), transparent),
        radial-gradient(1px 1px at 250px 100px, rgba(255, 215, 0, 0.35), transparent),
        radial-gradient(2px 2px at 300px 30px, rgba(255, 255, 255, 0.2), transparent);
    background-size: 350px 120px;
    pointer-events: none;
    z-index: 0;
    animation: twinkle 4s ease-in-out infinite alternate;
}

@keyframes twinkle {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
}
