
@import url('https://fonts.googleapis.com/css?family=Poppins:wght@400;500;600&display=swap');

*,
*::before,
*::after{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --whitecolor: #f2f4fb;
    --light-color: #f3f3f3;
    --dark-color: #363636;
    --border-top-color: rgba(0,0,0,.1);
    --link-hover-color: rgba(255,255,255,.2);
    --title-font-family: 'Poppins', 'sans-serif';
    --body-font-family: 'Poppins', 'sans-serif';
    --container-width: 96rem;
    --container-padding: 1.5rem;
    --section-vertical-spacing: 8rem; 
    --scroll-bar-color: #f3f9fb;
    --scroll-thumb-color: #363636;
    --scroll-thumb-hover-color: #000;
    --text-bold:#363636;
}

html{
    /*10px */
    font-size: 62.5%; 
    scroll-behavior: smooth;
}

body{
    font-family: var(--body-font-family);
    font-size: 1.6rem;
    line-height: 1.5;
    background-color: var(--light-color);
    color: var(--dark-color);
    overflow-x: hidden;
}

body.dark-theme{
    --whitecolor: #363636;
    --light-color: #000;
    --dark-color: #f2f4fb;
    --border-top-color: rgba(255,255,255,.1);
    --text-bold: #d9dbdb;
}

a{
    text-decoration: none;
    color: inherit;
    outline: none;
}

img{
    max-width: 100%;
    display: block;
}

ul{
    list-style: none;
}

span{
    display: inline-block;
}

i{
    font-size: 2.4rem;
}

input,
button,
textarea{
    font: inherit;
    color: inherit;
    background-color: transparent;
    border: none;
    outline: none;
}

/*Scroll Top*/

.scroll-top{
    position: fixed;
    bottom: -100%;
    right: 1.5rem;
}
.scroll-top .bx{
    padding: 8px;
    font-size: 1.5rem;
    color: var(--whitecolor);
    background: var(--dark-color);
    border-radius: 0.2rem;
}

.scroll-active{
    bottom: 2rem;
    transition: 0.3s;
}
/* Scroll bar */

::-webkit-scrollbar{
    width: 10px;
    background: var(--scroll-bar-color);
}

::-webkit-scrollbar-thumb{
    background: var(--scroll-thumb-color);
    border-radius: 5rem;
}

::-webkit-scrollbar-thumb:hover{
    background: var(--scroll-thumb-hover-color);
}

/* Reusable Css */
.container{
    max-width: var(--container-width);
    /* max-width: 54rem; */
    margin: 0 auto;
    padding: 0 var(--container-padding);
    color: #0e1b31;
}

.section{
    padding-block: var(--section-vertical-spacing);
    position: relative;
}

.section:not(.hero)::before{
    content: '';
    position: absolute;
    top: 35%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vw;
    background: radial-gradient(50% 50% at 50% 50%, rgba(255, 101, 118, .08) 0%, rgba(255, 101, 118, 0) 100%) ;
    z-index: -1;
}

.has-stars{
    position: relative;
}

.has-stars::before,
.has-stars::after{
    content: '';
    position: absolute;
    /* background: url('../img/lightsoff.png') center no-repeat;
    background-size: cover; */

    background: var(--dark-color);
    -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.d-grid{
    display: grid;
}

.section-title-01{
    font-size: 4rem;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 0.2rem;
    color: var(--dark-color);
}

.section-title-02{
    font-size: 1.8rem;
    text-transform: uppercase;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 2rem;
    background: linear-gradient(to top, transparent 0%, var(--dark-color) 10% );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: .3;
}
/* Header */
.header{
    margin-bottom: 5rem;
    position: fixed;
    width: 100%;
    z-index: 100;
}

.header-active{
    backdrop-filter: blur(80px);
    transition: .5s ease;
}

.navbar{
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 6rem;
    position: relative;
}

.logo{
    font-family: var(--title-font-family);
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
}

.navbar-buttons{
    display: flex;
    column-gap: .5rem;
    padding: 0 .5rem;
    background-color: var(--dark-color);
    color: var(--light-color);
    border-radius: .4rem;
    position: relative;
    z-index: 999;
}

.button{
    cursor: pointer;
}

.icon-button{
    width: 4rem;
    height: 4rem;
    display: flex;
}

.icon-button i{
    margin: auto;
}

.close-icon,
.theme-on{
    display: none;
}

.menu{
    position: absolute;
    right: 1.55rem;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: .8rem 1.5rem;
    border-radius: .4rem;
    z-index: -1;
    pointer-events: none;
    transform: scale(0);
    transform-origin: right;
    transition: transform .25s .25s cubic-bezier(1,0,0,1);
}

.list{
    display: flex;
    gap: 2.5rem;
}

.menu > .list{
    opacity: 0;
}

.menu > .list .list-link{
    text-transform: uppercase;
}

.list-link{
    font-size: 1.4rem;
    color: var(--light-color);
}

.list-link:hover,
.list-link:focus,
.scroll-top:hover,
.scroll-top:focus{
    opacity: .7;
}

.list-link span{
    font-weight: bold;
}

/* JavaScript Styles */
.active.menu{
    z-index: initial;
    pointer-events: initial;
    transform: scale(1) translateY(4.5rem);
}

.active.menu > .list{
    opacity: 1;
    transition: opacity .1s .5s;
}

.active .open-icon{
    display: none;
}

.active .close-icon{
    display: block;
}

.dark-theme .theme-off{
    display: none;
}

.dark-theme .theme-on{
    display: block;
}

/* Home */

.home{
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.title{
    font-family: var(--title-font-family);
    font-weight: 600;
}

.home-title{
    font-size: clamp(5rem, 10vw, 12rem);
    font-family: sans-serif;
    line-height: 1.2;
    color: var(--dark-color);
} 

.home-title p{
    font-size: 1.6rem;
    font-family: var(--title-font-family);
}

.inline-image{
    width: 7rem;
    height: 7rem;
    background: url('../img/christian.png') top center no-repeat;
    background-size: cover;
    border-radius: 50%;
    border-bottom-left-radius: 0;
    margin: 0 1.5rem;
}

.dark-theme .has-sparkles::before,
.dark-theme .has-sparkles::after{
    /* background: url('../img/lightson.jpg')center no-repeat; */
    /* background-size: cover; */
    background: #fff;
    -webkit-clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.inline-image.has-sparkles::before{
    width: 1rem;
    height: 1rem;
    top: -.5rem;
    right: -.5rem;
}

.inline-image.has-sparkles::after{
    width: .8rem;
    height: .8rem;
    bottom: 1rem;
    right: -.5rem;
}

.btn.btn{
    font-size: 1.3rem;
    display: inline-flex;
    align-items: center;
    column-gap: 0.5rem;
    color: var(--dark-color);
    padding: 12px 16px;
    border-radius: 0.4rem;
    margin-top: 1rem;
    border: none;
    text-decoration: none;
    transition-duration: 0.4s;
    cursor: pointer;
    border: 2px solid var(--border-top-color);
}

.btn .bx{
    font-size: 1.3rem;
}

.btn:hover{
    background: var(--whitecolor);
}

/* about */
.section-description{
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.about-description{
    font-size: 1.5rem;
    font-weight: 300;
    text-align: justify;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.text-bold{
    font-weight: bold;
    color: var(--text-bold);
}

.about-image{
    width: 25rem;
    height: 25rem;
    margin: 0 auto;
    margin-bottom: 3rem;
    border-radius: 6px;
    border: 2px solid var(--dark-color);
    /* transform: rotate(25deg); */
}

.about-skills-heading{
    margin-bottom: 2rem;
    font-size: 2.2rem;
    font-family: sans-serif;
    color: var(--dark-color);
}

.about-image img{
    width: 100%;
    height: 100%;
    /* object-fit: contain; */
}

.about-image.has-stars::before,
.about-image.has-stars::after{
    width: 3rem;
    height: 3rem;
}

.about-image.has-stars::before{
    top: -3.5rem;
    right: 5rem;
}

.about-image.has-stars::after{
    top: 5rem;
    right: -3.5rem;
}

.tech-stack{
    max-width: 50rem;
    grid-template-columns: repeat(auto-fit, minmax(5rem, 1fr));
    gap: 2.5rem;
}

.tech-stack-item{
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.tech-stack-item i{
    font-size: 5rem;
    opacity: .5;
    color: var(--dark-color);
}
.tech-stack-item img{
    font-size: 5rem;
    opacity: .5;
    color: var(--dark-color);
}

.dark-theme .tech-stack-item i{
    opacity: .8;
}

.dark-theme .tech-stack-item img{
    opacity: .8;
}

.tech-stack-item::before,
.tech-stack-item::after{
    position: absolute;
    top: -1rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform .5s, opacity .5s;
}

.tech-stack-item::before{
    content: '';
    border: 1rem solid transparent;
    border-top-color: var(--dark-color);
    transform: translateY(0);
    z-index: 5;
}

.tech-stack-item::after{
    content: attr(data-tooltip);
    width: max-content;
    background-color: var(--dark-color);
    color: var(--light-color);
    padding: .5rem 1rem;
    border-radius: .4rem;
}

.tech-stack-item:hover::before{
    opacity: 1;
    transform: translateY(-.6rem);
}

.tech-stack-item:hover::after{
    opacity: 1;
    transform: translateY(calc(-100% + -.5rem));
}

/*Portfolio*/
.portfolio-heading{
    font-size: 2.2rem;
    font-family: sans-serif;
    color: var(--dark-color);
    margin-bottom: 2rem;
}

.item {
	display: flex;
	align-items: center;
	justify-content: center;
	max-width: 850px;
	margin: 0 auto;
	margin-bottom: 5rem;
	gap: 2rem;
}

.item:nth-of-type(even) {
	flex-direction: row-reverse;
    /* flex-direction: column; */
}
.item .left {
	flex: 1;
}

.item .right {
	margin-left: -70px;
	flex: 1;
    background-color: var(--dark-color);
	padding: 3rem 1.5rem;
	border-radius: 12px;
	box-shadow: 0px 0px 20px #00000028;
	z-index: 1;
    color: var(--dark-color);
}

@media (max-width: 450px){
    .portfolio-heading,
    .about-skills-heading {
        font-size: 1.8rem;
    }
    .home-title p{
        font-size: 1rem;
    }
    .item .right{
        height: fit-content;
        width: fit-content;
    }
    .item .right .project-title {
        font-size: 0.6rem;
    }
    .item .right .project-desc {
        font-size: 0.9rem;
    }
    .portfolio-links {
        font-size: 1.1rem;
    }
}

.item:nth-of-type(even) .right {
	margin-left: 0;
}
.item:nth-of-type(even) .left {
	margin-left: -150px;
}

.item .left img {
	height: 100%;
    width: 100%;
	border-radius: 12px;
	overflow: hidden;
	position: relative;
}

.item .left img::after {
	content: '';
	position: absolute; /*i*/
	left: 0;
	top: 0;
	height: 100%;
	width: 100%;
}

.item .left .img img {
	object-fit: cover;
	transition: 0.3s ease transform;
}
.item:hover .left .img img {
	transform: scale(1.1);
	z-index: 1;
}

.item .right .project-title {
	font-size: 1.6rem;
	margin-bottom: 0.3rem;
    color: var(--whitecolor);
    letter-spacing: 0.3rem;
}
.item .right .project-sub-title {
	font-size: 2rem;
	margin-bottom: 1.2rem;
    color: var(--whitecolor);
}
.item .right .project-desc {
    font-size: 1.5rem;
	margin-bottom: 2rem;
    color: var(--whitecolor);
}

.portfolio-links a{
    color: #000;
}

.portfolio-links .site{
    color: #00c864;
}


/* .projects-img2{
    filter: blur(1.5px);
    -webkit-filter: blur(5px);
}

.projects-img3{
    filter: blur(2px);
    -webkit-filter: blur(40px);
}

.projects-img4{
    filter: blur(2px);
    -webkit-filter: blur(40px);
} */

.projects-img5{
    filter: blur(2px);
    -webkit-filter: blur(40px);
}
/*contact*/

.contact-form{
    display: flex;
    flex-direction: column;
}

.input{
    position: relative;
    margin-bottom: 5rem;
}

.input-label{
    position: absolute;
    top: 0;
    left: 0;
    text-transform: uppercase;
    font-weight: bold;
    transition: transform .25s;
    color: var(--dark-color);
}

.input input{
    width: 100%;
    border-bottom: 1px solid var(--dark-color);
    padding: .5rem;
}

.input input:focus + .input-label{
    transform: translateY(-2.5rem);
}

.form-button{
    display: inline-block;
    padding: 1rem 2rem;
    text-transform: uppercase;
    margin: 0 auto;
    border: 2px solid var(--border-top-color);
    color: var(--dark-color);
}

.form-button:hover{
    background: var(--whitecolor);
}

.required-field{
    font-size: 1rem;
    color: #363636;
    transform: translateY(-.8rem);
}

/*Footer*/

.footer{
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, auto));
    gap: 1.5rem;
    margin-top: 2rem;
    border-radius: 0.5rem;
    padding: 20px;
    border: 4px solid var(--border-top-color);
}

.footer-box{
    display: flex;
    flex-direction: column;
}

.footer-box a span{
    font-size: 2.2rem;
    font-weight: 600;
}

.footer-box i span{
    font-size: 1.4rem;
}

.footer-box p{
    font-size: 1.2rem;
    margin: 0.5rem 0 1rem;
}

.social{
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}

.social .bx{
    padding: 10px;
    background: var(--bg-color);
    color: var(--pink-color);
    border-radius: 5rem;
    font-size: 20px;
}

.social .bx:hover{
    background: var(--dark-pink-color);
    color: var(--bg-color);
    transition: 0.2s all linear;
}

.footer-box h2{
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-box a{
    font-size: 1.4rem;
}

.footer-box a{
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.footer-box a:hover{
    color: #868a92;
}

.footer-box form{
    border-bottom: 1px solid var(--text-color);
    padding: 10px;
    display: flex;
    align-items: center;
    column-gap: 0.5rem;
}

.footer-box form input{
    background: transparent;
    border: none;
}

.footer-box form .bx{
    font-size: 20px;
    color: light var(--light-pink-color);
    cursor: pointer;
}

.footer-box span{
    font-size: 1.5rem;
}

.copyright{
    text-align: center;
    padding: 20px;
}









