/* =========================================
   1. المتغيرات والألوان (Variables)
   ========================================= */
:root {
    /* ألوان الهوية البصرية */
    --color-primary: #10B981;       /* أخضر تركواز - لون الشماسية */
    --color-primary-dark: #059669;  /* أخضر غامق */
    --color-secondary: #92400E;     /* بني قرفي - لون الهدهد */
    --color-accent: #F59E0B;        /* برتقالي ذهبي */
    
    /* ألوان النصوص والخلفيات */
    --bg-body: #F8FAFC;
    --bg-white: #FFFFFF;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    
    /* ألوان واتساب */
    --wa-bg: #E5DDD5;
    --wa-header: #F0F2F5;
    --wa-sent: #DCF8C6;
    --wa-received: #FFFFFF;
    
    /* الخطوط */
    --font-main: 'Tajawal', sans-serif;
}

/* =========================================
   2. التنسيقات العامة (Global Styles)
   ========================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الأزرار */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: var(--border-color);
}

.btn-lg {
    padding: 14px 32px;
    font-size: 1.1rem;
}

/* =========================================
   3. شريط التنقل (Navbar)
   ========================================= */
.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    height: 80px;
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar .logo img {
    height: 45px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--color-primary);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* =========================================
   4. القسم الرئيسي (Hero Section)
   ========================================= */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
}

/* خلفية ضبابية جمالية */
.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: var(--color-secondary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -100px;
    left: -100px;
    width: 500px;
    height: 500px;
    background: var(--color-primary);
    opacity: 0.05;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
}

.hero .container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary-dark);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pulse {
    width: 8px;
    height: 8px;
    background-color: var(--color-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-main);
}

.hero h1 .highlight {
    color: var(--color-primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        margin: 0 auto 40px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

/* =========================================
   5. محاكاة الهاتف (Phone Mockup)
   ========================================= */
.phone-mockup {
    position: relative;
    width: 320px;
    height: 650px;
    perspective: 1000px;
}

/* تنبيه التمرير */
.scroll-hint {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 50;
    display: flex;
    flex-col: column;
    align-items: center;
    gap: 10px;
    pointer-events: none;
    animation: fadeOut 3s forwards 2s; /* يختفي بعد 5 ثواني */
}

.scroll-hint .icon-box {
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

.scroll-hint span {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

@keyframes fadeOut {
    to { opacity: 0; visibility: hidden; }
}

.phone-frame {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 40px;
    border: 10px solid #1E293B;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    display: flex;
    flex-direction: column;
}

.notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 25px;
    background: #1E293B;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 20;
}

/* رأس واتساب */
.whatsapp-header {
    background: var(--wa-header);
    padding: 40px 15px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #ddd;
    z-index: 10;
}

.whatsapp-header .back-arrow {
    color: var(--color-primary);
    font-size: 1.2rem;
}

.whatsapp-header .profile-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
}

.whatsapp-header .profile-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.whatsapp-header .chat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.whatsapp-header .name {
    font-weight: 700;
    font-size: 0.9rem;
    color: #000;
}

.whatsapp-header .status {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.whatsapp-header .header-icons {
    display: flex;
    gap: 15px;
    color: var(--color-primary);
    font-size: 1.1rem;
}

/* منطقة المحادثة */
.chat-area {
    flex: 1;
    background-color: var(--wa-bg);
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-size: 400px;
    background-blend-mode: overlay;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* إخفاء شريط التمرير */
.chat-area::-webkit-scrollbar {
    width: 4px;
}
.chat-area::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.encryption-msg {
    background: #FFF5C4;
    color: #555;
    font-size: 0.7rem;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.date-badge {
    align-self: center;
    background: #dcf8c6;
    padding: 4px 12px;
    border-radius: 10px;
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 10px;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
}

.message {
    max-width: 85%;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    position: relative;
    box-shadow: 0 1px 1px rgba(0,0,0,0.1);
    line-height: 1.4;
}

.message.received {
    align-self: flex-start;
    background: var(--wa-received);
    border-top-right-radius: 0;
}

.message.sent {
    align-self: flex-end;
    background: var(--wa-sent);
    border-top-left-radius: 0;
}

.message .time {
    display: block;
    font-size: 0.65rem;
    color: #999;
    text-align: left;
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
}

.product-msg {
    max-width: 70%;
    padding: 5px;
}

.product-img {
    width: 100%;
    aspect-ratio: 1/1;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 5px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-msg .caption {
    padding: 0 5px;
    font-size: 0.85rem;
}

/* =========================================
   6. قسم المميزات (Features)
   ========================================= */
.features {
    padding: 100px 0;
    background: var(--bg-white);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.section-header .highlight {
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.section-header .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--color-primary);
    opacity: 0.2;
    z-index: -1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-body);
    padding: 30px;
    border-radius: 20px;
    transition: 0.3s;
    border: 1px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: white;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    border-color: var(--color-primary);
}

.feature-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(16, 185, 129, 0.1);
    color: var(--color-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* =========================================
   7. قسم الفلسفة (Philosophy)
   ========================================= */
.philosophy {
    padding: 100px 0;
    background: linear-gradient(135deg, #FFF8F1 0%, #FFFFFF 100%);
}

.philosophy-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.quran-verse {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.1);
    text-align: center;
    border: 2px solid rgba(146, 64, 14, 0.1);
    position: relative;
}

.quran-verse i {
    font-size: 2rem;
    color: var(--color-secondary);
    opacity: 0.2;
    margin-bottom: 20px;
}

.quran-verse h3 {
    font-family: 'Amiri', serif; /* خط عربي كلاسيكي للآية */
    font-size: 2rem;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.quran-verse .surah {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.text-content {
    flex: 1;
}

.text-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.text-content p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .philosophy-content {
        flex-direction: column;
    }
}

/* =========================================
   8. تذييل الصفحة (Footer)
   ========================================= */
.footer {
    background: #1E293B;
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
    /* تم إزالة الفلتر الذي كان يحول الشعار للأبيض */
}

.footer-logo p {
    color: #94A3B8;
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94A3B8;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-right: 5px;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
}

.social-icons a:hover {
    background: var(--color-primary);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #64748B;
    font-size: 0.9rem;
}