@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700&display=swap');

body {
    font-family: 'IranSans', 'Vazirmatn', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    margin: 0;
    overflow-x: hidden;
}

.landing-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1200px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.logo {
    height: 3rem;
    width: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    left: 0;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.header-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    width: 100%;
    gap: 20px;
}

.logo-typing-container {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* تغییر به flex-end */
    flex-direction: row;
    position: relative;
    height: auto;
    flex: 1;
}

.logo {
    height: 3rem;
    width: auto;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    position: absolute;
    right: 0; /* تغییر از left به right */
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.typing-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #db2777;
    white-space: nowrap;
    overflow: hidden;
    opacity: 1;
    transition: opacity 1s ease-in-out;
    text-align: right; /* تغییر به right */
    position: absolute;
    right: 0; /* اضافه شده */
}


.flower-logo-container {
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    background-color: rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
    width: 80px;
    height: 80px;
}

#flower-logo {
    display: block;
    width: 100%;
    height: 100%;
}

.months-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease-out;
}

.month-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.month-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.month-image {
    width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.month-card:hover .month-image {
    transform: scale(1.05);
}

.month-name {
    font-family: 'IranSans', 'Vazirmatn', sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-top: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1024px) {
    .months-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .landing-container {
        padding: 20px;
        width: calc(100% - 40px);
        margin: 0 auto;
    }
    
    .logo {
        position: static;
        width: 150px;
        height: 2.5rem;
    }
    
    .header-container {
        flex-direction: column;
        align-items: center;
        gap: 30px; /* افزایش فاصله بین المان‌ها در موبایل */
    }
    
    .logo-typing-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 100%;
        gap: 20px; /* اضافه کردن فاصله بین لوگو و متن */
    }
    
    .typing-text {
        text-align: center;
        font-size: 1.2rem;
        width: 100%;
    }

    .months-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        width: 100%;
    }

    .month-card {
        padding: 10px;
    }
    
    .flower-logo-container {
        width: 100px;
        height: 100px;
        margin: 0 auto; /* حذف margin اضافی */
    }
}

@media (min-width: 769px) {
    .flower-logo-container {
        margin-right: 0;
    }
}

@media (max-width: 480px) {
    .months-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo {
        width: 120px;
    }
    
    .header-container {
        gap: 25px; /* تنظیم فاصله برای موبایل‌های کوچک‌تر */
    }
}

@font-face {
    font-family: 'IranSans';
    src: url("{% static 'fonts/IranSans.ttf' %}") format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranSans';
    src: url("{% static 'fonts/IranSans-Bold.ttf' %}") format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IranSans';
    src: url("{% static 'fonts/IranSans-Light.ttf' %}") format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}