@font-face {
    font-family: 'Vazir';
    src: url('assets/fonts/Vazir-FD-WOL.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Vazir';
    src: url('assets/fonts/Vazir-Bold-FD-WOL.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Vazir', sans-serif;
}


* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Vazir', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* بک‌گراند مورد نظر شما */
    background-color: #ffffff;
    background-image: url("assets/img/bg-2.webp");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;

    position: relative;
    transition: background-color 0.5s ease;
}

/* لایه بک‌گراند فید */
#bgFade {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
    z-index: -1;
    will-change: opacity;
}

.card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    animation: cardBounce 1.2s ease-out;
    max-width: 500px;
    margin: 20px;
    position: relative;
    z-index: 1;
}

@keyframes cardBounce {
    0% {
        opacity: 0;
        transform: translateY(60px) scale(0.95);
    }
    60% {
        transform: translateY(-15px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logo {
    width: 100px;
    margin-bottom: 20px;
    animation: bounceLogo 2s infinite ease-in-out;
}

@keyframes bounceLogo {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

/* استایل برای h1 تایپ شده */
h1 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 10px;
    min-height: 38px;
    white-space: nowrap;
    overflow: hidden;
    padding-right: 5px;
}

/* انیمیشن چشمک زدن کرسر */
@keyframes blink {
    0%, 100% { border-color: rgba(255, 255, 255, 0.75); }
    50% { border-color: transparent; }
}

.typing {
    animation: blink 0.8s step-end infinite;
}

p {
    font-size: 18px;
    color: #f0f0f0;
    margin-bottom: 30px;
    animation: fadeInUp 2s ease-out;
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeInUp 2.3s ease-out;
}

.btn {
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 16px 30px;
    border: 2px solid #fff;
    border-radius: 12px;
    font-size: 16px;
    text-decoration: none;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    cursor: pointer;
    z-index: 1;
    user-select: none;
}

.btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.07);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.btn:active {
    animation: clickShake 0.25s ease;
}

@keyframes clickShake {
    0% {
        transform: scale(0.97);
    }
    50% {
        transform: scale(1.03);
    }
    100% {
        transform: scale(1);
    }
}

.btn::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 0;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
    background: rgba(255, 255, 255, 0.4);
    transition: 0.6s ease;
    z-index: 0;
}

.btn:hover::before {
    height: 500%;
}

.btn span {
    position: relative;
    z-index: 1;
}

@media (max-width: 600px) {
    .btn {
        width: 100%;
        text-align: center;
    }
    h1#typing-text {
        font-size: 24px;
    }
}

.lang-switcher {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    column-gap: 24px;
    color: #ffffff;
}

.lang-switcher a {
    color: #FFFFFF;
    text-decoration: none;
}
.btn {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

/* پشتیبانی از زبان راست‌چین (مثل فارسی) */
[dir="rtl"] .btn {
    flex-direction: row-reverse;
}
.btn .icon {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(20); /* برای سفید کردن آیکن مشکی */
}
