/* --- Root Variables & Theme System --- */
:root {
    --color-bg: #FDFBF7;        /* Premium Cream Soft */
    --color-white: #FFFFFF;     /* Pure White */
    --color-gray-light: #F4F3EF;/* Soft Accent Gray */
    --color-text-main: #2C2A29; /* Deep Charcoal for readability */
    --color-text-muted: #7A7672;/* Muted Muted Gray-Cream */
    --color-accent: #C2B29F;    /* Luxury Muted Gold/Taupe */
    
    --font-primary: 'Plus Jakarta Sans', sans-serif;
    --font-elegant: 'Cormorant Garamond', serif;
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Global Settings --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.padding-y {
    padding: 100px 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Typography Helpers --- */
.section-subtitle {
    font-family: var(--font-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
}

.section-title {
    font-family: var(--font-elegant);
    font-size: 2.8rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 30px;
}

.text-center {
    text-align: center;
}

/* --- Preloader Style --- */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s ease;
}

.loader-text {
    font-family: var(--font-elegant);
    font-size: 2.5rem;
    letter-spacing: 6px;
    margin-bottom: 20px;
    animation: pulse 1.5s infinite ease-in-out;
}

.loader-bar {
    width: 100px;
    height: 2px;
    background-color: var(--color-accent);
    position: relative;
    overflow: hidden;
}

.loader-bar::after {
    content: '';
    position: absolute;
    width: 40px;
    height: 100%;
    background-color: var(--color-text-main);
    left: -40px;
    animation: loadingTrack 1.2s infinite linear;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--color-text-main);
    color: var(--color-white);
    border: 1px solid var(--color-text-main);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--color-text-main);
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-accent);
}

.btn-secondary:hover {
    background-color: var(--color-gray-light);
    transform: translateY(-3px);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(15px);
    padding: 15px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(194, 178, 159, 0.1);
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-elegant);
    font-size: 1.5rem;
    letter-spacing: 3px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--color-text-muted);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-text-main);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.menu-toggle .bar {
    display: block;
    width: 25px;
    height: 2px;
    margin: 5px auto;
    background-color: var(--color-text-main);
    transition: all 0.3s ease;
}

/* --- Hero Section --- */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    /* Unsplash Premium Aesthetic Minimal architecture background pattern placeholder */
    background: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') no-repeat center center/cover;
    /*background: url('assets/images/hero-bg.jpg') no-repeat center center/cover;*/
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(253, 251, 247, 0.95) 40%, rgba(253, 251, 247, 0.4));
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-tag {
    font-size: 0.8rem;
    letter-spacing: 6px;
    font-weight: 600;
    color: var(--color-accent);
    display: block;
    margin-bottom: 15px;
}

.hero-title {
    font-family: var(--font-elegant);
    font-size: 5.5rem;
    font-weight: 400;
    letter-spacing: 4px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-subheadline {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    word-spacing: 2px;
    margin-bottom: 40px;
    font-weight: 300;
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-down i {
    font-size: 1.2rem;
    color: var(--color-accent);
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    height: 550px;
    border-radius: 8px;
}

.profile-img {
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.04);
}

.img-floating-card {
    position: absolute;
    bottom: 30px;
    right: -30px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px 25px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}

.img-floating-card i {
    font-size: 1.4rem;
}

.profile-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    margin-bottom: 40px;
    text-align: justify;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: var(--color-white);
    padding: 25px 20px;
    border-radius: 6px;
    border: 1px solid rgba(194, 178, 159, 0.15);
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(194, 178, 159, 0.1);
}

.stat-card h3 {
    font-family: var(--font-elegant);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-bottom: 5px;
}

.stat-card p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
}

/* --- Cafe Section Slider --- */
.slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.cafe-slider {
    display: flex;
    gap: 30px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

.cafe-card {
    min-width: calc(33.333% - 20px);
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    border: 1px solid rgba(194, 178, 159, 0.1);
    transition: var(--transition-smooth);
}

.cafe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(194, 178, 159, 0.12);
}

.cafe-img-container {
    height: 260px;
    overflow: hidden;
}

.cafe-img-container img {
    transition: transform 0.8s ease;
}

.cafe-card:hover .cafe-img-container img {
    transform: scale(1.08);
}

.cafe-info {
    padding: 30px;
}

.cafe-location {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 8px;
}

.cafe-name {
    font-family: var(--font-elegant);
    font-size: 1.6rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.menu-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cafe-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #D4AF37; /* Clean Gold star */
    margin-bottom: 25px;
}

.cafe-rating span {
    color: var(--color-text-muted);
    margin-left: 5px;
}

.btn-view {
    width: 100%;
    background: transparent;
    border: 1px solid var(--color-gray-light);
    padding: 12px 0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.cafe-card:hover .btn-view {
    background-color: var(--color-text-main);
    color: var(--color-white);
    border-color: var(--color-text-main);
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid rgba(194, 178, 159, 0.2);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: var(--transition-smooth);
}

.slider-btn:hover {
    background-color: var(--color-text-main);
    color: var(--color-white);
}

.slider-btn.prev { left: 10px; }
.slider-btn.next { right: 10px; }

/* --- Outfit Store Section --- */
.outfit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.outfit-card {
    background-color: var(--color-white);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(194, 178, 159, 0.1);
    transition: var(--transition-smooth);
}

.outfit-img-box {
    height: 400px;
    position: relative;
    overflow: hidden;
}

.outfit-img-box img {
    transition: transform 0.8s ease;
}

.outfit-card:hover .outfit-img-box img {
    transform: scale(1.05);
}

.tag-style {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    padding: 6px 14px;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 500;
    border-radius: 30px;
}

.outfit-details {
    padding: 25px;
}

.outfit-title {
    font-family: var(--font-elegant);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.outfit-price {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 1.05rem;
    margin-bottom: 15px;
}

.outfit-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 25px;
}

.outfit-actions {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
}

.btn-buy {
    background-color: var(--color-text-main);
    color: var(--color-white);
    border: none;
    padding: 12px 0;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-buy:hover {
    background-color: var(--color-accent);
}

.btn-secondary-sm {
    background-color: transparent;
    border: 1px solid var(--color-accent);
    color: var(--color-text-main);
    padding: 12px 0;
    border-radius: 4px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary-sm:hover {
    background-color: var(--color-gray-light);
}

/* --- Contact Section & Glassmorphism Panel --- */
.contact-card-box {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background-color: var(--color-text-main);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.contact-info-panel {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(44,42,41,0.95) 0%, rgba(20,20,19,0.98) 100%);
}

.contact-text {
    color: var(--color-gray-light);
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.social-links-container {
    display: flex;
    gap: 15px;
}

.social-icon-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.social-icon-btn:hover {
    background-color: var(--color-accent);
    color: var(--color-text-main);
    transform: translateY(-3px);
}

.contact-form-panel {
    background-color: var(--color-white);
    padding: 60px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-text-muted);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid rgba(194, 178, 159, 0.3);
    background-color: var(--color-bg);
    border-radius: 4px;
    font-family: var(--font-primary);
    font-size: 0.95rem;
    color: var(--color-text-main);
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--color-text-main);
    background-color: var(--color-white);
}

/* --- Footer --- */
.footer {
    background-color: var(--color-gray-light);
    padding: 80px 0 30px 0;
    border-top: 1px solid rgba(194, 178, 159, 0.2);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    font-family: var(--font-elegant);
    font-size: 1.8rem;
    letter-spacing: 3px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-nav h4, .footer-socials h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 25px;
    color: var(--color-text-main);
}

.footer-nav ul flex-direction {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-nav a {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.footer-nav a:hover {
    color: var(--color-text-main);
    padding-left: 5px;
}

.footer-icons {
    display: flex;
    gap: 15px;
}

.footer-icons a {
    font-size: 1.2rem;
    color: var(--color-text-muted);
}

.footer-icons a:hover {
    color: var(--color-text-main);
}

.footer-bottom {
    border-top: 1px solid rgba(194, 178, 159, 0.15);
    padding-top: 30px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* --- Core Scroll Animations (JS Triggered) --- */
.reveal {
    position: relative;
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
}

/* Slide Directional Types */
.reveal.slide-left {
    transform: translateX(-50px);
}
.reveal.slide-right {
    transform: translateX(50px);
}
.reveal.slide-left.active, .reveal.slide-right.active {
    transform: translateX(0);
}

/* Default dynamic subtle rise */
.reveal:not(.slide-left):not(.slide-right) {
    transform: translateY(40px);
}
.reveal:not(.slide-left):not(.slide-right).active {
    transform: translateY(0);
}

/* --- Custom Keyframe Animations --- */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

@keyframes loadingTrack {
    0% { left: -40px; }
    100% { left: 100px; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .cafe-card {
        min-width: calc(50% - 15px);
    }
    .about-grid, .contact-card-box {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .outfit-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-img-wrapper {
        height: 450px;
    }
    .img-floating-card {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .padding-y {
        padding: 60px 0;
    }
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--color-bg);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.5s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    }
    .nav-links.active {
        right: 0;
    }
    .menu-toggle {
        display: block;
    }
    /* Hamburger to X conversion */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .cafe-card {
        min-width: 100%;
    }
    .outfit-grid {
        grid-template-columns: 1fr;
    }
    .contact-info-panel, .contact-form-panel {
        padding: 40px 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-cta {
        flex-direction: column;
        gap: 15px;
    }
}

/* ==========================================================================
   10. ELEGANT POPUP MODAL SYSTEM (Seamless Main Page Scroll Integration)
   ========================================================================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 42, 41, 0.4); 
    backdrop-filter: blur(8px);
    z-index: 2000;
    
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;

    /* KUNCI UTAMA: Menggunakan flex sempurna untuk meluruskan posisi secara vertikal */
    display: flex; 
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden; /* Tidak membuat container scroll baru di sini */
}

.popup-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.popup-box {
    background-color: var(--color-bg);
    width: 100%;
    max-width: 550px; 
    
    /* KUNCI UTAMA: Batasi tinggi box agar proporsional dengan layar saat ini */
    max-height: 90vh; 
    background: #FDFBF7;
    border-radius: 12px;
    padding: 45px 25px 25px 25px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(194, 178, 159, 0.2);
    
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    
    display: flex;
    flex-direction: column;
}

.popup-overlay.open .popup-box {
    transform: translateY(0);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--color-text-muted);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-smooth);
}

.popup-close:hover {
    color: var(--color-text-main);
}

.popup-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden; /* Mengunci struktur text agar tetap rapi */
}

.popup-cafe-title {
    font-family: var(--font-elegant);
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 2px;
    padding-right: 25px;
}

.popup-subtitle {
    font-size: 0.72rem;
    letter-spacing: 2px;
    color: var(--color-accent);
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
}

/* KUNCI UTAMA: Agar gambar menu panjang melar alami namun dibatasi oleh container utama */
.popup-menu-wrapper {
    width: 100%;
    flex-grow: 1;
    overflow-y: auto; /* Scrollbar super tipis hanya membungkus gambar menunya */
    border-radius: 6px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid rgba(194, 178, 159, 0.1);
    background-color: #000;
}

/* Hilangkan tampilan scrollbar kaku bawaan browser, ganti dengan aksen mewah yang tipis */
.popup-menu-wrapper::-webkit-scrollbar {
    width: 5px;
}
.popup-menu-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--color-accent);
    border-radius: 10px;
}

.popup-menu-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.btn-maps {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.88rem;
    flex-shrink: 0;
}