/* style.css */

/* --- BRANDING & SETUP (LUXURY DARK THEME) --- */
:root {
    --charcoal-black: #121212; /* Deep, luxurious black background */
    --rich-gray: #1E1E1E;      /* Lighter dark for cards/sections */
    --soft-ivory: #EAEAEA;     /* Main text color, soft and elegant */
    --classic-gold: #D4AF37;   /* Rich gold for CTAs and highlights */
    --dark-slate: #2A2A2A;     /* Borders, secondary text */
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'DM Sans', sans-serif;
    background-color: var(--charcoal-black);
    color: var(--soft-ivory);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Floating Coffee Beans Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%; /* Taller to allow for vertical animation */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><text y="50" x="50" font-size="30" fill="rgba(234, 234, 234, 0.03)">☕</text></svg>');
    z-index: -1;
    animation: floatBeans 120s linear infinite;
}

@keyframes floatBeans {
    from {
        transform: translateY(0%);
    }
    to {
        transform: translateY(-50%);
    }
}


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

section {
    padding: 100px 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    color: var(--soft-ivory);
}

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 60px;
}

/* --- HEADER --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: rgba(18, 18, 18, 0.85); /* Charcoal Black with transparency */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
    transition: top 0.3s ease-in-out;
    border-bottom: 1px solid var(--dark-slate);
}

.logo {
    font-family: var(--primary-font);
    font-size: 28px;
    text-decoration: none;
    color: var(--soft-ivory);
}

.nav-links a {
    margin: 0 20px;
    text-decoration: none;
    color: var(--soft-ivory);
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--classic-gold);
    transition: width 0.4s ease;
}

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

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

.cta-button {
    background-color: var(--classic-gold);
    color: #000;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: #e7c86a; /* A slightly brighter gold on hover */
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    color: var(--soft-ivory);
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    box-sizing: border-box;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('/images/image.png');
    background-size: cover;
    background-position: center;
    animation: kenBurns 20s infinite;
    filter: grayscale(60%) brightness(0.7);
}

@keyframes kenBurns {
    0%, 100% { transform: scale(1) rotate(0.1deg); }
    50% { transform: scale(1.1) rotate(-0.1deg); }
}


.hero-overlay {
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.3), rgba(18, 18, 18, 0.95));
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-headline {
    font-size: 8vw;
    margin-bottom: 20px;
    color: var(--soft-ivory);
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 40px auto;
    line-height: 1.7;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.hero-buttons .secondary-cta {
    background-color: transparent;
    border: 2px solid var(--soft-ivory);
    color: var(--soft-ivory);
}

.hero-buttons .secondary-cta:hover {
    background-color: var(--soft-ivory);
    color: var(--charcoal-black);
    box-shadow: 0 8px 20px rgba(234, 234, 234, 0.2);
}

/* --- CUSTOMIZE SECTION --- */
#customize {
    background-color: var(--rich-gray);
}

.customize-container {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.customize-options { flex: 2; }
.live-preview { flex: 1.5; position: sticky; top: 120px; }

.interactive-elements h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 18px;
    color: var(--soft-ivory);
}

/* Sliders */
.slider-container {
    margin-bottom: 20px;
}
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--dark-slate);
    outline: none;
    opacity: 0.7;
    transition: opacity .2s;
}
.slider:hover { opacity: 1; }
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--classic-gold);
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}
.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af; /* Lighter gray for dark mode */
    margin-top: 10px;
}

/* Card & Button Selectors */
.card-selector, .button-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.bean-card, .temp-button, .size-button {
    padding: 12px 20px;
    border: 2px solid var(--dark-slate);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background-color: var(--rich-gray);
    color: var(--soft-ivory);
}
.bean-card:hover, .temp-button:hover, .size-button:hover {
    transform: translateY(-2px);
    border-color: var(--classic-gold);
    color: var(--classic-gold);
}
.bean-card.active, .temp-button.active, .size-button.active {
    background-color: var(--classic-gold);
    color: #000;
    border-color: var(--classic-gold);
    font-weight: 700;
}

.text-input {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--dark-slate);
    font-family: var(--secondary-font);
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: var(--charcoal-black);
    color: var(--soft-ivory);
}
.text-input:focus {
    outline: none;
    border-color: var(--classic-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.3);
}
.text-input::placeholder {
    color: var(--dark-slate);
}

.order-action {
    text-align: center;
    margin-top: 40px;
}
.order-button {
    font-size: 20px;
    padding: 18px 50px;
    width: 100%;
    box-sizing: border-box;
}

/* Live Preview Coffee Cup */
.coffee-cup-wrapper {
    transform-style: preserve-3d;
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0% { transform: translateY(0px) rotateX(10deg); }
    50% { transform: translateY(-20px) rotateX(-10deg); }
    100% { transform: translateY(0px) rotateX(10deg); }
}
.coffee-cup-preview {
    width: 180px;
    height: 280px;
    background-color: #79420A; /* Default coffee color */
    border-radius: 10px 10px 25px 25px;
    position: relative;
    margin: 30px auto 0;
    transition: background-color 0.5s ease;
    box-shadow: inset 0 -10px 20px rgba(0,0,0,0.3), 0 20px 40px rgba(0,0,0,0.4);
}
.coffee-cup-lid {
    width: 200px;
    height: 35px;
    background-color: #e2e8f0;
    border-radius: 10px 10px 5px 5px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 -5px 15px rgba(0,0,0,0.2);
    z-index: 3;
}
.coffee-cup-sleeve {
    position: absolute;
    width: 110%;
    height: 120px;
    background-color: #79420A;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--primary-font);
    font-size: 32px;
    color: var(--soft-ivory);
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Steam Animation */
.steam {
    position: absolute;
    height: 50px;
    width: 2px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    left: 50%;
    top: -40px;
    opacity: 0;
    animation: steam-animation 3s ease-out infinite;
}
.steam#steam2 { left: 40%; animation-delay: 0.5s; }
.steam#steam3 { left: 60%; animation-delay: 1s; }

@keyframes steam-animation {
    0% { transform: translateY(0) scaleX(1); opacity: 0; }
    15% { opacity: 1; }
    50% { transform: translateY(-30px) scaleX(3); }
    95% { opacity: 0; }
    100% { transform: translateY(-60px) scaleX(1); }
}


/* --- MENU SECTION --- */
#menu {
    background-color: var(--charcoal-black);
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}
.menu-item {
    background-color: var(--rich-gray);
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.menu-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0, 0.35);
}
.menu-item h3 { margin-top: 0; font-size: 24px; }
.menu-item .price { font-weight: 700; font-size: 20px; margin: 20px 0; color: var(--soft-ivory); }

/* --- ABOUT US SECTION --- */
#about {
    background-color: var(--rich-gray);
}
.about-container {
    display: flex;
    align-items: center;
    gap: 60px;
}
.about-text { flex: 1; }
.about-image-wrapper { flex: 1; }
.about-image {
    width: 100%;
    border-radius: 15px;
    box-shadow: var(--shadow);
    filter: brightness(0.9);
}

/* --- TESTIMONIALS SECTION --- */
#testimonials {
    background-color: var(--charcoal-black);
}
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-quote {
    background-color: var(--rich-gray);
    padding: 30px;
    border-radius: 15px;
    border-left: 5px solid var(--classic-gold);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.4s ease;
}
.testimonial-quote:nth-child(even) {
    transform: perspective(1000px) rotateY(5deg);
}
.testimonial-quote:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.05);
}
.testimonial-quote p { margin: 0 0 15px 0; font-style: italic; }
.testimonial-quote .author { font-weight: 700; text-align: right; font-style: normal; color: var(--soft-ivory); }

/* --- FOOTER --- */
.footer {
    background-color: #000;
    color: #9ca3af; /* Brighter default text color */
    padding: 80px 40px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-column .logo {
    color: var(--soft-ivory);
}
.footer-column h3 { color: var(--soft-ivory); }
.footer-column a {
    color: #9ca3af; /* Brighter link color */
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: color 0.3s, padding-left 0.3s;
}
.footer-column a:hover {
    color: var(--soft-ivory);
    padding-left: 5px;
}
.social-icons a {
    display: inline-block;
    margin-right: 15px;
}
.social-icons svg {
    width: 24px;
    height: 24px;
    fill: #9ca3af; /* Brighter icon color */
    transition: fill 0.3s, transform 0.3s;
}
.social-icons a:hover svg {
    fill: var(--soft-ivory);
    transform: scale(1.2);
}
.footer-bottom-bar {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--dark-slate);
    font-size: 14px;
    color: #9ca3af; /* Brighter text color */
}

/* --- ANIMATIONS & RESPONSIVE --- */
.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.show {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    animation: fadeIn 1.5s 0.5s ease-out forwards;
    opacity: 0;
}
@keyframes fadeIn {
    to { opacity: 1; }
}

@media (max-width: 992px) {
    .customize-container, .about-container {
        flex-direction: column;
    }
    .live-preview {
        position: static;
        margin-top: 50px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 15px;
    }
    .nav-links {
        margin: 15px 0;
    }
    .hero-headline {
        font-size: 12vw;
    }
    .section-title {
        font-size: 36px;
    }
}
