@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

html{
    font-size: 62.5%;
    overflow-x: hidden;
}

/* ========== HEADER DESIGN ========= */
.header{
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 2rem 9%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    background-color: #fff;
    transition: all .3s
}

.header.sticky{
    box-shadow: 1px 1px 25px rgba(0, 0, 0, 0.384);
}

.logo{
    font-size: 2.5rem;
    font-weight: 800;
}

.logo span:nth-child(even){
    color: #e64f3e;
}

.logo span:nth-child(odd){
    color: #5d0201;
}

.navbar a{
    font-size: 1.7rem;
    font-weight: 500;
    margin-left: 3.5rem;
    color: #5d0201;
    transition: all .3s;
}

.navbar a:hover,
.navbar a.active{
    color: #e64f3e;
}

#menu-icon{
    font-size: 3.6rem;
    color: #5d0201;
    cursor: pointer;
    display: none;
}

/* ========== HOME SECTION DESIGN ========== */
.home{
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 9%;
    min-height: 100vh;
    padding: 10rem 9% 2rem;
    overflow: hidden;
}

.home-content{
    max-width: 60rem;
    z-index: 99;
}

.home-content h1{
    font-size: 5.6rem;
    font-weight: 700;
    line-height: 1.3;
    color: #e64f3e;
}

.home-content h1 span{
    font-family: 'Tahoma', sans-serif;
}

.home-content .text-animate{
    position: relative;
    width: 29rem;
}

.home-content .text-animate h3{
    font-size: 3.2rem;
    font-weight: 700;
    letter-spacing: .2rem;
    color: transparent;
    -webkit-text-stroke: .7px #eac659;
    background-image: linear-gradient(#eac659,#eac659);
    background-repeat: no-repeat;
    -webkit-background-clip: text;
    background-position: 0 0;
    animation: homeBgText 6s linear infinite;
    animation-delay: 2s;
}

@keyframes homeBgText{
    0%,10%,100%{
        background-position: -29rem 0;
    }
    65%,85%{
        background-position: 0 0;
    }
}

.home-content .text-animate h3::before{
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0;
    height: 100%;
    border-right: 2px solid #eac659;
    z-index: -1;
    animation: homeCursorText 6s linear infinite;
    animation-delay: 2s;
}

@keyframes homeCursorText{
    0%,10%,100%{
        width: 0;
    }
    65%,78%,85%{
        width: 100%;
        opacity: 1;
    }
    75%,81%{
        opacity: 0;
    }
}

.home-content p{
    font-size: 1.6rem;
    margin: 2rem 0 4rem;
    color: #5d0402;
}

.btn-box{
    position: relative;
    display: flex;
    justify-content: flex-start;
    width: 54.5rem;
    height: 5rem;
}

.btn-box .btn{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 15rem;
    height: 100%;
    background-color: #5d0201;
    border-radius: .8rem;
    font-size: 1.8rem;
    font-weight: 600;
    letter-spacing: .1rem;
    color: #fff;
    z-index: 1;
    overflow: hidden;
}

.btn-box .btn::before{
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 0;
    height: 100%;
    background-color: #5d0201;
    z-index: -1;
    transition: all .5s;
}

.btn-box .btn:hover::before{
    width: 100%;
    background-color: #e64f3e;
}

.home-img{
    transition: 1s;
}

.home-img:hover{
    background-color: #fff;
    opacity: .5;
}

.home-img img{
    width: 600px;
    height: 600px;
}

/* ========== ABOUT SECTION DESIGN ========== */
.about{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    background-color: #f1eee9;
    padding: 6rem 0;
}
.heading{
    font-size: 5rem;
    color: #5d0402;
}

.heading span{
    color: #cd4c5e;
}

.about-img{
    position: relative;
    width: 25rem;
    height: 25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-img img{
    width: 90%;
    border-radius: 50%;
    border: .2rem solid #cd4c5e;
}

.about-img .circle-spin{
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) rotate(0);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border-top: .2rem solid #f1eee9;
    border-bottom: .2rem solid #f1eee9;
    border-left: .2rem solid #cd4c5e;
    border-right: .2rem solid #cd4c5e;
    animation: aboutSpinner 6s linear infinite;
}

@keyframes aboutSpinner{
    100%{
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.about-content{
    margin-left: 5rem;
}

.about-content h3{
    font-size: 2.6rem;
    color: #cd4c5e;
}

.about-content .information{
    font-size: 1.6rem;
}

.about-content .information .text{
    margin-top: 1rem;
    font-weight: 600;
    color: #5d0201;
    
}

.about-content .information .txt{
    font-weight: 500;
    opacity: .5;
}

.about-content .information .text span{
    margin-left: .7rem;
    font-family: 'Tahoma', sans-serif;
    font-weight:500;
    opacity: .6;
}

/* ========== HOMEWORK SECTION DESIGN ========== */
.homework{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 0;
}

.homework .heading{
    margin-bottom: 10rem;
}
.container{
    position: relative;
    width: 70%;
    height: auto;
}

.container ul{
    list-style: none;
}

.container ul::after{
    position: absolute;
    content: ' ';
    width: 2px;
    height: 100%;
    background-image: linear-gradient(to bottom, rgb(93,2,1), rgb(228,77,59));
}

.container ul li{
    position: relative;
    width: 50%;
    height: auto;
    padding: 35px 25px;
    background-color: #fff;
    box-shadow: 1px 1px 25px rgba(0, 0, 0, 0.384);
    border-radius: 10px;
    margin-bottom: 30px;
    z-index: 99;
}
.container ul li:nth-child(odd){
    float: left;
    clear: right;
    transform: translateX(-30px);
    text-align: right;
}

.container ul li:nth-child(even){
    float: right;
    clear: left;
    transform: translateX(30px);
}

.container ul li .title{
    font-family: 'Tahoma', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #cd4c5e;
}

.container ul li p{
    font-size: 15px;
    color: #5d0201;
    margin: 7px 0;
    line-height: 23px;
}

.container ul li a{
    font-size: 18px;
    font-weight: 600;
    color: #cd4c5e;
    transition: all .3s;
}

.container ul li a:hover{
    color: #ff7789;
}

.container ul li .date{
    position: absolute;
    top: -50px;
    display: grid;
    place-items: center;
    width: 135px;
    height: 35px;
    border-radius: 20px;
    font-size: 14px;
    color: #fff;
    background-image: linear-gradient(to bottom, #ea5266, #ffada4);
}

.container ul li:nth-child(odd) .date{
    right: 20px;
}

.container ul li .circle{
    width: 30px;
    height: 30px;
    background-color: #e75367;
    border-radius: 50%;
    position: absolute;
    top: 0; right: 0;
}

.container ul li .circle::after{
    content: ' ';
    width: 15px;
    height: 15px;
    background-color: #5d0301b2;
    border-radius: 50%;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}

.container ul li:nth-child(odd) .circle{
    right: -30px;
    transform: translate(50%, -50%);
}

.container ul li:nth-child(even) .circle{
    left: -30px;
    transform: translate(-50%, -50%);
}

/* ========= RESPONSIVE ========= */
@media (max-width:1224px){
    html{
        font-size: 55%;
    }
    /* ===== HEADER DESIGN ==== */

    /* ===== HOME SECTION DESIGN ===== */
    .home-img img{
        width: 400px;
        height: 400px;
    }

    /* ===== ABOUT SECTION DESIGN ===== */

    /* ===== HOMEWORK SECTION DESIGN ===== */
    .container{
        width: 85%;
    }
}

@media (max-width:970px){
    /* ===== HEADER DESIGN ==== */
    .header{
        padding: 2rem 4%;
    }
    /* ===== HOME SECTION DESIGN ===== */
    section{
        padding: 10rem 4% 2rem;
    }

    .home{
        padding: 0 4%;
    }

    .home-img img{
        width: 350px;
        height: 350px;
    }

    /* ===== ABOUT SECTION DESIGN ===== */

    /* ===== HOMEWORK SECTION DESIGN ===== */
    .container{
        width: 80%;
        transform: translateX(15px);
    }

    .container ul::after{
        left: -30px;
    }

    .container ul li{
        width: 100%;
        float: none;
        clear: none;
        margin-bottom: 80px;
    }

    .container ul li:nth-child(odd){
        transform: translateX(0);
        text-align: left;
    }

    .container ul li:nth-child(even){
        transform: translateX(0);
    }

    .container ul li:nth-child(odd) .date{
        left: 0;
    }

    .container ul li:nth-child(even) .date{
        left: 0;
    }

    .container ul li:nth-child(odd) .circle{
        left: -30px;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 810px){
    /* ===== HEADER DESIGN ==== */
    .header{
        box-shadow: 1px 1px 25px rgba(0, 0, 0, 0.384);
    }

    #menu-icon{
        display: block;
    }
    
    .navbar{
        position: absolute;
        top: 100%;
        left: -100%;
        width: 100%;
        padding: 1rem 4%;
        background: #fff;
        box-shadow: 0 .5rem 1rem rgba(0,0,0,.2);
        transition: all .3s;
    }

    .navbar.active{
        left: 0;
    }

    .navbar a{
        display: block;
        font-size: 2rem;
        margin: 3rem 0;
    }

    /* ===== HOME SECTION DESIGN ===== */
    .home-content{
        max-width: 40rem;
    }
    
    .home-content h1{
        font-size: 4rem;
    }
    
    .home-content .text-animate{
        position: relative;
        width: 26rem;
    }

    @keyframes homeBgText{
        0%,10%,100%{
            background-position: -26rem 0;
        }
        65%,85%{
            background-position: 0 0;
        }
    }
    
    .home-content .text-animate h3{
        font-size: 2.8rem;
    }
    
    .home-content p{
        font-size: 1.3rem;
    }
    
    .btn-box{
        width: 50rem;
        height: 5rem;
    }
    
    .btn-box .btn{
        width: 12rem;
        font-size: 1.3rem;
    }

    /* ===== ABOUT SECTION DESIGN ===== */

    /* ===== HOMEWORK SECTION DESIGN ===== */
    
}

@media (max-width:675px){
    /* ===== HOME SECTION DESIGN ===== */
    .home{
        justify-content: center;
        background: url('/images/FaithVarvara.png') no-repeat;
        background-size: contain;
        background-position: center;
    }

    .home-content{
        text-align: center;
        max-width: 100%;
    }

    .text-animate-container{
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .btn-box{
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .home-img{
        display: none;
    }

    .home-imghover{
        position: absolute;
        top: 0; left: 0;
        width: 100%;
        height: 100%;
        background-color: #fff;
        opacity: .75;
    }
    /* ===== ABOUT SECTION DESIGN ===== */

    /* ===== HOMEWORK SECTION DESIGN ===== */
}

@media (max-width:550px){
    /* ===== HEADER DESIGN ==== */
    .logo{
        font-size: 1.8rem;
    }

    /* ===== HOME SECTION DESIGN ===== */
    .home-content h1{
        font-size: 3rem;
    }
    
    .home-content .text-animate{
        position: relative;
        width: 23rem;
    }

    @keyframes homeBgText{
        0%,10%,100%{
            background-position: -23rem 0;
        }
        65%,85%{
            background-position: 0 0;
        }
    }

    .home-content .text-animate h3{
        font-size: 2.5rem;
    }

    /* ===== ABOUT SECTION DESIGN ===== */
    .about{
        flex-direction: column;
        padding: 4rem 0;
    }

    .heading{
        text-align: center;
        font-size: 4rem;
        color: #5d0402;
    }
    
    .about-content{
        margin-left: 0;
    }
    
    .about-content h3{
        margin-bottom: 4rem;
        text-align: center;
        font-size: 2.25rem;
    }
    
    .about-content .information{
        font-size: 1.6rem;
    }
    
    .about-content .information .text{
        margin-top: 1rem;
        
    }

    /* ===== HOMEWORK SECTION DESIGN ===== */
    .homework{
        padding: 4rem 0;
    }
    
    .homework .heading{
        margin-bottom: 7rem;
        text-align: center;
        font-size: 3rem;
    }
    
    .container ul li .title{
        font-size: 15px;
    }
    
    .container ul li p{
        font-size: 13px;
    }
    
    .container ul li a{
        font-size: 15px;
    }
    
    .container ul li .date{
        width: 110px;
        height: 30px;
        font-size: 13px;
    }
    
    .container ul li .circle{
        width: 20px;
        height: 20px;
    }
    
    .container ul li .circle::after{
        content: ' ';
        width: 10px;
        height: 10px;
    }
}