:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --accent-color: #ffde59;
    --text-color: #333;
    --bg-color: #f9faff;
    --white-color: #ffffff;
    --font-family-en: 'Poppins', sans-serif;
    --font-family-ar: 'Cairo', sans-serif;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

/* --- General Styles --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family-en);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

body.rtl {
    direction: rtl;
    font-family: var(--font-family-ar);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: 2.8rem; }
h2 { font-size: 2.2rem; text-align: center; margin-bottom: 40px; }
h3 { font-size: 1.5rem; }

section {
    padding: 80px 0;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-color), #ffc107);
    color: var(--text-color);
    padding: 15px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(255, 222, 89, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 222, 89, 0.7);
}


/* --- Header --- */
.main-header {
    background: var(--white-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.main-header nav a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text-color);
    font-weight: 600;
    transition: color 0.3s ease;
}

.main-header nav a:hover {
    color: var(--secondary-color);
}

#lang-toggle {
    background: none;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 15px;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    font-family: inherit;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#lang-toggle:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}


/* --- Hero Section --- */
.hero-section {
    background-image: url('hero-background.png');
    background-size: cover;
    background-position: center;
    color: var(--white-color);
    text-align: center;
    padding: 120px 0;
    position: relative;
}
.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(4, 20, 53, 0.6);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero-section p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}


/* --- Services Section --- */
.services-section { background-color: var(--white-color); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.service-card {
    background: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}
.service-card.featured {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}
.popular-badge {
    position: absolute;
    top: 15px;
    right: -45px;
    background: var(--secondary-color);
    color: var(--white-color);
    padding: 5px 40px;
    transform: rotate(45deg);
    font-size: 0.9rem;
    font-weight: 600;
}
body.rtl .popular-badge {
    right: auto;
    left: -45px;
    transform: rotate(-45deg);
}

.service-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 15px 0;
}
.service-card p { margin-bottom: 20px; }
.video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e0e0e0;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    margin-bottom: 20px;
    border: 2px dashed #ccc;
}
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: var(--border-radius);
}
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.scarcity {
    color: #e53935;
    font-weight: 600;
    margin-bottom: 20px;
}


/* --- Why Choose Us Section --- */
.why-choose-us {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
}
.why-choose-us h2 {
    color: var(--white-color);
}
.why-choose-us ul {
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}
.why-choose-us li {
    background: rgba(255,255,255,0.1);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: var(--border-radius);
    text-align: center;
}
body.rtl .why-choose-us li {
    padding-right: 40px;
}

/* --- How It Works Section --- */
.how-it-works-section { background-color: var(--white-color); }
.steps-container {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    text-align: center;
}
.step {
    max-width: 300px;
}
.step img {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
}
.step h3 { margin-bottom: 10px; }


/* --- Urgency Section --- */
.urgency-section {
    background-color: var(--accent-color);
    text-align: center;
}
.urgency-section h2 {
    color: var(--text-color);
}
#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}
#countdown-timer > div {
    background: rgba(255,255,255,0.3);
    padding: 20px;
    border-radius: var(--border-radius);
    min-width: 100px;
}
#countdown-timer span {
    display: block;
}
#countdown-timer span:first-child {
    font-size: 3rem;
    font-weight: 700;
}


/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.testimonial-card {
    background: var(--white-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}
.testimonial-card .quote {
    font-style: italic;
    margin-bottom: 20px;
    flex-grow: 1;
}
.testimonial-card .author {
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Final CTA Section --- */
.final-cta-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--white-color);
    text-align: center;
}
.final-cta-section h2 {
    color: var(--white-color);
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* --- Footer --- */
.main-footer {
    background-color: #1a1a2e;
    color: #e0e0e0;
    padding: 40px 0;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #e0e0e0;
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 15px;
}
.payment-methods img {
    height: 30px;
    background: var(--white-color);
    padding: 5px;
    border-radius: 5px;
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.25);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 4px 4px 10px rgba(0,0,0,0.3);
}

body.rtl .whatsapp-float {
    right: auto;
    left: 30px;
}

.whatsapp-float .whatsapp-tooltip {
    visibility: hidden;
    width: max-content;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    pointer-events: none;
    white-space: nowrap;
}

body.rtl .whatsapp-float .whatsapp-tooltip {
    right: auto;
    left: 0;
}

.whatsapp-float:hover .whatsapp-tooltip {
    visibility: visible;
    opacity: 1;
}

/* --- Floating Contact Buttons --- */
.floating-contact-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

body.rtl .floating-contact-container {
    right: auto;
    left: 30px;
}

.contact-toggle-button {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: var(--white-color);
    border-radius: 50%;
    border: none;
    font-size: 28px;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.contact-toggle-button:hover {
    transform: scale(1.1);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.3);
}

.contact-toggle-button .close-icon { display: none; }
.floating-contact-container.active .contact-toggle-button .open-icon { display: none; }
.floating-contact-container.active .contact-toggle-button .close-icon { display: block; }

.contact-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
    transition: all 0.3s ease-in-out;
    transform: translateY(20px);
    opacity: 0;
    visibility: hidden;
}

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

.contact-bubble {
    width: 50px;
    height: 50px;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 1px 1px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
}

.contact-bubble:hover {
    transform: scale(1.15);
}

.contact-bubble.whatsapp { background-color: #25D366; }
.contact-bubble.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.contact-bubble.facebook { background-color: #1877F2; }

.contact-tooltip {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 10px;
    position: absolute;
    z-index: 1;
    right: 120%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.9rem;
    pointer-events: none;
    white-space: nowrap;
}

body.rtl .contact-tooltip {
    right: auto;
    left: 120%;
}

.contact-bubble:hover .contact-tooltip {
    visibility: visible;
    opacity: 1;
}


/* --- Responsive Styles --- */
@media (max-width: 768px) {
    h1 { font-size: 2.2rem; }
    .hero-section h1 { font-size: 2.5rem; }
    h2 { font-size: 1.8rem; }
    
    .main-header .container { flex-direction: column; gap: 10px; }
    .main-header nav { margin: 10px 0; }
    .main-header nav a { margin: 0 10px; }
    
    .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
    .service-card.featured { transform: scale(1); }
    
    .steps-container { flex-direction: column; align-items: center; }
    
    #countdown-timer { flex-wrap: wrap; }
    
    .footer-content { flex-direction: column; text-align: center; }
}