/* Cardyfie-Inspired Design for Click it Pay */
/* Colors: Lime Green #B8FF57, Dark Green #1A3A2E, Cream White #FEFEF8 */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&family=IBM+Plex+Sans:wght@300;400;500;600;700&display=swap');

:root {
    --primary-green: #1A3A2E;
    --accent-lime: #B8FF57;
    --bg-cream: #FEFEF8;
    --text-dark: #1E1E1E;
    --text-gray: #6B7280;
    --gradient-green: linear-gradient(135deg, #00D9A3 0%, #1A9B6F 100%);
    --gradient-lime: linear-gradient(135deg, #B8FF57 0%, #7FD957 100%);
    --card-shadow: 0 10px 40px rgba(26, 58, 46, 0.15);
}

* {
    font-family: 'IBM Plex Sans Arabic', 'IBM Plex Sans', sans-serif;
}

body {
    background-color: var(--bg-cream);
    color: var(--text-dark);
}

/* Hero Section */
.hero-section {
    background: var(--bg-cream);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none" stroke="%23E5E7EB" stroke-width="1" opacity="0.3"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

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

.hero-badge {
    display: inline-block;
    background: var(--accent-lime);
    color: var(--primary-green);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(184, 255, 87, 0.3);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-gray);
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Buttons */
.btn-primary-green {
    background: var(--primary-green);
    color: white;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 58, 46, 0.2);
}

.btn-primary-green:hover {
    background: #0F2419;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26, 58, 46, 0.3);
}

.btn-lime {
    background: var(--accent-lime);
    color: var(--primary-green);
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(184, 255, 87, 0.2);
}

.btn-lime:hover {
    background: #A3E84F;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(184, 255, 87, 0.3);
}

/* Feature Cards */
.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    text-align: center;
    margin-bottom: 30px;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(26, 58, 46, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.feature-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.feature-description {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* Cards 3D Display */
.cards-3d-container {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 60px 0;
}

.cards-3d-container img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(26, 58, 46, 0.2));
}

/* Section Headers */
.section-label {
    display: inline-block;
    background: var(--accent-lime);
    color: var(--primary-green);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 50px;
    line-height: 1.6;
}

/* How It Works Timeline */
.timeline-container {
    position: relative;
    padding: 50px 0;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent-lime);
    transform: translateX(-50%);
}

.timeline-step {
    position: relative;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
}

.timeline-step:nth-child(odd) {
    flex-direction: row;
}

.timeline-step:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.timeline-badge {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--primary-green);
    border: 5px solid var(--accent-lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
    z-index: 2;
}

.step-label {
    display: inline-block;
    background: var(--accent-lime);
    color: var(--primary-green);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .timeline-step {
        flex-direction: column !important;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .timeline-badge {
        left: 30px;
    }
}

/* Arabic RTL Support */
[dir="rtl"] .hero-badge,
[dir="rtl"] .section-label,
[dir="rtl"] .step-label {
    direction: rtl;
}

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}
