/* Additional Professional Enhancements */

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 90px; /* Positioned above WhatsApp chat button */
    right: 20px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

html[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 20px;
}

.scroll-to-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Loading animation */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section transitions */
.section-fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Improved button hover effects */
.cta-button, .tutorial-button, .payment-link-button, .youtube-button {
    position: relative;
    overflow: hidden;
}

.cta-button:before, .tutorial-button:before, .payment-link-button:before, .youtube-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.cta-button:hover:before, .tutorial-button:hover:before, .payment-link-button:hover:before, .youtube-button:hover:before {
    transform: translateX(0);
}

/* Testimonials section styling */
.testimonials-section {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.testimonials-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    margin-top: 40px;
}

.testimonial-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 350px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.testimonial-content {
    position: relative;
    padding: 0 10px;
}

.testimonial-content:before {
    content: '\201C';
    font-family: Arial, sans-serif;
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 60px;
    color: var(--primary-color);
    opacity: 0.3;
}

html[dir="rtl"] .testimonial-content:before {
    left: auto;
    right: -10px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 15px;
}

html[dir="rtl"] .testimonial-author-image {
    margin-right: 0;
    margin-left: 15px;
}

.testimonial-author-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-author-info h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.testimonial-author-info p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .testimonials-container {
        flex-direction: column;
        align-items: center;
    }
    
    .testimonial-card {
        max-width: 100%;
    }
    
    .scroll-to-top {
        bottom: 80px;
        width: 40px;
        height: 40px;
    }
}
