/* Global Styles */
:root {
    --primary: #8a2be2;
    --primary-dark: #7026b9;
    --secondary: #5e17eb;
    --dark: #121638;
    --darker: #0c0e26;
    --light: #f8f9fa;
    --gray: #6c757d;
    --success: #28a745;
    --border-radius: 10px;
    --box-shadow: 0 5px 20px rgba(138, 43, 226, 0.2);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    padding: 0.5rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.btn-outline-light {
    color: var(--light);
    border-color: var(--light);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    transform: translateY(-3px);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 30%;
    left: 30%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-subtitle {
    color: #adb5bd;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Star Network Animation Background */
.star-network {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Header & Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
    padding: 1rem 0;
    background-color: rgba(12, 14, 38, 0.95);
    backdrop-filter: blur(10px);
}

header.scrolled {
    background-color: rgba(12, 14, 38, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--primary);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(12, 14, 38, 0.95), rgba(12, 14, 38, 0.8)), url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.3) 0%, rgba(138, 43, 226, 0) 70%);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 0 20px rgba(138, 43, 226, 0.5);
}

.hero p.lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-cta {
    margin-top: 2rem;
}

/* Services Preview */
.services-preview {
    background-color: var(--dark);
    padding: 6rem 0;
}

.service-card {
    background: linear-gradient(145deg, #151c45, #121638);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: radial-gradient(ellipse at center, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0) 70%);
    transform: scale(0);
    transition: transform 0.5s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover::before {
    transform: scale(1);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(138, 43, 226, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary);
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: #adb5bd;
}

/* Portfolio Preview */
.portfolio-preview {
    background-color: var(--darker);
    padding: 6rem 0;
}

.portfolio-item {
    margin-bottom: 2rem;
    transition: var(--transition);
}

.video-thumbnail {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.video-thumbnail img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(138, 43, 226, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.play-button i {
    font-size: 2rem;
    color: white;
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-thumbnail:hover .play-button {
    opacity: 1;
}

.portfolio-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.portfolio-item p {
    color: #adb5bd;
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials {
    background-color: var(--dark);
    padding: 6rem 0;
}

.testimonial-card {
    background: linear-gradient(145deg, #151c45, #121638);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.client-image {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    margin-bottom: 1rem;
}

.client-info h4 {
    margin-bottom: 0.25rem;
}

.client-position {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '"';
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.3;
    position: absolute;
}

.testimonial-text::before {
    top: -10px;
    right: 0;
}

.testimonial-text::after {
    bottom: -10px;
    left: 0;
}

.rating {
    color: #ffc107;
    font-size: 1rem;
}

/* Pricing */
.pricing {
    background-color: var(--darker);
    padding: 6rem 0;
}

.pricing-card {
    background: linear-gradient(145deg, #151c45, #121638);
    border-radius: var(--border-radius);
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(138, 43, 226, 0.1);
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary);
    z-index: 2;
}

.featured-label {
    position: absolute;
    top: 1.5rem;
    right: -3rem;
    background-color: var(--primary);
    color: white;
    padding: 0.5rem 3rem;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
}

.package-name {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: white;
}

.currency {
    font-size: 1rem;
    font-weight: 600;
    vertical-align: super;
    margin-right: 0.25rem;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: right;
}

.features-list li {
    margin-bottom: 0.8rem;
    padding-right: 1.5rem;
    position: relative;
}

.features-list li i {
    color: var(--success);
    position: absolute;
    right: 0;
    top: 0.25rem;
}

.pricing-card:hover:not(.featured) {
    transform: translateY(-10px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary));
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/galaxy-pattern.png');
    background-size: cover;
    opacity: 0.1;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-section .btn-primary {
    background-color: white;
    color: var(--primary);
    border-color: white;
}

.cta-section .btn-primary:hover {
    background-color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background-color: var(--dark);
    color: #adb5bd;
    font-size: 0.9rem;
}

.footer h5 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: #adb5bd;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    padding-right: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    margin-left: 0.75rem;
    color: var(--primary);
}

.contact-info a {
    color: #adb5bd;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--primary);
}

.social-icons {
    margin-top: 1.5rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: #adb5bd;
    margin-right: 0.5rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.newsletter-form .form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius);
}

.newsletter-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form .btn {
    padding: 0.75rem 1rem;
}

hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.copyright {
    margin-bottom: 0;
    font-size: 0.85rem;
}

.copyright a {
    color: var(--primary);
}

/* Media Queries */
@media (max-width: 991.98px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p.lead {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1.03);
    }
}

@media (max-width: 767.98px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .service-card,
    .testimonial-card,
    .pricing-card {
        margin-bottom: 2rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease forwards;
}

.slide-up {
    animation: slideUp 0.8s ease forwards;
}

.slide-right {
    animation: slideRight 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* RTL Specific Adjustments */
.navbar-nav {
    padding-right: 0;
}

.navbar-nav .nav-link {
    text-align: right;
}

.footer-links,
.contact-info {
    padding-right: 0;
}

.features-list {
    padding-right: 0;
}

/* For the Arabic Font */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&display=swap'); 