/* ===========================
   HOME PAGE STYLES
   =========================== */

/* Hero with carousel */
.hero-main {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    color: var(--color-text-invert);
    padding: 0;
}

/* خلي الكاروسيل ياخذ كامل ارتفاع الهيرو */
.hero-carousel,
.hero-carousel .carousel-inner,
.hero-carousel .carousel-item,
.hero-carousel .hero-slide {
    height: 100%;
}

/* كل سلايد */
.hero-slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 0 3rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: inset 0 -60px 120px rgba(15, 23, 42, 0.6);
}

/* سلايد 1 */
.hero-slide-1 {
    background-image:
        linear-gradient(135deg, rgba(15, 23, 42, 0.80), rgba(37, 99, 235, 0.70)),
        url("../images/hero-1.jpg");
}

/* سلايد 2 */
.hero-slide-2 {
    background-image:
        linear-gradient(135deg, rgba(30, 64, 175, 0.80), rgba(59, 130, 246, 0.70)),
        url("../images/hero-2.jpg");
}

/* سلايد 3 */
.hero-slide-3 {
    background-image:
        linear-gradient(135deg, rgba(17, 24, 39, 0.85), rgba(59, 130, 246, 0.65)),
        url("../images/hero-3.jpg");
}

/* لو حاب تخفّف الخلفية بالفاتح ممكن تعدل الألوان لاحقًا */

/* نقاط الكاروسيل */
.hero-carousel .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.5);
}

.hero-carousel .carousel-indicators .active {
    background-color: #ffffff;
}

/* أسهم التنقل */
.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
    filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.8));
}

/* عنوان ونص الهيرو (نفس القديم) */
.hero-title {
    font-weight: 800;
    font-size: clamp(2.1rem, 3vw + 1.5rem, 3rem);
    letter-spacing: 0.01em;
    margin-bottom: 0.75rem;
    text-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
}

.hero-subtitle {
    max-width: 780px;
    margin-inline: auto;
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.96;
}

.hero-actions .btn {
    min-width: 160px;
}

/* Animations */
.hero-main .hero-title {
    animation: fadeUpSoft 0.8s ease-out forwards;
}
.hero-main .hero-subtitle {
    animation: fadeUpSoft 0.9s ease-out forwards;
}
.hero-main .hero-actions {
    animation: fadeUpSoft 1s ease-out forwards;
}

/* باقي أقسام الهوم كما كانت */

/* Sections on home */
.home-section {
    position: relative;
    z-index: 1;
}

/* About section */
.home-about {
    background: linear-gradient(
            180deg,
            color-mix(in srgb, var(--color-bg-soft) 60%, transparent),
            var(--color-bg-body)
    );
}

.home-about .image-placeholder {
    max-width: 420px;
    margin-inline: auto;
}

/* Products teaser */
.home-products {
    background-color: var(--color-bg-body);
}

.home-products .product-card {
    position: relative;
}

.home-products .product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.16), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-med);
    pointer-events: none;
}

.home-products .product-card:hover::before {
    opacity: 1;
}

.product-image-wrapper {
    padding: 0.75rem;
}

/* News teaser */
.home-news {
    background: linear-gradient(
            180deg,
            var(--color-bg-body),
            color-mix(in srgb, var(--color-bg-soft) 80%, transparent)
    );
}

/* Contact teaser */
.home-contact {
    position: relative;
    padding-block: 4.5rem;
    background: radial-gradient(circle at top left, #1a3a8c, #020617);
    color: var(--color-text-invert);
}

.home-contact::before {
    content: "";
    position: absolute;
    inset-inline: -20%;
    top: -120px;
    height: 260px;
    background:
        radial-gradient(circle at top, rgba(96, 165, 250, 0.35), transparent 70%),
        radial-gradient(circle at center, rgba(251, 191, 36, 0.25), transparent 72%);
    opacity: 0.75;
    filter: blur(10px);
}

/* Cards inside contact section */
.home-contact .contact-card {
    border-radius: var(--radius-lg);
}

/* Mobile tweaks */
@media (max-width: 576px) {
    .hero-slide {
        padding-top: 5rem;
        padding-bottom: 3rem;
        min-height: 64vh;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .image-placeholder {
        min-height: 210px;
    }
}