/* ===============================
GLOBAL RESET
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", Arial, sans-serif;
}

/* ===============================
BACKGROUND
================================ */
body {
    background:
        linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
        url("../image/home.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
}

.page-overlay {
    min-height: 100vh;
    backdrop-filter: blur(2px);
}

/* ===============================
NAVBAR
================================ */
nav {
    background: rgba(31,15,5,0.95);
    padding: 15px 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-wrap: wrap;
}

nav a {
    color: #ffddb0;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
}

nav a:hover {
    color: #fff;
}

/* ===============================
SLIDER
================================ */
.slider {
    width: 90%;
    max-width: 720px;
    margin: 50px auto;
    border-radius: 18px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    /* background: rgba(0,0,0,0.2); Slight contrast for slider area */
}

.slides {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.slide {
    flex: 0 0 100%;
    padding: 30px 20px 60px 20px; /* Extra bottom padding for dots */
    text-align: center;
}

.slide img {
    width: 100%;
    max-width: 520px;
    height: 260px;
    object-fit: contain;
    margin-bottom: 15px;
}

.slide p {
    font-size: 24px;
    font-weight: 600;
    color: #ffddb0;
}

.slide a {
    text-decoration: none;
}

/* Buttons */
.btn-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,152,0,0.85);
    border: none;
    font-size: 26px;
    padding: 10px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    color: #000;
    transition: 0.3s;
}

.btn-control:hover {
    background: #fff;
}

.prev { left: 15px; }
.next { right: 15px; }

/* ===============================
DOTS (AUTOMATIC INCREASE SUPPORT)
================================ */
.dots {
    position: absolute;
    bottom: 20px;
    width: 100%;
    display: flex; /* Flex ensures they stay in a row */
    justify-content: center;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ffddb0;
    border-radius: 50%;
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

/* Use .active if your JS adds 'active' or .active-dot */
.dot.active, .active-dot {
    background: #ff9800 !important;
    opacity: 1 !important;
    transform: scale(1.3);
}

/* ===============================
CATEGORY SECTION
================================ */
.category-box {
    width: 90%;
    max-width: 1100px;
    margin: 70px auto;
    text-align: center;
}

.category-box h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #ffddb0;
}

.category-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.cat-card {
    width: 280px;
    background: rgba(31,15,5,0.92);
    border-radius: 18px;
    overflow: hidden;
    color: #ffddb0;
    text-decoration: none;
    transition: 0.3s;
}

.cat-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.cat-card h3 {
    padding: 18px;
    font-size: 22px;
}

.cat-card:hover {
    transform: translateY(-10px) scale(1.05);
    background: #ff9800;
    color: #000;
}

/* ===============================
WELCOME CARD
================================ */
.card {
    width: 90%;
    max-width: 900px;
    margin: 80px auto;
    padding: 45px 30px;
    background: linear-gradient(135deg, #4b240f, #8b4513);
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.8);
}

.card h1 {
    font-size: 36px;
    color: #ffe0b2;
    margin-bottom: 15px;
}

.card p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn {
    display: inline-block;
    padding: 14px 40px;
    background: #ff9800;
    border-radius: 30px;
    color: #000;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn:hover {
    background: #fff;
}

/* ===============================
FOOTER
================================ */
footer {
    background: rgba(31,15,5,0.95);
    padding: 20px;
    text-align: center;
    margin-top: 60px;
    color: #ffddb0;
}

/* ===============================
WHATSAPP ICON (PREMIUM)
================================ */
.whatsapp-icon {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 64px;
    height: 64px;
    z-index: 9999;
    animation: floatWhatsApp 3s ease-in-out infinite;
}

.whatsapp-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
    animation: pulseWhatsApp 2.2s infinite;
}

/* ===============================
ANIMATIONS
================================ */
@keyframes pulseWhatsApp {
    0% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@keyframes floatWhatsApp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* ===============================
RESPONSIVE
================================ */
@media (max-width: 768px) {
    .slide img { height: 180px; }
    .slide p { font-size: 18px; }
    .category-box h2 { font-size: 26px; }
    .card h1 { font-size: 28px; }
    .nav { gap: 15px; }
}
