@font-face {
    font-family: 'yekanbakh';
    font-style: normal;
    src: url('./font/Aria-Regular.ttf') format('ttf'),
         url('./font/AriaWeb-Regular.woff') format('woff');
}

@font-face {
    font-family: 'yekanbakhBold';
    font-style: normal;
    font-weight: bold;
    src: url('./font/Aria-Bold.ttf') format('ttf'),
         url('./font/AriaWeb-Bold.woff') format('woff');
}

@font-face {
    font-family: 'yekanbakhFat';
    font-style: normal;
    font-weight: 900;
    src: url('./font/Aria-Black.ttf') format('ttf'),
         url('./font/AriaWeb-Black.woff') format('woff');
}

@font-face {
    font-family: 'IranNas';
    font-style: normal;
    font-weight: 900;
    src: url('./font/IranNas/IranNastaliq.ttf') format('ttf'),
         url('./font/IranNas/IranNastaliq.woff') format('woff'),
         url('./font/IranNas/IranNastaliq.eot') format('eot');
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

h1, h2, h3 {
    font-family: 'yekanbakhFat', sans-serif;
}

h4, h5, h6 {
    font-family: 'yekanbakhBold', sans-serif;
}

p, button {
    font-family: 'yekanbakh', sans-serif;
}

body {
    direction: rtl;
    background: linear-gradient(135deg, #0f172a, #000000);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    padding: 20px;
    position: relative;
    text-align: center;
}

.bg-shape {
    position: absolute;
    font-size: 120px;
    filter: blur(6px);
    opacity: 0.25;
    z-index: 1;
    animation: floatAnimation 18s infinite ease-in-out alternate;
}

.shape-1 {
    top: 10%;
    left: 10%;
}

.shape-2 {
    bottom: 15%;
    right: 8%;
    animation-duration: 24s;
}

.shape-3 {
    top: 45%;
    left: 45%;
    animation-delay: 3s;
}

@keyframes floatAnimation {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(40px, -40px) rotate(20deg);
    }
}

#container {
    z-index: 2;
    width: 95%;
    max-width: 1200px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
    margin-bottom: 25px;
    transition: all 0.6s ease;
}

#container:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
}

#container h1 {
    font-size: 58px;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

h4 {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.6;
}

button {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: all 0.5s ease;
}

button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: scale(1.03);
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 20px 0;
}

#falInter {
    background: rgba(0, 0, 0, 0.25);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: max-height 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease, padding 0.8s ease;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
}

#falInter.show {
    opacity: 1;
    max-height: 1000px;
    padding: 20px;
}

.fade-in {
    animation: smoothAppear 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

#fal {
    margin-top: 20px;
    font-size: 18px;
}

#falText {
    font-size: 1.15rem;
    line-height: 2;
    color: #f8fafc;
    text-align: justify;
}

#falTitle {
    font-family: 'IranNas', sans-serif;
    font-size: 30px;
    margin-top: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}

#waitText {
    color: #94a3b8;
    margin-bottom: 10px;
}

footer {
    z-index: 2;
    text-align: center;
    margin-bottom: 15px;
    margin-top: 20px; 
}

footer h5 a {
    color: #38bdf8;
    text-decoration: none;
    transition: color 0.4s ease;
}

footer h5 a:hover {
    color: #7dd3fc;
}

#footerDonate {
    z-index: 2;
    transition: all 0.5s ease;
}

#footerDonate:hover {
    transform: translateY(-3px) scale(1.05);
}

#footerDonate img {
    height: 50px;
    width: 240px;
    margin-top: 10px;
}

/* ========================================= */
/* Mobile Responsive Section*/
/* ========================================= */
@media screen and (max-width: 768px) {
    #container h1 {
        font-size: 36px;
    }
    
    h4 {
        font-size: 0.9rem;
    }
    
    #container {
        padding: 20px 15px;
    }
    
    #falTitle {
        margin-top: 15px;
        font-size: 24px;
    }
    
    #falText {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .bg-shape {
        font-size: 70px;
    }
    
    #footerDonate img {
        width: 180px;
        height: auto;
    }

    .pill-link {
    font-size: 10px;
    }
}

.glass-pill-container {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 10px 10px;
    
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.glass-pill-container:hover {
    padding: 10px 20px;
    gap: 15px;
    background: rgba(255, 255, 255, 0.08);
}

.pill-link {
    text-decoration: none;
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pill-link:hover {
    background: #f97316;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.4);
    color: white;
}


.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    animation: fadeInModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal-content {
    background: #1e293b;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    color: white;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    animation: slideUpContent 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease, transform 0.3s ease;
}

.close-btn:hover {
    color: #ffffff;
    transform: rotate(90deg) scale(1.1);
}

@keyframes fadeInModal {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUpContent {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media screen and (max-width: 768px) {
    .modal-content {
        width: 85%;
        padding: 24px;
        border-radius: 16px;
    }
    
    .close-btn {
        top: 12px;
        right: 16px;
    }
}

.modal.closing {
    animation: fadeOutModal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.modal.closing .modal-content {
    animation: slideDownContent 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeOutModal {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes slideDownContent {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}