/* facelancer_project\static\css\download_app.css */

/* Here the Font of the Page */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --success-color: #4CAF50;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --font-family: 'Tajawal', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.custom-download {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    font-family: var(--font-family); /* Apply Tajawal here */
    color: white;
    overflow-x: hidden;
}

/* Apply Tajawal to all elements */
body {
    font-family: 'Tajawal', sans-serif !important;
}

/* Ensure specific elements use Tajawal */
h1, h2, h3, h4, h5, h6,
p, span, div, a,
button, input, textarea {
    font-family: 'Tajawal', sans-serif;
}

/* Enhanced Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.circle, .triangle {
    position: absolute;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--accent-color);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid var(--primary-color);
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

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

/* Main Container */
.container {
    text-align: center;
    padding-top: 50px;
    position: relative;
    z-index: 1;
}

.logo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}

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

/* Statistics */
.stats-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.stat-item {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    min-width: 150px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    display: block;
    color: var(--accent-color);
}

.stat-label {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Download Buttons */
.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
}

.download-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 18px 30px; /* Increased padding */
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    min-width: 300px;
    border: none;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
    gap: 15px; /* Add gap between icon and text */
    text-align: right; /* Ensure text alignment is correct for RTL */
}

.download-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-button:hover::before {
    left: 100%;
}

.download-button.apkpure {
    background: linear-gradient(45deg, #4285F4, #34A853);
    color: white;
}

.download-button:not(.coming-soon):not(.ios-download) {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
}

.download-button.ios-download {
    background: linear-gradient(45deg, #000000, #434343);
    color: white;
}

.download-button.coming-soon {
    background: #6c757d;
    color: white;
    cursor: not-allowed;
}

.download-button:hover:not(.coming-soon) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.feature-card {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

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

/* Content Section */
.content-section {
    background: var(--light-bg);
    color: var(--text-color);
    padding: 30px 20px !important; /* Reduced from 60px 20px */
    margin-top: 30px !important; /* Reduced from 50px if needed */
    position: relative;
}

.content-section::before {
    display: none; /* Remove the duplicate rounded corner */
}

/* If the container inside also has padding, reduce that too */
.content-section .container {
    padding-top: 0 !important;
}

.features-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card-enhanced {
    background: white;
    padding: 30px 25px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card-enhanced:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.feature-card-enhanced .feature-icon {
    font-size: 3em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.feature-card-enhanced h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.3em;
}

.feature-card-enhanced p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 0;
}

/* AI Feature Special Styling */
.ai-feature {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.ai-feature::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1%, transparent 1%);
    background-size: 20px 20px;
    animation: float 20s linear infinite;
}

.ai-feature .feature-icon {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-feature h3,
.ai-feature p {
    color: white;
    position: relative;
    z-index: 2;
}

/* Pricing Badge */
.pricing-badge {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: bold;
    margin-top: 15px;
    display: inline-block;
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
    animation: pulse 2s infinite;
}

/* Free Trial Highlight */
.free-trial-highlight {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(76,175,80,0.3);
    border: 2px solid rgba(255,255,255,0.5);
}

.free-trial-highlight h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: white;
}

.free-trial-highlight p {
    font-size: 1.1em;
    margin-bottom: 0;
    opacity: 0.9;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 10% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    color: var(--text-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    animation: modalAppear 0.3s ease;
    direction: rtl;
    text-align: right;
}

.modal-content .close {
    float: left;
    margin-right: 0;
    margin-left: 15px;
    font-size: 32px;
    font-weight: bold;
}

.modal-content h2,
.modal-content p {
    text-align: right;
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 25px;
    flex-direction: row-reverse;
}

.modal-button {
    padding: 12px 30px;
    border-radius: 25px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.3s ease;
}

.modal-button.confirm {
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
}

.modal-button.cancel {
    background: #6c757d;
    color: white;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

@keyframes modalAppear {
    from { opacity: 0; transform: scale(0.7); }
    to { opacity: 1; transform: scale(1); }
}

.close {
    color: #aaa;
    float: left;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: var(--text-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        align-items: center;
    }
    
    .download-button {
        min-width: 250px;
        font-size: 1em;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* Badge for new release */
.new-badge {
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    margin-left: 10px;
    animation: glow 2s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px var(--accent-color); }
    50% { box-shadow: 0 0 20px var(--accent-color); }
}




/* ======================= RATING CSS ============================= */

/* Enhanced Rating Display */
.rating-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.rating-stars {
    color: #FFD700;
    font-size: 0.9em;
}

/* Rating Breakdown */
.rating-breakdown {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin: 30px 0;
}

.rating-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-container {
    flex: 1;
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: linear-gradient(45deg, #FFD700, #FFA500);
    transition: width 1s ease-in-out;
}

.rating-count {
    font-weight: bold;
    color: var(--text-color);
    min-width: 30px;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.15);
    padding: 15px 20px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.trust-badge:hover {
    background: rgba(255,255,255,0.25);
    transform: translateY(-3px);
}

.trust-badge i {
    color: var(--accent-color);
    font-size: 1.2em;
}

.trust-badge span {
    font-weight: 600;
}

/* CTA Sections */
.cta-section {
    text-align: center;
    margin: 60px 0;
    padding: 50px 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 25px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.cta-section h2 {
    font-size: 2em;
    margin-bottom: 20px;
    color: white;
}

.cta-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    opacity: 0.9;
}

.content-section .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.content-section .feature-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
}

.content-section .feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.content-section .feature-icon {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.cta-buttons, .final-cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.cta-button {
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
    justify-content: center;
}

.cta-button.primary {
    background: linear-gradient(45deg, #FF6B6B, #FF8E53);
    color: white;
    box-shadow: 0 5px 15px rgba(255,107,107,0.3);
}

.cta-button.secondary {
    background: rgba(255,255,255,0.9);
    color: var(--text-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Social Proof */
.social-proof {
    margin: 40px 0 30px 0; /* Added more space around the section */
}

.lead {
    font-size: 1.2em;
    margin: 40px 0 !important; /* Increased margin */
    line-height: 1.6;
    text-align: center;
    padding: 0 20px;
}

.user-testimonials {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    justify-content: center;
}

.testimonial {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.user-avatar-placeholder {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
}


.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-content {
    flex: 1;
}

.testimonial-content p {
    margin: 10px 0;
    font-style: italic;
    line-height: 1.6;
}

.user-name {
    font-size: 0.9em;
    opacity: 0.8;
    font-weight: bold;
}

/* Rating stars in testimonials */
.testimonial .rating-stars {
    color: #FFD700;
    font-size: 0.9em;
    margin-bottom: 10px;
}

/* Quick Features */
.quick-features {
    margin: 60px 0;
}

.quick-features h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.2em;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.quick-features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.quick-features .feature-card {
    background: rgba(255,255,255,0.15);
    padding: 30px 25px;
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.quick-features .feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s;
}

.quick-features .feature-card:hover::before {
    left: 100%;
}

.quick-features .feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.2);
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.quick-features .feature-icon {
    font-size: 2.8em;
    margin-bottom: 20px;
    background: linear-gradient(45deg, var(--accent-color), #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s ease;
}

.quick-features .feature-card:hover .feature-icon {
    transform: scale(1.1);
}

.quick-features .feature-card h3 {
    color: white;
    margin-bottom: 15px;
    font-size: 1.3em;
    font-weight: 700;
}

.quick-features .feature-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    font-size: 0.95em;
}

/* Special styling for AI feature */
.quick-features .feature-card:nth-child(2) {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3), rgba(118, 75, 162, 0.3));
    border: 1px solid rgba(240, 147, 251, 0.4);
}

.quick-features .feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Enhanced responsive design */
@media (max-width: 768px) {
    .trust-badges {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons, .final-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-button {
        min-width: 250px;
    }
    
    .testimonial {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 1200px) {
    .quick-features .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .quick-features .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-features .feature-card {
        padding: 25px 20px;
    }
}


@media (max-width: 768px) {
    .lead {
        margin: 30px 0 !important;
        font-size: 1.1em;
        padding: 0 15px;
    }
    
    .content-section {
        padding: 40px 15px;
        margin-top: 30px;
    }
    
    .trust-badges {
        gap: 15px;
    }
    
    .trust-badge {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .quick-features h2 {
        font-size: 1.8em;
    }
    
    .cta-section {
        padding: 30px 20px;
        margin: 40px 0;
    }
    
    .cta-section h2 {
        font-size: 1.6em;
    }
    
    .features-grid-enhanced {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Animation for rating bars */
@keyframes slideIn {
    from { width: 0%; }
    to { width: actual-width; }
}

.bar {
    animation: slideIn 1.5s ease-out;
}