@font-face {
    font-family: 'vazir';
    src: url('../fonts/Vazir-Medium.ttf');
}

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: 'vazir';
    transition: .3s;
    overflow-x: hidden;
}

.show {
    position: fixed;
    right: 0px !important;
    top: 0px !important;
}

.show-navbar {
    top: 50px;
    position: absolute;
    left: -300px;
    width: 100%;
    background-color: #31c131;
}

@keyframes showanimate {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

.border-r {
    border-top-right-radius: 20px !important;
}

#body-org {
    overflow: hidden;
}

.bg-nav {
    width: 300px !important;
}

.navbar-collapse {
    transition: .3s;
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
}

#mainnavbar {
    overflow-x: hidden !important;
}

#mainnavbar li a {
    color: white;
}

#close-navbar {
    cursor: pointer;
    font-size: 30px !important;

    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgb(0, 0, 0);
    color: #31c131;
    /* font-size: 18px; */
    text-decoration: none;
    box-shadow: 0 0 10px #000000;
    transition: 0.4s;
}

#close-navbar:hover {
    background: #ffffff;
    color: #000;
    box-shadow: 0 0 25px #ffffff;
    transform: translateY(-6px) scale(1.1);
}

.lg-hidden {
    display: none;
}

.navbar-collapse::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: -30px;
    width: 30px;
    height: 30px;
    background: transparent;
    border-bottom-right-radius: 20px;
    box-shadow: 10px 10px 0 0 #31c131;
}

.navbar-collapse::before {
    content: "";
    position: absolute;
    top: 0;
    left: -30px;
    width: 30px;
    height: 30px;
    background: transparent;
    border-top-right-radius: 20px;
    box-shadow: 10px -10px 0 0 #31c131;
}

.navbar-collapse .active {
    position: relative;
    left: -140px !important;
    width: 160% !important;
    padding-right: 10px;
    background-color: #f8f9fa !important;
    border-top-right-radius: 17px;
    border-bottom-right-radius: 17px;
}

.active a {
    color: black !important;
}

.nav-item {
    margin: 4px 0px;
}

.navbar {
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3) !important;
}



header {
    /* height: 100%; */
    background-color: #f8f9fa;
    padding-top: 10vh;
    position: relative;
    padding-bottom: 130px !important;
}

.wave-wrap {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 90px;
    pointer-events: none;
}

.wave-track {
    position: absolute;
    bottom: 0;
    display: flex;
    width: 200%;
    animation: waveScroll 18s linear infinite;
}

.wave-track.front {
    animation-duration: 10s;
    bottom: 6px;
}

.wave {
    width: 50%;
    height: 90px;
}

.wave-front path {
    fill: #00b515;
    opacity: 0.95;
}

.wave-back path {
    fill: #00b515;
    opacity: 0.35;
}

@keyframes waveScroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.typing {
    font-size: 1.5rem;
    font-weight: 700;
}

.cursor {
    display: inline-block;
    margin-right: 2px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    50% {
        opacity: 1;
    }

    51%,
    100% {
        opacity: 0;
    }
}

header #hero {
    animation: headerAnimation 1s infinite;
}

@keyframes headerAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.98);
    }

    100% {
        transform: scale(1);
    }
}

header #left-header {
    animation: headerimgAnimation 1s infinite;
}

@keyframes headerimgAnimation {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.02);
    }

    100% {
        transform: scale(1);
    }
}

.header-section {
    margin: 1rem 0;
    text-align: center;
    font-size: 1.5rem;
    margin-top: 40px;
}

@keyframes sectionheaderanimate {
    0% {
        padding: 0 20px;
    }

    50% {
        padding: 0 40px;
    }

    100% {
        padding: 0 20px;
    }
}

.header-section span {
    padding: 0 20px;
    border-bottom: 2px solid #00a513;
    animation: sectionheaderanimate 1s infinite;
}

.f-small {
    font-size: small;
}

.carousel-caption p {
    font-size: small;
}

.carousel-caption * {
    padding: 2px 3px;
    border-radius: 10px;
    margin: 10px 0;
    background: #ffffffc1;
    color: black;
    box-shadow: 0 0 5px 0px black;
}

#hero img,
#hero .card {
    border-radius: 20px;
}

#parallax-section {
    padding: 20px;
    /* height: 200px; */
    background-image: url('../images/background-blue-whitegradient.png');
    background-attachment: fixed;
    background-size: cover;
    background-position: center center;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    font-family: 'vazir';
}

#counter-section {
    color: white;
}

.counter-card {
    margin: 10px 0;
    border-radius: 20px;
    padding: 10px 0;
    border: 1px solid white;
    background: #ffffff65;
    box-shadow: 0 0 10px 0 white;
}

.nav-item i {
    font-size: 18px;
}

#AskedQuestions {
    background: white;
}

#AskedQuestions .show {
    border-radius: 20px;
    position: static;
}

#AskedQuestions .card {
    border: 0;
    margin: 10px 0;
    padding: 0px 10px;
    /* box-shadow: 0px 0px 2px 0px #6c6c6c; */
    border-radius: 20px;
    background: white !important;
}

#AskedQuestions .card-header {
    background: white !important;
    border-color: #00a51368;
    cursor: pointer;
    transition: .3s;
}

#AskedQuestions .card-header:hover {
    color: #00a513;
}

#AskedQuestions .card-body {
    color: rgb(101, 101, 101);
    font-size: small;
}

.card-header:not(.collapsed) {
    color: #00a513;
}

.card:has(.collapse.show) {
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, .175) !important;
    z-index: 10;
}

#AskedQuestions .card {
    transition: box-shadow 0.3s ease-in-out;
}

#AskedQuestions {
    box-shadow: 0 1px 20px 0 white;
}

nav .navbar-toggler:hover {
    transform: scale(1.1);
    transition: .3s;
}

#PriceRate .card {
    border-radius: 10px;
    border: 0;
    box-shadow: 0 1rem 1rem rgba(0, 0, 0, .175) !important;
    transition: .3s;
}

#PriceRate h5 {
    color: #00a513;
}

#PriceRate .card:hover {
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .175) !important;
    transform: scale(1.1);
    z-index: 10;
}

#mahpakForAll .bg-image-home {
    background-image: url('../images/baziaftInHome.png');
}

#mahpakForAll .card-forAll {
    text-align: right;
    position: relative;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
    transition: .3s;
}

#mahpakForAll .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, 0.827),
            rgba(0, 0, 0, 0.153));
    opacity: 1;
    transition: opacity 0.45s ease-in-out;
}

#mahpakForAll .content {
    transition: .3s;
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    z-index: 2;
}

#mahpakForAll .content h5 {
    color: #fff;
    transition: .3s;
    font-weight: 600;
}

#mahpakForAll .card-forAll:hover {
    transition: .3s;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.33) !important;
    z-index: 10;
    transform: translateY(-6px);
}

#mahpakForAll .card-forAll:hover .overlay {
    opacity: 1.25;
}

#mahpakForAll .card-forAll::before {
    content: "";
    position: absolute;
    transition: .3s;
    inset: 0;
    background: inherit;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
    z-index: 0;
}

#mahpakForAll .card-forAll:hover::before {
    transition: .3s;
    transform: scale(1.1);
}

#mahpakForAll .text-muted {
    color: #ffffff8d !important;
}

#mahpakForAll .bg-image-officce {
    background-image: url('../images/baziaftInOfficce.png');
}

#mahpakForAll .bg-image-school {
    background-image: url('../images/baziaftInSchool.png');
}

#logos {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    padding-bottom: 20px;
}

#logos a:hover img {
    transition: .3s;
    transform: scale(1.1);
}









.mega-footer {
    position: relative;
    background: #0b0f0b;
    color: #fff;
    padding: 50px 40px 30px;
}

.mega-footer::before {
    content: "";
    position: absolute;
    top: -40px;
    left: 0px;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 0;
    background: transparent;
    border-bottom-left-radius: 30px;
    box-shadow: -10px 10px 0 0 rgb(0, 0, 0);
}

.mega-footer::after {
    content: "";
    position: absolute;
    top: -40px;
    right: 0px;
    width: 40px;
    height: 40px;
    pointer-events: none;
    z-index: 0;
    background: transparent;
    border-bottom-right-radius: 30px;
    box-shadow: 10px 10px 0 0 rgb(0, 0, 0);
}



.footer-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(31, 200, 31, 0.34), transparent 60%);
    filter: blur(60px);
    z-index: 0;
}

.footer-content {
    position: relative;
    z-index: 1;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-brand h2 {
    font-size: 32px;
    color: #31c131;
    letter-spacing: 2px;
}

.footer-brand p {
    opacity: 0.8;
    margin-top: 10px;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 15px;
    color: #31c131;
}

.footer-links a {
    display: block;
    padding-left: 10px;
    margin: 8px 0;
    color: #ccc;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: #31c131;
    transform: translateX(-10px);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(49, 193, 49, 0.5);
    color: #31c131;
    font-size: 18px;
    text-decoration: none;
    transition: 0.4s;
}

.social-icons a:hover {
    background: #31c131;
    color: #000;
    box-shadow: 0 0 25px #31c131;
    transform: translateY(-6px) scale(1.1);
}

.footer-bottom {
    position: relative;
    z-index: 1;
    margin-top: 50px;
    padding-top: 20px;
    font-size: 14px;
    opacity: 0.6;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}


.contact-card {
    position: relative;
    width: 100%;
    background: rgba(10, 15, 10, 0.85);
    border-radius: 22px;
    padding: 20px;
    color: #fff;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.237);
    box-shadow: 0 0 60px rgba(49, 193, 49, 0.25);
    backdrop-filter: blur(12px);
}

.card-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle, rgba(49, 193, 49, 0.35), transparent 60%);
    animation: pulse 6s infinite alternate;
}

@keyframes pulse {
    from {
        transform: scale(1);
        opacity: 0.6;
    }

    to {
        transform: scale(1.3);
        opacity: 1;
    }
}

.contact-card h2 {
    position: relative;
    color: #31c131;
    font-size: 28px;
    margin-bottom: 10px;
}

.contact-card p {
    position: relative;
    opacity: 0.85;
    margin-bottom: 25px;
    font-size: 14px;
}

.contact-items {
    position: relative;
    display: grid;
    gap: 15px;
    margin-bottom: 25px;
}

.item {
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    border-radius: 14px;
    background: rgba(49, 193, 49, 0.08);
    transition: 0.35s;
    cursor: pointer;
}

.item i {
    font-size: 22px;
}

.item strong {
    display: block;
    font-size: 14px;
}

.item small {
    opacity: 0.7;
}

.item:hover {
    background: rgba(49, 193, 49, 0.25);
    transform: translateX(-6px);
    color: #31c131;
    text-decoration: none;
    box-shadow: 0 0 25px rgba(49, 193, 49, 0.5);
}

.contact-btn {
    position: relative;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #31c131, #7CFF7C);
    color: #000;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: 0.35s;
}

.contact-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 30px #31c131;
}

#github-link {
    position: relative;
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #31c131, #7CFF7C);
    color: #000;
    font-weight: bold;
    font-size: 15px;
    cursor: pointer;
    transition: 0.35s;
    font-size: 20px;
}

#github-link i {
    transition: 0.3s;
    width: 20px;
    height: 20px;
    color: #000000 !important;
    border-radius: 100%;
}

#github-link:hover i {
    color: #31c131 !important;
}


#mainnavbar .nav-link:hover {
    color: #d2ffd2;
    transform: translateX(-10px);
}

#mainnavbar .nav-link {
    transition: .3s;
}

#carouselExampleControls {
    border-radius: 20px;
    overflow: hidden;
}

.radius-2 {
    border-radius: 20px !important;
}

.news-card {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: #ffffff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(49, 193, 49, 0.25);
}

.news-card .f-small {
    color: #555 !important;
}

.news-card hr {
    border-color: rgba(49, 193, 49, 0.2);
}

.logo-footer {
    padding: 10px;
    background: radial-gradient(circle, #31c131, transparent 70%);
    border-radius: 20px;
    transition: .3s;
    border: 1px solid rgba(255, 255, 255, 0.108);
}

.logo-footer:hover {
    z-index: 10;
    transform: translateY(-10px);
    box-shadow: 0 0 30px #31c131;
}

.social-link {
    background: #31c13151;
    width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 40px;
    border-radius: 100%;
    transition: .4s;
}

.social-link:hover {
    box-shadow: 0 0 10px 5px #31c131;
    background: #31c131ce;
    transform: translateY(-10px) scale(1.1);
}