/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    background: #f5f5f5;
}

/* ================= NAVBAR ================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: black;
    padding: 18px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: white;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: white;
    font-weight: 500;
    position: relative;
}

/* underline hover */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: white;
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-icon {
    display: none;
    font-size: 28px;
    color: white;
    cursor: pointer;
}

/* ================= HERO ================= */
.hero-slider {
    position: relative;
    height: 70vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.slide.active {
    opacity: 1;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        120deg,
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.35)
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 0 8%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 25px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 14px 34px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
}

.btn.primary {
    background: white;
    color: black;
}

.btn.outline {
    border: 2px solid white;
    color: white;
}

/* ================= CATEGORIES ================= */
.categories-section {
    padding: 100px 8%;
    text-align: center;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.category-card {
    position: relative;
    height: 360px;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.7)
    );
    display: flex;
    align-items: flex-end;
    padding: 30px;
    color: white;
}

/* ================= MODAL (مشترك) ================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
}

.whatsapp-btn {
    margin-top: 15px;
    background: #25D366;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

    .menu-icon {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        width: 100%;
        background: black;
        flex-direction: column;
        display: none;
        text-align: center;
    }

    .nav-links a {
        padding: 15px 0;
        font-size: 18px;
    }

    .nav-links.active {
        display: flex;
    }

    .hero-slider {
        height: 50vh;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.footer {
    background: #000;
    color: #aaa;
    text-align: center;
    padding: 25px;
    font-size: 14px;
}
