/* frontend/css/landing-style.css */

html {
    font-family: 'Vazirmatn', sans-serif;
    color: #e0e6f0;
    background: #0f172a;
}

body {
    margin: 0;
    background: linear-gradient(-45deg, #0f172a, #2a1a3f, #0d6efd, #a370f7);
    background-size: 400% 400%;
    background-attachment: fixed;
    animation: moveGradient 20s ease infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: scroll;
}

@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.main-container {
    width: 100%;
    max-width: 1000px;
    text-align: center;
}

.landing-header h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(163, 112, 247, 0.7);
    margin-bottom: 10px;
}

.landing-header p {
    font-size: clamp(1rem, 3vw, 1.2rem);
    color: #c7d2fe;
    margin-bottom: 30px;
}

.test-cards-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.test-card-link {
    text-decoration: none;
    color: inherit;
    width: 100%; /* برای کمک به ریسپانسیو بهتر در flex */
    max-width: 350px;
}

.test-card {
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    padding: 35px;
    width: 100%;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* --- اصلاحیه اصلی: این خط مشکل بیرون زدن از کادر را حل می‌کند --- */
    box-sizing: border-box; 
}

.test-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.card-icon {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 20px;
}

.test-card h2 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 15px;
}

.test-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 30px;
    flex-grow: 1;
}

.btn-start {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    margin-top: auto;
}

.mbti-card .btn-start {
    background-color: #8b5cf6;
    color: #fff;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.5);
}

.mbti-card:hover {
    border-color: #8b5cf6;
}

.holland-card .btn-start {
    background-color: #3b82f6;
    color: #fff;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.holland-card:hover {
    border-color: #3b82f6;
}

.btn-start:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

/* --- بخش ریسپانسیو --- */
@media (max-width: 768px) {
    .landing-header h1 {
        font-size: 2rem;
    }

    .test-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .test-card-link {
        max-width: 100%;
    }

    .main-container {
        padding: 20px;
    }
}