/* ================================================
   فایل استایل بخش‌های جدید Webilad
   اضافه کن به انتهای style.css یا لینک جداگانه
================================================ */

/* ================================================
   متغیرها و ابزارهای مشترک
================================================ */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(0,123,255,0.15), rgba(0,212,255,0.15));
    border: 1px solid rgba(0,212,255,0.3);
    color: #00d4ff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    padding: 6px 18px;
    border-radius: 50px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.3;
}

.title-accent {
    background: linear-gradient(135deg, #00d4ff, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-desc {
    color: rgba(255,255,255,0.55);
    font-size: 1rem;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ================================================
   Portfolio — کارت‌های حرفه‌ای
================================================ */

.portfolio-section {
    background-color: #0f2139 !important;
    padding: 90px 0;
    position: relative;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.2), transparent);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    direction: rtl;
}

/* کارت */
.project-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(.175,.885,.32,1.275),
                box-shadow 0.4s ease,
                border-color 0.4s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,212,255,0.2);
    border-color: rgba(0,212,255,0.25);
}

/* شماره کارت */
.card-number {
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.1em;
    font-feature-settings: "tnum";
    z-index: 3;
}

/* تصویر */
.project-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #0a1628;
    flex-shrink: 0;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(.25,.46,.45,.94),
                filter 0.5s ease;
    filter: brightness(0.9) saturate(1.05);
}

.project-card:hover .project-thumb img {
    transform: scale(1.08);
    filter: brightness(0.7) saturate(1.1);
}

/* Glow پشت تصویر */
.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 30%, rgba(0,123,255,0.15), transparent 65%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.project-card:hover .card-glow {
    opacity: 1;
}

/* پلیس‌هولدر */
.project-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0a1628, #0f2139);
}

/* بدنه کارت */
.project-body {
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.project-cat {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #00d4ff;
    text-transform: uppercase;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.4;
    margin: 0;
}

.project-excerpt {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

/* دکمه‌ها */
.project-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px;
}

/* دکمه مشاهده پروژه */
.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    background: linear-gradient(135deg, #f9b922, #ffda79);
    color: #0a1628;
    border-radius: 50px;
    font-size: 0.86rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 20px rgba(249,185,34,0.28);
    transition: transform 0.3s cubic-bezier(.175,.885,.32,1.275),
                box-shadow 0.3s ease,
                background 0.3s ease;
    white-space: nowrap;
}

.btn-view:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 28px rgba(249,185,34,0.45);
    background: linear-gradient(135deg, #ffda79, #fff0a8);
    color: #0a1628;
    text-decoration: none;
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* دکمه نمایش زنده */
.btn-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 50px;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.02em;
    border: 1.5px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    transition: transform 0.3s cubic-bezier(.175,.885,.32,1.275),
                box-shadow 0.3s ease,
                border-color 0.3s ease,
                background 0.3s ease,
                color 0.3s ease;
    white-space: nowrap;
}

.btn-live:hover {
    background: rgba(0,212,255,0.12);
    border-color: rgba(0,212,255,0.6);
    color: #00d4ff;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0,212,255,0.2);
    text-decoration: none;
}

.btn-live svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn-live:hover svg {
    transform: translate(2px, -2px);
}

/* نقطه زنده */
.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00d4ff;
    flex-shrink: 0;
    animation: livePulse 1.8s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(0,212,255,0.7);
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.5); }
}

/* موبایل */
@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 4px;
    }
    .project-body { padding: 18px 16px 16px; }
    .btn-view, .btn-live { font-size: 0.82rem; padding: 9px 16px; }
}

/* ================================================
   چرا Webilad؟
================================================ */

.why-webilad-section {
    background: #0a1628;
    padding: 90px 0;
    position: relative;
}

.why-webilad-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.15), transparent);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    direction: rtl;
}

.why-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 32px 28px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(0,123,255,0.08), transparent 65%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.why-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,212,255,0.2);
    box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

.why-card:hover::after { opacity: 1; }

.why-card--featured {
    border-color: rgba(0,212,255,0.25);
    background: rgba(0,123,255,0.06);
    grid-column: span 2;
}

@media (max-width: 768px) {
    .why-card--featured { grid-column: span 1; }
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0,123,255,0.2), rgba(0,212,255,0.1));
    border: 1px solid rgba(0,212,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #00d4ff;
    position: relative;
    z-index: 1;
}

.why-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.why-card p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* ================================================
   مراحل همکاری
================================================ */

.process-section {
    background: #0f172a;
    padding: 90px 0;
    position: relative;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.15), transparent);
}

.process-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    direction: rtl;
    max-width: 720px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    position: relative;
}

.step-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(0,212,255,0.15);
    min-width: 60px;
    line-height: 1;
    padding-top: 6px;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    font-feature-settings: "tnum";
}

.step-connector {
    position: absolute;
    right: 28px;
    top: 42px;
    bottom: -32px;
    width: 2px;
    background: linear-gradient(to bottom, rgba(0,212,255,0.2), rgba(0,212,255,0.03));
}

.process-step:last-child .step-connector { display: none; }

.step-content {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 24px 26px;
    flex: 1;
    margin-bottom: 20px;
    transition: border-color 0.35s ease, transform 0.35s ease;
}

.step-content:hover {
    border-color: rgba(0,212,255,0.2);
    transform: translateX(-4px);
}

.step-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0,123,255,0.2), rgba(0,212,255,0.08));
    border: 1px solid rgba(0,212,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    color: #00d4ff;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    margin: 0;
}

/* ================================================
   سوالات متداول
================================================ */

.faq-section {
    background: #0a1628;
    padding: 90px 0;
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.15), transparent);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    direction: rtl;
}

.faq-item {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.open {
    border-color: rgba(0,212,255,0.25);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    color: #fff;
    font-size: 0.97rem;
    font-weight: 600;
    font-family: inherit;
    transition: color 0.3s ease;
}

.faq-item.open .faq-question { color: #00d4ff; }

.faq-arrow {
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(.175,.885,.32,1.275), color 0.3s ease;
    display: flex;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
    color: #00d4ff;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(.4,0,.2,1), padding 0.4s ease;
}

.faq-item.open .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding: 0 24px 22px;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.8;
    margin: 0;
}

/* ================================================
   نظرات مشتریان
================================================ */

.testimonials-section {
    background: #0f172a;
    padding: 90px 0;
    position: relative;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.15), transparent);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    direction: rtl;
}

.testimonial-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,212,255,0.18);
    box-shadow: 0 20px 45px rgba(0,0,0,0.3);
}

.testimonial-card--highlight {
    border-color: rgba(0,212,255,0.25);
    background: linear-gradient(135deg, rgba(0,123,255,0.07), rgba(0,212,255,0.04));
}

.testimonial-stars {
    color: #f9b922;
    font-size: 1rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.8;
    margin: 0;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #00d4ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    flex-shrink: 0;
}

.author-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
}

.author-info span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.4);
}

/* ================================================
   آمار پروژه‌ها
================================================ */

.stats-section {
    background: linear-gradient(135deg, #0a1628 0%, #0f2139 50%, #0a1628 100%);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(0,123,255,0.08) 0%, transparent 70%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    direction: rtl;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
}

.stat-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.stat-number {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #00d4ff, #007bff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: inline-block;
}

.stat-suffix {
    font-size: 1.6rem;
    font-weight: 700;
    color: #00d4ff;
    margin-top: -48px;
    margin-right: -4px;
    align-self: flex-end;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    font-weight: 500;
}

/* ================================================
   تکنولوژی‌ها
================================================ */

.tech-section {
    background: #0a1628;
    padding: 90px 0;
    position: relative;
}

.tech-section::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; width: 80%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,255,0.15), transparent);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
    direction: rtl;
}

.tech-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 28px 16px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
    cursor: default;
}

.tech-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,212,255,0.2);
    background: rgba(0,123,255,0.06);
}

.tech-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: transform 0.35s ease;
}

.tech-card:hover .tech-logo { transform: scale(1.15) rotate(-3deg); }

.tech-logo--wp    { background: rgba(33,117,155,0.2);  color: #21759b; }
.tech-logo--php   { background: rgba(119,123,180,0.2); color: #777bb4; }
.tech-logo--js    { background: rgba(247,223,30,0.15); color: #f7df1e; }
.tech-logo--css   { background: rgba(38,77,228,0.2);   color: #264de4; }
.tech-logo--mysql { background: rgba(0,117,143,0.2);   color: #00758f; }
.tech-logo--git   { background: rgba(240,80,50,0.2);   color: #f05032; }
.tech-logo--figma { background: rgba(162,89,255,0.15); color: #a259ff; }
.tech-logo--html  { background: rgba(228,77,38,0.2);   color: #e44d26; }

.tech-card span {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
}

