/* صورة الشعار */
.logo {
    width: 150px;
    height: auto;
}

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

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* تحسينات الأزرار */
.btn {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:hover:after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}

/* تحسينات البطاقات */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* تحسينات قسم Hero */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .shape {
    position: absolute;
    opacity: 0.1;
    border-radius: 50%;
}

.hero-section .shape-1 {
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.2);
}

.hero-section .shape-2 {
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.15);
}

.hero-section .shape-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
}

/* تحسينات الشهادات */
.testimonial-card {
    position: relative;
}

.testimonial-card:before {
    content: '\201C';
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.05);
    font-family: serif;
    line-height: 1;
}

.dark-mode .testimonial-card:before {
    color: rgba(255, 255, 255, 0.05);
}

/* تحسينات الأدوات */
.tool-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.tool-icon:before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    opacity: 0.5;
    z-index: -1;
    animation: pulse 2s infinite;
}

/* تحسينات الوضع الليلي */
.dark-mode-toggle {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dark-mode-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

.dark-mode .dark-mode-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dark-mode-toggle i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.dark-mode-toggle.rotate i {
    animation: rotateIcon 0.5s ease;
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0deg) scale(1);
    }
    50% {
        transform: rotate(180deg) scale(1.2);
    }
    100% {
        transform: rotate(360deg) scale(1);
    }
}

/* تحسينات الاشتراكات */
.pricing-card.featured {
    position: relative;
    overflow: hidden;
}

.pricing-card.featured:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
}

/* تحسينات الصور الشخصية */
.testimonial-author img {
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-author img {
    transform: scale(1.1);
}

/* تحسينات الشريط العلوي */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.95) !important;
}

.dark-mode .navbar.scrolled {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background-color: rgba(17, 24, 39, 0.95) !important;
}

/* تحسينات الأشكال المتحركة */
.floating-shape {
    position: absolute;
    opacity: 0.5;
    z-index: -1;
}

.shape-circle {
    border-radius: 50%;
}

.shape-square {
    border-radius: 10px;
}

/* تحسينات الاستجابة */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .tool-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
    }
}

/* تحسينات الزر العائم للمساعدة */
.floating-help-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: all 0.3s ease;
}

.floating-help-btn:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

.floating-help-btn i {
    font-size: 24px;
}

/* تحسينات الانتقال للوضع الليلي */
body, .navbar, .card, .dropdown-menu, .form-control, 
.btn, .tool-result, .notification-item, footer {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease;
}
