/* ===========================
   Variables & Reset
   =========================== */
:root {
    --primary-green: #00ff88;
    --primary-dark: #0a0e27;
    --secondary-dark: #0f1729;
    --accent-orange: #ff6b35;
    --accent-gold: #ffd700;
    --saudi-green: #006c35;
    --text-light: #ffffff;
    --text-gray: #b0b8c4;
    --gradient-primary: linear-gradient(135deg, #0a0e27 0%, #0f1729 50%, #1a2332 100%);
    --gradient-card: linear-gradient(145deg, rgba(15, 23, 41, 0.9) 0%, rgba(10, 14, 39, 0.95) 100%);
    --gradient-green: linear-gradient(135deg, #00ff88 0%, #00cc70 100%);
    --box-shadow: 0 10px 40px rgba(0, 255, 136, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', 'Tajawal', sans-serif;
    background: var(--primary-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Arabic Text Styling */
.ar-text {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    display: block;
}

.en-text {
    font-family: 'Inter', sans-serif;
    direction: ltr;
    display: block;
}

/* Initially hide English text */
body:not(.lang-en) .en-text {
    display: none;
}

body.lang-en .ar-text {
    display: none;
}

body.lang-en .en-text {
    display: block;
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(10, 14, 39, 0.95) 0%, 
        rgba(0, 108, 53, 0.3) 50%,
        rgba(10, 14, 39, 0.9) 100%
    );
    z-index: 1;
}

.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 136, 0.03) 2px,
            rgba(0, 255, 136, 0.03) 4px
        );
    animation: scan 8s linear infinite;
}

@keyframes scan {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 40px 20px;
}

/* Language Toggle */
.language-toggle {
    position: absolute;
    top: 30px;
    right: 30px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.lang-btn {
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 20px;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lang-btn:hover {
    background: rgba(0, 255, 136, 0.2);
    border-color: var(--primary-green);
}

.lang-btn.active {
    background: var(--gradient-green);
    border-color: var(--primary-green);
    color: var(--primary-dark);
}

/* Hero Text */
.hero-text {
    max-width: 900px;
    margin: 0 auto;
}

.headline-ar {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-green) 0%, #00cc70 50%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
    line-height: 1.2;
}

.headline-en {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 30px;
    color: var(--text-light);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
    line-height: 1.3;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    margin-bottom: 15px;
    color: var(--primary-green);
    font-weight: 600;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.2rem);
    margin-bottom: 40px;
    color: var(--text-gray);
}

/* CTA Button */
.cta-link {
    text-decoration: none;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--gradient-green);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    position: relative;
    overflow: hidden;
}

.cta-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;
}

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

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.6);
}

.cta-button i {
    font-size: 1.3rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 2rem;
    color: var(--primary-green);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===========================
   Features Section
   =========================== */
.features {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, var(--primary-dark), transparent);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-gray);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.feature-card {
    background: var(--gradient-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-green);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-green);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 2.5rem;
    position: relative;
}

.feature-icon i {
    z-index: 1;
}

.feature-icon.ecommerce {
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.2) 0%, rgba(0, 204, 112, 0.1) 100%);
    color: var(--primary-green);
}

.feature-icon.realestate {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2) 0%, rgba(255, 215, 0, 0.1) 100%);
    color: var(--accent-gold);
}

.feature-icon.hr {
    background: linear-gradient(135deg, rgba(0, 174, 239, 0.2) 0%, rgba(0, 174, 239, 0.1) 100%);
    color: #00aeef;
}

.feature-icon.oilgas {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2) 0%, rgba(255, 107, 53, 0.1) 100%);
    color: var(--accent-orange);
}

.feature-icon.finance {
    background: linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, rgba(138, 43, 226, 0.1) 100%);
    color: #8a2be2;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.feature-list {
    list-style: none;
    margin-bottom: 25px;
}

.feature-list li {
    padding: 12px 0;
    padding-left: 30px;
    position: relative;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-green);
    font-weight: 900;
    font-size: 1.2rem;
}

.vision-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(0, 108, 53, 0.2);
    border: 1px solid var(--saudi-green);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green);
}

.vision-badge i {
    color: var(--accent-gold);
}

/* ===========================
   Demo Section
   =========================== */
.demo {
    padding: 100px 0;
    background: var(--secondary-dark);
}

.demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 60px;
    align-items: center;
}

.video-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 255, 136, 0.2);
}

.video-placeholder {
    aspect-ratio: 16/9;
    background: var(--gradient-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    border: 2px dashed rgba(0, 255, 136, 0.3);
}

.video-placeholder i {
    font-size: 5rem;
    color: var(--primary-green);
    margin-bottom: 20px;
}

.video-placeholder p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
}

.video-note {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-style: italic;
}

video {
    width: 100%;
    height: auto;
    display: block;
}

.demo-features h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-green);
}

.capabilities-list {
    list-style: none;
}

.capabilities-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.capabilities-list li:last-child {
    border-bottom: none;
}

.capabilities-list i {
    color: var(--primary-green);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 3px;
}

.capabilities-list span {
    font-size: 1rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ===========================
   Pricing Section
   =========================== */
.pricing {
    padding: 100px 0;
    background: var(--gradient-primary);
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.pricing-card {
    background: var(--gradient-card);
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.2);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--primary-green);
}

.pricing-card.featured {
    border: 2px solid var(--primary-green);
    box-shadow: 0 0 40px rgba(0, 255, 136, 0.2);
}

.pricing-card.featured::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-green);
}

.popular-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--gradient-green);
    color: var(--primary-dark);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

.limited-badge {
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid var(--accent-orange);
    color: var(--accent-orange);
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pricing-header {
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

.pricing-card.featured .pricing-header {
    padding-top: 50px;
}

.pricing-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin-bottom: 15px;
}

.price .currency {
    font-size: 1.5rem;
    color: var(--text-gray);
}

.price .amount {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary-green);
}

.price .period {
    font-size: 1.2rem;
    color: var(--text-gray);
}

.savings {
    font-size: 0.95rem;
    color: var(--accent-gold);
    font-weight: 600;
    margin-top: 10px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 30px;
    padding: 0 10px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-gray);
    font-size: 0.95rem;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features i {
    color: var(--primary-green);
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.pricing-button {
    display: block;
    text-align: center;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--gradient-green);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.pricing-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 255, 136, 0.5);
}

.pricing-note {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    background: rgba(0, 255, 136, 0.05);
    border-radius: 15px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.pricing-note i {
    color: var(--primary-green);
    margin-right: 8px;
}

/* ===========================
   Signup Section
   =========================== */
.signup {
    padding: 100px 0;
    background: var(--secondary-dark);
}

.signup-card {
    max-width: 600px;
    margin: 0 auto;
    background: var(--gradient-card);
    padding: 50px 40px;
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: var(--box-shadow);
}

.signup-header {
    text-align: center;
    margin-bottom: 40px;
}

.signup-header h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--primary-green);
}

.limited-offer {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 107, 53, 0.2);
    border: 2px solid var(--accent-orange);
    border-radius: 30px;
    font-weight: 600;
    color: var(--accent-orange);
}

.limited-offer i {
    font-size: 1.2rem;
}

/* Form Styles */
.signup-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
}

.form-group input,
.form-group select {
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group option {
    background: var(--secondary-dark);
    color: var(--text-light);
}

/* Payment Element */
#payment-element {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

/* Submit Button */
.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-dark);
    background: var(--gradient-green);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 255, 136, 0.4);
    margin-top: 10px;
}

.submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 255, 136, 0.6);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.secure-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-top: 15px;
}

.secure-note i {
    color: var(--primary-green);
}

.payment-message {
    text-align: center;
    padding: 15px;
    margin-top: 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    display: none;
}

.payment-message.success {
    display: block;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
}

.payment-message.error {
    display: block;
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.badge i {
    font-size: 2rem;
    color: var(--primary-green);
}

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--secondary-dark);
    padding: 60px 0 30px;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 15px;
    background: var(--gradient-green);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-green);
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: 12px;
}

.footer-column a {
    color: var(--text-gray);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.95rem;
}

.footer-column a:hover {
    color: var(--primary-green);
    padding-left: 5px;
}

.footer-column li i {
    color: var(--primary-green);
    margin-right: 10px;
    width: 20px;
}

.footer-disclaimer {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.footer-disclaimer p {
    color: var(--text-gray);
    font-size: 0.9rem;
    line-height: 1.7;
    text-align: center;
}

.footer-disclaimer i {
    color: var(--accent-orange);
    margin-right: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid rgba(0, 255, 136, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-green);
    transition: var(--transition);
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--gradient-green);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .language-toggle {
        top: 20px;
        right: 20px;
    }
    
    .hero-content {
        padding: 80px 20px 40px;
    }
    
    .headline-ar {
        font-size: 2rem;
    }
    
    .headline-en {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .demo-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .signup-card {
        padding: 30px 20px;
    }
    
    .trust-badges {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .cta-button {
        padding: 15px 25px;
        font-size: 0.95rem;
    }
    
    .price .amount {
        font-size: 2.5rem;
    }
}

/* ===========================
   Animations
   =========================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.pricing-card,
.demo-container > * {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    border: 3px solid var(--primary-green);
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to { transform: rotate(360deg); }
}
