@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap');
/* اضافه کردن فونت یکان باخ - اعداد فارسی */
@font-face {
    font-family: 'Yekan Bakh';
    src: url('fonts/YekanBakhFaNum-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Yekan Bakh';
    src: url('fonts/YekanBakhFaNum-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Yekan Bakh';
    src: url('fonts/YekanBakhFaNum-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	font-family: 'Yekan Bakh', 'Poppins', sans-serif;
}
body {
	display: flex;
	justify-content: center;
	align-items: center;
	background: linear-gradient(#000000 0, #000000 50%, #d47da8 50%, #d47da8 100%);
	min-height: 100vh;
}
.card {
	position: relative;
	width: 300px;
	height: 380px;
	backdrop-filter: blur(10px);
	transform-style: preserve-3d;
	perspective: 1000px;
	-webkit-backdrop-filter: blur(10px);
	background: rgba(0, 0, 0, 0.1);
	border-radius: 24px;
	border: 1px solid rgba(230, 99, 208, 0.795);
	box-shadow: 0 8px 24px rgba(235, 113, 198, 0.959), 
                inset 0 0 16px rgba(230, 100, 219, 0.952);
				display: flex;
				transform-style: preserve-3d;
				
	overflow: hidden;
	transition: 0.5s ease-in-out;
}
.card:hover, .card.active {
	width: 600px;
}
.card .imgBx {
	position: relative;
	min-width: 300px;
	height: 100%;
	background: #d47da8;
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 10;
}
.card .imgBx img {
	max-width: 200px;
	transition: 0.5s ease-in-out;
	filter: drop-shadow(0px 8px 15px rgba(0, 0, 0, 0.4));
	transform: scale(1.05) translateZ(200px);
}
.card:hover .imgBx img, .card.active .imgBx img {
	transform: rotate(-35deg) translateX(-20px) scale(1.2) translateZ(250px);
	filter: drop-shadow(5px 5px 20px rgba(0, 0, 0, 0.5));
}
.card .details {
	position: absolute;
	left: 0;
	width: 300px;
	height: 100%;
	background: rgba(0, 0, 0, 0.85);
	box-shadow: 0 0 30px rgba(233, 84, 196, 0.952);
	display: flex;
	justify-content: center;
	padding: 20px;
	flex-direction: column;
	transition: 0.5s ease-in-out;
}
.card:hover .details, .card.active .details {
	left: 300px;
}
.card .details::before {
	content: '';
	position: absolute;
	left: 0px;
	width: 0;
	height: 0;
	border-top: 10px solid transparent;
	border-bottom: 10px solid transparent;
	border-left: 10px solid #d47da8;
	z-index: 1;
	
}
.card .details h3 {
	color: #fff;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 1.5em;
	line-height: 1em;
}
.card .details h3 span {
	font-size: 0.65em;
	font-weight: 300;
	opacity: 0.85;
	text-transform: none;
}
.card .details h4 {
	color: #fff;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 0.9em;
	line-height: 1em;
	margin-top: 20px;
	margin-bottom: 10px;
}
p {
	color: #fff;
	font-size: 0.8em;
	opacity: 0.85;
}
.size {
	display: flex;
	gap: 10px;
}
.size li {
	list-style: none;
	color: #fff;
	font-size: 0.9em;
	width: 40px;
	height: 40px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 2px solid #fff;
	cursor: pointer;
	font-weight: 500;
	opacity: 0.5;
}
.size li:hover {
	background: #fff;
	color: #4ba9e9;
	opacity: 1;
}
.group {
	position: relative;
	display: flex;
	justify-content: space-between;
	margin-top: 20px;
	align-items: center;
}
.card .details h2 {
	color: #fff;
	text-transform: uppercase;
	font-weight: 600;
	font-size: 2em;
}
.card .details h2 sup {
	font-weight: 300;
}
.card .details h2 small {
	font-size: 0.75em;
}
.neon-button { 
    position: relative;
    display: inline-block;
    padding: 10px 25px; 
    color: #03e9f4;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.5s;
    letter-spacing: 2px; 
    overflow: hidden;
    font-weight: bold;
    font-family: 'Raleway', sans-serif; 

    
    filter: hue-rotate(110deg); 
}

.neon-button:hover {
    background: #03e9f4;
    color: #050801;
    box-shadow: 0 0 5px #03e9f4,
                0 0 25px #03e9f4,
                0 0 50px #03e9f4,
                0 0 200px #03e9f4;
    -webkit-box-reflect: below 1px linear-gradient(transparent, #0005);
}

.neon-button span {
    position: absolute;
    display: block;
}
/* خط متحرک بالا */
.neon-button span:nth-child(1) {
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #03e9f4);
    animation: animate1 1s linear infinite;
}
@keyframes animate1 {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* خط متحرک راست */
.neon-button span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #03e9f4);
    animation: animate2 1s linear infinite;
    animation-delay: 0.25s;
}
@keyframes animate2 {
    0% { top: -100%; }
    50%, 100% { top: 100%; }
}

/* خط متحرک پایین */
.neon-button span:nth-child(3) {
    bottom: 0; 
    right: 0;
    width: 100%; 
    height: 2px;
    background: linear-gradient(270deg, transparent, #03e9f4);
    animation: animate3 1s linear infinite;
    animation-delay: 0.50s;
}
@keyframes animate3 {
    0% { right: -100%; }
    50%, 100% { right: 100%; }
}


.neon-button span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #03e9f4);
    animation: animate4 1s linear infinite;
    animation-delay: 0.75s;
}
@keyframes animate4 {
    0% { bottom: -100%; }
    50%, 100% { bottom: 100%; }
}
/* --- ریسپانسیو سازی موبایل --- */
/* --- ریسپانسیو سازی نهایی موبایل --- */
@media (max-width: 650px) {
    body {
        overflow-x: hidden;
    }
    .card {
        /* جلوگیری از فشرده شدن کارت توسط فلکس‌باکس مرورگر */
        flex-shrink: 0; 
        /* حالا که کارت فشرده نمی‌شود، مقیاس ۵۵ درصد کاملاً ایده‌آل است */
        transform: scale(0.55); 
    }
    
    .card .imgBx img {
        max-width: 170px; 
    }
    .card:hover .imgBx img, .card.active .imgBx img {
        transform: rotate(-25deg) translateX(10px) scale(1.05) translateZ(150px);
        filter: drop-shadow(3px 3px 15px rgba(0, 0, 0, 0.5));
    }
}