/* Developed by Rabee Mnioua */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700;900&family=Bebas+Neue&display=swap');

:root {
    --fn-purple: #7c3aed;
    --fn-blue: #38bdf8;
    --fn-yellow: #ffe066;
    --fn-dark: #18122B;
    --fn-card: #2d2640;
    --glass: rgba(255,255,255,0.15);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --fn-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    --fn-border: 1px solid rgba(255,255,255,0.18);
    --fn-gradient: linear-gradient(135deg, #38bdf8 0%, #7c3aed 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    -webkit-user-select: none; /* Chrome, Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE 10+ */
    user-select: none;         /* Standard */
    font-family: 'Cairo', 'Noto Sans Arabic', sans-serif;
    background: var(--fn-gradient);
    color: #f8f9fa;
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
    min-height: 100vh;
    letter-spacing: 0.02em;
    font-size: 1.05rem;
}



header {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    height: 80px;
    display: flex;
    /* جعل العناصر تبدأ من اليمين بدلاً من توزيعها على الأطراف */
    justify-content: flex-start; 
    align-items: center;
    padding: 0 5%;
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 3px solid var(--fn-purple);
    gap: 40px; /* مسافة بين اللوجو واللائحة */
}

/* تنسيق زر المولد داخل القائمة */
.nav-cta a {
    background: var(--fn-yellow) !important;
    color: #000 !important;
    padding: 8px 20px !important;
    border-radius: 5px !important;
    font-weight: 900 !important;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    transition: 0.3s !important;
    margin-right: 10px;
}

.nav-cta a:hover {
    background: #fff !important;
    transform: scale(1.1);
    box-shadow: 0 0 15px var(--fn-yellow);
}

/* إضافة خط تحت الروابط عند الحوم (Hover Effect) */
.nav-menu a:not(.nav-cta a) {
    position: relative;
}

.nav-menu a:not(.nav-cta a)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--fn-blue);
    transition: 0.3s;
    transform: translateX(-50%);
}

.nav-menu a:hover::after {
    width: 80%;
}

.logo {
    font-family: 'Bebas Neue', cursive;
    font-size: 2.2rem;
    color: #fff;
    text-decoration: none;
    font-style: italic;
    text-shadow: 0 0 10px var(--fn-purple);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 15px;
    /* التأكد من محاذاة النص لليمين */
    margin-right: auto; /* هذا سيدفع القائمة لتبقى بجانب اللوجو من جهة اليمين */
    margin-left: 0;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 10px 15px;
    transition: var(--transition);
    border-radius: 5px;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--fn-blue);
    background: rgba(108, 92, 231, 0.1);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 2100;
}

.hamburger span {
    display: block; width: 30px; height: 3px; background: #fff;
    border-radius: 3px; transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    padding: 150px 5% 100px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.75)), url('https://getwallpapers.com/wallpaper/full/c/5/5/1199344-fortnite-wallpapers-1920x1080-windows-7.jpg');
    background-size: cover;
    background-position: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.hero-content h1 {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    font-weight: 900;
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.highlight { color: var(--fn-yellow); text-shadow: 0 0 15px rgba(241, 196, 15, 0.6); }

/* --- أزرار فورت نايت الاحترافية (3D & Glow) --- */
.btn-main, .btn-section, .btn-funnel {
    display: inline-block;
    background: var(--fn-yellow);
    color: #000;
    padding: 18px 45px;
    font-size: 1.3rem;
    font-weight: 900;
    text-decoration: none;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 0 #b3920a, 0 12px 20px rgba(0,0,0,0.4);
    margin: 15px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* زر ثانوي شفاف */
.btn-secondary {
    background: transparent !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    box-shadow: none !important;
    clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%) !important;
}

.btn-main:hover, .btn-section:hover, .btn-funnel:hover {
    transform: translateY(-5px) scale(1.05);
    background: #fff;
    box-shadow: 0 8px 0 var(--fn-blue), 0 15px 25px rgba(0,0,0,0.5);
    color: #000;
}

.btn-main:active, .btn-section:active, .btn-funnel:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--fn-blue);
}

/* تأثير النبض للزر الرئيسي */
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(241, 196, 15, 0); }
    100% { box-shadow: 0 0 0 0 rgba(241, 196, 15, 0); }
}
.btn-main:not(.btn-secondary) { animation: pulseGlow 2s infinite; }

/* --- Row & Images --- */
.row-align { display: flex; align-items: center; gap: 60px; flex-wrap: wrap; margin-bottom: 80px; padding: 40px 0; }
.row-reverse { flex-direction: row-reverse; }
.col-text, .col-img { flex: 1; min-width: 320px; }

.section-img { 
    width: 100%; max-width: 500px; height: auto; border-radius: 25px; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.6); border: 3px solid var(--fn-blue);
    display: block; margin: 0 auto; transition: var(--transition);
}
.section-img:hover { transform: scale(1.02) rotate(1deg); }

/* --- Info Box --- */
.info-box {
    background: #161616;
    padding: 30px;
    border-radius: 15px;
    border-right: 6px solid var(--fn-blue);
    margin: 25px 0;
    font-weight: 700;
    line-height: 1.8;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.5);
    color: #ddd;
}

/* --- Content Sections --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-spacer { padding: 100px 0; border-bottom: 1px solid #1a1a1a; }

.seo-content { background: linear-gradient(to bottom, rgba(108, 92, 231, 0.05), transparent); }

/* FAQ Styles */
details { background: #111; padding: 20px; margin-bottom: 15px; border: 1px solid #222; border-radius: 12px; transition: var(--transition); }
details[open] { border-color: var(--fn-purple); background: #181818; }
summary { font-weight: 900; cursor: pointer; color: var(--fn-blue); list-style: none; font-size: 1.1rem; }

/* --- Footer --- */
footer {
    background: #050505;
    padding: 80px 8% 40px;
    border-top: 4px solid var(--fn-purple);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer-section h4 { color: var(--fn-blue); margin-bottom: 20px; font-size: 1.4rem; font-family: 'Bebas Neue'; letter-spacing: 1px; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 12px; }
.footer-section ul li a { color: #888; text-decoration: none; transition: 0.3s; }
.footer-section ul li a:hover { color: #fff; padding-right: 10px; }

.copyright { text-align: center; margin-top: 60px; padding-top: 30px; border-top: 1px solid #111; }
.dev-mark {
    font-family: 'Bebas Neue', sans-serif;
    color: var(--fn-purple);
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-top: 15px;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    header { padding: 0 5%; }
    .hamburger { display: flex; }
    .nav-menu {
        position: fixed;
        top: 80px;
        right: -100%; /* تبدأ من خارج الشاشة يميناً */
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(8, 8, 8, 0.98);
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        margin-right: 0; /* إعادة التعيين في الموبايل */
    }
    .nav-menu.active { right: 0; }
}

@media (max-width: 768px) {
    .section-img { max-width: 280px; }
    .row-align { text-align: center; flex-direction: column !important; gap: 40px; }
    .hero { padding: 120px 5% 80px; }
    .btn-main, .btn-section { width: 90%; margin: 10px auto; padding: 15px 20px; font-size: 1.1rem; }
}