/* ==========================================================
   css/hero.css
   هیروی نهایی – کارت‌های ویژگی ۴ ستونه + margin-bottom 100px
   ========================================================== */

   .hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, #dbeafe 0%, transparent 40%),
                radial-gradient(circle at bottom left, #dcfce7 0%, transparent 35%),
                linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%);
}

.hero > .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* ---------- گرید اصلی (دو ستون مساوی، فاصلهٔ کم) ---------- */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    min-height: auto;
    padding: 80px 0 20px;            /* کاهش padding پایین */
}

/* ---------- محتوای متنی ---------- */
.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-right : 100px;
    max-width: 100%;
    padding-right: 0;
}

/* ---------- لوگوی تصویری ---------- */
.hero-logo {
    margin-bottom: 20px;
}

.hero-logo-img {
    display: block;
    max-width: 340px;
    width: 100%;
    height: auto;
}

/* ---------- توضیحات ---------- */
.hero-description {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 550px;
}

/* ---------- دکمه‌ها ---------- */
.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 0;
}

.btn-hero {
    min-width: 180px;
    padding: 14px 28px;
    font-size: 15px;
    border-radius: 16px;
}

/* ---------- wrapper ویژگی‌ها (داخل container) ---------- */
.hero-features-wrapper {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 120px;             /* فاصلهٔ ۱۰۰px تا موج پایین */
}

/* ---------- کارت‌های ویژگی (چهار ستونه در یک ردیف) ---------- */
.hero-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);   /* چهار ستون مساوی */
    gap: 50px;
    max-width: 75%;
    margin: 0 auto;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: 0.3s;
}

.hero-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.hero-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    flex-shrink: 0;
}

.hero-feature-content {
    flex: 1;
}

.hero-feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}

.hero-feature-text {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ---------- المان گرافیکی ---------- */
.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
}

.hero-illustration {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.hero-illustration-box {
    position: relative;
    animation: heroFloat 6s ease-in-out infinite;
}

.illustration-window {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(37, 99, 235, 0.12);
    overflow: hidden;
    border: 1px solid var(--border);
}

.illustration-toolbar {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.illustration-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.illustration-line {
    height: 10px;
    background: #e5e7eb;
    border-radius: 6px;
}

.illustration-line.short { width: 40%; }
.illustration-line.medium { width: 70%; }
.illustration-line.long { width: 90%; }

.illustration-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(37,99,235,0.05), rgba(20,184,166,0.05));
    border-radius: 16px;
    border: 1px solid rgba(37,99,235,0.1);
}

.illustration-icon {
    font-size: 40px;
}

.illustration-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    flex: 1;
}

.illustration-bars span {
    flex: 1;
    background: linear-gradient(180deg, var(--primary), var(--primary-light));
    border-radius: 6px;
    min-width: 12px;
}

/* آیکون‌های شناور */
.float-icon {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    animation: floatIcon 5s ease-in-out infinite;
    border: 1px solid var(--border);
}

.fi-1 { top: -20px; left: -20px; animation-delay: 0s; }
.fi-2 { top: 40%; right: -30px; animation-delay: 1.5s; }
.fi-3 { bottom: -10px; left: 15%; animation-delay: 3s; }

@keyframes floatIcon {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* ---------- دکمهٔ تماس شناور ---------- */
.hero-contact-btn {
    position: absolute;
    top: -110px;
    left: 150px;
    z-index: 15;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), #7c3aed);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: contactFloat 4s ease-in-out infinite;
}

.hero-contact-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.4);
    color : yellow ;
}

.contact-btn-icon {
    font-size: 22px;
}

.contact-btn-text {
    white-space: nowrap;
}

@keyframes contactFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* ---------- شمارنده‌های حبابی شناور ---------- */
.hero-bubbles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-bubble {
    position: absolute;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(37, 99, 235, 0.1);
    pointer-events: auto;
}

.bubble-inner {
    text-align: center;
}

.bubble-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
}

.bubble-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-light);
    margin-top: 2px;
}

.bubble-1 {
    top: -40px;
    right: -30px;
    animation: bubbleFloat1 5s ease-in-out infinite;
}

.bubble-2 {
    bottom: 20%;
    left: -50px;
    animation: bubbleFloat2 6s ease-in-out infinite;
}

.bubble-3 {
    bottom: -30px;
    right: 10%;
    animation: bubbleFloat3 5.5s ease-in-out infinite;
}

@keyframes bubbleFloat1 {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes bubbleFloat2 {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-25px) scale(1.08); }
    100% { transform: translateY(0) scale(1); }
}

@keyframes bubbleFloat3 {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-18px) scale(1.04); }
    100% { transform: translateY(0) scale(1); }
}

/* ---------- تزئینات پس‌زمینه ---------- */
.hero-circle {
    position: absolute;
    border-radius: 50%;
    animation: heroPulse 7s infinite ease-in-out;
}
.hero-circle.one {
    width: 420px; height: 420px;
    background: rgba(37, 99, 235, 0.06);
}
.hero-circle.two {
    width: 320px; height: 320px;
    background: rgba(20, 184, 166, 0.08);
}
.hero-circle.three {
    width: 220px; height: 220px;
    background: rgba(245, 158, 11, 0.08);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.3;
    pointer-events: none;
}
.hero-shape.one {
    width: 280px; height: 280px;
    top: -120px; left: -120px;
    background: #60a5fa;
}
.hero-shape.two {
    width: 340px; height: 340px;
    bottom: -160px; right: -160px;
    background: #34d399;
}
.hero-shape.three {
    width: 200px; height: 200px;
    top: 45%; left: 20%;
    background: #fbbf24;
}

.hero-dots {
    position: absolute;
    width: 180px; height: 180px;
    background-image: radial-gradient(rgba(37, 99, 235, 0.2) 2px, transparent 2px);
    background-size: 18px 18px;
    opacity: 0.5;
}
.hero-dots.top { top: 90px; left: 60px; }
.hero-dots.bottom { bottom: 60px; right: 80px; }

.hero-light {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37,99,235,.15) 0%, rgba(37,99,235,.05) 35%, transparent 75%);
    pointer-events: none;
    filter: blur(35px);
    transform: translate(-50%, -50%);
    transition: left 0.15s linear, top 0.15s linear;
    z-index: 0;
}

.hero-wave {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}
.hero-wave svg {
    display: block;
    width: 100%;
    height: 130px;
}

.hero-scroll {
    position: absolute;
    bottom: 35px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 13px;
}
.hero-scroll span {
    width: 28px; height: 46px;
    border-radius: 30px;
    border: 2px solid var(--primary);
    position: relative;
}
.hero-scroll span::before {
    content: "";
    position: absolute;
    top: 8px; left: 50%;
    transform: translateX(-50%);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--primary);
    animation: scrollWheel 2s infinite;
}

/* انیمیشن‌ها */
@keyframes heroFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
    100% { transform: translateY(0); }
}
@keyframes heroPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}
@keyframes scrollWheel {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 18px); }
}

/* ---------- واکنش‌گرایی ---------- */
@media (max-width: 1100px) {
    .hero-grid {
        gap: 30px;
    }
    .hero-features {
        grid-template-columns: repeat(2, 1fr);   /* تبلت بزرگ: دو ستونه */
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 80px 0 30px;
        text-align: center;
    }
    .hero-content {
        align-items: center;
    }
    .hero-logo-img {
        margin: 0 auto;
    }
    .hero-description {
        max-width: 700px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-image {
        order: -1;
        padding: 0;
    }
    .hero-illustration {
        max-width: 400px;
        margin: 0 auto;
    }
    .hero-bubbles {
        display: none;
    }
    .hero-contact-btn {
        top: -30px;
        left: 10px;
    }
    .hero-features-wrapper {
        margin-bottom: 80px;
    }
    .hero-features {
        grid-template-columns: repeat(2, 1fr);   /* تبلت: دو ستونه */
    }
}

@media (max-width: 768px) {
    .hero-logo-img {
        max-width: 280px;
    }
    .hero-description {
        font-size: 16px;
    }
    .hero-actions {
        width: 100%;
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-features {
        grid-template-columns: 1fr;   /* موبایل: یک ستونه */
    }
    .hero-features-wrapper {
        margin-bottom: 70px;
    }
    .hero-circle, .hero-dots, .hero-scroll {
        display: none;
    }
    .float-icon {
        display: none;
    }
    .hero-contact-btn {
        top: -20px;
        left: 0;
        padding: 10px 18px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
    }
    .hero-logo-img {
        max-width: 220px;
    }
}