/* Preloader Style Start */
/* Preloader Container */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--darker-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.6s ease;
    opacity: 1;
}

/* Spinner Wrapper */
.spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

/* Circles */
.circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #00ffe1;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
    filter: drop-shadow(0 0 10px #00ffe1);
    opacity: 0.8;
}

.circle1 {
    animation-delay: 0s;
}
.circle2 {
    width: 60px;
    height: 60px;
    top: 10px;
    left: 10px;
    animation-delay: 0.3s;
    border-top-color: #ff00c3;
    filter: drop-shadow(0 0 10px #ff00c3);
}
.circle3 {
    width: 40px;
    height: 40px;
    top: 20px;
    left: 20px;
    animation-delay: 0.6s;
    border-top-color: #00aaff;
    filter: drop-shadow(0 0 10px #00aaff);
}

/* Spin Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Preloader Style End */

/* Style for Fonts */
.font-title {
    font-family: 'Vazir', sans-serif;
    font-weight: bold;
}
label.font-title {
    color: #00ff41;
}

/* برای توضیحات مانند معرفی یا شرح مهارت‌ها */
.font-description {
    font-family: 'Shabnam', sans-serif;
}

.font-button {
    font-family: 'Shabnam', sans-serif;
    font-weight: bold;
}

.padding-5px {
    padding: 5px;
}

.padding-10px {
    padding: 10px;
}


/* Start: style for Goto Services page  */
/*.btn-magic {*/
/*    position: relative;*/
/*    display: inline-flex;*/
/*    justify-content: center;*/
/*    align-items: center;*/
/*    padding: 15px 30px;*/
/*    background: linear-gradient(45deg, #00a82d, #00ff6a);*/
/*    color: white;*/
/*    font-family: Shabnam, sans-serif;*/
/*    font-size: 18px;*/
/*    font-weight: 600;*/
/*    text-decoration: none;*/
/*    border-radius: 50px;*/
/*    overflow: hidden;*/
/*    box-shadow: 0 10px 20px rgba(0, 168, 45, 0.3),*/
/*    0 0 10px rgba(0, 255, 65, 0.7); !* افکت نور سبز *!*/
/*    transition: all 0.3s ease;*/
/*    z-index: 1;*/
/*    border: none;*/
/*    width: 20rem;*/
/*    height: 3rem;*/
/*    cursor: pointer;*/
/*}*/

.btn-magic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 25px;
    background: linear-gradient(45deg, #00a82d, #00ff6a);
    color: black;
    font-family: Shabnam, sans-serif;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 168, 45, 0.3),
    0 0 10px rgba(0, 255, 65, 0.7);
    transition: all 0.3s ease;
    z-index: 1;
    border: none;
    width: 20rem;
    height: 3rem;
    cursor: pointer;
    gap: 8px; /* فاصله بین آیکون و متن */
    flex-direction: row; /* Ensure items are in a row */
}

/* Move icon to the left by changing the order */
.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    order: 1; /* This will place the icon before other elements */
    margin-right: 8px; /* Add some space between icon and text */
    margin-top: 20px;
    color: var(--accent-orange);
}
.Orange {
    color:var(--accent-orange);
}
.btn-icon:hover {
    color: var(--accent-orange);
}

/* Update hover animation to move right instead of left since icon is now on the left */
.btn-magic:hover .btn-icon {
    transform: translateX(3px); /* Changed from -3px to 3px for rightward movement */
    color: var(--accent-orange);
}

.btn-magic span {
    flex: 1;
    text-align: center;
}

.btn-magic:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 153, 0, 0.4),
    0 0 15px rgba(255, 165, 0, 0.9); /* Changed to orange glow on hover */
}
a.btn-magic:hover {
    color: white;
}


.btn-magic:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(0, 168, 45, 0.4),
    0 0 8px rgba(0, 255, 65, 0.7);
}

/* BTN Background animation */
.btn-magic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #00ff6a, #00a82d);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50px;
}

.btn-magic:hover::before {
    opacity: 1;
}

/* BTN After Click Animation */
.btn-magic::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(45deg);
    z-index: -2;
    transition: all 0.7s ease;
}

.btn-magic:hover::after {
    left: 100%;
}

/* Icon of Services BTN  */
.btn-magic i {
    transition: transform 0.3s ease;

}

.btn-magic:hover i {
    transform: translateX(10px);
}

/* پالس انیمیشن با رنگ سبز */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 168, 45, 0.3),
        0 0 10px rgba(0, 255, 65, 0.7);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 15px 30px rgba(0, 168, 45, 0.4),
        0 0 20px rgba(0, 255, 65, 0.9);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 10px 20px rgba(0, 168, 45, 0.3),
        0 0 10px rgba(0, 255, 65, 0.7);
    }
}

.btn-pulse {
    animation: pulse 2s infinite;
}
.btn-simple-github {
    margin-top: 15px;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent-blue);
}

.btn-simple {
    margin-top: 15px;
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    color: var(--accent-orange);
}
.btn-simple:hover {
    background-color: rgba(223, 223, 223, 0.1);
    color: var(--accent-green);
}

.service-card-link {
    background: linear-gradient(145deg, rgba(15, 15, 15, 0.6), rgba(10, 10, 10, 0.8));
    border: 1px solid rgba(0, 255, 65, 0.2);
    border-radius: 10px;
    padding: 35px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
/* End: style for Goto Services page  */

.cta-button-card {
    display: inline-block;
    align-self: center;
    font-family: Shabnam, sans-serif;
    font-weight: bold;
    background: linear-gradient(45deg, var(--accent-green), var(--accent-blue));
    color: var(--darker-bg);
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    box-shadow: var(--glow-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: all 0.3s ease; /* اضافه شده برای افکت‌ها */
}

/* استایل‌های hover و active را حفظ کنید */
.cta-button-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 168, 45, 0.4);
}

.cta-button-card:active {
    transform: translateY(1px);
}

/* افکت پس‌زمینه متحرک */
.cta-button-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-blue), var(--accent-green));
    transition: left 0.5s ease;
    z-index: -1;
}

.cta-button-card:hover::before {
    left: 0;
}