* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    background: #05091f;
    color: #fff;
}

/* ================= HEADER ================= */

.linm-header {
    position: fixed;
    top: 8px;
    left: 0;
    width: 100%;
    padding: 0 24px;
    z-index: 100;
}

.linm-navbar {
    width: 100%;
    max-width: 1780px;
    height: 100px;
    margin: 0 auto;
    padding: 0 38px;
    background: url("../image/nav-bg-2027.png") center center / 100% 100% no-repeat;
    display: flex;
    align-items: center;
    border: none;
    box-shadow: none;
}

.linm-logo {
    width: 145px;
      margin-left: 25px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.linm-logo img {
    width: 118px;
    height: auto;
    display: block;
}

.linm-nav-links {
    flex: 1;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.linm-nav-links li {
    display: flex;
    align-items: center;
}

.linm-nav-links a {
    display: block;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    text-indent: -9999px;
    overflow: hidden;
    transition: 0.25s ease;
}

.linm-nav-links a:hover,
.linm-nav-links a.active {
    transform: translateY(-2px) scale(1.04);
    filter: brightness(1.12);
}

.nav-home {
    width: 115px;
    height: 54px;
    background-image: url("../image/btn-home.png");
}

.nav-games {
    width: 180px;
    height: 54px;
    background-image: url("../image/btn-funny-games.png");
}

.nav-quiz {
    width: 160px;
    height: 54px;
    background-image: url("../image/btn-kids-quiz.png");
}

.nav-apps {
    width: 115px;
    height: 54px;
    background-image: url("../image/btn-apps.png");
}

.nav-contact {
    width: 185px;
    height: 54px;
    background-image: url("../image/btn-contact.png");
}

.linm-lang-btn {
    width: 60px;
    height: 60px;
    margin-left: 18px;
    flex-shrink: 0;
    border: none;
    background: url("../image/btn-language.png") center center / contain no-repeat;
    cursor: pointer;
    text-indent: -9999px;
    overflow: hidden;
    transition: 0.25s ease;
}

.linm-lang-btn:hover {
    transform: translateY(-2px) scale(1.05);
    filter: brightness(1.12);
}

.linm-menu-btn {
    display: none;
    margin-left: auto;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

/* ================= HERO ================= */

.linm-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 95px 7% 40px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(2, 4, 22, 0.20) 0%,
            rgba(2, 4, 22, 0.04) 48%,
            rgba(2, 4, 22, 0.15) 100%
        ),
        url("../image/home-hero-2027.webp") center top / cover no-repeat;
}

.linm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(2, 4, 20, 0.05);
    z-index: 0;
    pointer-events: none;
}
.linm-hero::after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 160px;
    z-index: 5;

    background:
        linear-gradient(
            to bottom,
            rgba(90,40,180,0) 0%,
            rgba(70,25,130,.12) 35%,
            rgba(10,12,45,.75) 70%,
            #05091f 100%
        );
}
.hero-glow,
.hero-visual {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 620px;
}

.hero-kicker {
    color: #ffe875;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 7px;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    font-size: clamp(52px, 5.8vw, 88px);
    line-height: 0.88;
    font-weight: 900;
    color: #ffffff;
    text-shadow:
        0 10px 30px rgba(0, 0, 0, 0.65),
        0 0 22px rgba(255, 255, 255, 0.18);
}

.hero-content h1 span {
    display: block;
    font-size: clamp(30px, 3.4vw, 50px);
    color: #ffd94d;
}

.hero-text {
    margin: 16px 0 18px;
    font-size: 15px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 5px 14px rgba(0, 0, 0, 0.55);
}

/* ================= HERO IMAGE BUTTONS ================= */

.hero-actions,
.image-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.image-buttons a {
    display: inline-block;
    transition: 0.25s ease;
}

.image-buttons a:hover {
    transform: translateY(-4px) scale(1.04);
}

.image-buttons img {
    width: 155px;
    max-width: 100%;
    display: block;
}

/* ================= MOBILE ================= */

@media (max-width: 900px) {

    .linm-header {
        top: 10px;
        padding: 0 4%;
    }

    .linm-navbar {
        width: 100%;
        height: 76px;
        padding: 0 18px;
        background: url("../image/nav-bg-2027.png") center center / 100% 100% no-repeat;

        display: flex;
        align-items: center;
        justify-content: space-between;
        direction: ltr;
    }

    .linm-logo {
        width: auto;
        margin-left: 0;
        margin-right: auto;
        order: 1;
    }

    .linm-logo img {
        width: 82px;
    }

    .linm-lang-btn {
        display: block;
        width: 52px;
        height: 52px;
        margin-left: 0;
        margin-right: 10px;
        order: 2;
    }

    .linm-menu-btn {
        display: block;
        margin-left: 0;
        order: 3;
    }

    .linm-nav-links {
        position: absolute;
        top: 86px;
        left: 4%;
        right: 4%;
        display: none;
        flex-direction: column;
        gap: 12px;
        padding: 18px;
        border-radius: 22px;
        background: linear-gradient(
            135deg,
            rgba(4, 8, 52, 0.98),
            rgba(0, 150, 210, 0.96)
        );
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
    }

    .linm-nav-links.active {
        display: flex;
    }

    .nav-home,
    .nav-games,
    .nav-quiz,
    .nav-apps,
    .nav-contact {
        width: 220px;
        height: 62px;
    }

    .linm-hero {
        min-height: 100vh;
        padding: 110px 6% 55px;
        text-align: center;
        justify-content: center;
        background-position: center top;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin: 0 auto;
        direction: ltr;
    }

    html[dir="rtl"] .hero-content {
        text-align: center;
        direction: rtl;
    }

    .hero-kicker {
        font-size: 13px;
        letter-spacing: 5px;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 54px;
        text-align: center;
    }

    .hero-content h1 span {
        font-size: 34px;
        text-align: center;
    }

    .hero-text {
        font-size: 16px;
        text-align: center;
        max-width: 330px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions,
    .image-buttons {
        justify-content: center;
        gap: 12px;
        flex-wrap: wrap;
    }

    .image-buttons img {
        width: 190px;
    }
}

html[dir="rtl"] .linm-navbar {
    direction: ltr;
}

html[dir="rtl"] .linm-logo {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .linm-lang-btn {
    margin-right: 10px;
    margin-left: 0;
}

html[dir="rtl"] .linm-menu-btn {
    margin-left: 0;
    margin-right: 0;
}

@media (max-width: 520px) {

    .linm-hero {
        padding-top: 105px;
        background-position: center top;
        background:
        linear-gradient(
            90deg,
            rgba(2, 4, 22, 0.20) 0%,
            rgba(2, 4, 22, 0.04) 48%,
            rgba(2, 4, 22, 0.15) 100%
        ),
        url("../image/hero-mobile-2027.webp") center top / cover no-repeat;

    }

    .hero-content h1 {
        font-size: 46px;
    }

    .hero-content h1 span {
        font-size: 30px;
    }

    .hero-text {
        font-size: 15px;
    }

    .image-buttons img {
        width: 170px;
    }
}

/* ================= FEATURED GAMES ================= */

.featured-games {
    position: relative;
    padding: 65px 3.5% 75px;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 0%, rgba(122, 53, 255, 0.22), transparent 35%),
        radial-gradient(circle at 50% 55%, rgba(0, 170, 255, 0.09), transparent 45%),
        linear-gradient(180deg, #05091f 0%, #071232 100%);
    color: #fff;
}

/* يراعات عامة في خلفية القسم */
.featured-games::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .85;
    background:
        radial-gradient(circle, rgba(255,224,92,.95) 0 2px, transparent 4px),
        radial-gradient(circle, rgba(255,184,30,.8) 0 1.5px, transparent 4px),
        radial-gradient(circle, rgba(255,244,160,.9) 0 1px, transparent 3px);
    background-size: 260px 220px, 340px 260px, 420px 320px;
    background-position: 30px 80px, 180px 140px, 90px 260px;
    animation: firefliesSection 14s linear infinite;
    filter: drop-shadow(0 0 8px rgba(255, 213, 62, .75));
}

.section-title,
.featured-grid,
.featured-more {
    position: relative;
    z-index: 2;
}

.section-title {
    text-align: center;
    margin-bottom: 34px;
}

.section-title span {
    color: #ffd94d;
    font-size: 34px;
    text-shadow:
        0 0 18px rgba(255, 217, 77, 0.95),
        0 0 35px rgba(255, 217, 77, 0.45);
}

.section-title h2 {
    margin: 8px 0 6px;
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 900;
    letter-spacing: 8px;
    text-transform: uppercase;
}

.section-title p {
    margin: 0;
    color: rgba(255,255,255,.86);
    font-size: 17px;
}

.featured-grid {
    max-width: 1740px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 22px;
}

.featured-card {
    position: relative;
    min-height: 420px;
    padding: 16px 16px 22px;
    border-radius: 24px;
    overflow: hidden;
    text-align: center;
    transition: .32s ease;

    background:
        linear-gradient(180deg, rgba(8, 17, 58, .94), rgba(3, 9, 36, .98));

    border: 1px solid rgba(255, 217, 77, 0.62);

    box-shadow:
        0 24px 55px rgba(0,0,0,.55),
        0 0 34px rgba(80,140,255,.18),
        0 0 24px rgba(255,217,77,.12),
        inset 0 0 24px rgba(255,255,255,.04);
}

/* طبقة الوهج الذهبي داخل الكرت */
.featured-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background:
        linear-gradient(135deg, rgba(255,217,77,.75), transparent 32%, rgba(180,70,255,.65));
    opacity: .18;
    pointer-events: none;
    z-index: 0;
}

/* اليراعات داخل الكرت */
.featured-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 3;
    transition: .35s ease;

    background:
        radial-gradient(circle, rgba(255,245,170,1) 0 2px, transparent 4px),
        radial-gradient(circle, rgba(255,204,48,.95) 0 2px, transparent 5px),
        radial-gradient(circle, rgba(255,255,255,.9) 0 1px, transparent 3px),
        radial-gradient(circle, rgba(255,184,30,.9) 0 1.5px, transparent 4px);

    background-size:
        95px 120px,
        130px 150px,
        160px 170px,
        210px 220px;

    background-position:
        15px 95px,
        70px 30px,
        115px 145px,
        25px 210px;

    animation: firefliesCard 5.5s linear infinite;
    filter:
        drop-shadow(0 0 5px rgba(255, 220, 80, .9))
        drop-shadow(0 0 12px rgba(255, 180, 30, .45));
}

.featured-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 217, 77, 0.98);
    box-shadow:
        0 0 34px rgba(255,215,0,.34),
        0 0 65px rgba(160,70,255,.24),
        0 30px 75px rgba(0,0,0,.68),
        inset 0 0 30px rgba(255,255,255,.06);
}

.featured-card:hover::before {
    opacity: .28;
}

.featured-card:hover::after {
    opacity: 1;
}

.featured-card img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.16);
    box-shadow: 0 12px 25px rgba(0,0,0,.35);
    transition: .35s ease;
}

.featured-card:hover img {
    transform: scale(1.06);
}

.featured-card h3 {
    position: relative;
    z-index: 4;
    margin: 18px 0 5px;
    font-size: 21px;
    font-weight: 900;
}

.featured-card p {
    position: relative;
    z-index: 4;
    margin: 0 0 20px;
    color: #ffd94d;
    font-size: 15px;
    font-weight: 800;
}

.featured-card a {
    position: relative;
    z-index: 4;
    display: inline-flex;
    min-width: 140px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
    background: rgba(255, 217, 77, 0.10);
    border: 1px solid rgba(255, 217, 77, 0.8);
    box-shadow: 0 0 20px rgba(255, 217, 77, 0.18);
    transition: .25s ease;
}

.featured-card a:hover {
    background: rgba(255, 217, 77, 0.18);
    box-shadow:
        0 0 18px rgba(255,217,77,.35),
        0 0 28px rgba(255,184,30,.18);
}

.featured-more {
    text-align: center;
    margin-top: 34px;
}

.featured-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 230px;
    height: 56px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 17px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(5, 14, 55, 0.78);
    border: 1px solid rgba(0, 200, 255, 0.65);
    box-shadow: 0 0 28px rgba(0, 200, 255, 0.25);
    transition: .25s ease;
}

.featured-more a:hover {
    transform: translateY(-3px);
    box-shadow:
        0 0 32px rgba(0, 200, 255, 0.42),
        0 0 55px rgba(0, 120, 255, 0.22);
}

@keyframes firefliesSection {
    0% {
        background-position: 30px 220px, 180px 280px, 90px 360px;
    }
    100% {
        background-position: 70px -220px, 220px -260px, 140px -320px;
    }
}

@keyframes firefliesCard {
    0% {
        background-position:
            15px 260px,
            70px 190px,
            115px 230px,
            25px 300px;
    }
    100% {
        background-position:
            25px -120px,
            90px -150px,
            130px -170px,
            55px -220px;
    }
}

/* Featured Responsive */

@media (max-width: 1400px) {
    .featured-card {
        min-height: 380px;
    }

    .featured-card img {
        height: 185px;
    }
}

@media (max-width: 1200px) {
    .featured-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 940px;
    }
}

@media (max-width: 700px) {
    .featured-games {
        padding: 55px 5% 65px;
    }

    .section-title h2 {
        letter-spacing: 2px;
        font-size: 34px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        max-width: 330px;
    }

    .featured-card {
        min-height: 410px;
    }

    .featured-card img {
        height: 215px;
    }
}

/* ===== FEATURED FINAL POLISH ===== */

/* خطوط ذهبية بجانب العنوان */
.section-title h2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
}

.section-title h2::before,
.section-title h2::after {
    content: "";
    width: 120px;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 217, 77, 0.95),
        transparent
    );
    box-shadow: 0 0 14px rgba(255, 217, 77, 0.75);
}

.section-title span {
    display: inline-block;
    animation: titleStarSpin 4s ease-in-out infinite;
}

/* حركة النجمة */
@keyframes titleStarSpin {
    0%, 100% {
        transform: rotate(0deg) scale(1);
        filter: brightness(1);
    }

    50% {
        transform: rotate(18deg) scale(1.18);
        filter: brightness(1.35);
    }
}

/* ظهور الكروت تدريجيًا */
.featured-card {
    opacity: 0;
    transform: translateY(28px);
    animation: featuredFadeUp 0.8s ease forwards;
}

.featured-card:nth-child(1) { animation-delay: .08s; }
.featured-card:nth-child(2) { animation-delay: .16s; }
.featured-card:nth-child(3) { animation-delay: .24s; }
.featured-card:nth-child(4) { animation-delay: .32s; }
.featured-card:nth-child(5) { animation-delay: .40s; }
.featured-card:nth-child(6) { animation-delay: .48s; }

@keyframes featuredFadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover أقوى */
.featured-card:hover {
    transform: translateY(-14px) scale(1.035);
    box-shadow:
        0 0 38px rgba(255, 215, 0, .40),
        0 0 72px rgba(160, 70, 255, .28),
        0 34px 80px rgba(0, 0, 0, .72),
        inset 0 0 34px rgba(255,255,255,.07);
}

.featured-card:hover img {
    transform: scale(1.08);
}

/* تحسين زر Play Now عند hover */
.featured-card a:hover {
    color: #fff7c0;
    transform: scale(1.05);
}

/* ================= WEB PORTAL SECTION ================= */

.web-portal-section {
    position: relative;
    padding: 80px 6%;
    background:
        radial-gradient(circle at 75% 50%, rgba(0, 200, 255, .16), transparent 34%),
        linear-gradient(180deg, #071232 0%, #05091f 100%);
}

.web-portal-card {
    max-width: 1350px;
    margin: auto;
    padding: 34px;
    border-radius: 30px;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 34px;
    align-items: center;
    background: rgba(5, 12, 42, .78);
    border: 1px solid rgba(0, 200, 255, .35);
    box-shadow:
        0 0 45px rgba(0, 180, 255, .14),
        inset 0 0 35px rgba(255,255,255,.04);
}

.web-portal-text span {
    color: #ffd94d;
    font-weight: 900;
    letter-spacing: 3px;
}

.web-portal-text h2 {
    margin: 14px 0 14px;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 1;
    font-weight: 900;
}

.web-portal-text p {
    margin: 0 0 24px;
    color: rgba(255,255,255,.82);
    font-size: 18px;
    line-height: 1.6;
}

.web-portal-text a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 170px;
    height: 50px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    background: rgba(255, 217, 77, .12);
    border: 1px solid rgba(255, 217, 77, .75);
    box-shadow: 0 0 24px rgba(255, 217, 77, .22);
}

.web-portal-image img {
    width: 100%;
    display: block;
    border-radius: 24px;
    border: 1px solid rgba(255,217,77,.35);
    box-shadow:
        0 25px 55px rgba(0,0,0,.55),
        0 0 35px rgba(255,217,77,.18);
}

@media (max-width: 900px) {
    .web-portal-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.portal-btn{
    background: linear-gradient(135deg,#7c2cff,#d85cff);
    box-shadow:
        0 0 25px rgba(185,80,255,.4);
}
.portal-btn:hover{
    transform: translateY(-4px);
    box-shadow:
        0 0 40px rgba(255,205,70,.55);
}

/* ================= KIDS LEARNING SECTION ================= */

.kids-learning-section {
    position: relative;
    padding: 85px 5%;
    background:
        radial-gradient(circle at top left, rgba(255,112,210,.25), transparent 30%),
        radial-gradient(circle at top right, rgba(70,210,255,.26), transparent 34%),
        linear-gradient(180deg, #071232 0%, #fff1fb 100%);
}

.kids-learning-card {
    max-width: 1500px;
    min-height: 760px;
    margin: auto;
    padding: 50px 42px 42px;
    border-radius: 34px;
    position: relative;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.96) 0%,
            rgba(255,255,255,.88) 42%,
            rgba(255,255,255,.35) 72%,
            rgba(255,255,255,.18) 100%
        ),
        url("../image/kids-bg-2027.png") right top / 72% auto no-repeat,
        linear-gradient(135deg, #dff7ff, #ffe4f6);

    border: 1px solid rgba(255,255,255,.85);
    box-shadow:
        0 30px 70px rgba(0,0,0,.25),
        0 0 35px rgba(255,120,220,.25);
}

/* يخلي النص والكروت فوق الخلفية */
.kids-hero-text,
.kids-quiz-grid {
    position: relative;
    z-index: 2;
}

.kids-hero-text {
    max-width: 620px;
    margin-bottom: 44px;
}

.kids-hero-text span {
    color: #e9369c;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
}

.kids-hero-text h2 {
    margin: 12px 0;
    font-size: clamp(48px, 5.5vw, 86px);
    line-height: .95;
    font-weight: 900;
    color: #2450d9;
}

.kids-hero-text p {
    margin: 0 0 28px;
    color: #101b5f;
    font-size: 21px;
    line-height: 1.55;
}

.kids-main-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 280px;
    height: 62px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff4ab0, #a754ff);
    box-shadow: 0 0 28px rgba(255,74,176,.45);
}

.kids-quiz-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 18px;
    align-items: stretch;
    margin-top: 20px;
}

.kids-quiz-card {
    min-height: 360px;
    padding: 14px 12px 18px;
    border-radius: 24px;
    text-align: center;
    background: rgba(255,255,255,.78);
    border: 2px solid rgba(255,255,255,.85);
    box-shadow: 0 18px 35px rgba(0,0,0,.12);
    transition: .25s ease;
}

.kids-quiz-card:hover {
    transform: translateY(-8px) scale(1.03);
}

.kids-quiz-card img {
    width: 100%;
    height: 155px;
    object-fit: contain;
    display: block;
    margin: 0 auto 10px;
}

.kids-quiz-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.1;
    font-weight: 900;
}

.kids-quiz-card p {
    min-height: 42px;
    margin: 0 0 14px;
    font-size: 13px;
    color: #25285f;
    line-height: 1.45;
}

.kids-quiz-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 118px;
    height: 38px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
}

/* Colors */
.card-blue { border-color: #6bd8ff; }
.card-pink { border-color: #ff77c8; }
.card-yellow { border-color: #ffd45c; }
.card-green { border-color: #85df74; }
.card-purple { border-color: #b47cff; }
.card-sky { border-color: #77c9ff; }
.card-rose { border-color: #ff91b4; }

.card-blue a,
.card-sky a {
    background: linear-gradient(135deg, #1e9cff, #54cfff);
}

.card-pink a,
.card-rose a {
    background: linear-gradient(135deg, #ff4aa7, #ff7cc8);
}

.card-yellow a {
    background: linear-gradient(135deg, #ffb400, #ffd84a);
}

.card-green a {
    background: linear-gradient(135deg, #3bbf47, #6bdc56);
}

.card-purple a {
    background: linear-gradient(135deg, #7c4dff, #b85cff);
}

/* Responsive */

@media (max-width: 1200px) {
    .kids-quiz-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .kids-learning-card {
        background:
            linear-gradient(rgba(255,255,255,.86), rgba(255,255,255,.86)),
            url("../image/kids-bg-2027.png") center top / cover no-repeat,
            linear-gradient(135deg, #dff7ff, #ffe4f6);
    }
}

@media (max-width: 700px) {
    .kids-learning-section {
        padding: 60px 5%;
    }

    .kids-learning-card {
        padding: 30px 18px;
        background:
            linear-gradient(rgba(255,255,255,.90), rgba(255,255,255,.90)),
            url("../image/kids-bg-2027.png") center top / cover no-repeat,
            linear-gradient(135deg, #dff7ff, #ffe4f6);
    }

    .kids-hero-text {
        text-align: center;
        margin-bottom: 30px;
    }

    .kids-hero-text h2 {
        font-size: 46px;
    }

    .kids-main-btn {
        min-width: 230px;
    }

    .kids-quiz-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin-left: auto;
        margin-right: auto;
    }

    .kids-quiz-card img {
        height: 170px;
    }
}

/* ===== KIDS CARDS EFFECTS ===== */

.kids-quiz-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.kids-quiz-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: .35s ease;

    background:
        radial-gradient(circle, rgba(255,255,255,.95) 0 2px, transparent 4px),
        radial-gradient(circle, rgba(255,219,82,.95) 0 2px, transparent 5px),
        radial-gradient(circle, rgba(120,210,255,.75) 0 2px, transparent 5px),
        radial-gradient(circle, rgba(255,120,210,.75) 0 2px, transparent 5px);

    background-size:
        80px 90px,
        110px 120px,
        140px 150px,
        170px 180px;

    animation: kidsSparkles 5s linear infinite;
    z-index: 2;
}

.kids-quiz-card:hover::before {
    opacity: 1;
}

.kids-quiz-card:hover {
    transform: translateY(-12px) scale(1.045);
    box-shadow:
        0 24px 45px rgba(0,0,0,.18),
        0 0 28px rgba(255,120,210,.28),
        0 0 34px rgba(90,200,255,.22);
}

.kids-quiz-card img,
.kids-quiz-card h3,
.kids-quiz-card p,
.kids-quiz-card a {
    position: relative;
    z-index: 3;
}

.kids-quiz-card img {
    transition: .35s ease;
}

.kids-quiz-card:hover img {
    transform: translateY(-6px) scale(1.08) rotate(-2deg);
}

.kids-quiz-card a {
    transition: .25s ease;
}

.kids-quiz-card:hover a {
    transform: scale(1.07);
    box-shadow: 0 10px 22px rgba(0,0,0,.16);
}

@keyframes kidsSparkles {
    0% {
        background-position:
            10px 220px,
            60px 190px,
            100px 260px,
            30px 300px;
    }

    100% {
        background-position:
            20px -90px,
            80px -120px,
            120px -150px,
            50px -180px;
    }
}

/* نطّة بسيطة للكروت عند الظهور */
.kids-quiz-card {
    animation: kidsCardPop .7s ease both;
}

.kids-quiz-card:nth-child(1) { animation-delay: .06s; }
.kids-quiz-card:nth-child(2) { animation-delay: .12s; }
.kids-quiz-card:nth-child(3) { animation-delay: .18s; }
.kids-quiz-card:nth-child(4) { animation-delay: .24s; }
.kids-quiz-card:nth-child(5) { animation-delay: .30s; }
.kids-quiz-card:nth-child(6) { animation-delay: .36s; }
.kids-quiz-card:nth-child(7) { animation-delay: .42s; }

@keyframes kidsCardPop {
    from {
        opacity: 0;
        transform: translateY(28px) scale(.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* ================= GOOGLE PLAY APPS ================= */

.apps-showcase-section {
    position: relative;
    padding: 85px 5%;
    background:
        radial-gradient(circle at 50% 0%, rgba(0, 180, 255, .18), transparent 35%),
        radial-gradient(circle at 80% 45%, rgba(160, 70, 255, .16), transparent 34%),
        linear-gradient(180deg, #fff1fb 0%, #071232 20%, #05091f 100%);
    color: #fff;
}

.apps-showcase-card {
    max-width: 1500px;
    margin: auto;
    padding: 42px;
    border-radius: 32px;
    background: rgba(4, 10, 36, .82);
    border: 1px solid rgba(0, 200, 255, .35);
    box-shadow:
        0 30px 75px rgba(0,0,0,.42),
        0 0 45px rgba(0, 180, 255, .16),
        inset 0 0 35px rgba(255,255,255,.04);
}

.apps-section-title {
    text-align: center;
    margin-bottom: 34px;
}

.apps-section-title span {
    color: #ffd94d;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 3px;
}

.apps-section-title h2 {
    margin: 10px 0 6px;
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 900;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.apps-section-title p {
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 16px;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 18px;
}

.app-card {
    position: relative;
    min-height: 330px;
    padding: 18px 14px 20px;
    border-radius: 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(8,18,60,.95), rgba(3,8,34,.98));
    border: 1px solid rgba(0, 200, 255, .45);
    box-shadow:
        0 20px 45px rgba(0,0,0,.45),
        0 0 24px rgba(0,180,255,.14);
    overflow: hidden;
    transition: .28s ease;
}

.app-card:hover {
    transform: translateY(-10px) scale(1.025);
    box-shadow:
        0 28px 65px rgba(0,0,0,.62),
        0 0 38px rgba(0,200,255,.28);
}

.app-card img {
    width: 118px;
    height: 118px;
    object-fit: cover;
    border-radius: 26px;
    margin-bottom: 16px;
    box-shadow: 0 12px 28px rgba(0,0,0,.38);
}

.app-card h3 {
    margin: 0 0 5px;
    font-size: 19px;
    line-height: 1.15;
    font-weight: 900;
}

.app-card p {
    margin: 0 0 8px;
    color: #47d9ff;
    font-size: 14px;
    font-weight: 800;
}

.app-card strong {
    display: block;
    margin-bottom: 14px;
    color: #ffd94d;
    font-size: 18px;
}

.app-card a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    height: 40px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.06);
    box-shadow: inset 0 0 14px rgba(255,255,255,.05);
}

.app-card a::before {
    content: "▶";
    color: #4ee864;
    margin-right: 8px;
}

.app-purple { border-color: rgba(160, 100, 255, .75); }
.app-green { border-color: rgba(90, 255, 120, .65); }
.app-teal { border-color: rgba(0, 240, 220, .65); }
.app-business { border-color: rgba(60, 140, 255, .75); }
.app-cyan { border-color: rgba(0, 210, 255, .75); }
.app-blue { border-color: rgba(0, 170, 255, .75); }

.app-purple p { color: #b985ff; }
.app-green p { color: #8dff8d; }
.app-teal p { color: #56fff0; }
.app-business p { color: #5aa7ff; }

.apps-more {
    text-align: center;
    margin-top: 30px;
}

.apps-more a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    height: 52px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(5, 14, 55, .78);
    border: 1px solid rgba(0, 200, 255, .65);
    box-shadow: 0 0 26px rgba(0, 200, 255, .24);
}

/* Responsive */

@media (max-width: 1200px) {
    .apps-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 700px) {
    .apps-showcase-section {
        padding: 65px 5%;
    }

    .apps-showcase-card {
        padding: 28px 18px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: auto;
    }
}

.app-card img{
    transition:.35s;
}

.app-card:hover img{
    transform:scale(1.08);
}

.app-card{
    opacity:0;
    transform:translateY(40px);
    animation: appFade .7s forwards;
}

.app-card:nth-child(1){animation-delay:.1s;}
.app-card:nth-child(2){animation-delay:.2s;}
.app-card:nth-child(3){animation-delay:.3s;}
.app-card:nth-child(4){animation-delay:.4s;}
.app-card:nth-child(5){animation-delay:.5s;}
.app-card:nth-child(6){animation-delay:.6s;}

@keyframes appFade{
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.app-card strong{
    animation: starGlow 2s infinite alternate;
}

@keyframes starGlow{
    from{
        text-shadow:0 0 5px rgba(255,217,77,.3);
    }
    to{
        text-shadow:
            0 0 15px rgba(255,217,77,.8),
            0 0 30px rgba(255,217,77,.5);
    }
}

.apps-top-label{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:15px;
    color:#ffd94d;
    font-weight:900;
    letter-spacing:3px;
}

.apps-top-label span{
    width:90px;
    height:2px;
    background:linear-gradient(to right, transparent, #ffd94d);
}

.apps-more{
    text-align:center;
    margin-top:40px;
}

.apps-more a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:14px;

    min-width:340px;
    height:64px;

    padding:0 28px;

    border-radius:18px;

    color:#fff;
    text-decoration:none;
    font-size:18px;
    font-weight:900;
    letter-spacing:1px;
    text-transform:uppercase;

    background:linear-gradient(
        135deg,
        #07183f,
        #0a245d
    );

    border:1px solid rgba(0,220,255,.6);

    box-shadow:
        0 0 30px rgba(0,220,255,.25),
        inset 0 0 20px rgba(255,255,255,.05);

    transition:.3s;
}

.apps-more a:hover{

    transform:translateY(-5px) scale(1.03);

    box-shadow:
        0 0 45px rgba(0,220,255,.45),
        0 20px 50px rgba(0,0,0,.5);
}

.apps-more img{
    width:28px;
}

.apps-more span{
    font-size:22px;
    transition:.3s;
}

.apps-more a:hover span{
    transform:translateX(6px);
}

/* ================= FINAL CONTACT ================= */

.final-contact-section {
    position: relative;
    padding: 90px 5% 55px;
    background:
        radial-gradient(circle at 50% 10%, rgba(160,70,255,.20), transparent 34%),
        radial-gradient(circle at 20% 70%, rgba(0,200,255,.14), transparent 30%),
        linear-gradient(180deg, #05091f 0%, #020516 100%);
    color: #fff;
    overflow: hidden;
}

.final-contact-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle, rgba(255,217,77,.8) 0 2px, transparent 4px),
        radial-gradient(circle, rgba(120,210,255,.65) 0 2px, transparent 5px),
        radial-gradient(circle, rgba(255,120,220,.55) 0 2px, transparent 5px);
    background-size: 220px 180px, 300px 260px, 380px 300px;
    opacity: .35;
    animation: finalParticles 12s linear infinite;
}

.final-contact-card {
    position: relative;
    z-index: 2;
    max-width: 1100px;
    margin: auto;
    padding: 48px 30px;
    text-align: center;
    border-radius: 34px;
    background: rgba(5, 12, 42, .78);
    border: 1px solid rgba(0,200,255,.34);
    box-shadow:
        0 30px 75px rgba(0,0,0,.48),
        0 0 45px rgba(0,180,255,.16),
        inset 0 0 35px rgba(255,255,255,.04);
}

.final-contact-logo img {
    width: 115px;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 18px rgba(255,255,255,.18));
}

.final-kicker {
    display: block;
    color: #ffd94d;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.final-contact-card h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 64px);
    font-weight: 900;
    letter-spacing: 3px;
}

.final-contact-card p {
    margin: 14px 0 30px;
    color: rgba(255,255,255,.82);
    font-size: 19px;
}

.final-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.final-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    height: 54px;
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: .28s ease;
}

.final-btn:hover {
    transform: translateY(-5px) scale(1.03);
    color: #fff;
}

.final-btn.gold {
    color: #251400;
    background: linear-gradient(135deg, #d49320, #ffe474);
    box-shadow: 0 0 28px rgba(255,205,70,.35);
}

.final-btn.blue {
    background: linear-gradient(135deg, #028ee9, #08d4ff);
    box-shadow: 0 0 28px rgba(0,195,255,.34);
}

.final-btn.purple {
    background: linear-gradient(135deg, #7c2cff, #d85cff);
    box-shadow: 0 0 28px rgba(185,80,255,.34);
}

@keyframes finalParticles {
    0% {
        background-position: 20px 220px, 140px 300px, 80px 360px;
    }

    100% {
        background-position: 60px -180px, 190px -260px, 120px -320px;
    }
}

/* ================= FOOTER ================= */

.linm-footer {
    padding: 18px 5%;
    text-align: center;
    background: #020516;
    border-top: 1px solid rgba(0,200,255,.16);
}

.linm-footer p {
    margin: 0;
    color: rgba(255,255,255,.75);
    font-size: 14px;
    font-weight: 700;
}

/* Responsive */

@media (max-width: 700px) {
    .final-contact-section {
        padding: 70px 5% 45px;
    }

    .final-contact-card {
        padding: 36px 18px;
    }

    .final-actions {
        flex-direction: column;
        align-items: center;
    }

    .final-btn {
        width: 100%;
        max-width: 280px;
    }
}

/* ================= CONTACT POPUP ================= */

.contact-popup {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0, 0, 0, .62);
    backdrop-filter: blur(6px);
}

.contact-popup.active {
    display: flex;
}

.contact-popup-box {
    position: relative;
    width: min(900px, 95vw);
    min-height: 430px;
    padding: 70px 40px;
    border-radius: 24px;
    text-align: center;
    overflow: hidden;

    background:
        linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)),
        url("../image/bac.png") center center / cover no-repeat;

    border: 1px solid rgba(255, 217, 77, .55);
    box-shadow:
        0 30px 80px rgba(0,0,0,.65),
        0 0 45px rgba(255,217,77,.25);
}

.contact-close {
    position: absolute;
    top: 18px;
    left: 22px;
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    color: #eaff00;
    font-size: 42px;
    font-weight: 900;
    cursor: pointer;
}

.contact-popup-box h2 {
    margin: 0 0 22px;
    color: #ff4747;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 900;
}

.contact-popup-box p {
    max-width: 680px;
    margin: 0 auto 80px;
    color: #ff4747;
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 900;
    line-height: 1.25;
}

.contact-email {
    display: inline-block;
    color: #ffe600;
    text-decoration: none;
    font-size: clamp(26px, 4vw, 50px);
    font-weight: 900;
    text-shadow:
        0 0 12px rgba(255,230,0,.75),
        0 4px 10px rgba(0,0,0,.8);
}

@media (max-width: 700px) {
    .contact-popup-box {
        min-height: 360px;
        padding: 60px 20px;
    }

    .contact-popup-box p {
        margin-bottom: 50px;
    }
}

.contact-popup-box h2{
    color:#ffffff;
    font-size:60px;
    text-shadow:
        0 0 20px rgba(255,255,255,.5),
        0 0 40px rgba(255,120,120,.35);
}

.contact-popup-box p{
    color:#fff;
    font-size:30px;
    line-height:1.4;
    text-shadow:0 0 12px rgba(0,0,0,.8);
}

.contact-email{
    display:inline-flex;
    align-items:center;
    justify-content:center;

    padding:18px 40px;
    border-radius:18px;

    background:rgba(0,0,0,.35);
    backdrop-filter:blur(10px);

    border:1px solid rgba(255,217,77,.5);

    color:#ffe600;
    font-size:48px;
    font-weight:900;

    text-decoration:none;

    box-shadow:
        0 0 30px rgba(255,217,77,.25);
}

.contact-close{
    top:18px;
    left:18px;

    width:45px;
    height:45px;

    border:none;
    border-radius:50%;

    background:rgba(0,0,0,.35);
    color:#ffe600;

    font-size:32px;
    cursor:pointer;
}

.contact-popup-box {
    background:
        linear-gradient(rgba(0,0,0,.28), rgba(0,0,0,.38)),
        url("../image/bac.png") center center / cover no-repeat;
}

/* يراعات ذهبية فوق الصورة */
.contact-popup-box::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: .75;

    background:
        radial-gradient(circle, rgba(255,245,150,1) 0 2px, transparent 4px),
        radial-gradient(circle, rgba(255,210,60,.9) 0 1.5px, transparent 4px),
        radial-gradient(circle, rgba(255,255,255,.85) 0 1px, transparent 3px);

    background-size:
        170px 130px,
        230px 180px,
        300px 240px;

    background-position:
        20px 160px,
        120px 90px,
        60px 240px;

    animation: contactFireflies 12s linear infinite;

    filter:
        drop-shadow(0 0 7px rgba(255,220,80,.85))
        drop-shadow(0 0 16px rgba(255,180,30,.45));
}

/* يخلي النص فوق اليراعات */
.contact-close,
.contact-popup-box h2,
.contact-popup-box p,
.contact-email {
    position: relative;
    z-index: 3;
}

@keyframes contactFireflies {
    0% {
        background-position:
            20px 420px,
            120px 330px,
            60px 480px;
    }

    100% {
        background-position:
            70px -120px,
            180px -170px,
            110px -220px;
    }
}

/* ================= LiN-M 2027 RTL + MOBILE LANGUAGE SUPPORT ================= */

html[dir="rtl"] body {
    direction: rtl;
}

html[dir="rtl"] .linm-navbar {
    direction: rtl;
}

html[dir="rtl"] .linm-logo {
    margin-left: 0;
    margin-right: 25px;
    justify-content: flex-start;
}

html[dir="rtl"] .linm-lang-btn {
    margin-left: 0;
    margin-right: 18px;
}

html[dir="rtl"] .linm-menu-btn {
    margin-left: 0;
    margin-right: auto;
}

html[dir="rtl"] .hero-content,
html[dir="rtl"] .web-portal-text,
html[dir="rtl"] .kids-hero-text {
    direction: rtl;
}

html[dir="rtl"] .hero-kicker,
html[dir="rtl"] .section-title h2,
html[dir="rtl"] .apps-section-title h2,
html[dir="rtl"] .final-kicker {
    letter-spacing: 2px;
}

html[dir="rtl"] .app-card a::before {
    margin-right: 0;
    margin-left: 8px;
}

html[dir="rtl"] .apps-more a:hover span {
    transform: translateX(-6px);
}

html[dir="rtl"] .contact-close {
    left: auto;
    right: 18px;
}

/* Keep the language button visible on mobile */
@media (max-width: 900px) {
    .linm-navbar {
        gap: 8px;
    }

    .linm-menu-btn {
        order: 3;
        margin-left: 0;
    }

    .linm-lang-btn {
        display: block;
        order: 2;
        width: 48px;
        height: 48px;
        margin-left: auto;
        margin-right: 4px;
    }

    html[dir="rtl"] .linm-lang-btn {
        margin-left: 4px;
        margin-right: auto;
    }

    html[dir="rtl"] .linm-menu-btn {
        margin-right: 0;
        margin-left: 0;
    }

    html[dir="rtl"] .linm-nav-links {
        left: 4%;
        right: 4%;
    }

    .linm-nav-links a {
        text-indent: 0;
        width: 100%;
        min-width: 220px;
        height: 50px;
        padding: 0 22px;
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        text-decoration: none;
        font-size: 16px;
        font-weight: 900;
        background-image: none !important;
        background:
            linear-gradient(135deg, rgba(255, 217, 77, 0.18), rgba(0, 205, 255, 0.14));
        border: 1px solid rgba(255, 217, 77, 0.42);
        box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.06);
    }
}

@media (max-width: 520px) {
    .linm-navbar {
        height: 72px;
        padding: 0 14px;
    }

    .linm-logo {
        margin-left: 10px;
    }

    html[dir="rtl"] .linm-logo {
        margin-right: 10px;
    }

    .linm-logo img {
        width: 76px;
    }

    .linm-lang-btn {
        width: 44px;
        height: 44px;
    }

    .linm-menu-btn {
        font-size: 28px;
    }

    .linm-nav-links {
        top: 82px;
    }

    .apps-more a {
        min-width: 0;
        width: 100%;
        max-width: 330px;
        font-size: 14px;
        padding: 0 16px;
        gap: 10px;
    }

    .contact-email {
        font-size: 24px;
        padding: 14px 18px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
        .linm-hero{

    background-image:
        url("../image/hero-mobile-2027.png");

}
}
/* Fix: language changes only text, not layout position */
html[dir="rtl"] .linm-hero,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .image-buttons,
html[dir="rtl"] .kids-learning-card,
html[dir="rtl"] .kids-quiz-grid,
html[dir="rtl"] .apps-more a {
    direction: ltr;
}

html[dir="rtl"] .hero-content {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
    direction: rtl;
}

html[dir="rtl"] .hero-content h1,
html[dir="rtl"] .hero-kicker,
html[dir="rtl"] .hero-text {
    text-align: center;
    direction: rtl;
}

html[dir="rtl"] .kids-hero-text {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .kids-hero-text span,
html[dir="rtl"] .kids-hero-text h2,
html[dir="rtl"] .kids-hero-text p {
    text-align: right;
}



html[dir="rtl"] .kids-quiz-card {
    direction: rtl;
}



html[dir="rtl"] .apps-more .apps-arrow {
    transform: none;
}

.apps-more a{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:14px;
}

/* عربي */
html[dir="rtl"] .apps-more a{
    flex-direction:row-reverse;
}

/* صورة Google Play */
.apps-more img{
    width:28px;
    height:28px;
    object-fit:contain;
    flex-shrink:0;
}

/* السهم */
.apps-more span{
    font-size:24px;
    flex-shrink:0;
}

/* عربي: السهم يصبح جهة اليمين */
html[dir="rtl"] .apps-more span{
    order:-1;
}
html[dir="rtl"] .apps-arrow{
    transform:scaleX(-1);
}


.apps-more a{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:16px;
}

.apps-more img{
    width:32px;
    height:32px;
    object-fit:contain;
    flex-shrink:0;
}

.apps-more strong{
    color:#fff;
    font-size:18px;
    font-weight:900;
    line-height:1.3;
}

/* العربي */
html[dir="rtl"] .apps-more a{
    flex-direction:row-reverse;
}

/* Header stays fixed LTR in Arabic */
.linm-header,
.linm-navbar,
.linm-nav-links {
    direction: ltr !important;
}

.linm-navbar {
    flex-direction: row !important;
}

 .linm-logo {
    margin-left: 25px !important;
    margin-right: 0 !important;
}

 .linm-lang-btn {
    margin-left: 18px !important;
    margin-right: 0 !important;
}

.linm-hero{
    animation: heroZoom 12s ease-in-out infinite;
}

@keyframes heroZoom{
    0%,100%{
        background-size: 100% auto;
    }
    50%{
        background-size: 103% auto;
    }
}

.linm-hero::after{
    content:"";
    position:absolute;
    right:5%;
    top:18%;
    width:430px;
    height:520px;
    pointer-events:none;
    border-radius:50%;
    background:radial-gradient(circle, rgba(210,0,255,.35), transparent 65%);
    animation: portalPulse 3s ease-in-out infinite;
    z-index:1;
}

@keyframes portalPulse{
    0%,100%{
        opacity:.35;
        transform:scale(.96);
    }
    50%{
        opacity:.75;
        transform:scale(1.06);
    }
}

/* ================= HERO PORTAL MAGIC CSS ONLY ================= */

.linm-hero {
    position: relative;
    overflow: hidden;
}

/* دوامة سحرية بجانب البوابة */
.linm-hero .portal-vortex {
    position: absolute;
   
    top: 36%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    right: 4%;
    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            rgba(255, 80, 255, .15) 45deg,
            rgba(160, 60, 255, .55) 95deg,
            transparent 140deg,
            rgba(80, 220, 255, .28) 210deg,
            rgba(255, 230, 120, .22) 260deg,
            transparent 360deg
        );

    filter:
        blur(.4px)
        drop-shadow(0 0 18px rgba(210, 0, 255, .55))
        drop-shadow(0 0 28px rgba(70, 200, 255, .22));

    opacity: .72;
    mix-blend-mode: screen;
    animation: portalSpin 7s linear infinite, portalBreath 3.5s ease-in-out infinite;
}

/* حلقة داخلية */
.linm-hero .portal-vortex::before {
    content: "";
    position: absolute;
    inset: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255, 120, 255, .35);
    box-shadow:
        0 0 20px rgba(255, 80, 255, .55),
        inset 0 0 18px rgba(90, 220, 255, .28);
}

/* نجوم متطايرة */
.linm-hero .portal-sparks {
    position: absolute;
    right: -1%;
    top: 20%;
    width: 390px;
    height: 430px;
    pointer-events: none;
    z-index: 2;
    opacity: .9;
    mix-blend-mode: screen;

    background:
        radial-gradient(circle, rgba(255,255,255,1) 0 2px, transparent 4px),
        radial-gradient(circle, rgba(255,230,100,.95) 0 2px, transparent 5px),
        radial-gradient(circle, rgba(255,90,255,.9) 0 2px, transparent 5px),
        radial-gradient(circle, rgba(80,220,255,.85) 0 2px, transparent 5px);

    background-size:
        90px 120px,
        130px 150px,
        170px 210px,
        220px 260px;

    animation: portalStars 5.5s linear infinite;
    filter:
        drop-shadow(0 0 7px rgba(255,255,255,.9))
        drop-shadow(0 0 14px rgba(255,0,255,.45));
}

.portal-vortex { right: 4%; }
.portal-sparks { right: 1%; }


@keyframes portalSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes portalBreath {
    0%, 100% {
        opacity: .45;
        scale: .92;
    }

    50% {
        opacity: .9;
        scale: 1.08;
    }
}

@keyframes portalStars {
    0% {
        background-position:
            30px 430px,
            120px 390px,
            260px 420px,
            180px 450px;
    }

    100% {
        background-position:
            60px -130px,
            150px -160px,
            280px -190px,
            210px -230px;
    }
}

/* موبايل */
@media (max-width: 700px) {

    .linm-hero .portal-vortex {
        right: -35px;
        top: 22%;
        width: 180px;
        height: 180px;
        opacity: .45;
    }
.hero-content{
    padding-top: 390px;
}
    .portal-sparks{
    right:0;
    top:85px;

    width:130px;
    height:180px;

    opacity:.55;
}
    .linm-hero .portal-sparks {
        right: -20px;
        top: 18%;
        width: 240px;
        height: 340px;
        opacity: .65;
    }
    .portal-vortex{
    right:-45px;
    top:50px;

    width:120px;
    height:120px;

    opacity:.35;
}
}

@media (max-width: 900px) {

    .linm-navbar {
        direction: ltr !important;
        display: flex !important;
        align-items: center !important;
    }

    .linm-logo {
        order: 1 !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    .linm-lang-btn {
        display: block !important;
        order: 2 !important;
        width: 52px !important;
        height: 52px !important;
        margin-left: 0 !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }

    .linm-menu-btn {
        display: block !important;
        order: 3 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        flex-shrink: 0 !important;
    }
}