/* Root Variables */
:root {
    --space-black: #050810;
    --electric-blue: #00BFFF;
    --vivid-orange: #FF4500;
    --purple-deep: #7B2FBE;
    --gray-muted: #A0AEC0;
    --neon-glow: 0 0 20px rgba(0, 191, 255, 0.5), 0 0 40px rgba(0, 191, 255, 0.3);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--space-black);
    color: white;
    overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .font-orbitron {
    font-family: 'Cairo', sans-serif;
}

/* Stars Background Animation */
.stars-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(2px 2px at 20% 30%, white, transparent),
                radial-gradient(2px 2px at 60% 70%, white, transparent),
                radial-gradient(1px 1px at 50% 50%, white, transparent),
                radial-gradient(1px 1px at 80% 10%, white, transparent),
                radial-gradient(2px 2px at 90% 60%, white, transparent),
                radial-gradient(1px 1px at 33% 80%, white, transparent),
                radial-gradient(1px 1px at 15% 90%, white, transparent);
    background-size: 200% 200%;
    animation: twinkle 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.6; }
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Neon Button */
.neon-button {
    position: relative;
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-deep));
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    color: white;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: var(--neon-glow);
    overflow: hidden;
}

.neon-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 191, 255, 0.8), 0 0 60px rgba(0, 191, 255, 0.5);
}

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

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

/* Glassmorphism Card */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--electric-blue), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 191, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 191, 255, 0.2);
}

.glass-card:hover::before {
    opacity: 1;
}

/* Neon Border Card */
.neon-border {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--electric-blue), var(--purple-deep)) 1;
    position: relative;
}

.neon-border::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-deep));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.neon-border:hover::after {
    opacity: 0.3;
}

/* Loading Spinner */
.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid var(--electric-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Fade In Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Slide In Animation */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in {
    animation: slideIn 0.6s ease-out forwards;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Glowing Text */
.glow-text {
    text-shadow: 0 0 10px rgba(0, 191, 255, 0.8),
                 0 0 20px rgba(0, 191, 255, 0.5),
                 0 0 30px rgba(0, 191, 255, 0.3);
}

/* Hero TV Mockup Glow */
.tv-glow {
    position: relative;
}

.tv-glow::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-deep));
    border-radius: 20px;
    filter: blur(40px);
    opacity: 0.6;
    z-index: -1;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--space-black);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-deep));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--electric-blue);
}

/* Navigation Styles */
.nav-link {
    position: relative;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--electric-blue);
    transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Feature Icon Container */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1), rgba(123, 47, 190, 0.1));
    border: 2px solid rgba(0, 191, 255, 0.3);
    border-radius: 20px;
    transition: all 0.3s;
}

.feature-icon:hover {
    transform: rotate(5deg) scale(1.1);
    box-shadow: var(--neon-glow);
}

/* Device Card */
.device-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.device-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--electric-blue);
    transform: translateY(-5px);
}

/* Pricing Card */
.pricing-card {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.05), rgba(123, 47, 190, 0.05));
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--electric-blue), var(--purple-deep)) 1;
    border-radius: 30px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.1) 0%, transparent 70%);
    animation: rotate 10s linear infinite;
}

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

/* Floating Contact Widget */
.contact-widget {
    position: relative;
}

.contact-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--neon-glow);
    transition: all 0.3s;
    animation: bounce 2s infinite;
}

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

.contact-toggle:hover {
    transform: scale(1.1);
}

.contact-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: rgba(5, 8, 16, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.contact-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.contact-menu a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: white;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.contact-menu a:last-child {
    margin-bottom: 0;
}

.contact-menu a:hover {
    background: rgba(0, 191, 255, 0.1);
    transform: translateX(-5px);
}

.contact-menu a i {
    font-size: 1.5rem;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--electric-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.form-input::placeholder {
    color: var(--gray-muted);
}

[dir="rtl"] .form-input {
    text-align: right;
}

/* Select Dropdown */
.form-select {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.form-select:focus {
    outline: none;
    border-color: var(--electric-blue);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

.form-select option {
    background: var(--space-black);
    color: white;
}

/* Textarea */
.form-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    transition: all 0.3s;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--electric-blue);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(0, 191, 255, 0.1);
}

/* Phone Input Container */
.phone-input-container {
    display: flex;
    gap: 0.5rem;
}

.phone-prefix {
    flex: 0 0 120px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--space-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
    font-size: 1.5rem;
}

[dir="rtl"] .modal-close {
    right: auto;
    left: 1rem;
}

.modal-close:hover {
    background: var(--vivid-orange);
    transform: rotate(90deg);
}

/* Category Badge */
.category-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    background: rgba(0, 191, 255, 0.1);
    border: 1px solid var(--electric-blue);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* App Icon */
.app-icon {
    font-size: 4rem;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.5));
}

/* Trust Badge */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
}

/* Testimonial Card */
.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--electric-blue);
}

/* Star Rating */
.stars {
    color: #FFD700;
    font-size: 1.2rem;
}

/* FAQ Accordion */
.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: all 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.05);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 1.5rem;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-icon.rotate {
    transform: rotate(180deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--space-black);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 9999;
    padding: 2rem;
    transition: right 0.3s;
    overflow-y: auto;
}

[dir="rtl"] .mobile-menu {
    right: auto;
    left: -100%;
    border-left: none;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: left 0.3s;
}

.mobile-menu.active {
    right: 0;
}

[dir="rtl"] .mobile-menu.active {
    left: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* App Filter Buttons */
.filter-button {
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
}

.filter-button:hover {
    background: rgba(0, 191, 255, 0.1);
    border-color: var(--electric-blue);
}

.filter-button.active {
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-deep));
    border-color: transparent;
    box-shadow: var(--neon-glow);
}

/* Installation Steps */
.installation-step {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.5rem;
}

[dir="rtl"] .installation-step {
    padding-left: 0;
    padding-right: 3rem;
}

.installation-step::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    top: 0;
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-deep));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

[dir="rtl"] .installation-step::before {
    left: auto;
    right: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .neon-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }
    
    .glass-card {
        padding: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Section Spacing */
section {
    padding: 5rem 0;
}

@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }
}

/* Hidden Class */
.hidden {
    display: none !important;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.lang-button {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    font-size: 0.9rem;
}

.lang-button:hover {
    background: rgba(0, 191, 255, 0.1);
    border-color: var(--electric-blue);
}

.lang-button.active {
    background: var(--electric-blue);
    border-color: var(--electric-blue);
}

/* Grid Layouts */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 768px) {
    .feature-grid,
    .device-grid,
    .app-grid {
        grid-template-columns: 1fr;
    }
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-deep));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Title */
.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    text-align: center;
}

[dir="rtl"] .section-title {
    font-family: 'Cairo', sans-serif;
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
}

/* Price Tag */
.price-tag {
    font-size: 4rem;
    font-weight: 900;
    font-family: 'Orbitron', sans-serif;
    color: var(--electric-blue);
    text-shadow: var(--neon-glow);
}

@media (max-width: 768px) {
    .price-tag {
        font-size: 3rem;
    }
}

/* Check Icon */
.check-icon {
    color: #10B981;
    font-size: 1.2rem;
}

/* Testimonial Avatar */
.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--electric-blue), var(--purple-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Country Flag */
.country-flag {
    font-size: 1.5rem;
    display: inline-block;
}

/* Loading States */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Success Message */
.success-message {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid #10B981;
    color: #10B981;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #EF4444;
    color: #EF4444;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Utility Classes */
.blur-background {
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.text-shadow {
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.transition-all {
    transition: all 0.3s ease;
}
