﻿/*========= المتغيرات المستخدمة =========*/
:root {
    --primary: #1e824c;
    --primary-dark: #14623a;
    --accent: #e8f5e9;
    --text: #1b1b1b;
    --gray-bg: #f5f5f5;
    --radius: 20px;
    --transition: 0.3s ease-in-out;
    --font: 'Cairo', sans-serif;
}

/*========= Hero Section =========*/
.hero-section {
    position: relative;
    background: #ffffff;
    overflow: hidden;
    padding: 80px 0;
}

.hero-bg {
    position: absolute;
    top: -100px;
    left: -120px;
    width: 300px;
    height: 300px;
/*    background: radial-gradient(circle at 60% 40%, var(--accent) 70%, transparent 100%);
*/    z-index: 0;
    animation: floatBg 12s ease-in-out infinite alternate;
}

@keyframes floatBg {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(30px);
    }
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    z-index: 1;
    position: relative;
}

.hero-text {
    flex: 1 1 360px;
    max-width: 540px;
    text-align: right;
}

    .hero-text h1 {
        font-size: 2.4rem;
        color: var(--primary);
        margin-bottom: 20px;
        line-height: 1.4;
        font-weight: 700;
    }

        .hero-text h1 span {
            color: var(--primary-dark);
        }

    .hero-text p {
        font-size: 1.2rem;
        color: var(--text);
        margin-bottom: 28px;
    }

.btn-hero {
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 12px 28px;
    border-radius: 28px;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 8px 28px #1e824c33;
    transition: background 0.3s, transform 0.2s;
}

    .btn-hero:hover {
        background: linear-gradient(90deg, var(--primary-dark), var(--primary));
        transform: translateY(-2px);
    }

.hero-image {
    flex: 1 1 260px;
    text-align: center;
}

    .hero-image img {
        max-width: 320px;
        width: 100%;
        animation: floatImage 4s ease-in-out infinite alternate;
        border-radius: var(--radius);
        box-shadow: 0 10px 30px #1e824c22;
    }

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-16px);
    }
}

/*========= Responsive =========*/
@media (max-width: 900px) {
    .hero-content {
        flex-direction: column-reverse;
        align-items: center;
        text-align: center;
        padding: 0 18px;
    }

    .hero-text {
        max-width: 100%;
    }

        .hero-text h1 {
            font-size: 1.6rem;
        }

    .btn-hero {
        font-size: 1rem;
    }

    .hero-image img {
        max-width: 240px;
    }
}
