
/* products */


:root {
    --prd-primary: #4f8cff;
    --prd-primary-light: #7cb0ff;
    --prd-primary-soft: #e8f1ff;
    --prd-secondary: #9d7bff;
    --prd-secondary-light: #b39eff;
    --prd-secondary-soft: #f3eeff;
    --prd-accent: #5ed3e8;
    --prd-light: #ffffff;
    --prd-light-gray: #f8f9fa;
    --prd-gray: #a0aec0;
    --prd-dark-gray: #718096;
    --prd-dark: #2d3748;
    
    --prd-gradient-primary: linear-gradient(135deg, var(--prd-primary) 0%, var(--prd-accent) 100%);
    --prd-gradient-secondary: linear-gradient(135deg, var(--prd-secondary) 0%, var(--prd-primary-light) 100%);
}

/* استایل اصلی سکشن */
.prd-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--prd-light-gray) 0%, #edf2f7 100%);
    color: var(--prd-dark);
    font-family: 'Yekan Bakh';
    position: relative;
}

.prd-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(79, 140, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(157, 123, 255, 0.06) 0%, transparent 50%);
    z-index: 0;
}

.prd-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.prd-main-title {
    font-size: 2.8rem;
    background: var(--accent-blue);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 15px;
    font-family: 'Yekan Bakh';
    font-weight: 600;
    padding: 20px;
}

.prd-subtitle {
    color: var(--prd-dark-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.prd-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 200px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* طراحی کارت 3D */
.prd-wrapper {
    width: 400px;
    height: 500px;
    perspective: 900px;
    position: relative;
}

.prd-card {
    width: 400px;
    height: 500px;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-140px);
    transition: transform 0.45s cubic-bezier(0.390, 0.575, 0.565, 1.000);
    cursor: pointer;
}

.prd-card > div {
    position: absolute;
    width: 400px;
    height: 500px;
    padding: 30px 25px;
    transition: all 0.45s cubic-bezier(0.390, 0.575, 0.565, 1.000);
    border-radius: 24px;
    overflow: hidden;
}

.prd-front {
    background: var(--prd-light);
    transform: rotateY(0deg) translateZ(150px);
    border-radius: 24px;
    box-shadow: 0 8px 25px rgba(79, 140, 255, 0.15);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.8);
	border-right: 4px solid #023E8A;
}

 /*.prd-front::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, var(--prd-primary-soft) 0%, transparent 100%);
    border-radius: 24px 24px 0 0;
    z-index: 0;
}*/
/* Remove or hide the ::before pseudo-element */
.prd-card::before {
    display: none; /* or remove the entire ::before rule */
}

/* Style the new background image */
.prd-front-bg-image {
    position: absolute;
    left: 0;
    width: 100%;
    height: auto; /* or specific height matching your gradient area */
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}


.prd-side {
    background: linear-gradient(135deg, var(--prd-light) 0%, var(--prd-primary-soft) 100%);
    opacity: 0;
    transform: rotateY(90deg) translateZ(150px);
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(79, 140, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.9);
	border-right: 4px solid #023E8A;
}

.prd-card:hover {
    transform: translateZ(-160px) rotateY(-90deg);
}

.prd-card:hover .prd-front {
    opacity: 0;
}

.prd-card:hover .prd-side {
    opacity: 1;
}

.prd-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.prd-image-container {
    width: 160px;
    height: 160px;
    margin: 20px 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--prd-light) 0%, var(--prd-primary-soft) 100%);
    border-radius: 24px;
    box-shadow: 0 8px 20px rgba(79, 140, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 20px;
}

.prd-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
    transition: transform 0.5s ease;
}

.prd-card:hover .prd-image {
    transform: scale(1.08) rotate(5deg);
}

.prd-title {
    font-size: 2.2rem;
    margin: 10px 0;
    font-family: 'Yekan Bakh';
    font-weight: 700;
    color: var(--prd-dark);
    text-align: center;
}

.prd-subtitle-small {
    font-size: 1rem;
    color: var(--prd-dark-gray);
    margin-bottom: 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.prd-version {
    background: rgba(79, 140, 255, 0.1);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(79, 140, 255, 0.2);
    color: var(--prd-primary);
    font-weight: 500;
}

.prd-description {
    color: var(--prd-dark);
    font-size: 1.2rem;
    margin-top: auto;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 600;
    line-height: 1.5;
    background: var(--prd-gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;

}

.prd-side-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.prd-features-title {
    font-size: 1.5rem;
    color: var(--prd-dark);
    font-family: 'Yekan Bakh';
    font-weight: 600;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.prd-features-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background: #023e8a;
    bottom: 0;
    right: 50%;
    transform: translateX(50%);
    border-radius: 2px;
}

.prd-features-list {
    list-style: none;
    margin-right: 15px;
    flex-grow: 1;
}

.prd-feature-item {
    padding: 10px 0;
    color: var(--prd-dark-gray);
    position: relative;
    padding-right: 25px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.prd-feature-item:hover {
    color: #303E9D;
    transform: translateX(-5px);
}

.prd-feature-item::before {
    content: '✓';
    position: absolute;
    right: 0;
    top: 10px;
    color: var(--prd-primary);
    font-weight: bold;
    background: var(--prd-primary-soft);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

/* لینک نمایش جزئیات */
.prd-details-link {
    position: absolute;
    left: 25px;
    bottom: 30px;
    background: #023e8a;
    color: white;
    font-family: 'Yekan Bakh';
    font-weight: 600;
    font-size: 1rem;
    padding: 12px 30px;
    border-radius: 50px;
    background-size: 150% 100%;
    background-position: right;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(79, 140, 255, 0.25);
    transform: scale(0) skewY(10deg);
    transition: all 0.25s cubic-bezier(0.390, 0.575, 0.565, 1.000);
    transform-origin: left bottom;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 10;
    text-decoration: none;
    border: none;
    text-align: center;
    min-width: 160px;
}

.prd-card:hover .prd-details-link {
    transform: scale(1) skewY(0);
    opacity: 1;
}

.prd-card:not(:hover) .prd-details-link {
    opacity: 0;
    transform: scale(0) skewY(10deg);
}

.prd-details-link:hover {
    background-position: left;
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow: 0 12px 25px rgba(79, 140, 255, 0.35);
    color: white;
    text-decoration: none;
}

/* کارت دوم */
.prd-card-2 .prd-front::before {
    background: linear-gradient(135deg, var(--prd-secondary-soft) 0%, transparent 100%);
}

.prd-card-2 .prd-side {
    background: linear-gradient(135deg, var(--prd-light) 0%, #eefeff 100%);
}

.prd-card-2 .prd-image-container {
    background: linear-gradient(135deg, var(--prd-light) 0%, #eefffc 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.prd-card-2 .prd-version {
background: rgba(123, 255, 218, 0.1);
  border: 1px solid rgba(157, 123, 255, 0.2);
  color: #13a9a2;
}

.prd-card-2 .prd-description {
    background: var(--prd-gradient-secondary);
    -webkit-background-clip: text;
    background-clip: text;
}

.prd-card-2 .prd-features-title::after {
    background: #2c908e;
}

.prd-card-2 .prd-feature-item::before {
    color: #7bffe0;
    background: #4d817c;
}

.prd-card-2 .prd-details-link {
    background: #2b908e;
    box-shadow: 0 8px 20px rgba(157, 123, 255, 0.25);
}

.prd-card-2 .prd-details-link:hover {
    box-shadow: 0 12px 25px rgba(157, 123, 255, 0.35);
}

.prd-feature-item-2 {
    padding: 10px 0;
    color: var(--prd-dark-gray);
    position: relative;
    padding-right: 25px;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.prd-feature-item-2:hover {
    color: #008068;
    transform: translateX(-5px);
}


/* آیکون شناور */
.prd-floating-icon {
    position: absolute;
    top: -30px;
    left: 0;
    pointer-events: none;
    backface-visibility: hidden;
    z-index: 5;
}

.prd-icon-wrapper {
    font-size: 5rem;
    -webkit-background-clip: text;
    background-clip: text;
    transition: transform 0.3s cubic-bezier(0.390, 0.575, 0.565, 1.000);
    transition-delay: 0.1s;
    transform: translateX(-30%) rotateZ(-10deg);
}

.prd-card:hover ~ .prd-floating-icon .prd-icon-wrapper {
    transform: scale(0.8) translateX(-80%) translateY(50%) rotateZ(-80deg);
}

@keyframes prd-float {
    0% { transform: translateZ(20px); }
    100% { transform: translateY(-25px) translateX(15px) translateZ(40px); }
}

/* انیمیشن ورود */
@keyframes prd-fade-in-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

.prd-wrapper {
    animation: prd-fade-in-up 0.6s cubic-bezier(0.390, 0.575, 0.565, 1.000) forwards;
    opacity: 0;
}

.prd-wrapper-1 { animation-delay: 0.2s; }
.prd-wrapper-2 { animation-delay: 0.4s; }

/* واکنش‌گرایی */
@media (max-width: 768px) {
    .prd-section { padding: 60px 15px; }
    .prd-main-title { font-size: 2.2rem; }
    .prd-container { flex-direction: column; gap: 40px; }
    
    .prd-wrapper {
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: 550px;
        perspective: 800px;
    }
    
    .prd-card {
        height: auto;
        min-height: 500px;
        transform: translateZ(-120px);
    }
    
    .prd-card > div {
        width: 100%;
        height: auto;
        min-height: 500px;
        padding: 30px 25px;
    }
    
    .prd-image-container {
        width: 150px;
        height: 150px;
        margin: 15px 0 25px;
    }
    
    .prd-card:hover {
        transform: translateZ(-140px) rotateY(-85deg) scale(0.95);
    }
    
    .prd-floating-icon { display: none; }
    
    .prd-details-link {
        left: 20px;
        bottom: 25px;
        padding: 10px 25px;
        font-size: 0.95rem;
        min-width: 140px;
    }
}

@media (max-width: 480px) {
    .prd-section { padding: 40px 10px; }
    .prd-header { margin-bottom: 40px; }
    .prd-main-title { font-size: 1.8rem; }
    .prd-subtitle { font-size: 1rem; line-height: 1.6; }
    
    .prd-wrapper {
        max-width: 350px;
        min-height: 520px;
    }
    
    .prd-card {
        min-height: 480px;
        transform: translateZ(-100px);
    }
    
    .prd-card > div {
        min-height: 480px;
        padding: 25px 20px;
    }
    
    .prd-title { font-size: 1.8rem; }
    .prd-image-container {
        width: 130px;
        height: 130px;
        margin: 15px 0 20px;
        padding: 15px;
    }
    
    .prd-description { font-size: 1.1rem; margin-bottom: 25px; }
    .prd-features-title { font-size: 1.3rem; margin-bottom: 20px; }
    
    .prd-feature-item {
        font-size: 0.9rem;
        padding: 8px 20px 8px 0px;
    }
    
    .prd-feature-item::before {
        top: 6px;
    }
    
    .prd-details-link {
        left: 15px;
        bottom: 20px;
        padding: 9px 20px;
        font-size: 0.9rem;
        min-width: 130px;
    }
    
    .prd-card:hover {
        transform: translateZ(-100px) rotateY(-90deg) scale(0.88);
    }
}

@media (max-width: 380px) {
    .prd-wrapper { max-width: 320px; min-height: 500px; }
    .prd-card { min-height: 460px; }
    .prd-card > div { min-height: 460px; padding: 20px 15px; }
    .prd-image-container { width: 120px; height: 120px; margin: 10px 0 15px; }
    .prd-title { font-size: 1.6rem; }
    .prd-subtitle-small { font-size: 0.9rem; margin-bottom: 15px; }
    .prd-description { font-size: 1rem; margin-bottom: 20px; }
    .prd-features-title { font-size: 1.2rem; }
    .prd-feature-item { font-size: 0.85rem; }
    
    .prd-details-link {
        left: 10px;
        bottom: 15px;
        padding: 8px 18px;
        font-size: 0.85rem;
        min-width: 120px;
        gap: 8px;
    }
    
    .prd-details-link i { font-size: 0.8rem; }
}

/* حالت لمسی */
@media (hover: none) and (pointer: coarse) {
    .prd-card {
        cursor: pointer;
        transition: transform 0.5s ease;
    }
    
    .prd-card.prd-touched {
        transform: translateZ(-160px) rotateY(-90deg);
    }
    
    .prd-card.prd-touched .prd-front { opacity: 0; }
    .prd-card.prd-touched .prd-side { opacity: 1; }
    .prd-card.prd-touched .prd-details-link {
        transform: scale(1) skewY(0);
        opacity: 1;
    }
    
    .prd-details-link { cursor: pointer; }
}

/* products */