@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;600;700&display=swap');

/* پس‌زمینه گرادینت متحرک */
html, body {
    height: 100%;
    margin:0;
    font-family: 'Vazirmatn', sans-serif;
    background: linear-gradient(-45deg, #ff6ec4, #7873f5, #42e695, #fbc531);
    background-size: 400% 400%;
    animation: gradientBG 20s ease infinite;
}
@keyframes gradientBG {
    0%{background-position:0% 50%;}
    25%{background-position:50% 100%;}
    50%{background-position:100% 50%;}
    75%{background-position:50% 0%;}
    100%{background-position:0% 50%;}
}

/* Wrapper */
.wrapper {
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* هدر */
.header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 15px 30px;
    background: rgba(0,0,0,0.3);
    border-radius: 0 0 20px 20px;
    box-shadow:0 6px 20px rgba(0,0,0,0.2);
    flex-wrap: wrap;
}
.header img {
    height: 60px;
    border-radius:12px;
    box-shadow:0 4px 12px rgba(0,0,0,0.3);
    margin-left:15px;
}
.header h2 {
    color:#fff;
    font-weight:400;
    font-size:1.2rem;
    text-shadow:1px 1px 4px rgba(0,0,0,0.5);
    margin:0;
}

/* کارت‌ها */
.container-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 20px 15px;
}
h1.page-title {
    color: #fff; font-weight:700;
    text-shadow:1px 1px 10px rgba(0,0,0,0.4);
    margin-bottom:40px;
    margin-top: 40px;
    text-align:center;
}
.row-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
.card-home {
    border-radius: 20px;
    background: rgba(255,255,255,0.95);
    box-shadow:0 10px 30px rgba(0,0,0,0.25);
    padding:25px 20px;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
    cursor: pointer;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    width: 260px;
    opacity: 0;
    transform: scale(0.8);
    animation: fadeInScale 0.6s forwards;
}
.card-home:nth-child(1){ animation-delay: 0.1s; }
.card-home:nth-child(2){ animation-delay: 0.3s; }
.card-home:nth-child(3){ animation-delay: 0.5s; }
.card-home:nth-child(4){ animation-delay: 0.7s; }

@keyframes fadeInScale {
    to { opacity:1; transform: scale(1); }
}

.card-home:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow:0 20px 40px rgba(0,0,0,0.4);
    background: rgba(255,255,255,1);
}
.card-home i { font-size:3rem; margin-bottom:15px; color:#0d6efd; transition: transform 0.3s, color 0.3s; }
.card-home:hover i { transform: rotate(15deg) scale(1.2); color:#198754; }
.card-home h5 { font-weight:700; color:#0d6efd; transition: color 0.3s; }
.card-home:hover h5 { color:#198754; }
.card-home p { font-size:0.95rem; color:#495057; line-height:1.5; transition: color 0.3s; }
.card-home:hover p { color:#343a40; }

/* دکمه بازگشت */
.back-btn {
    display: inline-block;
    margin-top: 30px;

    padding: 10px 20px;
    border-radius: 25px;
    background: #0d6efd;
    color: #fff;
    text-decoration:none;
    font-weight: 400;
    transition: 0.3s;

}
.back-btn:hover {
    background: #0b5ed7;
    text-decoration: none;
}

/* Footer طراح */
.footer-text {
    padding:15px 0;
    background: rgba(0,0,0,0.3);
    color: #d7d5d5;
    font-weight:400;
    text-align:center;
    font-size:0.8rem;
    text-shadow:1px 1px 6px rgba(0,0,0,0.5);
    margin-top:auto;
}

@media(max-width:768px){
    .card-home i{ font-size:2.5rem; }
    .card-home { min-height: 240px; width: 100%; max-width:300px; }
    .header { flex-direction: column; align-items: center; gap:10px; }
    .header h2 { font-size:1.4rem; }
    .header img { height:50px; margin-left:0; }
}

