:root {
    --bg-color: #F9FAFB;
    --text-color: #1E1E1E;
    --purple-color: #7C3AED;
    --blue-color: #1D4ED8;
    --blue-light-color: #225bf7;
}

body.dark {
    --bg-color: #202020;
    --text-color: #f9fafb;
}

.allTrans {
    transition: background-color .2s ease-in-out;
}


/* *{
    transition: background-color .2s ease-in-out;
} */
header.z-3 {
    z-index: 1000000000000000000000000 !important;
}

header,
section,
footer,
body {
    background-color: var(--bg-color);
}

/* header */

header>a>img {
    width: 40px;
    height: 40px;
}

@media screen and (max-width: 993px) {
    header>a>img {
        width: 30px;
        height: 30px;
    }

    header nav li {
        display: flex;
        justify-content: center;
        align-items: center;
    }
}

header>a>p {
    font-size: 14px;
    color: var(--text-color);
}


nav a {
    text-decoration: none;
    color: var(--text-color);
    transition: color .2s;
}

nav a:not(.active) {
    position: relative;
}

nav a:not(.active)::before {
    content: "";
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0px;
    height: 2.5px;
    border-radius: 10000px;
    background-color: var(--blue-color);
    transition: width .2s
}

nav a:not(.active):hover::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2.5px;
    border-radius: 10000px;
    background-color: var(--blue-color);
}

nav a.active {
    color: var(--purple-color);
    font-weight: bold;
    position: relative;
}

nav a.active::before {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2.5px;
    border-radius: 10000px;
    background-color: var(--purple-color);
}

@media screen and (max-width: 768px) {
    nav a.active::before {
        display: none !important;
    }
}

.themeSwitch {
    background-color: var(--text-color);
    border-radius: 100000000px;
    width: 45px;
    height: 20px;
    position: relative;
    cursor: pointer;
}

.switch {
    width: 15px;
    height: 15px;
    border-radius: 10000000px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 10%;
    background-color: rgb(255, 196, 0);
    transition: left .2s;
}

.switch.dark {
    left: 60%;
    background-color: var(--blue-light-color);
}

.sidebarBtn {
    background-color: transparent;
    border: 0px;
    outline: 0px;
}

.sidebarBtn svg {
    color: var(--text-color);
}

/* aside */
aside {
    height: 100svh;
    position: fixed;
    right: -100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    width: 70svw;
    top: 0px;
    transition: right .2s ease-in-out;
    z-index: 10000000000;
}

body.dark aside {
    background-color: rgb(37, 37, 37);
}

aside.active {
    right: 0px;
}

div.antiAside {
    position: fixed;
    height: 100svh;
    width: 100svw;
    background-color: rgba(0, 0, 0, .5);
    z-index: 1000000000;
    display: none;
    top: 0px;
}

div.antiAside.active {
    display: block;
}

aside a {
    max-width: fit-content
}


/* main */

section {
    color: var(--text-color);
}

.heroSectionText {
    position: relative;
    height: 52px;
}

.heroSectionText span {
    position: absolute;
    right: 130%;
    opacity: 0;
}

.heroSectionText span:nth-child(1) {
    animation: heroSectionText1 .6s .5s forwards;
    color: #1D4ED8;
}

.heroSectionText span:nth-child(2) {
    animation: heroSectionText2 .6s 1s forwards;
    color: #5D3FD3;
}

.heroSectionText span:nth-child(3) {
    animation: heroSectionText3 .6s 1.5s forwards;
    color: #3B82F6;
}

@keyframes heroSectionText1 {
    from {
        right: 100%;
        opacity: 0;
    }

    to {
        right: 0px;
        opacity: 1;
    }
}

@keyframes heroSectionText2 {
    from {
        right: 100%;
        opacity: 0;
    }

    to {
        right: 85px;
        opacity: 1;
    }
}

@keyframes heroSectionText3 {
    from {
        right: 100%;
        opacity: 0;
    }

    to {
        right: 175px;
        opacity: 1;
    }
}

@media screen and (max-width: 993px) {
    @keyframes heroSectionText1 {
        from {
            right: 100%;
            opacity: 0;
        }

        to {
            right: 0px;
            opacity: 1;
        }
    }

    @keyframes heroSectionText2 {
        from {
            right: 100%;
            opacity: 0;
        }

        to {
            right: 60px;
            opacity: 1;
        }
    }

    @keyframes heroSectionText3 {
        from {
            right: 100%;
            opacity: 0;
        }

        to {
            right: 125px;
            opacity: 1;
        }
    }
}

@media screen and (max-width: 769px) {
    @keyframes heroSectionText1 {
        from {
            right: 100%;
            opacity: 0;
        }

        to {
            right: 0px;
            opacity: 1;
        }
    }

    @keyframes heroSectionText2 {
        from {
            right: 100%;
            opacity: 0;
        }

        to {
            right: 37%;
            opacity: 1;
        }
    }

    @keyframes heroSectionText3 {
        from {
            right: 100%;
            opacity: 0;
        }

        to {
            right: 77%;
            opacity: 1;
        }
    }
}

.cta a:nth-child(1) {
    color: var(--blue-light-color);
    border-color: var(--blue-light-color);
}

body.dark .cta a:nth-child(1) {
    color: white;
}

.cta a:nth-child(2) {
    color: white;
    background-color: var(--blue-light-color);
}

.cta a:nth-child(1):hover {
    color: white;
    border-color: var(--blue-light-color);
    background-color: var(--blue-light-color);
}


.cta a:nth-child(2):hover {
    color: white;
    background-color: #1c4bcb;
}

.cta a {
    animation: cta 1s 0.5s forwards;
    opacity: 0;
}

@keyframes cta {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.section {
    width: 50%;
    height: 400px;
    background-color: var(--blue-color);
    margin: 100px auto;
}

.serviceCard {
    box-shadow: 0px 4px 12px 0px #00000029;
    width: 23%;
    border-radius: 16px;
    padding-inline: 24px;
}

@media screen and (max-width: 769px) {
    .serviceCard {
        width: 40%;
        padding-inline: 12px;
    }
}

@media screen and (max-width: 576px) {
    .serviceCard {
        width: 43%;
    }
}

body.dark .serviceCard {
    background-color: rgb(37, 37, 37);
}

.serviceCard>div {
    background-color: #DBEAFE;
    width: 120px;
    height: 120px;
    border-radius: 12px;
}

.serviceCard p {
    color: #6B7280;
}

body.dark .serviceCard p {
    color: #98a2b5;
}

/* section2 */

.word:nth-child(1) {
    color: var(--blue-color);
    position: relative;
}

.word:nth-child(3) {
    color: var(--purple-color);
    position: relative;
    width: fit-content;
    height: fit-content;
    display: inline-block;
}

.word:nth-child(1)::before {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 100%;
    border-radius: 10px;
    height: 3px;
    background-color: var(--blue-color);
}

.word:nth-child(3)::before {
    content: "";
    position: absolute;
    bottom: 0px;
    width: 100%;
    border-radius: 10px;
    height: 3px;
    background-color: var(--purple-color);
}

.section2 {
    margin-block: 150px;
}

/* section3 */

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    aspect-ratio: 3/2;
    text-align: center;
    font-size: 18px;
    background: #444;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-prev::after,
.swiper-button-next::after {
    color: #1E1E1E !important;
}

.swiper-slide {
    border-radius: 16px;
    overflow: hidden;
}

.swiper-slide a {
    height: 100%;
    width: 100%;
    text-decoration: none;

}

.swiper-slide a div:nth-child(1) {
    height: 70%;
}

.swiper-slide a div:nth-child(2) {
    width: 100%;
    height: 30%;
    background-image: linear-gradient(to right top, #1d4ed8bb, #3c4bdfbb, #5347e4bb, #6842e9bb, #7c3aedbb);
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.swiper-slide a div:nth-child(2) p,
.swiper-slide a div:nth-child(2) h2 {
    color: #f9fafb;
}

.swiper-slide img {
    object-fit: cover !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
}

.swiper-button-prev {
    background-color: #1d4fd881 !important;
    color: white !important;
    padding: 8px !important;
    border-radius: 8px;
}

.swiper-button-prev::after {
    font-size: 20px !important;
    color: white !important;
}

.swiper-button-next {
    background-color: #1d4fd881 !important;
    color: white !important;
    padding: 8px !important;
    border-radius: 8px;
}

.swiper-button-next::after {
    font-size: 20px !important;
    color: white !important;
}

/* section5 */

.section5 {
    margin-top: 100px;
}

/* articles */

.articles {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    text-align: center;
}

.title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.subtitle {
    color: #777;
    margin-bottom: 40px;
}

.grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    border-color: #575757 !important;
    height: 380px;
}

.card:hover {
    transform: translateY(-5px);
    cursor: pointer;
}

.card img {
    object-fit: cover !important;
    height: auto !important;
    width: 100% !important;
    display: block !important;
}

.content {
    padding: 15px;
    text-align: right;
}

.content h3 {
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.content p {
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.author {
    font-size: 0.8rem;
    color: #7c3aed;
}

body.dark .bgArticles {
    background-color: rgb(37, 37, 37);
}

.blogColor {
    color: var(--text-color);
}

.bgArticles {
    height: 100%;
}

.imgLayer {
    position: relative;
    height: 50%;
}

.imgDiv {
    overflow: hidden;
    height: 100%;
}

.imgLayer .layer {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 100%;
    background-color: #1c4bcb6f;
    opacity: 0;
    transition: opacity .2s;
    z-index: 100000;
    box-shadow: 0px 5px 21px 5px #1c4bcb41;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
}

.imgLayer:hover .layer {
    opacity: 1;
}

/* footer */

footer {
    border-top: 2px solid var(--blue-color);
    position: relative;
}

footer div:nth-child(1) p {
    color: var(--purple-color);
}

footer div:nth-child(1) img {
    width: 67px;
    height: 67px;
}

footer div:nth-child(2) p {
    color: var(--text-color);
}

footer div:nth-child(3) a img {
    width: 24px;
    height: 24px;
    padding: 0px !important;
}

body.dark footer div:nth-child(3) img {
    filter: invert(1);
}

.footerText {
    position: absolute;
    bottom: 0px;
    font-size: 10px;
    color: var(--text-color);
    text-align: center;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 50px;
}