* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    direction: rtl;
    color: #333;
    position: relative;
    overflow-x: hidden;
}

/* ============================================ */
/* استایل دکمه تغییر زبان - در حال حاضر استفاده نمی‌شود */
/* این بخش در خطوط 21-64 قرار دارد */
/* برای نمایش دکمه‌های زبان: */
/* 1) کامنت‌های HTML را در index.html خطوط 30-47 حذف کنید */
/* 2) مقدار HIDE_LANGUAGE_SWITCHER را در script.js خط 123 به false تغییر دهید */
/* ============================================ */
.language-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.lang-btn {
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.lang-btn:hover {
    background: #f0f0f0;
    color: #4A90E2;
}

.lang-btn.active {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
}

html[dir="ltr"] .language-switcher {
    left: auto;
    right: 20px;
}

/* انیمیشن پس‌زمینه */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 226, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 107, 107, 0.1) 0%, transparent 50%);
    animation: backgroundMove 20s ease-in-out infinite;
    z-index: -1;
}

/* المان‌های تزئینی پس‌زمینه */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(102, 126, 234, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 90% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 50% 50%, rgba(74, 144, 226, 0.1) 0%, transparent 40%);
    animation: backgroundPulse 15s ease-in-out infinite;
    z-index: -1;
    pointer-events: none;
}

@keyframes backgroundPulse {
    0%, 100% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes backgroundMove {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-20px, -20px) scale(1.1);
    }
}

.container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 60px 40px;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: 1;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* لوگو */
.logo-section {
    margin-bottom: 30px;
}

.logo-section i {
    font-size: 80px;
    color: #4A90E2;
    animation: pulse 2s infinite, float 3s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* عنوان اصلی */
.main-title {
    font-size: 48px;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideInRight 1s ease-out 0.2s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* عنوان دوم */
.subtitle {
    font-size: 28px;
    color: #4A90E2;
    margin-bottom: 20px;
    font-weight: 600;
    animation: slideInLeft 1s ease-out 0.4s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* توضیحات */
.description {
    font-size: 18px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.8;
    animation: fadeIn 1s ease-out 0.6s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* تایمر */
.countdown-section {
    margin: 50px 0;
    animation: fadeIn 1s ease-out 0.8s both;
}

.countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.countdown-item {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-radius: 15px;
    padding: 25px 20px;
    min-width: 100px;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.countdown-item:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.5);
}

.countdown-number {
    font-size: 42px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    animation: numberPulse 1s ease-in-out infinite;
    font-family: 'Iranian Sans', 'Vazir', 'Tahoma', 'Segoe UI', sans-serif;
    font-variant-numeric: normal;
    direction: ltr;
    text-align: center;
    display: inline-block;
    unicode-bidi: embed;
}

@keyframes numberPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.countdown-separator {
    font-size: 36px;
    font-weight: 700;
    color: #4A90E2;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* دکمه کمک مالی */
.donate-section {
    margin: 40px 0;
    animation: fadeIn 1s ease-out 1s both;
}

.donate-button {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
    color: white;
    border: none;
    padding: 18px 50px;
    font-size: 20px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    }
    50% {
        box-shadow: 0 8px 30px rgba(255, 107, 107, 0.6);
    }
}

.donate-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.6);
}

.donate-button:active {
    transform: translateY(-1px) scale(1.02);
}

.donate-button i {
    font-size: 24px;
    animation: heartBeat 1.5s ease-in-out infinite;
}

@keyframes heartBeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.2);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

/* نمادهای خیریه */
.icons-section {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 50px 0;
    flex-wrap: wrap;
    animation: fadeIn 1s ease-out 1.2s both;
}

.icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 120px;
    animation: iconFloat 3s ease-in-out infinite;
}

.icon-item:nth-child(1) {
    animation-delay: 0s;
}

.icon-item:nth-child(2) {
    animation-delay: 0.5s;
}

.icon-item:nth-child(3) {
    animation-delay: 1s;
}

.icon-item:nth-child(4) {
    animation-delay: 1.5s;
}

@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.icon-item:hover {
    background: #e9ecef;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.icon-item i {
    font-size: 36px;
    color: #FF6B6B;
    transition: transform 0.3s ease;
}

.icon-item:hover i {
    transform: rotate(10deg) scale(1.1);
}

.icon-item span {
    font-size: 14px;
    color: #555;
    font-weight: 500;
}

/* بخش تماس */
.contact-section {
    margin: 50px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 20px;
    animation: fadeIn 1s ease-out 1.4s both;
}

.section-title {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.section-title i {
    color: #4A90E2;
    animation: iconRotate 2s ease-in-out infinite;
}

@keyframes iconRotate {
    0%, 100% {
        transform: rotate(0deg);
    }
    25% {
        transform: rotate(-5deg);
    }
    75% {
        transform: rotate(5deg);
    }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 18px;
    color: #555;
    flex-wrap: wrap;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateX(-5px);
}

.contact-item i {
    color: #4A90E2;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.contact-item:hover i {
    transform: scale(1.2) rotate(10deg);
}

.contact-item a {
    color: #4A90E2;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.contact-item a:hover {
    color: #357ABD;
    text-decoration: underline;
}

.donate-method a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.donate-method a:hover {
    color: #4A90E2;
    text-decoration: underline;
}

.separator {
    color: #ccc;
    margin: 0 5px;
}

.messengers {
    flex-direction: column;
    gap: 10px;
}

.messenger-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.tag {
    background: #4A90E2;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    animation: tagBounce 2s ease-in-out infinite;
    display: inline-block;
}

.messenger-link {
    text-decoration: none;
    cursor: pointer;
    color: white !important;
    font-weight: 600;
}

.messenger-link:hover {
    color: #FFD700 !important;
    text-decoration: none;
    background: #357ABD;
}

.tag:nth-child(1) {
    animation-delay: 0s;
}

.tag:nth-child(2) {
    animation-delay: 0.2s;
}

.tag:nth-child(3) {
    animation-delay: 0.4s;
}

.tag:nth-child(4) {
    animation-delay: 0.6s;
}

@keyframes tagBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.tag:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

/* بخش نقشه */
.map-section {
    margin: 50px 0;
    animation: fadeIn 1s ease-out 1.6s both;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-container:hover {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 300px;
    border: none;
}

/* شبکه‌های اجتماعی */
.social-section {
    margin-top: 40px;
    animation: fadeIn 1s ease-out 1.8s both;
}

/* بخش کپی رایت */
.copyright-section {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    animation: fadeIn 1s ease-out 2s both;
}

.copyright-text {
    font-size: 14px;
    color: #888;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-wrap: wrap;
}

.developer-name {
    color: #4A90E2;
    font-weight: 600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html[dir="ltr"] .copyright-text {
    flex-direction: row;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: socialFloat 3s ease-in-out infinite;
    cursor: pointer;
}

.social-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.social-icon svg {
    width: 32px;
    height: 32px;
    display: block;
}

.social-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.social-icon:nth-child(1) {
    animation-delay: 0s;
}

.social-icon:nth-child(2) {
    animation-delay: 0.3s;
}

.social-icon:nth-child(3) {
    animation-delay: 0.6s;
}

.social-icon:nth-child(4) {
    animation-delay: 0.9s;
}

.social-icon:nth-child(5) {
    animation-delay: 1.2s;
}

.social-icon:nth-child(6) {
    animation-delay: 1.5s;
}

.social-icon:nth-child(7) {
    animation-delay: 1.8s;
}

@keyframes socialFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-8px) rotate(5deg);
    }
}

.social-icon:hover {
    transform: translateY(-8px) scale(1.15) rotate(10deg);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-icon.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon.whatsapp {
    background: #25D366;
}

.social-icon.eita {
    background: #00AEEF;
}

.social-icon.bale {
    background: #00B2FF;
}

.social-icon.rubika {
    background: linear-gradient(135deg, #FF6B6B 0%, #EE5A6F 100%);
}

.social-icon.telegram {
    background: #0088cc;
}

.social-icon.facebook {
    background: #1877F2;
}

/* تولتیپ */
.social-icon[data-tooltip]:hover::after {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    animation: tooltipFadeIn 0.3s ease-out;
}

html[lang="fa"] .social-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
}

html[lang="ar"] .social-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
}

html[lang="en"] .social-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
}

html[lang="tr"] .social-icon[data-tooltip]:hover::after {
    content: attr(data-tooltip);
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.social-icon[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-bottom-color: #2c3e50;
    z-index: 1000;
}

/* مودال کمک مالی */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 40px;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-modal {
    position: absolute;
    top: 15px;
    left: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.close-modal:hover {
    color: #FF6B6B;
    background: #f8f9fa;
    transform: rotate(90deg);
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 28px;
}

.modal-content h2 i {
    color: #FF6B6B;
    animation: heartBeat 1.5s ease-in-out infinite;
}

.modal-content p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 30px;
    font-size: 16px;
}

.donate-methods {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.donate-method {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.donate-method:hover {
    background: #e9ecef;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.donate-method i {
    font-size: 36px;
    color: #4A90E2;
    margin-bottom: 15px;
    display: block;
}

.donate-method h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
}

.donate-method p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.modal-close-btn {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.4);
}

/* تنظیمات برای رزولوشن 1280x1024 */
@media (min-width: 1280px) and (max-width: 1280px) and (min-height: 1024px) and (max-height: 1024px) {
    .modal-content {
        position: relative;
        margin: 50px auto;
    }
    
    .modal-close-btn {
        margin-top: 20px;
    }
}

/* تنظیمات برای زبان انگلیسی */
html[dir="ltr"] {
    direction: ltr;
}

html[dir="ltr"] .container {
    direction: ltr;
    text-align: left;
}

html[dir="ltr"] .countdown-container {
    flex-direction: row-reverse;
}

html[dir="ltr"] .donate-section {
    text-align: center;
}

html[dir="ltr"] .donate-button {
    margin: 0 auto;
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .container {
        padding: 40px 20px;
    }

    .main-title {
        font-size: 36px;
    }

    .subtitle {
        font-size: 22px;
    }

    .countdown-item {
        min-width: 80px;
        padding: 20px 15px;
    }

    .countdown-number {
        font-size: 32px;
    }

    .icons-section {
        gap: 15px;
    }

    .icon-item {
        min-width: 100px;
        padding: 15px;
    }

    .donate-button {
        padding: 15px 40px;
        font-size: 18px;
    }

    .modal-content {
        padding: 30px 20px;
        margin: 20% auto;
    }
}

