/* Home Page Styles - Front */

/* Hero Section - تصميم متناسق مع الهيدر الجديد */
.hero-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #f1f5f9 100%);
    color: #1e293b;
    padding: 5rem 0 6rem;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 25%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 85% 75%, rgba(139, 92, 246, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.05) 50%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-text {
    text-align: right;
    position: relative;
}

.hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hero-image-main {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 50px rgba(59, 130, 246, 0.15)) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    animation: float 6s ease-in-out infinite, pulse 4s ease-in-out infinite;
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        filter: drop-shadow(0 20px 50px rgba(59, 130, 246, 0.15)) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    }
    50% {
        filter: drop-shadow(0 25px 60px rgba(59, 130, 246, 0.25)) drop-shadow(0 8px 20px rgba(0, 0, 0, 0.15));
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero-image-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: url('../images/generator-pattern.svg');
    background-size: 200px 200px;
    background-repeat: repeat;
    opacity: 0.03;
    z-index: -1;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #1e293b;
    position: relative;
    padding-bottom: 2rem;
}

.hero-title::before {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    right: 0;
    width: 8px;
    height: 8px;
    background: #3b82f6;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: 0.5rem;
    right: 12px;
    width: 280px;
    height: 4px;
    background: linear-gradient(270deg, #3b82f6 0%, #10b981 100%);
    border-radius: 4px;
}

.hero-title span {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    color: #64748b;
    line-height: 1.9;
    font-weight: 500;
    max-width: 90%;
    position: relative;
    padding-bottom: 2.5rem;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 85%;
    max-width: 600px;
    height: 2px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 6px,
        rgba(59, 130, 246, 0.5) 6px,
        rgba(59, 130, 246, 0.5) 10px
    );
    border-radius: 1px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-family: 'Tajawal', sans-serif;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
    border: none;
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white !important;
}

.btn-hero-secondary {
    background: white;
    color: #475569;
    border: 2px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.btn-hero-secondary:hover {
    background: #f8fafc;
    border-color: #3b82f6;
    color: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

/* Hero Stats Cards */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 600px;
}

.hero-stat-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: all 0.3s ease;
}

.hero-stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.2);
}

.hero-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 0.5rem;
}

.hero-stat-label {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
}

/* Statistics Section */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 50%, #ffffff 100%);
    margin-top: -3rem;
    position: relative;
    z-index: 2;
}

.stats-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.08) 20%, rgba(0, 0, 0, 0.12) 50%, rgba(0, 0, 0, 0.08) 80%, transparent 100%);
}

.stats-section .section-title {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.stats-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 20%, #10b981 50%, #3b82f6 80%, transparent 100%);
    border-radius: 2px;
}

.stats-section .section-subtitle {
    position: relative;
    padding-bottom: 2.5rem;
    margin-bottom: 3rem;
}

.stats-section .section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.2) 20%, rgba(16, 185, 129, 0.3) 50%, rgba(59, 130, 246, 0.2) 80%, transparent 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.stat-card:nth-child(1)::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.stat-card:nth-child(2)::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
}

.stat-card:nth-child(3)::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.stat-card:nth-child(1):hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.stat-card:nth-child(2):hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-card:nth-child(3):hover {
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

.stat-card:nth-child(1) .stat-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.25);
}

.stat-card:nth-child(1):hover .stat-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.35);
}

.stat-card:nth-child(2) .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.stat-card:nth-child(2):hover .stat-icon {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.35);
}

.stat-card:nth-child(3) .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.25);
}

.stat-card:nth-child(3):hover .stat-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.35);
}

.stat-icon svg {
    width: 40px;
    height: 40px;
    color: white;
}

.stat-value {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    line-height: 1;
    font-family: 'Tajawal', sans-serif;
}

.stat-label {
    font-size: 1.15rem;
    color: #64748b;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
}

/* Features Section */
.features-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f0f9ff 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%233b82f6" fill-opacity="0.03"><circle cx="30" cy="30" r="2"/></g></svg>');
    opacity: 0.5;
}

.features-section .section-title {
    position: relative;
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.features-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #3b82f6 20%, #10b981 50%, #3b82f6 80%, transparent 100%);
    border-radius: 2px;
}

.features-section .section-subtitle {
    position: relative;
    padding-bottom: 2.5rem;
    margin-bottom: 3rem;
}

.features-section .section-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(59, 130, 246, 0.2) 20%, rgba(16, 185, 129, 0.3) 50%, rgba(59, 130, 246, 0.2) 80%, transparent 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.feature-card:nth-child(1)::before {
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%);
}

.feature-card:nth-child(2)::before {
    background: linear-gradient(90deg, #10b981 0%, #059669 50%, #047857 100%);
}

.feature-card:nth-child(3)::before {
    background: linear-gradient(90deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
}

.feature-card:nth-child(4)::before {
    background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 50%, #6d28d9 100%);
}

.feature-card:nth-child(5)::before {
    background: linear-gradient(90deg, #ef4444 0%, #dc2626 50%, #b91c1c 100%);
}

.feature-card:nth-child(6)::before {
    background: linear-gradient(90deg, #06b6d4 0%, #0891b2 50%, #0e7490 100%);
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.02);
}

.feature-card:nth-child(1):hover {
    box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.3);
}

.feature-card:nth-child(2):hover {
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
}

.feature-card:nth-child(3):hover {
    box-shadow: 0 20px 40px rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
}

.feature-card:nth-child(4):hover {
    box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.3);
}

.feature-card:nth-child(5):hover {
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
}

.feature-card:nth-child(6):hover {
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.feature-card:nth-child(1) .feature-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.feature-card:nth-child(1) .feature-icon svg {
    color: white;
    width: 36px;
    height: 36px;
}

.feature-card:nth-child(1):hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.feature-card:nth-child(2) .feature-icon svg {
    color: white;
    width: 36px;
    height: 36px;
}

.feature-card:nth-child(2):hover .feature-icon {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.feature-card:nth-child(3) .feature-icon svg {
    color: white;
    width: 36px;
    height: 36px;
}

.feature-card:nth-child(3):hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.4);
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.feature-card:nth-child(4) .feature-icon svg {
    color: white;
    width: 36px;
    height: 36px;
}

.feature-card:nth-child(4):hover .feature-icon {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.feature-card:nth-child(5) .feature-icon {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.feature-card:nth-child(5) .feature-icon svg {
    color: white;
    width: 36px;
    height: 36px;
}

.feature-card:nth-child(5):hover .feature-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4);
}

.feature-card:nth-child(6) .feature-icon {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.3);
}

.feature-card:nth-child(6) .feature-icon svg {
    color: white;
    width: 36px;
    height: 36px;
}

.feature-card:nth-child(6):hover .feature-icon {
    transform: rotate(-5deg) scale(1.1);
    box-shadow: 0 8px 20px rgba(6, 182, 212, 0.4);
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #1e293b;
    position: relative;
    z-index: 1;
}

.feature-text {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-text {
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-stats {
        max-width: 100%;
    }

    .hero-image {
        order: -1;
    }

    .hero-image-wrapper {
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-title {
        font-size: 2rem;
    }

    .hero-image-wrapper {
        max-width: 250px;
    }
}
