/* محتوای اصلی */
.main-content {
    position: relative;
    z-index: 2;
}

/* کارت آمار */
.stats-row {
    margin: 0 0 3rem 0;
    padding: 0 0 20px;
}

.stat-card {
    background: rgba(30, 41, 59, 0.4);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    border: 1px solid rgba(129, 140, 248, 0.15);
    transition: all 0.3s;
}

    .stat-card:hover {
        transform: translateY(-5px);
        border-color: rgba(129, 140, 248, 0.4);
    }

.stat-number {
    font-size: 1.8em;
    font-weight: 800;
    color: #818cf8;
    line-height: 1;
}

.stat-label {
    color: #94a3b8;
    font-size: 14px;
    margin-top: 8px;
}

/* فیلترهای خلاقانه (بدون تب - با دکمه‌های ساده) */
.filter-section {
    margin: 40px 0 32px;
}

.filter-btn {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(129, 140, 248, 0.2);
    color: #cbd5e1;
    padding: 8px 24px;
    border-radius: 40px;
    margin: 0 6px 12px;
    transition: all 0.2s;
    font-size: 14px;
}

    .filter-btn:hover,
    .filter-btn.active {
        background: linear-gradient(90deg, #4f46e5, #7c3aed);
        border-color: transparent;
        color: white;
        transform: translateY(-2px);
    }

/* دکمه ثبت درخواست مشاوره */
.request-btn {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border: none;
    padding: 14px 40px;
    border-radius: 60px;
    color: white;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

    .request-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.4);
        gap: 16px;
        color: white;
    }

@media (max-width: 768px) {

    .filter-btn {
        padding: 6px 16px;
        font-size: 12px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: .7rem;
    }
}

/*contact box*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* باکس اصلی */
.contact-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* کارت بلوری */
.glass-card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 60px;
    padding: 30px 20px;
    border: 1px solid rgba(129, 140, 248, 0.25);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(129, 140, 248, 0.1) inset;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

    .glass-card:hover {
        border-color: rgba(129, 140, 248, 0.5);
        box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(129, 140, 248, 0.2) inset;
        transform: translateY(-5px);
    }

/* آیکون سوال */
.question-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(139, 92, 246, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 1px solid rgba(129, 140, 248, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(129, 140, 248, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(129, 140, 248, 0);
    }
}

.question-icon i {
    font-size: 2rem;
    color: #a5b4fc;
}

/* عنوان */
.contact-title {
    font-size: 1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 12px;
}

.contact-subtitle {
    color: #94a3b8;
    font-size: .9rem;
    margin-bottom: 32px;
}

/* باکس شماره تلفن */
.phone-box {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 80px;
    padding: 8px 24px 8px 32px;
    margin-bottom: 32px;
    border: 1px solid rgba(129, 140, 248, 0.25);
    transition: all 0.3s;
}

    .phone-box:hover {
        border-color: rgba(129, 140, 248, 0.6);
        background: rgba(15, 23, 42, 0.9);
        transform: scale(1.02);
    }

.phone-icon {
    width: 1rem;
    height: 1rem;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ring 1.5s ease-in-out infinite;
    transform-origin: center;
}

@keyframes ring {

    0%, 100% {
        transform: rotate(0deg);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: rotate(5deg);
    }

    20%, 40%, 60%, 80% {
        transform: rotate(-5deg);
    }
}

.phone-icon i {
    font-size: 24px;
    color: white;
}

.phone-number {
    font-size: .9rem;
    font-weight: 700;
    color: #f1f5f9;
    text-decoration: none;
    letter-spacing: 1px;
    transition: all 0.3s;
}

    .phone-number:hover {
        color: #a5b4fc;
    }

/* دکمه&zwnj;های ارتباطی */
.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-contact {
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .8rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-custom {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

    .btn-primary-custom:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(79, 70, 229, 0.5);
        color: white;
    }

.btn-outline-custom {
    background: transparent;
    border: 1px solid rgba(129, 140, 248, 0.4);
    color: #cbd5e1;
}

    .btn-outline-custom:hover {
        border-color: #818cf8;
        background: rgba(129, 140, 248, 0.1);
        color: white;
        transform: translateY(-3px);
    }

/* کپی رایت داخل باکس */
.contact-note {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(129, 140, 248, 0.1);
    font-size: 12px;
    color: #64748b;
}

/* موبایل */
@media (max-width: 640px) {
    .glass-card {
        padding: 32px 24px;
        border-radius: 40px;
    }


    .phone-number {
        font-size: .9em;
    }

    .phone-box {
        padding: 6px 16px 6px 24px;
    }

    .phone-icon {
        width: 2.1em;
        height: 2.1em;
    }

        .phone-icon i {
            font-size: 1rem;
        }

    .request-btn {
        font-size: .9em;
    }

    .btn-contact {
        padding: 10px 20px;
        font-size: 13px;
    }

    .question-icon {
        width: 1rem;
        height: 1rem;
    }

        .question-icon i {
            font-size: 1rem;
        }
}

/*protfolio cards*/

.portfolio-section {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

/* هدر زیبا */
.section-badge {
    display: inline-block;
    background: rgba(129, 140, 248, 0.12);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    color: #c4b5fd;
    border: 1px solid rgba(129, 140, 248, 0.3);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff, #a5b4fc, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
}

.section-sub {
    color: #94a3b8;
    max-width: 700px;
    margin-bottom: 3rem;
    font-size: 1rem;
    line-height: 1.8;
}

/* ========== کارت حرفه&zwnj;ای با تصویر ========== */
.portfolio-card {
    background: rgba(15, 20, 35, 0.6);
    backdrop-filter: blur(12px);
    border-radius: 28px;
    border: 1px solid rgba(129, 140, 248, 0.2);
    transition: all 0.45s cubic-bezier(0.2, 0.9, 0.4, 1.2);
    overflow: hidden;
    height: 100%;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.4);
}

    .portfolio-card:hover {
        transform: translateY(-10px);
        border-color: rgba(129, 140, 248, 0.6);
        box-shadow: 0 30px 45px -12px rgba(0, 0, 0, 0.5);
        background: rgba(22, 28, 48, 0.85);
    }

/* محفظه تصویر با افکت */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-card:hover .card-image {
    transform: scale(1.08);
}

/* اوورلی روی تصویر هنگام هاور */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.3), rgba(192, 132, 252, 0.2));
    opacity: 0;
    transition: opacity 0.35s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card:hover .image-overlay {
    opacity: 1;
}

.overlay-icon {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 10px 18px;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    transform: translateY(20px);
    transition: transform 0.35s;
}

.portfolio-card:hover .overlay-icon {
    transform: translateY(0);
}

/* محتوای داخلی کارت */
.card-inner {
    padding: 1.5rem;
}

.card-badge {
    display: inline-block;
    background: linear-gradient(120deg, rgba(99, 102, 241, 0.3), rgba(139, 92, 246, 0.2));
    padding: 0.25rem 1rem;
    border-radius: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #c4b5fd;
    margin-bottom: 0.8rem;
    border: 0.5px solid rgba(129, 140, 248, 0.4);
}

.card-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 0.4rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
}

.tech-pill {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 30px;
    padding: 0.2rem 0.8rem;
    font-size: 0.68rem;
    font-weight: 500;
    color: #cbd5e6;
    border: 0.5px solid rgba(129, 140, 248, 0.3);
}

.portfolio-card:hover .tech-pill {
    background: rgba(129, 140, 248, 0.2);
    color: #fff;
}

.card-text {
    color: #94a3b8;
    font-size: 0.85rem;
    line-height: 1.65;
    margin: 0.8rem 0 1rem;
	text-align: justify;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #a5b4fc;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.25s;
}

    .card-link:hover {
        color: #ffffff;
        gap: 12px;
    }

    .card-link i {
        transition: transform 0.2s;
    }

    .card-link:hover i {
        transform: translateX(-5px);
    }

/* دکمه اصلی */
.btn-primary-glow {
    background: linear-gradient(90deg, rgba(129, 140, 248, 0.15), rgba(192, 132, 252, 0.1));
    border: 1.5px solid rgba(129, 140, 248, 0.5);
    border-radius: 60px;
    padding: 10px 32px;
    font-weight: 700;
    color: #c4b5fd;
    transition: 0.35s;
}

    .btn-primary-glow:hover {
        background: linear-gradient(90deg, rgba(129, 140, 248, 0.3), rgba(192, 132, 252, 0.2));
        border-color: #a78bfa;
        color: #ffffff;
        transform: translateY(-3px);
    }

/* responsive text alignment */
@media (max-width: 576px) {
    .portfolio-section {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.25rem;
    }

    .card-image-wrapper {
        height: 180px;
    }
}

/* Modal Container */
.deva-consult-glass {
    background: rgba(30, 41, 59, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(129, 140, 248, 0.3);
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* Modal Icon */
.deva-consult-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -30px;
    margin-bottom: 16px;
}

    .deva-consult-icon i {
        font-size: 28px;
        color: white;
    }

/* Close Button */
.deva-consult-close {
    filter: invert(1);
    opacity: 0.7;
    transition: opacity 0.2s;
}

    .deva-consult-close:hover {
        opacity: 1;
    }

/* Typography */
.deva-consult-title {
    color: #f1f5f9;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.deva-consult-subtitle {
    color: #94a3b8;
    font-size: 13px;
}

/* Form Fields */
.deva-consult-field {
    position: relative;
}

.deva-consult-input,
.deva-consult-select,
.deva-consult-textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(129, 140, 248, 0.2);
    border-radius: 24px;
    padding: 12px 20px;
    color: #f1f5f9;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

    .deva-consult-input:focus,
    .deva-consult-select:focus,
    .deva-consult-textarea:focus {
        outline: none;
        border-color: #818cf8;
        background: rgba(15, 23, 42, 0.95);
        box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.1);
    }

    .deva-consult-input::placeholder,
    .deva-consult-textarea::placeholder {
        color: #64748b;
    }

.deva-consult-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23818cf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
}

.deva-consult-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button */
.deva-consult-submit {
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border: none;
    padding: 12px 20px;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
}

    .deva-consult-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px -5px rgba(79, 70, 229, 0.4);
    }

    .deva-consult-submit:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

/* Spinner */
.deva-consult-spinner {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Alert Message */
.deva-consult-alert {
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 13px;
    margin-bottom: 16px;
    text-align: center;
    transition: opacity 0.3s ease;
}

    .deva-consult-alert.deva-success {
        background: rgba(34, 197, 94, 0.15);
        border: 1px solid rgba(34, 197, 94, 0.3);
        color: #4ade80;
    }

    .deva-consult-alert.deva-error {
        background: rgba(239, 68, 68, 0.15);
        border: 1px solid rgba(239, 68, 68, 0.3);
        color: #f87171;
    }

/* Note Text */
.deva-consult-note {
    color: #64748b;
    font-size: 12px;
}

.requests-list-container {
    max-height: 400px;
    overflow-y: auto;
}

    .requests-list-container .list-group-item {
        transition: all 0.2s;
    }

        .requests-list-container .list-group-item:hover {
            background: rgba(129, 140, 248, 0.1) !important;
        }

/* Add these to your existing portfolios.css file */

/* Form and List Section Toggle */
#devaConsultFormSection,
#devaConsultListSection {
    transition: all 0.3s ease;
}

/* Requests List Container */
.requests-list-container {
    max-height: 400px;
    overflow-y: auto;
    padding: 0 8px;
}

    .requests-list-container .list-group-item {
        transition: all 0.2s;
        cursor: pointer;
    }

        .requests-list-container .list-group-item:hover {
            background: rgba(129, 140, 248, 0.1) !important;
            transform: translateX(-4px);
        }

    /* Custom scrollbar for requests list */
    .requests-list-container::-webkit-scrollbar {
        width: 5px;
    }

    .requests-list-container::-webkit-scrollbar-track {
        background: rgba(30, 41, 59, 0.5);
        border-radius: 10px;
    }

    .requests-list-container::-webkit-scrollbar-thumb {
        background: linear-gradient(135deg, #4f46e5, #7c3aed);
        border-radius: 10px;
    }

/* Link button styling */
.link-primary {
    color: #818cf8 !important;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.85rem;
}

    .link-primary:hover {
        color: #a5b4fc !important;
        text-decoration: underline;
    }

/* Responsive */
@media (max-width: 576px) {
    .deva-consult-icon {
        width: 50px;
        height: 50px;
    }

        .deva-consult-icon i {
            font-size: 22px;
        }

    .deva-consult-title {
        font-size: 20px;
    }

    .deva-consult-input,
    .deva-consult-select,
    .deva-consult-textarea {
        padding: 10px 16px;
        font-size: 13px;
    }
}
