/* ============================================
   THEME.CSS - Colors, Typography, Components
   ============================================ */

/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-grid {
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 204, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 204, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.15;
}

.glow-1 {
    width: 600px;
    height: 600px;
    background: #0044ff;
    top: -200px;
    left: -200px;
}

.glow-2 {
    width: 700px;
    height: 700px;
    background: #0066ff;
    bottom: -250px;
    right: -200px;
}

/* ============================================
   PARTICLES BACKGROUND
   ============================================ */

.particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
}

.hero-text h2 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
}

.hero-text h2 .highlight {
    background: linear-gradient(135deg, #00ccff, #00ff88, #00ccff);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-text .hero-subtitle {
    font-size: 1.1rem;
    color: #00ccff;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

.hero-text p {
    font-size: 1.15rem;
    color: #8899bb;
    max-width: 520px;
    line-height: 1.8;
}

.section-tag {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #00ccff;
    border: 1px solid rgba(0, 204, 255, 0.15);
    background: rgba(0, 204, 255, 0.05);
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
}

.section-subtitle {
    color: #8899bb;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 8px auto 0;
    line-height: 1.6;
}

/* About Section */
.about-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: #070b18;
    background: linear-gradient(135deg, #00ccff, #0088ff);
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 30px rgba(0, 204, 255, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(0, 204, 255, 0.35);
    color: #070b18;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 36px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    color: #00ccff;
    border: 1px solid rgba(0, 204, 255, 0.25);
    background: rgba(0, 204, 255, 0.04);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(0, 204, 255, 0.08);
    border-color: #00ccff;
    transform: translateY(-2px);
    color: #00ccff;
}

/* Service Cards */
.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(0, 204, 255, 0.06);
    transition: all 0.4s ease;
}

.service-card:hover {
    background: rgba(0, 204, 255, 0.04);
    border-color: rgba(0, 204, 255, 0.15);
    transform: translateY(-4px);
    box-shadow: 0 12px 50px rgba(0, 204, 255, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    color: #00ccff;
    background: rgba(0, 204, 255, 0.06);
    border: 1px solid rgba(0, 204, 255, 0.08);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(0, 204, 255, 0.12);
    border-color: rgba(0, 204, 255, 0.2);
    box-shadow: 0 0 40px rgba(0, 204, 255, 0.05);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.service-card p {
    font-size: 1rem;
    color: #8899bb;
}

/* ============================================
   SERVICE STATUS (Coming Soon)
   ============================================ */

.service-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 12px;
    letter-spacing: 0.5px;
}

.service-status.soon {
    color: #ffd54f;
    background: rgba(255, 213, 79, 0.08);
    border: 1px solid rgba(255, 213, 79, 0.15);
    animation: pulseSoon 2s ease-in-out infinite;
}

@keyframes pulseSoon {
    0% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
    100% { opacity: 0.7; transform: scale(1); }
}

/* Coming Soon Card */
.service-card.coming-soon {
    opacity: 0.85;
    position: relative;
    overflow: hidden;
}

.service-card.coming-soon::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 213, 79, 0.02) 50%,
        transparent 100%
    );
    animation: shimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

.service-card.coming-soon:hover {
    border-color: rgba(255, 213, 79, 0.2);
    box-shadow: 0 12px 50px rgba(255, 213, 79, 0.04);
}

.service-card.coming-soon .service-icon {
    opacity: 0.7;
}

/* Footer */
footer {
    text-align: center;
}

.footer-social-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: 100%;
}

.footer-social-label {
    color: #00ccff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
}

.footer-social-label::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ccff, transparent);
}

.footer-social-label i {
    margin-left: 8px;
}

.footer-social {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.footer-social a {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.4rem;
    color: #8899bb;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.3s ease;
    position: relative;
}

.footer-social a:hover {
    color: #00ccff;
    border-color: rgba(0, 204, 255, 0.35);
    background: rgba(0, 204, 255, 0.08);
    transform: translateY(-4px);
    box-shadow: 0 6px 30px rgba(0, 204, 255, 0.15);
}

.footer-social a::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(0, 204, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social a:hover::before {
    opacity: 1;
}

.footer-bottom p {
    color: #445566;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* Footer LTR */
footer[dir="ltr"] {
    text-align: center;
    direction: ltr;
}

footer[dir="ltr"] .footer-social-wrapper {
    align-items: center;
}

footer[dir="ltr"] .footer-social {
    justify-content: center;
}

footer[dir="ltr"] .footer-bottom {
    text-align: center;
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00ccff, #0088ff);
    color: #070b18;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 30px rgba(0, 204, 255, 0.3);
    transition: all 0.3s ease;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-top-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 40px rgba(0, 204, 255, 0.5);
    background: linear-gradient(135deg, #00ff88, #00ccff);
    color: #070b18;
}

.scroll-top-btn:active {
    transform: scale(0.95);
}

/* ===== RTL - زر في الجهة اليسرى ===== */
[dir="rtl"] .scroll-top-btn {
    right: auto;
    left: 30px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .scroll-top-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        bottom: 20px;
        right: 20px;
    }

    [dir="rtl"] .scroll-top-btn {
        right: auto;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        bottom: 16px;
        right: 16px;
    }

    [dir="rtl"] .scroll-top-btn {
        right: auto;
        left: 16px;
    }
}

/* ============================================
   RESPONSIVE THEME
   ============================================ */

@media (max-width: 992px) {
    .hero-text h2 {
        font-size: 3.2rem;
    }
    .section-header h2 {
        font-size: 2.3rem;
    }
    .about-content h2 {
        font-size: 2.3rem;
    }
}

@media (max-width: 768px) {
    .hero-text h2 {
        font-size: 2.5rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        padding: 0 16px;
    }

    .service-status {
        font-size: 0.7rem;
        padding: 3px 12px;
    }

    .footer-social-wrapper {
        width: 100%;
    }

    .footer-social a {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .footer-social {
        gap: 14px;
    }

    .footer-social-label {
        font-size: 0.95rem;
    }

    .footer-social-label::after {
        width: 30px;
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }

    footer[dir="ltr"] .footer-social-wrapper {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-text h2 {
        font-size: 2rem;
    }

    .btn-primary, .btn-secondary {
        padding: 12px 28px;
        font-size: 0.95rem;
    }

    .footer-social a {
        width: 42px;
        height: 42px;
        font-size: 1.1rem;
    }

    .footer-social {
        gap: 12px;
    }

    .footer-social-label {
        font-size: 0.85rem;
    }

    .footer-social-label::after {
        width: 25px;
        bottom: -4px;
    }
}