/* Landing Page Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', 'Poppins', sans-serif;
    overflow: hidden;
    height: 100vh;
}

[lang="en"] body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.landing-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
    z-index: 9999;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.landing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 40px;
    max-width: 800px;
    width: 100%;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-logo {
    margin-bottom: 50px;
    animation: logoEntrance 1.2s ease-out 0.3s both;
}

@keyframes logoEntrance {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.logo-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(26, 31, 46, 0.3));
    transition: transform 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.landing-welcome {
    margin-bottom: 60px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.welcome-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.02em;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.welcome-title-fa {
    font-family: 'Vazirmatn', 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.welcome-title-en {
    font-family: 'Playfair Display', 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    font-style: normal;
    line-height: 1.2;
    opacity: 0.95;
}

.welcome-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.05em;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    margin-top: 10px;
}

.welcome-subtitle-fa {
    font-family: 'Vazirmatn', 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.05em;
}

.welcome-subtitle-en {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    font-style: normal;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.85;
}

.landing-language-selector {
    animation: fadeInUp 1s ease-out 0.9s both;
}

.language-prompt {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    font-weight: 400;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.language-prompt-fa {
    font-family: 'Vazirmatn', 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
}

.language-prompt-en {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.9;
}

.language-options {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

[dir="rtl"] .language-options {
    flex-direction: row-reverse;
}

.language-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 25px 40px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 150px;
    position: relative;
    overflow: hidden;
}

.language-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.language-btn:hover::before {
    left: 100%;
}

.language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(26, 31, 46, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(26, 31, 46, 0.4);
}

.language-btn:active {
    transform: translateY(-2px);
}

.lang-icon {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1A1F2E;
    text-shadow: 0 2px 10px rgba(26, 31, 46, 0.5);
    font-family: 'Poppins', 'Inter', sans-serif;
    letter-spacing: 0.1em;
}

[lang="en"] .lang-icon {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
}

.lang-name {
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
}

[lang="en"] .lang-name {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    font-weight: 400;
}

/* Loading Animation */
.landing-content.loading .language-btn {
    pointer-events: none;
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-title-fa {
        font-size: 2.5rem;
    }
    
    .welcome-title-en {
        font-size: 2.8rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .language-options {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    [dir="rtl"] .language-options {
        flex-direction: column;
    }
    
    .language-btn {
        width: 100%;
        max-width: 250px;
        padding: 20px 30px;
    }
    
    .logo-image {
        max-width: 200px;
    }
    
    .landing-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-title-fa {
        font-size: 2rem;
    }
    
    .welcome-title-en {
        font-size: 2.2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .language-prompt {
        font-size: 0.95rem;
    }
}

/* RTL Support */
[dir="rtl"] .landing-content {
    text-align: center;
}

/* Bilingual text styling - show both languages */
.welcome-title-fa,
.welcome-subtitle-fa,
.language-prompt-fa {
    display: block;
}

.welcome-title-en,
.welcome-subtitle-en,
.language-prompt-en {
    display: block;
}

