/* --- Variables & Reset --- */
:root {
    --primary: #E88C30; 
    --secondary: #C25E28;
    --bg-cream: #FDF8E8;
    --text-dark: #4A3B32;
    --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Kanit', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-dark);
    line-height: 1.6;
}

h1, h2, h3, h4 { color: var(--secondary); font-weight: 600; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* --- Container --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.text-center { text-align: center; }
.section-padding { padding: 60px 0; }
.mt-5 { margin-top: 50px; }
.sub-text { color: #888; margin-bottom: 30px; }

/* --- Nav --- */
nav {
    background-color: var(--white);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky; top: 0; z-index: 1000;
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-text { font-family: 'Pacifico', cursive; font-size: 1.5rem; color: var(--primary); }
.lang-btn {
    border: 1px solid var(--primary); background: transparent; padding: 5px 10px;
    border-radius: 20px; cursor: pointer; color: var(--secondary); font-family: 'Kanit', sans-serif;
}
.lang-btn.active-lang, .lang-btn:hover { background: var(--primary); color: var(--white); }

/* --- Hero --- */
.hero { background-color: var(--bg-cream); text-align: center; padding: 60px 0 80px; }
.main-logo { width: 280px; margin: 0 auto 30px; border-radius: 50%; box-shadow: 0 10px 25px rgba(232, 140, 48, 0.2); }
.bounce { animation: bounce 2s infinite; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% {transform: translateY(0);} 40% {transform: translateY(-10px);} 60% {transform: translateY(-5px);} }
.hero h1 { font-size: 2.5rem; margin-bottom: 10px; color: var(--secondary); }
.cta-button {
    background-color: var(--primary); color: var(--white); padding: 15px 40px;
    border-radius: 50px; font-size: 1.2rem; font-weight: 600; display: inline-block; margin-top: 20px;
    box-shadow: 0 4px 15px rgba(232, 140, 48, 0.4); transition: transform 0.2s;
}
.cta-button:hover { transform: scale(1.05); background-color: var(--secondary); }

/* --- About --- */
.about-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
    background: var(--white); padding: 40px; border-radius: 20px; box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}
.about-image img { border-radius: 15px; box-shadow: 10px 10px 0 #F4A4A8; }
.cartoon-avatar { width: 100px; border-radius: 50%; margin-top: 20px; border: 3px solid var(--primary); }

/* --- Gallery & Cards --- */
.category-title { font-size: 1.8rem; margin-bottom: 25px; border-left: 5px solid var(--primary); padding-left: 15px; clear: both; }

.cake-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); 
    gap: 15px; 
}

.cake-card { 
    background: var(--white); 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    transition: transform 0.3s; 
    position: relative;
    height: 220px; /* Reduced height since no button */
    cursor: pointer; /* Makes it look clickable */
}

.cake-card:hover { transform: translateY(-5px); }

/* PRO FILTER on Images */
.cake-card img { 
    width: 100%; 
    height: 100%; /* Fill the whole card */
    object-fit: cover; 
    filter: brightness(1.08) contrast(1.1) saturate(1.15);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.cake-card:hover img {
    transform: scale(1.05); 
    filter: brightness(1.15) contrast(1.15) saturate(1.25);
}

/* Reference Badge */
.ref-badge {
    position: absolute;
    top: 10px; right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--secondary);
    padding: 5px 10px; border-radius: 20px;
    font-size: 0.8rem; font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); z-index: 10;
    pointer-events: none; 
}

/* --- MODAL / LIGHTBOX STYLES --- */
.modal {
    display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; 
    overflow: auto; background-color: rgba(0,0,0,0.85); backdrop-filter: blur(5px);
}
.modal-content-container {
    margin: 5% auto; width: 90%; max-width: 600px;
    background: white; border-radius: 15px; overflow: hidden; position: relative;
    animation: zoomIn 0.3s;
}
@keyframes zoomIn { from {transform:scale(0.8); opacity:0} to {transform:scale(1); opacity:1} }
.modal-content {
    width: 100%; height: auto; max-height: 70vh; object-fit: cover; display: block;
    filter: brightness(1.08) contrast(1.1) saturate(1.15);
}
.modal-footer { padding: 20px; text-align: center; background: #fff; }
#modalRef { color: var(--text-dark); margin-bottom: 15px; font-family: 'Kanit', sans-serif; }
.modal-btn {
    display: inline-block; background-color: var(--primary); color: white;
    padding: 12px 30px; border-radius: 30px; font-size: 1.2rem; font-weight: bold;
    cursor: pointer; box-shadow: 0 4px 15px rgba(232, 140, 48, 0.4); transition: 0.3s;
}
.modal-btn:hover { background-color: var(--secondary); transform: scale(1.05); }
.close-modal {
    position: absolute; top: 15px; right: 25px; color: #f1f1f1;
    font-size: 40px; font-weight: bold; cursor: pointer; z-index: 3001; transition: 0.3s;
}
.close-modal:hover { color: var(--primary); }

/* --- Footer --- */
footer { background-color: var(--secondary); color: var(--white); padding: 50px 0 20px; margin-top: 50px; text-align: center; }
.footer-logo h2 { font-family: 'Pacifico', cursive; color: var(--white); font-size: 2rem; }
.contact-info p { margin: 10px 0; }
.copyright { margin-top: 40px; font-size: 0.8rem; opacity: 0.8; }
.float-messenger {
    position: fixed; bottom: 30px; right: 30px; background-color: var(--primary); color: white;
    width: 60px; height: 60px; border-radius: 50%; text-align: center; line-height: 60px; font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.3); z-index: 2000; transition: background 0.3s;
}
.float-messenger:hover { background-color: var(--secondary); }

/* Mobile */
@media (max-width: 768px) {
    .hero h1 { font-size: 1.8rem; }
    .about-grid { grid-template-columns: 1fr; }
    .main-logo { width: 200px; }
    .cake-grid { grid-template-columns: repeat(2, 1fr); }
    .modal-content-container { margin: 20% auto; width: 95%; }
}