/* إعدادات عامة */
:root {
    --primary-color: #ff5722;
    --primary-dark: #e64a19;
    --secondary-color: #2196f3;
    --dark-bg: #0f0f1a;
    --card-bg: #1a1a2e;
    --card-border: #2a2a3e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0c0;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --special: #9c27b0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, var(--dark-bg) 0%, #1a1a2e 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    direction: rtl;
}

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

/* الهيدر */
.header {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid var(--primary-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.logo {
    font-size: 2.2rem;
    font-weight: 800;
    background: linear-gradient(45deg, var(--primary-color), var(--warning));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 10px rgba(255, 87, 34, 0.3);
}

.contact-badge {
    background: linear-gradient(135deg, var(--card-bg), #2a2a3e);
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    padding: 12px 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.contact-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.3);
}

.contact-badge i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-text {
    font-weight: 700;
    color: var(--secondary-color);
    font-size: 1.3rem;
}

.contact-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* قسم البطل */
.hero {
    padding: 80px 0;
    text-align: center;
    background: radial-gradient(circle at center, rgba(33, 150, 243, 0.1) 0%, transparent 70%);
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* أقسام الأدوات */
.tools-section {
    padding: 60px 0;
}

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

.section-title {
    font-size: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.section-title i {
    color: var(--primary-color);
}

.section-line {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    margin: 0 auto;
}

/* شبكة الأدوات */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

/* بطاقات الأدوات */
.tool-card {
    background: linear-gradient(135deg, var(--card-bg), #252542);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 87, 34, 0.1) 100%);
    z-index: 1;
    transition: all 0.4s ease;
}

.tool-card:hover {
    transform: translateY(-15px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(255, 87, 34, 0.2);
}

.tool-card:hover::before {
    background: linear-gradient(45deg, transparent 30%, rgba(255, 87, 34, 0.2) 100%);
}

.tool-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    z-index: 2;
}

.tool-badge.hot {
    background: linear-gradient(45deg, var(--danger), var(--warning));
    color: white;
}

.tool-badge.new {
    background: linear-gradient(45deg, var(--success), #8bc34a);
    color: white;
}

.tool-badge.special {
    background: linear-gradient(45deg, var(--special), #e91e63);
    color: white;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.tool-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-primary);
}

.tool-price {
    background: linear-gradient(45deg, var(--primary-color), var(--warning));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 1.3rem;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.tool-description {
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
    position: relative;
    z-index: 2;
    min-height: 80px;
}

/* أزرار التفاصيل */
.btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    border: none;
    cursor: pointer;
    width: 100%;
}

.btn-details:hover {
    background: linear-gradient(45deg, var(--primary-dark), #d84315);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 87, 34, 0.3);
}

.btn-details i {
    font-size: 1.2rem;
}

/* الفوتر */
.footer {
    background: rgba(15, 15, 26, 0.95);
    border-top: 1px solid var(--card-border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.footer-info {
    text-align: center;
}

.footer-title {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.footer-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 700;
}

.footer-contact i {
    color: var(--primary-color);
}

.footer-copyright {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

.footer-note {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
}

/* تأثيرات خاصة للقسم */
.popular-section .tool-card:hover {
    border-color: var(--warning);
}

.new-section .tool-card:hover {
    border-color: var(--success);
}

.special-section .tool-card:hover {
    border-color: var(--special);
}

/* تصميم متجاوب */
@media (max-width: 992px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .logo-section {
        flex-direction: column;
        text-align: center;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .tool-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 15px 0;
    }
    
    .logo {
        font-size: 1.8rem;
    }
    
    .contact-badge {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .hero {
        padding: 50px 0;
    }
    
    .tools-section {
        padding: 40px 0;
    }
    
    .tool-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .tool-price {
        align-self: flex-start;
    }
}

/* تأثيرات الرسوم المتحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

.tool-card:nth-child(1) { animation-delay: 0.1s; }
.tool-card:nth-child(2) { animation-delay: 0.2s; }
.tool-card:nth-child(3) { animation-delay: 0.3s; }
.tool-card:nth-child(4) { animation-delay: 0.4s; }
.tool-card:nth-child(5) { animation-delay: 0.5s; }
.tool-card:nth-child(6) { animation-delay: 0.6s; }

/* تأثيرات التمرير */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}