* {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    text-decoration: none;
    list-style: none;
    box-sizing: border-box;
}

:root {
    --color-primary: #6c63ff;
    --color-success: #00bf8c;
    --color-warning: #f7c94b;
    --color-danger: #f75842;
    --color-danger-variant: rgba(247, 88, 66, 0.4);
    --color-white: #fff;
    --color-light: rgba(255, 255, 255, 0.7);
    --color-black: #000;
    --color-bg: #1f2641;
    --color-bg1: #2e3267;
    --color-bg2: #424890;

    --container-width-lg: 80%;
    --container-width-md: 90%;
    --container-width-sm: 94%;

    --transition: all 400ms ease;
}

html, body {
    overflow-x: hidden;
    height: 100%;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.7;
    color: black;
    background: white;
}

.container {
    width: var(--container-width-lg);
    margin: 0 auto;
}

section {
    padding: 6rem 0;
}

section h2 {
    text-align: center;
    margin-bottom: 4rem;
}

h1, h2, h3, h4, h5 {
    line-height: 1.6;
}

h1 {
    font-size: 2.2rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.8rem;
}

h4 {
    font-size: 1.4rem;
}

a {
    color: var(--color-white);
}

img {
    display: block;
}

.logo {
    margin-left: -9.4rem;
}

.logo a img  {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

.btn {
    display: inline-block;
    background: var(--color-white);
    color: var(--color-black);
    padding: 1rem 2rem;
    border: 1px solid transparent;
    font-weight: 500;
    transition: var(--transition);
}

.btn:hover {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-primary {
    background: var(--color-danger);
    color: var(--color-white);
}

/*-------------navbar---------*/
nav {
    background: transparent;
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 11;
    transition: var(--transition);
    background: var(--color-bg);
}

.nav-hidden {
    transform: translateY(-100%);
}
/* CHANGE NAVBAR STYLES ON SCROLL USING JAVASCRIPT*/
.window-scroll {
    background: var(--color-primary);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
}

.nav__container {
    position: relative;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav button {
    display: none;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: 3rem;
    top: 5rem;
    height: fit-content;
    width: 18rem;
}

.nav__menu a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav__menu a:hover,
.nav__menu a.active {
    color: var(--color-bg2);
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    flex-direction: column;
    background: var(--color-bg1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 350px;
    overflow-y: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content li {
    padding: 10px;
    white-space: nowrap;
}

.dropdown-content a {
    padding: 10px 15px;
    display: block;
    color: var(--color-white);
    text-decoration: none;
}

.dropdown-content a:hover {
    background: var(--color-bg2);
}

.dropdown:hover .dropdown-content {
    display: block;
}


/*===========================SUVNAVBAR======================*/

.subnav__wrapper {
    width: 100vw;
    overflow-x: auto;
    overflow-y: hidden;
    background: #1b223c;
    padding: 3rem 0;
    padding-bottom: 0;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.subnav__wrapper::-webkit-scrollbar {
    display: none;
}

.subnav__container {
    display: inline-block;
    padding: 1rem 1rem;
    min-width: max-content;
}

.subnav__menu {
    display: inline-flex;
    gap: 1rem;
    list-style: none;
    padding: 0;
    margin: 0;
    min-width: max-content;
}

.subnav__menu li a {
    display: inline-block;
    color: #fff;
    padding: 0.5rem 1rem;
    text-decoration: none;
    white-space: nowrap;
    font-size: 1rem;
}

.subnav__menu li a:hover {
    cursor: pointer;
    transform: scale(1.05);
    color: var(--color-bg1);
}

/*===================HIDE SCROLL BAR======================*/
.subnav__container::-webkit-scrollbar {
    display: none;
}

.subnav__container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/*-------------HEADER---------*/

.header {
    position: relative;
    height: calc(var(--vh, 1vh) *70);
    margin-bottom: 5rem;
}

.header__container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: center;
    width: 100%;
}

.header__right-image img{
    max-width: 100%;
    height: auto;
}

.header__left{
    margin: 2rem;
}
/*==============tutorials===============*/
.tutorials {
    background: white;
    border: 1px solid rgb(243, 240, 240);
}

.tutorials h1 {
    text-align: center;
    border: 1px solid white;
    background: #ED6553;
    border-radius: 1rem;
}

.tutorials a h2 {
    text-align: center;
    color: green;
    margin-top: 0.5rem;
}

.tutorials__container {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 2rem;
    background: rgb(235, 207, 207);
    gap: 1rem;  
}

.tutorial {
    border: 1px solid #ccc; 
    margin-top: 1rem;  
    margin-right: 0; 
    display: flex; 
    flex-direction: column; 
    align-items: center;  
    padding: 1rem;  
    background: white;  
    border-radius: 0.5rem;  
}


.introduction__icon {
    display: block;
    text-align: center;
    margin-bottom: 0.5rem; 
}

.introduction__icon svg {
    width: 50%;
    color: #ED6553;
}


/*=====frequenstly aksed questions====*/

.faqs {
    background: rgb(233, 224, 224);
    box-shadow: 0 0 3rem rgba(0, 0, 0, 0.5);
}

.faqs h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--color-bg1);
}

.faqs__container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 2rem 0;
}


.faq {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    height: fit-content;
    background: var(--color-bg1);
    cursor: pointer;
    border-radius: 1rem;
    transition: var(--transition);
}

.faq:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.faq h4 {
    font-size: 1rem;
    line-height: 2.2;
    color: var(--color-white);
}

.faq__icon {
    align-self: flex-start;
    font-size: 1.2rem;
    color: var(--color-white);
}

.faq p {
    margin-top: 0.8rem;
    display: none;
    color: var(--color-light);
    font-size: 0.9rem;
}

.faq.open p {
    display: block;
}

/*=====TESTOMONIAL====*/
.testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.testimonial {
    text-align: center;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.avatar {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    background: #ddd; 
    border-radius: 50%;
}

.custom-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.pagination {
    text-align: center;
    margin-top: 10px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: #ddd;
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

.dot.active {
    background: #333;
}

/*================FOOTER=================*/
footer {
    background: var(--color-bg1);
    padding-top: 5rem;
    font-size: 0.9rem;
    color: var(--color-white);
}

.footer__container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5rem;
}

.footer__container > div h4 {
    margin-bottom: 1.2rem;
}

.footer__1 p {
    margin: 0 0 2rem;
    font-size: 1rem;
}

.footer__1 h5 {
    font-size: 1.3rem;
}

.footer__2,
.footer__3 a {
    font-size: 1rem;
}

footer ul li {
    margin-bottom: 0.7rem;
}

footer ul li a:hover {
    text-decoration: underline;
}

.footer__socials {
    display: flex;
    gap: 1rem;
    font-size: 1.2rem;
    margin-top: 2rem;
}

.footer__copyright {
    text-align: center;
    margin-top: 4rem;
    padding: 1.2rem 0;
    border-top: 1px solid var(--color-bg2) ;
}


/*=================================MEDIA QUERIES(TABLETS)==================================*/
@media (max-width: 1280px) {
    .container {
        width: var(--container-width-md);
    }

    .logo {
        margin-left: -4rem;
    }

    .tutorials__container {
        width: auto;
    }    
}

@media (max-width: 1024px) {
    .container {
        width: var(--container-width-md);
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    h3 {
        font-size: 1.4rem;
    }

    h4 {
        font-size: 1.2rem;
    }

/*=====================NAVBAR=====================*/

    nav button {
        display: inline-block;
        background: transparent;
        font-size: 1.8rem;
        color: var(--color-white);
        cursor: pointer;
    }

    nav button#close-menu-btn {
        display: none;
    }

    .nav__menu {
        position: absolute;
        top: 5rem;
        right: 5%;
        height: fit-content;
        width: 18rem;
        flex-direction: column;
        gap: 0;
        display: none;
    }

    .nav__menu li {
        width: 100%;
        height: 5.8rem;
        animation: animateNavItems 400ms linear forwards;
        transform-origin: top right;
        opacity: 0;
    }

    .nav__menu li:nth-child(2) {
        animation-delay: 200ms;
    }

    .nav__menu li:nth-child(3) {
        animation-delay: 400ms;
    }

    .nav__menu li:nth-child(4) {
        animation-delay: 600ms;
    }

    @keyframes animateNavItems {
        0% {
            transform: rotateZ(-90deg) rotateX(90deg) scale(0.1);
        }
  
        100% {
            transform: rotateZ(0) rotateX(0) scale(1);
            opacity: 1;
        }
    }

    .nav__menu li a {
        background: var(--color-bg);
        box-shadow: -4rem 6rem 10rem rgba(0, 0, 0, 0.6);
        width: 100%;
        height: 100%;
        display: grid;
        place-items: center;
    }

    .nav__menu li a:hover {
        background: var(--color-bg2);
        color: var(--color-white);
    }

    .logo {
        width: 54px;
        height: 54px;
        margin-left: -3rem;
    }
    /*=====================SUBNAVBAR=====================*/
    .subnav__wrapper {
        padding-top: 5rem;
        overflow-y: hidden;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .subnav__container {
        display: inline-block;
        padding: 1rem;
        min-width: max-content;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .subnav__container::-webkit-scrollbar {
        display: none;
    }

    .subnav__menu {
        display: inline-flex;
        gap: 1rem;
        padding: 0;
        margin: 0;
        min-width: max-content;
        list-style: none;
    }
    /*=====================HEADER=====================*/

    .header {
        height: 52vh;
        margin-bottom: 4rem;
        position: relative;
    }

    .header {
        height: calc(var(--vh, 1vh) *52);
    }

    .header__container {
        margin-top: 0;
        gap: 1rem;
        align-items: center;
        width: auto;
    }

    /*=====================TUTORIALS=====================*/

    .tutorials__container {
        width: auto;
        grid-template-columns: repeat(3, 1fr);
    }

    /*=====================FAQ's=====================*/

    .faqs__container {
        grid-template-columns: 1fr;
    }

    .faq {
        padding: 1.5rem;
    }

    /*=====================TESTIMONIALS=====================*/
    .testimonials__container {
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }

    .testimonial {
        padding-top: 1rem;
    }
    .testimonials__container {
        padding: 3rem 0;
    }

    .swiper-wrapper {
        padding-bottom: 0.5rem;
    }

    .testimonials__container h2 {
        margin-bottom: 2rem;
    }

    /*=====================FOOTER=====================*/
    .footer__container {
        grid-template-columns: 1fr 1fr;
    }
}

/*=================================MEDIA QUERIES(PHONES)==================================*/
@media (max-width: 820px) {
    .container {
        width: var(--container-width-md);
    }

    .logo {
        margin-left: -2.3rem;
    }

    .tutorials__container {
        width: auto;
    }

}

@media (max-width: 768px) {
    .container {
        width: var(--container-width-sm);
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    h3 {
        font-size: 1.3rem;
    }

    h4 {
        font-size: 1.1rem;
    }

    .nav__menu {
        right: 4%;
    }

    .logo {
        width: 48px;
        height: 48px;
        margin-left: -1.2rem;
    }

    .subnav__wrapper {
        padding-top: 4rem;
    }

    .header__container {
        gap: 2rem;
        display: grid;
        grid-template-columns: auto;
    }

    .tutorials__container {
        width: auto;
    }


    .faqs__container {
        grid-template-columns: 1fr;
    }

    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer__1 p {
        margin: 1rem auto;
    }

    .footer__socials {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .container {
        width: var(--container-width-sm);
    }

    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.4rem;
    }

    h3 {
        font-size: 1.2rem;
    }
    h4 {
        font-size: 1rem;
    }

    .nav__menu {
        right: 3%;
    }

    .logo {
        width: 44px;
        height: 44px;
        margin-left: -0.8rem;
    }

    /*=====================TUTORIALS=====================*/
    .tutorials__container {
        grid-template-columns: repeat(2, 1fr);
        width: auto;
    }

    /*=====================TESTIMONIALS=====================*/
    .testimonials__container {
        margin-bottom: 1rem;
        padding: 0.5rem;
    }

    .testimonial {
        padding-top: 0.5rem;
    }

    .testimonials__container {
        padding: 2rem 0;
    }

    .testimonials__container h2 {
        margin-bottom: 1.5rem;
    }

    .avatar {
        width: 4rem;
        height: 4rem;
        margin-bottom: 0.5rem;
    }

    .testimonial__info {
        margin-bottom: 1rem;
    }
    /*=====================FOOTER=====================*/
    .footer__container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer__1 p {
        margin: 1rem auto;
    }

    .footer__socials {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        width: var(--container-width-sm);
    }

    h1 {
        font-size: 1.4rem;
    }
    h2 {
        font-size: 1.2rem;
    }
    h3 {
        font-size: 1rem;
    }

    h4 {
        font-size: 0.9rem;
    }

    .logo {
        width: 40px;
        height: 40px;
        margin-left: -0.6rem;
    }
    

    .nav__menu {
        right: 2%;
    }

    .header__container {
        gap: 1rem;
        width: auto;
    }

    .header__left {
        width: auto;
        margin: 1rem;
    }

    .tutorials__container {
        grid-template-columns: 1fr;
        width: auto;
    }

    .faqs__container {
        grid-template-columns: 1fr;
    }

    .faq {
        padding: 1rem;
        gap: 1rem;
    }

    .testimonial {
        padding-top: 0.5rem;
    }

    .avatar {
        width: 3rem;
        height: 3ren;
        margin-bottom: 0.3rem;
    }

    .footer__container {
        gap: 1rem;
    }

    .footer__socials {
        gap: 0.5rem;
        font-size: 1rem;
    }

}


