@import url("https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Cairo:wght@300;400;600;700;800&display=swap");

:root {
    /* الألوان الأساسية */
    --primary-purple: #9b59b6;
    --secondary-purple: #8e44ad;
    --light-purple: #e8d5f2;
    --very-light-purple: #f8e8ff;
    --soft-pink: #f8b4d9;
    --white: #ffffff;
    --text-dark: #2c3e50;
    --text-light: #7d8fa3;

    /* خلفيات فاتحة */
    --surface-1: #fffdfe;
    --surface-2: #fbf4ff;
    --surface-3: #f5ecfb;
    --line-soft: rgba(155, 89, 182, 0.14);

    /* الخطوط */
    --font-primary: "Cairo", sans-serif;
    --font-secondary: "Amiri", serif;

    /* المسافات */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;

    /* الانتقالات */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    --transition-slow: 0.8s ease;

    /* الانحناءات */
    --radius-sm: 0.75rem;
    --radius-md: 1.25rem;
    --radius-lg: 1.75rem;
    --radius-xl: 2.5rem;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-primary);
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--surface-1);
}

a {
    text-decoration: none !important;
}

.cta-btn,
.btn-primary,
.btn-secondary,
.nav-item {
    text-decoration: none !important;
}

/* ===== القسم الرئيسي — خلفية فاتحة نورانية ===== */
.about-section {
    position: relative;
    padding: clamp(4rem, 10vw, 7rem) 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%,
            var(--very-light-purple) 0%,
            transparent 65%),
        radial-gradient(ellipse 70% 50% at 100% 100%, #fff2f8 0%, transparent 60%),
        linear-gradient(180deg,
            var(--surface-1) 0%,
            var(--surface-2) 55%,
            var(--surface-3) 100%);
    overflow: hidden;
    isolation: isolate;
    color: var(--text-dark);
    direction: rtl;
}

.about-section::before,
.about-section::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            var(--line-soft),
            transparent);
    z-index: 1;
}

.about-section::before {
    top: 0;
}

.about-section::after {
    bottom: 0;
}

/* ===== النمط الهندسي الإسلامي (محفوظ، بلون بنفسجي فاتح) ===== */
.islamic-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.7;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L48.5 31.5L80 40L48.5 48.5L40 80L31.5 48.5L0 40L31.5 31.5Z' fill='none' stroke='%239B59B6' stroke-opacity='0.16' stroke-width='1'/%3E%3Ccircle cx='40' cy='40' r='12' fill='none' stroke='%23F8B4D9' stroke-opacity='0.22' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    animation: patternDrift 60s linear infinite;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 35%,
            #000 25%,
            transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 35%,
            #000 25%,
            transparent 78%);
}

@keyframes patternDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 80px 80px;
    }
}

/* ===== الطبقات الزخرفية المبتكرة (بديل الدوائر) ===== */
.geo-layers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

/* أشعة نورانية متناظرة من الأعلى */
.geo-rays {
    position: absolute;
    top: -12%;
    left: 50%;
    width: min(1100px, 120%);
    aspect-ratio: 1 / 1;
    transform: translateX(-50%);
    background: repeating-conic-gradient(from 195deg at 50% 0%,
            rgba(155, 89, 182, 0.055) 0deg 3deg,
            transparent 3deg 12deg);
    mask-image: radial-gradient(ellipse 60% 55% at 50% 0%,
            #000 10%,
            transparent 72%);
    -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 0%,
            #000 10%,
            transparent 72%);
    animation: raysBreathe 14s ease-in-out infinite;
}

/* معينات هندسية متداخلة — الشكل المبتكر البديل */
.geo-diamond {
    position: absolute;
    top: 52%;
    left: 50%;
    border: 1px solid rgba(155, 89, 182, 0.16);
    border-radius: 14%;
    transform-origin: center;
}

.dia-1 {
    width: 420px;
    height: 420px;
    margin: -210px 0 0 -210px;
    border-color: rgba(248, 180, 217, 0.42);
    animation: diaSpin 34s linear infinite;
}

.dia-2 {
    width: 620px;
    height: 620px;
    margin: -310px 0 0 -310px;
    border-color: rgba(155, 89, 182, 0.16);
    animation: diaSpin 52s linear infinite reverse;
}

.dia-3 {
    width: 820px;
    height: 820px;
    margin: -410px 0 0 -410px;
    border-color: rgba(155, 89, 182, 0.09);
    border-radius: 20%;
    animation: diaSpin 74s linear infinite;
}

/* أقواس محرابية على الأطراف */
.geo-arch {
    position: absolute;
    width: 240px;
    height: 340px;
    border: 1.5px solid rgba(155, 89, 182, 0.12);
    border-bottom: none;
    border-radius: 50% 50% 0 0 / 65% 65% 0 0;
    bottom: -60px;
}

.arch-start {
    right: -70px;
}

.arch-end {
    left: -70px;
    height: 280px;
    width: 200px;
}

/* لمسات لونية ناعمة */
.geo-wash {
    position: absolute;
    border-radius: 46% 54% 58% 42% / 52% 46% 54% 48%;
    filter: blur(60px);
    opacity: 0.5;
}

.wash-a {
    width: 300px;
    height: 300px;
    top: 4%;
    right: -6%;
    background: rgba(232, 213, 242, 0.85);
    animation: washFloat 16s ease-in-out infinite;
}

.wash-b {
    width: 260px;
    height: 260px;
    bottom: 6%;
    left: -5%;
    background: rgba(248, 180, 217, 0.55);
    animation: washFloat 20s ease-in-out infinite reverse;
}

@keyframes diaSpin {
    from {
        transform: rotate(45deg);
    }

    to {
        transform: rotate(405deg);
    }
}

@keyframes raysBreathe {

    0%,
    100% {
        opacity: 0.75;
    }

    50% {
        opacity: 1;
    }
}

@keyframes washFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(-20px, 14px) scale(1.05);
    }

    66% {
        transform: translate(14px, -12px) scale(0.97);
    }
}

/* ===== الحاوية ===== */
.about-section .container {
    width: min(92%, 1200px);
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

/* ===== رأس القسم ===== */
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(2rem, 5vw, 3rem);
    animation: fadeInUp 1s ease both;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(155, 89, 182, 0.22);
    color: var(--secondary-purple);
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 10px 24px -14px rgba(142, 68, 173, 0.35);
}

.section-tag::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-purple);
    box-shadow: 0 0 12px rgba(155, 89, 182, 0.7);
}

.section-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.2rem, 5.5vw, 3.6rem);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: linear-gradient(135deg,
            var(--primary-purple) 0%,
            #c86fc9 45%,
            var(--soft-pink) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-lead {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-light);
    max-width: 540px;
    margin: 0 auto;
    font-weight: 400;
}

/* ===== الفاصل مع الشعار (بديل الشعار المركزي المتراكب) ===== */
.emblem-divider {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 620px;
    margin: 0 auto clamp(2.5rem, 6vw, 4rem);
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(155, 89, 182, 0.35),
            transparent);
}

.emblem-frame {
    position: relative;
    flex-shrink: 0;
    width: 96px;
    height: 96px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(155, 89, 182, 0.18);
    border-radius: 26%;
    transform: rotate(45deg);
    box-shadow: 0 22px 46px -24px rgba(142, 68, 173, 0.4);
}

.emblem-halo {
    position: absolute;
    inset: -14px;
    border-radius: 26%;
    border: 1px dashed rgba(248, 180, 217, 0.7);
    animation: haloSpin 26s linear infinite;
}

.emblem-star {
    width: 46px;
    height: 46px;
    transform: rotate(-45deg);
    filter: drop-shadow(0 6px 14px rgba(155, 89, 182, 0.35));
    animation: slowSpin 24s linear infinite;
}

@keyframes haloSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slowSpin {
    from {
        transform: rotate(-45deg);
    }

    to {
        transform: rotate(315deg);
    }
}

/* ===== حركات الدخول ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== التكيف مع الشاشات ===== */
@media (max-width: 992px) {
    .dia-3 {
        display: none;
    }

    .geo-arch {
        opacity: 0.6;
    }
}

@media (max-width: 576px) {
    .about-section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.9rem;
    }

    .dia-1,
    .dia-2 {
        opacity: 0.6;
    }
}

@media (prefers-reduced-motion: reduce) {

    .islamic-pattern,
    .geo-rays,
    .geo-diamond,
    .geo-wash,
    .emblem-halo,
    .emblem-star,
    .orbit-card,
    .section-header {
        animation: none !important;
    }
}

/* ===== لوحة المحاريب النورانية — بديل الكاردات ===== */
.mihrab-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2rem, 5vw, 4.5rem);
    row-gap: clamp(2rem, 4vw, 3.25rem);
    align-items: stretch;
}

/* فاصل زخرفي رفيع بين المحاريب */
.mihrab-divider {
    grid-column: 1 / -1;
    height: 1px;
    background: linear-gradient(90deg,
            transparent,
            rgba(155, 89, 182, 0.28),
            transparent);
    position: relative;
}

.mihrab-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    transform: translate(-50%, -50%) rotate(45deg);
    border-radius: 30%;
    background: var(--surface-1);
    border: 1px solid rgba(155, 89, 182, 0.35);
}

/* المحراب: لا صندوق ولا حدود مربعة */
.mihrab {
    position: relative;
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: clamp(1rem, 2.5vw, 1.75rem);
    padding-block: 0.5rem;
    animation: fadeInUp 1s ease both;
}

.mihrab:nth-of-type(2) {
    animation-delay: 0.15s;
}

.mihrab:nth-of-type(3) {
    animation-delay: 0.3s;
}

.mihrab-wide {
    grid-column: 1 / -1;
    grid-template-columns: 96px minmax(0, 1fr);
}

/* القوس المحرابي — النحت الضوئي */
.mihrab-arch {
    position: relative;
    width: 96px;
    height: 150px;
    border: 1px solid rgba(155, 89, 182, 0.22);
    border-bottom: none;
    border-radius: 48px 48px 6px 6px;
    background:
        linear-gradient(180deg,
            rgba(248, 180, 217, 0.16) 0%,
            rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.92),
            rgba(251, 244, 255, 0.55));
    box-shadow:
        inset 0 14px 30px -18px rgba(142, 68, 173, 0.45),
        0 20px 40px -30px rgba(76, 29, 110, 0.5);
    display: grid;
    place-items: center;
    transition:
        box-shadow var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast);
}

/* هالة النور داخل القوس */
.arch-light {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 78px;
    height: 78px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(248, 180, 217, 0.55) 0%,
            rgba(155, 89, 182, 0.14) 45%,
            transparent 72%);
    filter: blur(10px);
    animation: archBreathe 6s ease-in-out infinite;
}

/* الرقم العربي في تاج القوس */
.arch-index {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-secondary);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--secondary-purple);
    opacity: 0.55;
}

/* المشكاة/الأيقونة أسفل القوس */
.arch-lamp {
    position: absolute;
    bottom: -22px;
    left: 50%;
    width: 52px;
    height: 52px;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 30%;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1.15rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--soft-pink));
    box-shadow:
        0 16px 30px -12px rgba(155, 89, 182, 0.55),
        0 0 0 6px var(--surface-1);
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

.arch-lamp i {
    transform: rotate(-45deg);
}

/* حركة التفاعل — بدون رفع صندوق */
.mihrab:hover .mihrab-arch {
    border-color: rgba(155, 89, 182, 0.4);
    box-shadow:
        inset 0 18px 36px -18px rgba(142, 68, 173, 0.55),
        0 26px 50px -30px rgba(76, 29, 110, 0.55);
}

.mihrab:hover .arch-lamp {
    transform: translateX(-50%) rotate(135deg) scale(1.06);
}

.mihrab:hover .mihrab-rule {
    width: 100%;
}

/* النص */
.mihrab-body {
    padding-top: 0.35rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.mihrab-body .btn-send {
    margin-top: auto !important;
}

.mihrab-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.45rem, 2.6vw, 1.85rem);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

.mihrab-rule {
    display: block;
    width: 54px;
    height: 2px;
    margin: 0.7rem 0 1rem;
    border-radius: 2px;
    background: linear-gradient(90deg,
            var(--primary-purple),
            var(--soft-pink),
            transparent);
    transition: width var(--transition-medium);
}

.mihrab-text {
    color: var(--text-light);
    font-size: clamp(0.95rem, 1.4vw, 1.05rem);
    line-height: 1.95;
    margin-bottom: 0.9rem;
}

.mihrab-text:last-child {
    margin-bottom: 0;
}

@keyframes archBreathe {

    0%,
    100% {
        opacity: 0.75;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.08);
    }
}

/* ===== قائمة القيم داخل المحراب ===== */
.values-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 2rem;
}

.values-list li {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px dashed rgba(155, 89, 182, 0.18);
    color: var(--text-light);
    font-size: clamp(0.92rem, 1.4vw, 1rem);
    line-height: 1.7;
}

.values-list strong {
    display: block;
    color: var(--secondary-purple);
    font-weight: 700;
    font-size: 0.98rem;
}

.value-dot {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    font-size: 0.68rem;
    color: var(--white);
    border-radius: 30%;
    transform: rotate(45deg);
    background: linear-gradient(135deg, var(--primary-purple), var(--soft-pink));
    box-shadow: 0 8px 16px -8px rgba(155, 89, 182, 0.55);
}

.value-dot i {
    transform: rotate(-45deg);
}

/* ===== التكيف ===== */
@media (max-width: 992px) {
    .mihrab-gallery {
        grid-template-columns: 1fr;
    }

    .mihrab-wide {
        grid-column: 1;
    }
}

@media (max-width: 576px) {
    .mihrab {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        justify-items: center;
        text-align: center;
    }

    .mihrab-wide {
        grid-template-columns: 1fr;
    }

    .mihrab-body {
        text-align: right;
    }

    .mihrab-rule {
        margin-inline: 0;
    }

    .mihrab-arch {
        width: 84px;
        height: 128px;
        border-radius: 42px 42px 6px 6px;
    }

    .values-list {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {

    .arch-light,
    .mihrab {
        animation: none !important;
    }
}

/* ===== قسم تواصل بنا — النسق النوراني ===== */
.contact-section {
    position: relative;
    padding: clamp(4rem, 10vw, 7rem) 0;
    background:
        radial-gradient(ellipse 90% 60% at 50% -10%, var(--very-light-purple) 0%, transparent 65%),
        radial-gradient(ellipse 70% 50% at 0% 100%, #fff2f8 0%, transparent 60%),
        linear-gradient(180deg, var(--surface-1) 0%, var(--surface-2) 55%, var(--surface-3) 100%);
    overflow: hidden;
    isolation: isolate;
    direction: rtl;
    color: var(--text-dark);
    font-family: var(--font-primary);
}

.contact-section::before,
.contact-section::after {
    content: "";
    position: absolute;
    inset-inline: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line-soft), transparent);
    z-index: 1;
}

.contact-section::before {
    top: 0;
}

.contact-section::after {
    bottom: 0;
}

.contact-section .container {
    width: min(92%, 1200px);
    margin-inline: auto;
    position: relative;
    z-index: 2;
}

/* ===== الشبكة الرئيسية ===== */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

/* ===== الجانب التعريفي ===== */
.contact-aside {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.25rem);
    animation: fadeInUp 1s ease both;
}

.contact-aside .mihrab {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.contact-aside .mihrab-arch {
    position: relative;
    width: 96px;
    height: 150px;
    border: 1px solid rgba(155, 89, 182, 0.22);
    border-bottom: none;
    border-radius: 48px 48px 6px 6px;
    background:
        linear-gradient(180deg, rgba(248, 180, 217, 0.16) 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(251, 244, 255, 0.55));
    box-shadow:
        inset 0 14px 30px -18px rgba(142, 68, 173, 0.45),
        0 20px 40px -30px rgba(76, 29, 110, 0.5);
    transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.contact-aside .mihrab:hover .mihrab-arch {
    border-color: rgba(155, 89, 182, 0.4);
    box-shadow:
        inset 0 18px 36px -18px rgba(142, 68, 173, 0.55),
        0 26px 50px -30px rgba(76, 29, 110, 0.55);
}

.contact-aside .mihrab:hover .arch-lamp {
    transform: translateX(-50%) rotate(135deg) scale(1.06);
}

.contact-aside .mihrab:hover .mihrab-rule {
    width: 100%;
}

/* ===== لوح الرسالة (الفورم) ===== */
.contact-scroll {
    position: relative;
    padding: clamp(2.75rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 2.75rem) clamp(2rem, 4vw, 2.75rem);
    margin-top: 34px;
    border: 1px solid rgba(155, 89, 182, 0.18);
    border-radius: 100px 100px var(--radius-lg) var(--radius-lg);
    background:
        radial-gradient(ellipse 70% 40% at 50% 0%, rgba(248, 180, 217, 0.18) 0%, transparent 60%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(251, 244, 255, 0.75));
    backdrop-filter: blur(10px);
    box-shadow:
        inset 0 20px 46px -30px rgba(142, 68, 173, 0.45),
        0 40px 70px -45px rgba(76, 29, 110, 0.45);
    animation: fadeInUp 1s ease 0.15s both;
}

/* تاج اللوح */
.scroll-crown {
    position: absolute;
    top: -34px;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 70px;
    pointer-events: none;
}

.crown-arch {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(155, 89, 182, 0.2);
    border-bottom: none;
    border-radius: 70px 70px 0 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

.crown-lamp {
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 56px;
    height: 56px;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 30%;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--soft-pink));
    box-shadow:
        0 16px 30px -12px rgba(155, 89, 182, 0.55),
        0 0 0 6px var(--surface-1);
    animation: crownFloat 6s ease-in-out infinite;
}

.crown-lamp i {
    transform: rotate(-45deg);
}

@keyframes crownFloat {

    0%,
    100% {
        transform: translateX(-50%) rotate(45deg) translateY(0);
    }

    50% {
        transform: translateX(-50%) rotate(45deg) translateY(-5px);
    }
}

.scroll-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.35rem;
}

.scroll-sub {
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

/* ===== الحقول العائمة ===== */
.field-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
}

.field {
    position: relative;
    margin-bottom: 1.85rem;
}

.field input,
.field textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid rgba(155, 89, 182, 0.25);
    background: transparent;
    padding: 0.85rem 0.35rem 0.6rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--text-dark);
    outline: none;
    resize: vertical;
    transition: border-color var(--transition-fast), background var(--transition-fast);
}

.field textarea {
    min-height: 130px;
    line-height: 1.9;
}

.field label {
    position: absolute;
    top: 0.9rem;
    right: 0.35rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-light);
    font-size: 1rem;
    pointer-events: none;
    transition: all var(--transition-fast);
}

.field label i {
    color: var(--primary-purple);
    font-size: 0.9rem;
}

.field input:focus+label,
.field input:not(:placeholder-shown)+label,
.field textarea:focus+label,
.field textarea:not(:placeholder-shown)+label {
    top: -0.85rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--secondary-purple);
}

/* خط النور تحت الحقل */
.field-line {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 2px;
    width: 0;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--primary-purple), var(--soft-pink));
    transition: width var(--transition-medium);
}

.field input:focus~.field-line,
.field textarea:focus~.field-line {
    width: 100%;
}

/* ===== زر الإرسال ===== */
.btn-send {
    position: relative;
    width: 100%;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary-purple), var(--primary-purple) 55%, var(--soft-pink));
    box-shadow: 0 22px 40px -20px rgba(142, 68, 173, 0.65);
    overflow: hidden;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-send:hover {
    transform: translateY(-3px);
    box-shadow: 0 30px 52px -22px rgba(142, 68, 173, 0.75);
}

.btn-send:active {
    transform: translateY(-1px);
}

.btn-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 35%, rgba(255, 255, 255, 0.45) 50%, transparent 65%);
    transform: translateX(-120%);
    transition: transform 0.8s ease;
}

.btn-send:hover .btn-glow {
    transform: translateX(120%);
}

.scroll-note {
    margin-top: 1.1rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.scroll-note i {
    color: var(--primary-purple);
    margin-inline-end: 0.3rem;
}

/* ===== التكيف مع الشاشات ===== */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-section .geo-arch {
        opacity: 0.6;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 3rem 0;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

    .contact-aside .mihrab {
        grid-template-columns: 72px 1fr;
    }

    .contact-aside .mihrab-arch {
        width: 72px;
        height: 120px;
        border-radius: 36px 36px 6px 6px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .contact-scroll,
    .contact-aside,
    .crown-lamp,
    .btn-glow {
        animation: none !important;
    }
}

/* ===== قسم مكتبتي — النسق النوراني الهندسي ===== */
.library-section {
    --lib-purple: #9B59B6;
    --lib-purple-deep: #6C3483;
    --lib-pink: #F8B4D9;
    --lib-lilac: #E8D5F2;
    --lib-mist: #F8E8FF;
    --lib-ink: #3B2B47;
    --lib-muted: #7A6A85;

    position: relative;
    padding: 110px 0 100px;
    overflow: hidden;
    background:
        radial-gradient(1100px 520px at 50% -10%, rgba(155, 89, 182, .14), transparent 62%),
        radial-gradient(760px 420px at 12% 105%, rgba(248, 180, 217, .20), transparent 60%),
        linear-gradient(180deg, #fffdfb 0%, #FBF6FF 55%, #fffdfb 100%);
}

/* الطبقات الزخرفية */
.library-section .geo-layers {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0
}

.library-section .geo-rays {
    position: absolute;
    top: -28%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 70%;
    opacity: .30;
    background: repeating-conic-gradient(from 0deg at 50% 100%,
            rgba(155, 89, 182, .16) 0deg 3deg, transparent 3deg 11deg);
    -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent 78%);
    mask-image: radial-gradient(closest-side, #000 35%, transparent 78%);
}

.library-section .geo-diamond {
    position: absolute;
    border: 1px solid rgba(155, 89, 182, .28);
    transform: rotate(45deg);
    border-radius: 8px;
    animation: libFloat 12s ease-in-out infinite;
}

.library-section .geo-diamond--a {
    width: 130px;
    height: 130px;
    top: 14%;
    right: 6%
}

.library-section .geo-diamond--b {
    width: 78px;
    height: 78px;
    bottom: 16%;
    left: 8%;
    animation-delay: -4s;
    border-color: rgba(248, 180, 217, .45)
}

.library-section .geo-diamond--c {
    width: 190px;
    height: 190px;
    top: 44%;
    left: -70px;
    opacity: .5;
    animation-delay: -8s
}

@keyframes libFloat {

    0%,
    100% {
        transform: rotate(45deg) translateY(0)
    }

    50% {
        transform: rotate(45deg) translateY(-18px)
    }
}

.library-section .container {
    position: relative;
    z-index: 2
}

/* ترويسة القسم */
.library-section .section-header {
    text-align: center;
    margin-bottom: 64px
}

.library-section .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 18px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    color: var(--lib-purple-deep);
    background: rgba(232, 213, 242, .55);
    border: 1px solid rgba(155, 89, 182, .28);
    box-shadow: 0 6px 18px rgba(155, 89, 182, .12);
    margin-bottom: 16px;
}

.library-section .section-title {
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
}

.library-section .text-gradient {
    background: linear-gradient(120deg, var(--lib-purple-deep), var(--lib-purple) 45%, var(--lib-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.library-section .emblem-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 18px 0 14px;
}

.library-section .emblem-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(155, 89, 182, .6), transparent);
}

.library-section .emblem-star {
    width: 14px;
    height: 14px;
    background: var(--lib-purple);
    transform: rotate(45deg);
    border-radius: 3px;
    box-shadow: 0 0 0 5px rgba(155, 89, 182, .12);
}

.library-section .section-sub {
    max-width: 640px;
    margin: 0 auto;
    color: var(--lib-muted);
    font-size: 1.03rem;
    line-height: 2;
}

/* الشبكة */
.library-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
    gap: 30px;
}

/* المحراب المعرفي */
.lib-mihrab {
    position: relative;
    padding: 2px;
    border-radius: 180px 180px 22px 22px;
    background: linear-gradient(160deg, rgba(155, 89, 182, .38), rgba(248, 180, 217, .30) 45%, rgba(255, 255, 255, .15));
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), filter .45s ease;
}

.lib-mihrab:hover {
    transform: translateY(-12px);
    filter: drop-shadow(0 26px 42px rgba(155, 89, 182, .22))
}

.lib-mihrab .mihrab-arch {
    position: absolute;
    inset: 2px;
    border-radius: 178px 178px 20px 20px;
    background:
        radial-gradient(120% 60% at 50% 0%, rgba(248, 232, 255, .9), transparent 60%),
        rgba(255, 255, 255, .92);
    backdrop-filter: blur(6px);
}

.lib-mihrab .mihrab-lamp {
    position: absolute;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--lib-pink);
    box-shadow: 0 0 0 6px rgba(248, 180, 217, .22), 0 0 26px 8px rgba(248, 180, 217, .55);
    animation: libLamp 3.4s ease-in-out infinite;
}

@keyframes libLamp {

    0%,
    100% {
        opacity: .55;
        transform: translateX(-50%) scale(.9)
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.15)
    }
}

.lib-inner {
    position: relative;
    z-index: 2;
    padding: 56px 26px 34px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

/* الأيقونة */
.lib-icon {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 18px
}

.lib-icon svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    transition: transform .5s cubic-bezier(.22, 1, .36, 1)
}

.lib-mihrab:hover .lib-icon svg {
    transform: rotate(-6deg) scale(1.06)
}

.icon-halo {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(248, 180, 217, .45), transparent 68%);
    opacity: 0;
    transition: opacity .4s ease;
}

.lib-mihrab:hover .icon-halo {
    opacity: 1
}

.ico-bg {
    fill: var(--lib-lilac)
}

.lib-mihrab:nth-child(even) .ico-bg {
    fill: var(--lib-mist)
}

.ico-solid {
    fill: var(--lib-purple)
}

.ico-light {
    fill: var(--lib-mist)
}

.ico-accent {
    fill: var(--lib-pink)
}

.ico-stroke-light {
    stroke: var(--lib-mist);
    stroke-width: 2;
    stroke-linecap: round
}

.ico-stroke-solid {
    stroke: var(--lib-purple);
    stroke-width: 2;
    stroke-linecap: round;
    fill: none
}

.ico-stroke-accent {
    stroke: var(--lib-pink);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: .75;
    fill: none
}

/* الترقيم */
.lib-index {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--lib-purple);
    opacity: .55;
    margin-bottom: 6px;
}

.lib-title {
    font-size: 1.32rem;
    font-weight: 800;
    color: var(--lib-ink);
    margin: 0 0 10px;
    position: relative;
    padding-bottom: 12px;
}

.lib-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 34px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--lib-purple), transparent);
    transition: width .4s ease;
}

.lib-mihrab:hover .lib-title::after {
    width: 70px
}

.lib-text {
    color: var(--lib-muted);
    font-size: .95rem;
    line-height: 1.95;
    margin: 0 0 22px;
    flex-grow: 1;
}

/* الرابط */
.lib-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: .92rem;
    text-decoration: none;
    color: var(--lib-purple-deep);
    background: linear-gradient(135deg, rgba(232, 213, 242, .75), rgba(248, 232, 255, .75));
    border: 1px solid rgba(155, 89, 182, .30);
    transition: all .35s ease;
}

.lib-link i {
    transition: transform .35s ease
}

.lib-link:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--lib-purple), var(--lib-purple-deep));
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(155, 89, 182, .34);
}

.lib-link:hover i {
    transform: translateX(-5px)
}

.lib-link:focus-visible {
    outline: 2px solid var(--lib-purple);
    outline-offset: 3px
}

/* الشريط الختامي */
.library-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
    text-align: center;
}

.library-footnote p {
    margin: 0;
    color: var(--lib-purple-deep);
    font-weight: 600;
    font-size: 1rem;
    opacity: .85;
}

.footnote-star {
    width: 9px;
    height: 9px;
    background: var(--lib-pink);
    transform: rotate(45deg);
    border-radius: 2px;
    flex: none;
    box-shadow: 0 0 0 4px rgba(248, 180, 217, .18);
}

/* الحركات */
.library-section .fade-in {
    animation: fadeInUp .8s ease both
}

.library-section .fade-in-up {
    animation: fadeInUp .8s ease both;
    animation-delay: calc(var(--mihrab-index, 0) * .12s);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(26px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

/* استجابة */
@media (max-width:992px) {
    .library-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px
    }
}

@media (max-width:600px) {
    .library-section {
        padding: 80px 0 70px
    }

    .library-grid {
        grid-template-columns: 1fr;
        gap: 22px
    }

    .lib-mihrab {
        border-radius: 150px 150px 18px 18px
    }

    .lib-inner {
        padding: 48px 22px 30px
    }

    .library-footnote {
        flex-direction: column;
        gap: 10px
    }

    .library-section .geo-diamond--c {
        display: none
    }
}

/* ========================================================
   الفوتر المبتكر - نظام بطاقات بينتو (Bento Grid Footer)
   ======================================================== */
.bento-footer {
    position: relative;
    padding: 6rem 0 2rem;
    overflow: hidden;
    margin-top: 4rem;
}

.bento-footer-container {
    position: relative;
    z-index: 2;
    padding: 0 1rem;
}

/* شبكة البينتو المبتكرة */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(min-content, max-content);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

/* البطاقة الأساسية (زجاجية ناعمة مع زخرفة هادئة) */
.bento-box {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(155, 89, 182, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.6);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.bento-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(155, 89, 182, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.85);
}

/* توزيع المساحات حسب الشبكة */
.bento-brand {
    grid-column: span 6;
    /* نصف العرض */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(155, 89, 182, 0.15) 100%);
}

/* رسمة هندسية للبطاقة الأولى */
.bento-geo-accent {
    position: absolute;
    bottom: -50px;
    left: -30px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.15) 0%, transparent 70%);
    border: 2px dashed rgba(155, 89, 182, 0.4);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: rotateSlow 20s linear infinite;
}

.bento-geo-accent::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 3px dotted rgba(248, 180, 217, 0.6);
    border-radius: 50%;
}

.bento-geo-accent::after {
    content: '';
    position: absolute;
    top: 30px;
    left: 30px;
    right: 30px;
    bottom: 30px;
    border: 2px solid rgba(155, 89, 182, 0.4);
    border-radius: 50%;
}

@keyframes rotateSlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.bento-links {
    grid-column: span 3;
    /* ربع العرض */
    background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.8), rgba(248, 180, 217, 0.15));
}

/* عنصر جمالي لبطاقة الروابط */
.bento-links::before {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.25) 0%, transparent 60%);
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.bento-links::after {
    content: '\f111';
    /* أيقونة دائرة */
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 80px;
    color: rgba(248, 180, 217, 0.3);
    z-index: 0;
    pointer-events: none;
    transform: rotate(45deg);
}

.bento-social {
    grid-column: span 3;
    /* ربع العرض */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(to top left, rgba(255, 255, 255, 0.8), rgba(155, 89, 182, 0.25));
}

/* عنصر جمالي لبطاقة السوشيال */
.bento-social::before {
    content: '';
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(155, 89, 182, 0.25) 0%, transparent 70%);
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}

.bento-social::after {
    content: '';
    position: absolute;
    bottom: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    border: 4px dotted rgba(155, 89, 182, 0.4);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    animation: rotateSlow 15s linear infinite reverse;
}

.bento-links {
    grid-column: span 3;
    /* ربع العرض */
}

.bento-social {
    grid-column: span 3;
    /* ربع العرض */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* هوية الموقع */
.bento-brand-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.bento-title {
    font-family: var(--font-secondary, 'Amiri', serif);
    color: var(--secondary-purple, #8E44AD);
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.bento-icon-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(248, 180, 217, 0.2));
    border: 1px solid rgba(155, 89, 182, 0.3);
    border-radius: 16px;
    color: var(--primary-purple);
    font-size: 1.2rem;
    box-shadow: 0 8px 16px rgba(155, 89, 182, 0.15);
}

.bento-desc {
    color: var(--text-dark);
    line-height: 1.9;
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 90%;
}

/* أزرار الإجراءات */
.bento-brand-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bento-btn-primary,
.bento-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.8rem 1.8rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.bento-btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    color: white;
    box-shadow: 0 10px 20px rgba(155, 89, 182, 0.25);
    border: none;
}

.bento-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(155, 89, 182, 0.35);
    color: white;
}

.bento-btn-secondary {
    background: rgba(255, 255, 255, 0.5);
    color: var(--primary-purple);
    border: 1px solid rgba(155, 89, 182, 0.2);
}

.bento-btn-secondary:hover {
    background: white;
    color: var(--secondary-purple);
    transform: translateY(-3px);
    border-color: rgba(155, 89, 182, 0.4);
}

/* العناوين الفرعية للبطاقات */
.bento-subtitle {
    font-family: var(--font-primary, 'Cairo', sans-serif);
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bento-subtitle i {
    color: var(--primary-purple);
    background: rgba(155, 89, 182, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 0.9rem;
}

/* الروابط (قائمة أنيقة) */
.bento-tags-container {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.bento-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.8rem 1rem;
    border-radius: 16px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.bento-tag i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(155, 89, 182, 0.08);
    color: var(--primary-purple);
    border-radius: 12px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.bento-tag::after {
    content: '\f053';
    /* سهم لليسار (FontAwesome) */
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 1rem;
    color: var(--primary-purple);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.bento-tag:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(155, 89, 182, 0.15);
    transform: translateX(-5px);
    color: var(--primary-purple);
    box-shadow: 0 4px 15px rgba(155, 89, 182, 0.05);
}

.bento-tag:hover i {
    background: var(--primary-purple);
    color: white;
    transform: rotate(-10deg) scale(1.1);
}

.bento-tag:hover::after {
    opacity: 1;
    transform: translateX(0);
}

.bento-tag-highlight {
    background: rgba(248, 180, 217, 0.08);
    border-color: rgba(248, 180, 217, 0.2);
}

.bento-tag-highlight i {
    background: rgba(248, 180, 217, 0.2);
    color: var(--secondary-purple);
}

.bento-tag-highlight:hover {
    background: rgba(248, 180, 217, 0.15);
    border-color: rgba(248, 180, 217, 0.4);
    color: var(--secondary-purple);
}

.bento-tag-highlight:hover i {
    background: var(--secondary-purple);
}

/* السوشيال ميديا */
.bento-social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.bento-social-link {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    font-size: 1.6rem;
    color: var(--text-dark);
    text-decoration: none;
    border: 1px solid rgba(155, 89, 182, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bento-social-link:hover {
    color: white;
    transform: translateY(-8px) rotate(5deg);
}

.bento-social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
    box-shadow: 0 12px 20px rgba(220, 39, 67, 0.3);
}

.bento-social-link.twitter:hover {
    background: #1DA1F2;
    border-color: transparent;
    box-shadow: 0 12px 20px rgba(29, 161, 242, 0.3);
}

/* مؤشر التواجد (Pulse) */
.bento-pulse-status {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.6);
    padding: 1rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(155, 89, 182, 0.15);
}

.pulse-dot {
    width: 12px;
    height: 12px;
    background-color: #2ecc71;
    border-radius: 50%;
    position: relative;
}

.pulse-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #2ecc71;
    border-radius: 50%;
    top: 0;
    left: 0;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.pulse-text {
    display: flex;
    flex-direction: column;
}

.pulse-text span {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
}

.pulse-text small {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* الشريط السفلي */
.bento-bottom-bar {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1.5rem;
}

.copyright-text {
    color: var(--text-dark);
    font-weight: 700;
    font-size: 0.95rem;
    opacity: 0.8;
}

.copyright-text span {
    color: var(--primary-purple);
}

/* التجاوبية */
@media (max-width: 1024px) {
    .bento-brand {
        grid-column: span 12;
    }

    .bento-links {
        grid-column: span 6;
    }

    .bento-social {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {
    .bento-footer {
        padding: 4rem 0 2rem;
    }

    .bento-links {
        grid-column: span 12;
    }

    .bento-social {
        grid-column: span 12;
    }

    .bento-box {
        padding: 1.8rem;
        border-radius: 24px;
    }

    .bento-brand-actions {
        flex-direction: column;
    }

    .bento-btn-primary,
    .bento-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {

    .lib-mihrab,
    .lib-icon svg,
    .geo-diamond,
    .mihrab-lamp,
    .fade-in,
    .fade-in-up {
        animation: none !important;
        transition: none !important
    }
}

