/* Reset بسيط */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, sans-serif;
    color: #f5f5f5;
    background: #000;
    overflow-x: hidden;
    position: relative;
}

/* الخلفية المتحركة */
.animated-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 0% 0%, #555 0, #000 45%) ,
                radial-gradient(circle at 100% 100%, #333 0, #000 50%);
    background-size: 200% 200%;
    /* animation: bg-move 18s ease-in-out infinite alternate; */
    opacity: 0.9;
}

@keyframes bg-move {
    0% {
        background-position: 0% 0%, 100% 100%;
    }
    100% {
        background-position: 100% 100%, 0% 0%;
    }
}

/* شريط علوي */
.top-bar {
    position: relative;
    z-index: 2;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    backdrop-filter: blur(12px);
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-main {
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.brand-sub {
    font-size: 0.8rem;
    opacity: 0.75;
}

/* اللغات */
.lang-selector ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-start;
}

.lang-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 0.7rem;
    color: #f5f5f5;
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.2s ease, transform 0.15s ease, border-color 0.2s ease;
}

.lang-item img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.lang-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

.lang-item.active {
    border-color: #8fdc7f;
    background: rgba(143, 220, 127, 0.12);
}

/* المحتوى الرئيسي */
.hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 4vw, 3rem);
}

.hero-inner {
    max-width: 820px;
    text-align: center;
    position: relative;
    padding: 2.5rem 1.5rem 3rem;
    border-radius: 24px;
    background: linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.06),
            rgba(0, 0, 0, 0.8)
    );
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* لمعة خفيفة */
.hero-inner::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
      radial-gradient(circle at 10% 0%, rgba(180, 255, 200, 0.18), transparent 55%),
      radial-gradient(circle at 90% 100%, rgba(150, 200, 255, 0.12), transparent 55%);
    opacity: 0.65;
    mix-blend-mode: screen;
    z-index: -1;
    animation: glow-move 22s linear infinite alternate;
}

@keyframes glow-move {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-40px, 20px, 0); }
}

/* عنوان قصتنا */
.hero-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin-bottom: 1rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #e7ffe5;
    text-shadow:
        0 0 16px rgba(143, 220, 127, 0.65),
        0 0 32px rgba(143, 220, 127, 0.45);
    animation: title-pop 1.2s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes title-pop {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.97);
    }
    60% {
        opacity: 1;
        transform: translateY(0) scale(1.03);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.hero-text {
    font-size: 0.98rem;
    line-height: 1.9;
    margin-bottom: 1.4rem;
    color: #f3f3f3;
    text-align: justify;
    text-justify: inter-word;
    animation: fade-up 1.4s ease-out 0.2s forwards;
    opacity: 0;
    transform: translateY(15px);
}

.hero-welcome {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #c5f3c1;
    font-weight: 600;
    animation: fade-up 1.4s ease-out 0.4s forwards;
    opacity: 0;
    transform: translateY(15px);
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* كروت المواقع */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    animation: fade-up 1.4s ease-out 0.6s forwards;
    opacity: 0;
    transform: translateY(15px);
}

/* كل كارت + شعاره في عمود واحد */
.site-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.site-card {
    position: relative;
    padding: 1rem 1.2rem;
    border-radius: 18px;
    text-decoration: none;
    color: #f8f8f8;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.9), rgba(60, 60, 60, 0.8));
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.65);
    overflow: hidden;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.site-card::before {
    content: "";
    position: absolute;
    inset-inline-start: -40%;
    inset-block-start: -40%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(143, 220, 127, 0.45), transparent 70%);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

    /* الحركة العامة عند المرور على أي كارت + شعاره */
.site-block:hover .site-card {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 24px 45px rgba(0, 0, 0, 0.9);
    background: linear-gradient(135deg, rgba(25, 25, 25, 0.9), rgba(90, 90, 90, 0.9));
}

/* SherifShalaby.tech – إطار أزرق */
.site-block--tech:hover .site-card {
    border-color: #4aa3ff;
}

/* عالم التمر – إطار بني */
.site-block--dates:hover .site-card {
    border-color: #9c6b3f;
}

/* عالم العسل – إطار برتقالي */
.site-block--honey:hover .site-card {
    border-color: #ff9800;
}

/* زيت الزيتون – أخضر */
.site-block--oil:hover .site-card {
    border-color: #8fdc7f;
}


.site-card:hover::before {
    opacity: 1;
}

.site-label {
    display: block;
    font-size: 0.8rem;
    opacity: 0.8;
    margin-bottom: 0.35rem;
}

.site-link {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    direction: ltr;
    text-align: left;
}


.site-logo-link {
    text-decoration: none;
}

.site-logo {
    display: block;
    margin-top: 0.1rem;
    margin-inline: auto;
    /* max-width: 110px;   المقاس الافتراضي */
    /* height: auto; */
    opacity: 0.95;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        filter 0.18s ease;
    border-radius: 5px;
}

/* لما نعمل hover على العمود كله الكارت + اللوجو يتحركوا */
.site-block:hover .site-logo {
    transform: translateY(-3px) scale(1.04);
    opacity: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.9));
}

/* كلاس لكل شعار لو حبيت تكبّر/تصغّر كل واحد لوحده */
.site-logo--oil {
    /* max-width: 200px; */
    width: 175px;
    height: 88px;
    margin-inline: auto;
    opacity: 0.9;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        filter 0.18s ease;
}

.site-logo--honey {
    /* max-width: 125px; */
        width: 169px;
    height: 88px;
    margin-inline: auto;
    opacity: 0.9;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        filter 0.18s ease;
}

.site-logo--dates {
    /* max-width: 125px; */
    width: 190px;
    height: 90px;
    margin-inline: auto;
    opacity: 0.9;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        filter 0.18s ease;
}

.site-logo--tech {
    /* max-width: 115px; */
    width: 145px;
    height: 88px;
    margin-inline: auto;
    opacity: 0.9;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        filter 0.18s ease;
}

/* .site-logo {
    display: block;
    margin-top: 0.75rem;
    width: 200px;
    height: auto;
    margin-inline: auto;
    opacity: 0.9;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.7));
    transition:
        transform 0.18s ease,
        opacity 0.18s ease,
        filter 0.18s ease;
} */

/* نفس إحساس الزرار – تتحرك شوية مع الـ hover */
.site-card:hover .site-logo {
    transform: translateY(-3px) scale(1.04);
    opacity: 1;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.9));
}


/* واتساب عائم */
.whatsapp-float {
    position: fixed;
    inset-inline-end: 1.1rem;
    inset-block-end: 1.1rem;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.9rem;
    border-radius: 999px;
    background: #171817;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    transform-origin: center;
    animation: wa-pulse 2.6s infinite ease-in-out;
}

.wa-icon {
    width: 45px;
    height: 45px;
    display: inline-block;
    background-image: url("../images/whatsapp.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}


@keyframes wa-pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.9);
    }
}

/* فوتر */
.main-footer {
    text-align: center;
    font-size: 0.75rem;
    padding: 0.9rem 1rem 1.3rem;
    color: #b3b3b3;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-inner {
        padding: 2rem 1.1rem 2.3rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .lang-selector ul {
        justify-content: flex-start;
    }

    /* على الموبايل نخلي أسماء اللغات أقل ظهوراً */
    .lang-item span {
        display: none;
    }

    .lang-item {
        padding-inline: 0.35rem;
    }

    .hero-text {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }

    .hero-inner {
        border-radius: 18px;
    }
}


/* ================================================= */
/* === تفعيل المحاذاة لليسار للغة التركية والإنجليزية === */
/* ================================================= */

html[dir="ltr"] .hero-slide__content {
    text-align: left;
}

/* عكس اتجاه السلايدر ليبدأ من اليسار */
html[dir="ltr"] .hero-slide {
    justify-content: flex-start; 
}

/* محاذاة النصوص في قسم الخدمات */
html[dir="ltr"] .services-inner {
    text-align: left;
}

/* عكس مكان أيقونة التمرة في القائمة */
html[dir="ltr"] .services-bullets li {
    text-align: left;
    padding-right: 0;
    padding-left: 2.4rem; /* مسافة للأيقونة على اليسار */
}

html[dir="ltr"] .services-bullets li::before {
    right: auto;
    left: 0; /* نقل الأيقونة لليسار */
}

/* محاذاة قسم التواصل */
html[dir="ltr"] .contact-section {
    justify-content: flex-start;
}

html[dir="ltr"] .contact-block {
    text-align: left;
}

html[dir="ltr"] .contact-phone, 
html[dir="ltr"] .contact-email {
    text-align: left;
}

/* =========================================================== */
/* === كود خاص لإصلاح الموبايل فقط (Mobile Fix LTR) === */
/* =========================================================== */

@media (max-width: 991px) {
    /* إجبار جميع النصوص والعناوين والقوائم على اليسار في الشاشات الصغيرة */
    html[dir="ltr"] body,
    html[dir="ltr"] p,
    html[dir="ltr"] h1,
    html[dir="ltr"] h2,
    html[dir="ltr"] h3,
    html[dir="ltr"] h4,
    html[dir="ltr"] li,
    html[dir="ltr"] span,
    html[dir="ltr"] .hero-slide__content,
    html[dir="ltr"] .services-inner,
    html[dir="ltr"] .contact-block,
    html[dir="ltr"] .product-card__content,
    html[dir="ltr"] .oil-text {
        text-align: left !important;
    }

    /* إصلاح مكان أيقونة التمرة في قوائم الخدمات للموبايل */
    html[dir="ltr"] .services-bullets li {
        text-align: left !important;
        padding-right: 0 !important;
        padding-left: 2.4rem !important;
    }

    html[dir="ltr"] .services-bullets li::before {
        right: auto !important;
        left: 0 !important;
    }

    /* محاذاة أرقام الهواتف */
    html[dir="ltr"] .contact-phone,
    html[dir="ltr"] .contact-email {
        text-align: left !important;
    }
}