/* ===== Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
    direction: rtl;
}

:root {
    --primary-color: #4CAF50;
    --primary-dark: #388E3C;
    --primary-light: #81C784;
    --accent-color: #69F0AE;
    --dark-bg: #121212;
    --dark-surface: #1E1E1E;
    --dark-surface-2: #242424;
    --text-light: #E0E0E0;
    --text-secondary: #B0B0B0;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: var(--text-light);
    background-color: var(--dark-bg);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        var(--dark-bg),
        var(--dark-surface),
        var(--dark-surface-2)
    );
    background-size: 400% 400%;
    z-index: -2;
    animation: gradientBG 15s ease infinite;
}

/* Animation Keyframes */
@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes floatingElement {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes ripple {
    to { transform: scale(4); opacity: 0; }
}

@keyframes patternMove {
    0% { background-position: 0 0, 25px 25px; }
    100% { background-position: 1000px 1000px, 1025px 1025px; }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Components */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.05;
    background-image: 
        linear-gradient(135deg, rgba(105, 240, 174, 0.05) 25%, transparent 25%),
        linear-gradient(225deg, rgba(105, 240, 174, 0.05) 25%, transparent 25%),
        linear-gradient(45deg, rgba(105, 240, 174, 0.05) 25%, transparent 25%),
        linear-gradient(315deg, rgba(105, 240, 174, 0.05) 25%, transparent 25%);
    background-position: 25px 0, 25px 0, 0 0, 0 0;
    background-size: 50px 50px;
    background-repeat: repeat;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background-color: var(--dark-surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
}

.logo span {
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(105, 240, 174, 0.3);
}

/* Button Styles */
.btn, .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    min-width: 150px;
    text-align: center;
    margin: 0.5rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--text-light);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: var(--transition-smooth);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-secondary {
    background-color: var(--dark-surface-2);
    color: var(--text-light);
    border: 1px solid var(--primary-color);
}

.btn:hover, .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(105, 240, 174, 0.3),
                0 0 40px rgba(105, 240, 174, 0.1);
}

/* Enhanced CTA Button Styles */
.cta-button {
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    color: var(--dark-bg);
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(105, 240, 174, 0.2);
    text-align: center;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 200px;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(105, 240, 174, 0.4);
}

.cta-button:active {
    transform: translateY(1px);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

/* Add pulsing animation */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(105, 240, 174, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(105, 240, 174, 0); }
    100% { box-shadow: 0 0 0 0 rgba(105, 240, 174, 0); }
}

/* Hero Section */
.hero {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, var(--primary-color) 0%, transparent 50%);
    opacity: 0.05;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(105, 240, 174, 0.05) 0%, transparent 70%),
        radial-gradient(circle at 80% 70%, rgba(76, 175, 80, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--text-light);
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.hero-text h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    animation: fadeInRight 1s ease-out 0.5s backwards;
}

.hero-text .lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* Section Styles */
.section {
    padding: 5rem 0;
    background-color: var(--dark-surface);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.section-title p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.feature-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin: 2rem 0;
}

.feature-text {
    flex: 1;
}

.feature-image {
    flex: 1;
    transition: var(--transition-smooth);
    position: relative;
}

.feature-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition-smooth);
    border-radius: 10px;
}

.feature-image:hover::after {
    opacity: 0.2;
}

.feature-image:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(105, 240, 174, 0.2);
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Feature List */
.feature-list {
    list-style: none;
    margin: 1.5rem 0;
}

.feature-list li {
    margin-bottom: 1rem;
    padding-right: 2rem;
    position: relative;
}

.feature-list li:before {
    content: "✓";
    color: var(--accent-color);
    position: absolute;
    right: 0;
    top: 0;
    text-shadow: 0 0 5px rgba(105, 240, 174, 0.5);
}

/* CTA Section Styles */
.cta-section {
    background: linear-gradient(135deg, 
        rgba(56, 142, 60, 0.1) 0%,
        rgba(76, 175, 80, 0.05) 100%
    );
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease-out;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.cta-button {
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Particle Animation */
.cta-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-light);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-up 8s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 30%; animation-delay: 2s; }
.particle:nth-child(3) { left: 50%; animation-delay: 4s; }
.particle:nth-child(4) { left: 70%; animation-delay: 6s; }
.particle:nth-child(5) { left: 90%; animation-delay: 8s; }
.particle:nth-child(6) { left: 20%; animation-delay: 10s; }

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes float-up {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    50% {
        opacity: 0.3;
    }
    100% {
        transform: translateY(-100vh) scale(1);
        opacity: 0;
    }
}

/* Footer */
footer {
    background-color: var(--dark-surface-2);
    color: var(--text-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(105, 240, 174, 0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h3 {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.8rem;
}

.footer-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--text-light);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content,
    .feature-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .feature-list {
        text-align: right;
    }

    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .header-buttons, .cta-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn, .cta-button {
        width: 100%;
        margin: 0.5rem 0;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1.1rem;
        min-width: 180px;
    }
}

/* Animation Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Wave Animation */
.wave-bg .shape-fill {
    fill: var(--dark-surface);
}

.wave-bg {
    opacity: 0.8;
}