/* === GLOBAL === */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    opacity: 0;
    transform: translateX(20px) scale(0.98);
    transition: all 0.2s ease;
}
body.loaded { opacity:1; transform:translateX(0) scale(1);}
body.exit { opacity:0; transform:translateX(-40px) scale(0.95);}

/* NAVBAR */
nav {
    position: sticky; top:0; background:#fff;
    display:flex; justify-content:space-between;
    padding:15px 20px; box-shadow:0 2px 10px rgba(0,0,0,0.1);
    z-index:1000;
}
nav h2, .logo h2 { color: rgb(253,105,6); margin:0; }
nav a { margin:10px; text-decoration:none; color:black; font-weight:500;}
nav a.active { color:rgb(253,105,6); font-weight:bold; border-bottom:2px solid rgb(253,105,6); }

/* LOGO */
.logo { display:flex; align-items:center; }
.logo img { height:40px; width:40px; object-fit:cover; margin-right:10px; border-radius:50%; }

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;

    display: flex;
    justify-content: center; /* horizontal center */
    align-items: center;     /* vertical center */
}

/* ===== SLIDER ===== */
.slider {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    position: absolute; /* slides behind content */
    top: 0;
    left: 0;
}

.slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== HERO CONTENT ===== */
.hero-content {
    position: relative; /* relative to flex parent */
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
    text-shadow: 1px 1px 8px rgba(0,0,0,0.6);
}

.hero-content button {
    background: rgb(253,105,6);
    color: white;
    padding: 12px 28px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.4);
    transition: transform 0.2s;
}

.hero-content button:hover {
    transform: scale(1.05);
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 28px; }
    .hero-content p { font-size: 14px; }
    .hero-content button { font-size: 16px; padding: 10px 20px; }
}
.hero::after { content:""; position:absolute; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.4);}
.slider-dots { position:absolute; bottom:20px; width:100%; text-align:center; z-index:3; }
.dot { height:10px; width:10px; margin:5px; display:inline-block; background:rgba(255,255,255,0.5); border-radius:50%; transition:0.3s;}
.dot.active { background:rgb(253,105,6); transform:scale(1.2);}

/* MENU PREVIEW / MENU PAGE */
.menu-preview, .menu-section { padding:40px 20px; text-align:center; }
.grid {
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px,1fr));
    gap:20px;
}
.card { border-radius:10px; overflow:hidden; box-shadow:0 5px 15px rgba(0,0,0,0.1); transition:transform 0.3s;}
.card:hover { transform:translateY(-10px);}
.card img { width:100%; height:180px; object-fit:cover; }
.card-body { padding:15px; text-align:left; }
.card-body h3 { margin-bottom:5px; color:green; font-size:16px;}
.card-body p { margin:5px 0; }
.price { color:red; font-weight:bold; }

/* BRANCHES */
.branches { padding:50px 20px; text-align:center; }
.branch-card {
    border-radius:10px; box-shadow:0 5px 15px rgba(0,0,0,0.1);
    padding:30px 20px; margin:40px auto; max-width:800px; transition:transform 0.3s;
}
.branch-card:hover { transform:translateY(-5px); }
.branch-card h3 { margin-bottom:10px; color:green; }
.branch-card p { margin:5px 0; }
.branch-card iframe { width:100%; height:300px; border:0; margin-top:15px; border-radius:10px;}

/* CTA */
/* CTA */
.cta { 
    background: green; 
    color: white; 
    text-align: center; 
    padding: 15px 20px; /* reduced from 30px to 15px vertically */
}
.cta button { 
    background: white; 
    color: green; 
    padding: 10px 20px; 
    border: none; 
    border-radius: 5px; 
    cursor: pointer; 
}
/* FOOTER */
footer { background:rgb(253,105,6); color:white; text-align:center; padding:20px; }

/* RESPONSIVE */
@media(max-width:768px){
    nav { flex-direction:column; align-items:center; text-align:center; }
    nav div { margin-top:10px; }
    nav a { display:inline-block; margin:5px 10px; }
    .logo { justify-content:center; }

    .hero { height:60vh; text-align:center; justify-content:center; }
    .hero-content { top:30%; transform:translateY(-30%); padding:10px; }
    .hero-content h1 { font-size:28px; }
    .hero-content p { font-size:14px; }
    .hero-content button { padding:10px 20px; font-size:14px; }

    .grid { grid-template-columns:1fr; }
    .branch-card { padding:20px 10px; }
    .branch-card iframe { height:200px; }
    body { transform:none; }
    section { padding:30px 15px; }
    h2 { font-size:22px; }

    /* Mobile menu preview 2x2 */
    .menu-preview .grid { grid-template-columns:repeat(2,1fr); gap:15px; }
    .menu-preview .card img { height:120px; }
    .card-body h3 { font-size:14px; }
    .price { font-size:13px; }
}

/* MENU PAGE 3 ITEMS PER ROW */
.menu-section .grid { grid-template-columns:repeat(3,1fr);}
/* Active link style */
nav a.active {
    color: rgb(253,105,6); /* rangi ya active, orange */
    font-weight: bold;
    border-bottom: 2px solid rgb(253,105,6);
}
/* POPUP */
.popup {
    display: none;
    position: fixed;
    top:0;
    left:0;
    width:100%;
    height:100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 10000;
    flex-direction: column;
}

.popup img {
    max-width: 90%;
    max-height: 60%;
    border-radius: 10px;
}

.popup .popup-info {
    color: white;
    text-align: center;
    margin-top: 15px;
}

.popup .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}
/* ================= GLOBAL ================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #fff;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* ================= APP CONTAINER ================= */
.app {
    width: 100%;
    max-width: 1200px;
    height: 80vh;
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    border-radius: 20px;
}

/* ================= HEADER ================= */
.header {
    background: rgb(253,105,6);
    color: white;
    padding: 12px;
    text-align: center;
    font-weight: bold;
    font-size: 18px;
}

/* ================= CHAT BOX ================= */
.chat-box {
    flex: 1;
    padding: 10px;
    overflow-y: auto;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ================= INPUT AREA ================= */
.input-area {
    display: flex;
    border-top: 1px solid #ddd;
    background: #fff;
    position: sticky;
    bottom: 0;
    background: #fff;
    z-index: 10;
}

.input-area textarea {
    flex: 1;
    border: none;
    outline: none;
    padding: 12px;
    resize: none;
    font-size: 14px;
    height: 50px;
}

.input-area button {
    width: 55px;
    border: none;
    background: rgb(253,105,6);
    color: white;
    cursor: pointer;
    font-size: 18px;
    
}

/* ================= MESSAGES ================= */
.msg {
    padding: 10px 12px;
    border-radius: 12px;
    max-width: 75%;
    font-size: 14px;
    word-wrap: break-word;
    animation: pop 0.2s ease;
}

/* USER MESSAGE */
.user {
    background: rgb(253,105,6);
    color: white;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

/* BOT MESSAGE */
.bot {
    background: white;
    border: 1px solid #ddd;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

/* ================= ANIMATION ================= */
@keyframes pop {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================= SCROLLBAR ================= */
.chat-box::-webkit-scrollbar {
    width: 5px;
}

.chat-box::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

/* ================= MOBILE ================= */
@media (max-width: 600px) {
    .app {
        width: 100%;
        height: 50dvh;
        max-width: 100%;
        border-radius: 0;
        max-width: 100%;
    }
}
.chat-box {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.input-area textarea {
    font-size: 16px;
}

.msg {
    padding: 10px;
    margin: 6px;
    border-radius: 10px;
    max-width: 75%;
    font-size: 14px;
}

.user {
    background: rgb(253,105,6);
    color: white;
    margin-left: auto;
}

.bot {
    background: #fff;
    border: 1px solid #ddd;
    margin-right: auto;
}
/* ================= TYPING DOTS ================= */
.dots {
    display: flex;
    gap: 4px;
    padding: 5px 0;
}

.dots span {
    width: 6px;
    height: 6px;
    background: #999;
    border-radius: 50%;
    animation: bounce 1.2s infinite ease-in-out;
}

.dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.3;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}
/* LAYOUT */
.layout {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100dvh;
    gap: 4px; /* ndogo sana */
}

/* RIGHT SIDE */
.side {
    width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* TEXT BOX */
.side-text {
    background: rgb(253,105,6);
    color: white;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulse 1.5s infinite;
}

/* ARROW */
.arrow {
    display: inline-block;
    animation: moveArrow 0.8s infinite;
}

@keyframes moveArrow {
    0% { transform: translateX(0); }
    50% { transform: translateX(6px); }
    100% { transform: translateX(0); }
}

/* PULSE EFFECT */
@media (max-width: 768px) {

    .layout {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: auto; /* 🔥 muhimu sana */
    gap: 4px;
    }

    .side {
        width: 50px;
        height: 50dvh; /* muhimu sana */
        display: flex;
        align-items: stretch;
    }

    .side-text {
        writing-mode: vertical-rl;
        transform: rotate(180deg);
        font-size: 12px;
        padding: 6px 2px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .arrow {
        transform: rotate(90deg);
        animation: moveArrowMobile 0.8s infinite;
    }

    @keyframes moveArrowMobile {
        0% { transform: rotate(90deg) translateY(0); }
        50% { transform: rotate(90deg) translateY(6px); }
        100% { transform: rotate(90deg) translateY(0); }
    }
}