:root {
    background-color: #FFF5DA;
}

* {
    margin: 0;
    padding: 0;
    background-repeat: no-repeat;
}


html {
    scroll-behavior: smooth;
    scroll-padding: 10rem;
    font-family: "Space Grotesk", sans-serif;
    overflow-x: hidden;
}

body {
    font-family: "Space Grotesk", sans-serif;
    position: relative;
}

:any-link {
    text-decoration: none;
}

.headroom-wrapper {
    position: relative;
    top: 0;
    display: block;
    border-bottom: 1px solid #888;
    
    /* transform: translateY(0px); */
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}

.headroom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.header-nav-bar {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    padding-right: 40px;
    padding-top: 8px;
}

.header-nav-bar a{
    display: flex;
    flex-wrap: wrap;
    position: relative;
    top: 0;
    align-items: center;
    letter-spacing: .10rem;
    color: black;
    border-bottom: #252525 2px dashed;
    text-transform: uppercase;
}

#sidebar-active {
    display: none;
}

.open-sidebar-button, .close-sidebar-button {
    display: none;
}

.header-nav-bar a::before {
    content: '';
    inset: auto -2px -2px 0 ;
    height: 2.2px;
    position: absolute;
    background: #252525;
    transform: scaleX(0);
    transform-origin: right;
    transition-property: width;
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1);
}

.header-nav-bar a:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}
*/

.header__content {
    display: flex;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 170px;
    font-size: 35px;
    line-height: 40px;
}

.header__container {
    font-weight: 600;
    overflow: hidden;
    height: 50px;
    padding: 0 40px;
}

.header__container__text {
    display: inline;
    float: left;
    padding-top: 10px;
    color: #252525;
    font-size: 1.7em;
    font-weight: 700;
}

.header__container__list {
    font-size: 1.5em;
    margin-top: 0;
    padding-top: 12px;
    padding-left: 116px;
    text-align: left;
    list-style: none;
    
    -webkit-animation-name: change;
    -webkit-animation-duration: 10s;
    -webkit-animation-iteration-count: infinite;
    animation-name: change;
    animation-duration: 10s;
    animation-iteration-count: infinite;   
}

.header__container__list__item {
    -webkit-animation-name: color;
    -webkit-animation-duration: 10s;
    -webkit-animation-iteration-count: infinite;
    animation-name: color;
    animation-duration: 10s;
    animation-iteration-count: infinite;
}

@keyframes color {
    0% {color: #381c75;}
    25% {color: #FAB440;}
    50% {color:#F92445}
    100% {color: rgb(56, 56, 225);}
}

.header__container__list__item {
    line-height: 40px;
}

/* // CSS webkit-keyframe for Nav Hello // */

@-webkit-keyframes opacity {
0%, 100% {opacity:0;}
50% {opacity:1;}
} 

@-webkit-keyframes change {
0%, 12.66%, 100% {transform:translate3d(0,0,0);}
16.66%, 29.32% {transform:translate3d(0,-25%,0);}
33.32%,45.98% {transform:translate3d(0,-50%,0);}
49.98%,62.64% {transform:translate3d(0,-75%,0);}
66.64%,79.3% {transform:translate3d(0,-50%,0);}
83.3%,95.96% {transform:translate3d(0,-25%,0);}
}

@-o-keyframes opacity {
0%, 100% {opacity:0;}
50% {opacity:1;}
}

@-o-keyframes change {
0%, 12.66%, 100% {transform:translate3d(0,0,0);}
16.66%, 29.32% {transform:translate3d(0,-25%,0);}
33.32%,45.98% {transform:translate3d(0,-50%,0);}
49.98%,62.64% {transform:translate3d(0,-75%,0);}
66.64%,79.3% {transform:translate3d(0,-50%,0);}
83.3%,95.96% {transform:translate3d(0,-25%,0);}
} 

@-moz-keyframes opacity {
0%, 100% {opacity:0;}
50% {opacity:1;}
} 

@-moz-keyframes change {
0%, 12.66%, 100% {transform:translate3d(0,0,0);}
16.66%, 29.32% {transform:translate3d(0,-25%,0);}
33.32%,45.98% {transform:translate3d(0,-50%,0);}
49.98%,62.64% {transform:translate3d(0,-75%,0);}
66.64%,79.3% {transform:translate3d(0,-50%,0);}
83.3%,95.96% {transform:translate3d(0,-25%,0);}
}

@keyframes opacity {
0%, 100% {opacity:0;}
50% {opacity:1;}
} 

@keyframes change {
0%, 12.66%, 100% {transform:translate3d(0,0,0);}
16.66%, 29.32% {transform:translate3d(0,-25%,0);}
33.32%,45.98% {transform:translate3d(0,-50%,0);}
49.98%,62.64% {transform:translate3d(0,-75%,0);}
66.64%,79.3% {transform:translate3d(0,-50%,0);}
83.3%,95.96% {transform:translate3d(0,-25%,0);}
}

.top-main-container {
    display: block;
    position: relative;
    padding-left: 40px;
    padding-right: 40px;
}

.see-more {
    position: absolute;
    right: -75px;
    transform: rotate(90deg);
}

.see-more span {
    font-family: space-grotesk-bold,serif;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    line-height: 100%;
    letter-spacing: .24em;
    transition: color .2s ease
}

.see-more span:hover {
    position: relative;
    color: #f92445;
    margin-left: 16px;
    transition: all .2s ease;
}

.see-more svg:hover {
    position: relative;
    color: #f92445;
    margin-left: 16px;
    transition: all .2s ease;
}

.top-intro {
    position: relative;
    margin-top: 100px;
    font-weight: 600;
    font-size: 3.2rem;
}


.about-container {
    display: block;
    flex-wrap: wrap;
    padding-top: 30px;
}

.aboutme-wrap {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    width: calc(50% - 75px);
    float: right;
    margin: 0;
    padding-top: 200px;
    padding-right: 40px;
    font-size: 1.3em;
    line-height: 1.75;
    
}

/* Projects CSS properties */


.project-container {
    position: relative;
    margin-top: 600px;
    background-color: #d5e1e1;
    
}

.project-gallery-wrap {
    display: grid;
    gap: 4rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    padding: 5% 25%; 
}


.project-img {
    display: block;
    width: 100%;
    block-size: 100%;
    border-radius: 10px;
    object-fit: cover;
}

.cards {
    position: relative;
    transform: scale(1);
    transition: transform .2s linear 0s;
    
}

.cards:hover {
    -webkit-transform: scale(1.1);
    -ms-transform: scale(1.1);
    transform: scale(1.1);
    transition: 1s ease;
    opacity: 0.3;
}

.info {
    content: "";
    position: relative;
    background: #fff;
    max-width: 400px;
    width: 90%;
    padding: 25px 30px;
    bottom: 128px;
}

.info:hover {
opacity: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    opacity: 0;
    transform: scale(.95);
    transition: all 2s;
}

.overlay_info  {
    width: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    opacity: 1;
}

.overlay_info p {
    font-size: 32px;
    color: brown;
    margin-bottom: 136px;
}

.overlay_info p:hover  {
    opacity: 1;
}


h3 {
    color: #252525;
    font-size: 2em;
}

.cards:hover p::after {
    content: "";
    position: absolute;
}

@keyframes point {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(.125em);
    }
}


/* //footer CSS properties// */


.footer-container {
    display: block;
    background-color:#252525;
    width: 100%;
    position: relative;
    margin-top: calc(100% - 50%);
    padding-bottom: 100px;
}

.contact-wrapper {
    background: #E4FF97;
    top: -395px;
    border-radius: 10px;
    border-style: hidden;
    box-shadow: 0 0 9.697px 0 rgba(0, 0, 0, 0.16);
    width: 750px;
    height: 500px;
    position: relative;
    margin: 0 auto;

}

.title-header {
    text-align: center;
    padding: 70px 50px;
    color: #000000;
    font-weight: 200;
    font-size: 24px;
}

.btn-small {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-link {
    background: transparent;
    color: #000000;
    font-size: 16px;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    padding: 15px 20px;
    margin-top: 40px;
    border: 2px #000000 solid;
    border-radius: 50px;
    letter-spacing: .10rem;
}

.btn-link:hover {
    background: #000000;
    color: #E4FF97;
}

.links {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 300px;
    
}

.links a {
    color: #ffffff;
    text-transform: uppercase;
    border-bottom: 2px #fff dashed;
    position: relative;
}

.social-links::before {
    content: '';
    inset: auto -2px -2px 0 ;
    height: 2.2px;
    position: absolute;
    background: #E4FF97;
    transform: scaleX(0);
    transform-origin: right;
    transition-property: width;
    transition: transform 0.4s cubic-bezier(0.8, 0, 0.2, 1);
}

.social-links:hover::before  {
    transform: scaleX(1);
    transform-origin: left;
}

a {
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: auto;
}

/* // ColorBox CSS Property */

.color-bar-container {
    display: block;
    position: relative;
    background-color: #898E01;
    height: 3px;
    
    
}

.colorbox{
    position: absolute;
    z-index: 0;
    bottom: 78px;
    width: 100%;
    animation: moveBox 6s ease-in-out 2s infinite alternate forwards;
}

@keyframes moveBox {
    0% {
        transform: translateX(-600px);
    }
    100% {
        transform: translateX(850px);
    }
}

/* //marquee CSS property// */


.marquee-container {
    position: relative;
    overflow-x: hidden;
    
}

.marquee-container h2 {
    min-width: 100vw;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    animation: scroll 12s infinite linear;
    display: inline-block;
}


@keyframes scroll {
    from {
        transform: translateX(0%);
    }
    to {
        transform: translateX(-50%);
    }
}

.box.paused{
    animation-play-state: paused;
}

.pink {
    position: absolute;
    right: 0;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    background-color: #CB9FD2;
    width: 150px;
    height: 150px;
    border-radius: 15%;
    
}

.yellow-circle1 {
    position: absolute;
    background-color: #E4FF97;
    height: 48px;
    width: 48px;
    top: -1px;
    left: -2px;
    border-radius: 100px;
    
}
.yellow-circle2 {
    position: absolute;
    top: 104px;
    left: 0;
    background-color: #E4FF97;
    height: 48px;
    width: 48px;
    border-radius: 100px;
}
.yellow-circle3 {
    position: absolute;
    background-color: #E4FF97;
    top: 0px;
    left: 103px;
    height: 48px;
    width: 48px;
    border-radius: 100px;
}

.yellow-circle4 {
    position: absolute;
    background-color: #E4FF97;
    top: 102px;
    left: 106px;
    height: 48px;
    width: 48px;
    border-radius: 100px;
}

.brown-square {
    position: absolute;
    background-color: #9d2121;
    left: 30px;
    top: 30px;
    height: 90px;
    width: 90px;
    animation: rotate 8s infinite;
}

@keyframes rotate {
    50% {transform: rotate(180deg);}
    
}

/* //Hamburger-menu-icon CSS */


.menu-icon-container {
    display: flex;
    padding-top: 8px;
}
.menu-icon:before {
    content: "";
    position: absolute;
    width: 29px;
    height: 2px;
    background: #252525;
    right: 26px;
    top: 33px;
    transition: width .2s ease background .2s ease;
    cursor: pointer;
}

.menu-icon:after {
    content: "";
    position: absolute;
    width: 29px;
    height: 2px;
    background: #252525;
    right: 26px;
    top: 51px;
    transition: width .2s ease background .2s ease;
    cursor: pointer;
}

.menu-icon span{
    position: absolute;
    width: 42px;
    height: 2px;
    background: #252525;
    right: 26px;
    top: 43px;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    transition: background .2s ease;
    cursor: pointer;
}

.menu-icon {
    display: none;
}

/* CSS Media Screen CSS Property */

@media screen and (max-width: 780px) {

    .header-nav-bar {
        background-color: #CB9FD2;
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100%;
        z-index: 10;
        width: 200px;
        box-shadow: -5px 0 5px rgba(0, 0, 0, 0.25);
        transition: 0.75s ease-out;
    }

    nav a {
        padding-top: 2em;
        margin-left: 2em;
        margin-top: 0.5em;
        justify-content: flex-start;
    }

    .menu-icon span, .menu-icon:after, .menu-icon:before {
        margin-top: 16px;
    }

    .open-sidebar-button, .close-sidebar-button, .menu-icon {
        padding: 10px;
        display: block;
    }

    #sidebar-active:checked ~ .header-nav-bar {
        right: 0;
    }

    #sidebar-active:checked ~ #overlay {
        height: 100%;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 9;
    }

    .header-container {
        margin: 0 auto;
        padding-left: 0;
    }

    .about-container {
        display: flex;
        justify-content: center;
        margin: auto;
        margin-top: 3em;
    }

    .aboutme-wrap {
        width: calc(50% - -75px);
        
        
    }

    .project-container {
        margin-top: 10rem;
    }

    .footer-container {
        display: flex;
        justify-content: center;
        flex-direction: column;
        margin-top: 30rem;
        
    }

    .contact-wrapper {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        max-width: fit-content;
        margin-left: 2rem;
        margin-right: 2rem;
        }

    .links {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding-top: 0;
    }

    .color-bar-container {
        display: none;
    }

    .see-more {
        margin-top: 6.5em;
    }
}