@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700;800&display=swap');

*{box-sizing:border-box;margin:0;padding:0}
body{font-family:'Tajawal',sans-serif}

/* HERO */
.hero {
    position: relative;
    min-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 18px; /* الافتراضي */
}


.hero .content { position: relative; z-index: 1; max-width: 900px; }

/* الشعار */
.hero-logo {
    height: 120px;
    margin-bottom: 12px;
}

/* سلوغان */
.slogan {
    font-size: 1.2rem;
    margin-bottom: 8px;
    opacity: .95;
}

/* العنوان */
.title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 25px;
}

/* Features */
.features-circle {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.feature {
    text-align: center;
    cursor: pointer;
    transition: 0.3s;
    padding: 20px;
    width: 180px;              /* حجم موحّد */
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}

.feature .icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #fff;
    margin: 0 auto 12px;
    border: 2px solid rgba(255,255,255,0.4);
    transition: 0.3s;
}

.feature h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-top: 6px;
}
.feature:hover {
    transform: translateY(-5px);
    background: rgba(14,165,233,0.2);
    border-color: #0ea5e9;
}

.feature:hover .icon {
    background: #38bdf8;
    border-color: #38bdf8;
    transform: scale(1.1);
}
.feature.active {
    background: rgba(14,165,233,0.3);
    border-color: #0ea5e9;
}
.feature.active .icon {
    background: #0ea5e9;
    border-color: #0ea5e9;
}

.feature-details {
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    backdrop-filter: blur(6px);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
}


.feature-details.active {
    opacity: 1;
    transform: translateY(0);
}


/* --- Responsive adjustments --- */
@media (max-width: 992px) {
    .hero-logo { height: 100px; }
    .title { font-size: 2.2rem; }
    .slogan { font-size: 1.1rem; }
    .features-circle { gap: 25px; }
    .feature .icon { width: 65px; height: 65px; font-size: 1.4rem; }
}

@media (max-width: 769px) and (min-width: 500px) {
    .hero {
        padding: 65px 12px;
        min-height: auto; /* يسمح بالتمدد */
    }

    .hero-logo { height: 80px; margin-bottom: 10px; }
    .title { font-size: 1.8rem; margin-bottom: 18px; }
    .slogan { font-size: 1rem; margin-bottom: 6px; }

    .features-circle {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* عمودين */
        gap: 20px;
        justify-items: center;  /* يخلي البوكسات بالنص */
        margin: 30px auto;
        max-width: 500px;       /* يحدد العرض عشان يصفوا 2×2 بس */
    }

    .feature .icon {
        width: 60px; height: 60px;
        font-size: 1.3rem;
    }
    .feature h3 { font-size: 0.9rem; }

    .feature-details {
        font-size: 0.95rem;
        padding: 12px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {

    .hero {
        padding: 120px 12px;
        min-height: auto; /* يسمح بالتمدد */;
    }

    .hero-logo { height: 70px; }
    .title { font-size: 1.5rem; }
    .slogan { font-size: 0.9rem; }

    .features-circle {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* عمودين */
        gap: 20px;
        justify-items: center;  /* يخلي البوكسات بالنص */
        margin: 30px auto;
        max-width: 500px;       /* يحدد العرض عشان يصفوا 2×2 بس */
    }

    .feature .icon {
        width: 55px; height: 55px;
        font-size: 1.2rem;
    }
    .feature h3 { font-size: 0.85rem; }
}
