@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');
*{
    box-sizing:border-box; margin:0; padding:0; border:0;
}

*::-webkit-scrollbar{
    width:0px;
}

:root{
    --light-color: #faf8e9;
    --light-color-text: #b6b3b3ef;
    --light-color-text2: #a2a0a0;
    --light-color-text3: #363535;
    --purple-color: #7f15f8;
    --purple-color-dark: #15002f;
    --purple-color-light: #a748eb41;
    --purple-color-light2: #e9d3f9;
    --rim: #ffffff18;
    --rim3: #ffffff08;
    --rim2: #0000005b;
    --dark-color: #000000;
    --unit-space: 4px;
    --glass: #ffffff0e;
    --glass2: #ffffff0e;
    --nav-height:70px;
    --font-weight-bold:500; 
    --font-weight-bolder:700; 
    --font-weight-extra-bold:900; 
    user-select:none;
}

.bold1{
    font-weight:var(--font-weight-bold);
}
.bold2{
    font-weight:var(--font-weight-bolder);
}
.bold3{
    font-weight:var(--font-weight-extra-bold);
}

.color3{
    color:var(--light-color-text2);
}

.white{
    color:white;
}

#skills .content{
    flex-direction: column-reverse;
    gap:calc(var(--unit-space)*5);
}

.left2{
    width:40px;
    height:40px;
}

.skill-tab{
    display:flex;
    width:100%;
    display:flex;
    flex-wrap:wrap;
    gap:calc(var(--unit-space)*1.5);
}

.tabbed-item{
    padding:calc(var(--unit-space)*2) calc(var(--unit-space)*3);
    border-radius:50px;
    background-color: var(--glass);
    border: solid 1px var(--rim);
    color:var(--light-color-text);
    white-space:nowrap;
}

.exp-item{
    display:flex;
    align-items:center;
    gap:calc(var(--unit-space)*2);
}

.funnel{
    font-family: "Open Sans", sans-serif;
}

.light-p{
    color:var(--light-color-text2);
}

.cursive{
    font-family: "Caveat Brush", cursive;
}

/* .hobbies{
    width:max-content;
    height:max-content;
    border:solid 0.5px var(--rim);
    display:flex;
    color:var(--light-color);
} */

/* .icon2{
    width:18px;
    height:18px;
} */

/* .hobby{
    display:flex;
    gap:calc(var(--unit-space)*2);
    justify-content:center;
    align-items:center;
} */

.about-content{
    display:flex;
    flex-direction: column;
    gap:calc(var(--unit-space)*5);
}

/* #about{
    background-color:var(--purple-color-dark);
    width:95%;
    border-radius:calc(var(--unit-space)*10);
} */

/* .hobby{
    width:max-content;
    height:max-content;
    border:solid 0.5px var(--rim);
    padding:calc(var(--unit-space)*3);
} */

html{
    scroll-behavior:smooth;
}

.p-xlarge{
    font-size:20px;
}

.p-large{
    font-size:18px;
    line-height:1.7;
}
.p-medium{
    font-size:16px;
    line-height:1.7;
}
.p-small{
    font-size:14px;
    line-height:1.5;
}
.p-tiny{
    font-size:12px;
    line-height:1.8;
}

body{
    width:100%;
    height:max-content;
    flex-direction: column;
    display:flex;
    position:relative;
    justify-content:center;
    background: linear-gradient( var(--dark-color), var(--dark-color), var(--purple-color-dark));
    align-items:center;
    font-family: "Orbitron", sans-serif;
    cursor:none;
}

section, footer{
    width:100%;
    height:max-content;
    position:relative;
    display:flex;
    justify-content:center;
    align-items:center;
    transition:0.8s;
}

footer{
    padding:calc(var(--unit-space)*5) 0px;;
    background-color:var(--dark-color);
}

.glass{
    background-color:#ffffff13;
    backdrop-filter: blur(30px);
}

.main-header{
    backdrop-filter: blur(30px);
    width:100%;
    height:70px;
    position:sticky;
    top:calc(var(--unit-space)*0);
    z-index:200;
    transition:0.3s;
}

.detachedHeader{
    top:calc(var(--unit-space)*4);
    width:90%;
    box-shadow:0px 0px 2px -4px black;
    border-radius:calc(var(--unit-space)*40);
    border:solid 1px var(--rim);
    box-shadow: 0px 0px 10px 0.5px black;
}

.main-header .container{
    justify-content: space-between;
    align-items:center;
    height:100%;
}

.main-header nav{
    width:100%;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

ul{
    list-style-type:none;
}

a{
    color:var(--light-color);
}

.main-header .navs ul{
    display:none;
    list-style-type:none;
    gap: calc(var(--unit-space)*6);
    width:max-content;
    height:max-content;
    align-items:center;
    color:var(--light-color);
    justify-content:center;
    font: weight 600px;
    font-size:14px;
    letter-spacing:1px;
}

.container{
    width:100%;
    padding:0 calc(var(--unit-space)*3);
    max-width:1500px;
    display:flex;
    position:relative;
}

main{
    width:100%;
    height:max-content;
    display:flex;
    flex-direction: column;
    gap:calc(var(--unit-space)*20);
    justify-content:center;
    align-items:center;
    margin-bottom:calc(var(--unit-space)*20);
}

.logo{
    width:50px;
    height:50px;
}

#home{
    width:100%;
    height:calc(100vh - var(--nav-height));
}

#home .container{
   justify-content: center;
   overflow:hidden;
   width:100%;
   flex-direction: column;
   height:100%;
   align-items:center;
   position:relative;
   padding:calc(var(--unit-space)*2) calc(var(--unit-space)*3);;
}

.background{
    position:absolute;
    background:radial-gradient(var(--purple-color-light), var(--purple-color-light), var(--dark-color), var(--dark-color))
}

.image{
    width:380px;
    height:380px;
    z-index:1;
    position:absolute;
}

.image img{
    filter: 
    drop-shadow(0px 0px 40px #000000b5)
    drop-shadow(0px 0px 1px #000000b7);
}

.background, #home header{
    width:100%;
    height:100%;
    display:flex;
    justify-content:center;
    align-items:center;
}

#home header{
    height:max-content;
}

#about p{
    color:var(--light-color-text);
    text-align: justify;
}

#about header{
    width:100%;
    display:flex;
}

#contact header{
    width:100%;
    height:max-content;
    text-align: center;
}

.hero-bottom{
    bottom:0;
    width:100%;
    display:flex;
    height:max-content;
    align-items:flex-end;
    justify-content:space-between;
}

.socials1{
    width:max-content;
    height:max-content;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:calc(var(--unit-space));
    z-index:10;
    border-radius:50px;
}

.icon{
    width:max-content;
    height:max-content;
    padding: calc(var(--unit-space)*2);
    display:flex;
    justify-content:flex-start;
    align-items:center;
    border-radius:calc(var(--unit-space));
    gap:calc(var(--unit-space)*2);
    background-color: var(--glass);
    text-decoration:none;
    border: solid 0.5px var(--rim);
}

.icon img{
    width:22px;
    height:22px;
}

.gapped{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

#dot1{
    background-color:red;
}
#dot2{
    background-color:green;
}
#dot3{
    background-color:blue;
}


.preview{
    color:var(--dark-color);
    background-color:white;
    padding:calc(var(--unit-space)*3);
    border: solid 1px var(--dark-color);
    display:flex;
    flex-direction:column;
    gap:calc(var(--unit-space)*2);
}

.pointer{
    width:15px;
    height:15px;
    display:none;
    justify-content:center;
    align-items: center;
    border-radius:50%;
    border:solid 1.5px var(--rim);
    position:fixed;
    opacity:1;
    z-index:1000;
    background-color:white;
    mix-blend-mode:difference;
    pointer-events:none;
    transition:transform 0.3s;
}

p{
    font-weight: 400;
}

.exp{
    display:flex;
    flex-direction: column;
    gap:2px;
    width:max-content;
    border-radius:var(--unit-space);
    height:max-content;
    color:var(--light-color);
}

.divider{
    height:1px;
    width:auto;
    background-color:var(--rim);
}

.hero{
    width:max-content;
    height:auto;
    /* min-height:300px; */
    flex:1;
    display:flex;
    justify-content:center;
    align-items:center;
    flex-direction: column;
    gap:calc(var(--unit-space)*2);
    margin-bottom:calc(var(--unit-space)*20);
}

.hero p{
    color: white;
    font-size:3rem;
    line-height:1;
    font-weight:900;
    -webkit-text-stroke:0.2px;
    -webkit-text-stroke-color:black;
    /* word-spacing:0.2rem; */
    z-index: 3;
}

.climate{
    font-family: "Climate Crisis", sans-serif;
}

.content{
    width:100%;
    height:max-content;
    display:flex;
}

#resume{
    padding:calc(var(--unit-space)*5);
    height:40px;
    display:flex;
    font-size:14px;
    font-weight:600;
    justify-content:center;
    align-items:center;
    border-radius:calc(var(--unit-space)*2);
    color: var(--light-color);
    background-color:var(--purple-color);
}


label{
    width:100%;
    height:max-content;
    display:flex;
    justify-content:center;
    flex-direction:column;
    gap:calc(var(--unit-space)*2);
}

#contact .content{
    justify-content: center;
}

.foot-logo{
    width:auto;
    display:flex;
    color:white;
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:calc(var(--unit-space)*2);
}

.resume-profile{
    display:flex;
    align-items:center;
    gap:calc(var(--unit-space)*8);
}

#contact .container{
    flex-direction:column;
    justify-content: center;
    align-items:center;
}

form{
    color:var(--light-color);
    width:100%;
    max-width:700px;
    display:flex;
    flex-direction: column;
    gap:calc(var(--unit-space)*4);
    height:max-content;
    padding:calc(var(--unit-space)*3);
}

input, textarea{
    width:100%;
    background-color:transparent;
    height:45px;
    padding:calc(var(--unit-space)*3);
    border:solid 1px var(--rim);
    color:var(--light-color);
}

input:focus{
    outline:solid 1px var(--purple-color);
}

textarea{
    height:250px;
    resize:none;
}

.heading1{
    position:relative;
    font-size:7rem;
    font-weight:900;
    line-height:0.8;
    -webkit-text-stroke:1px;
    color:var(--glass2);
    -webkit-text-stroke-color:var(--rim3);
}

.heading1::before{
    content:"haqiim";
    position:absolute;
    inset:0;
    color:transparent;
    -webkit-text-stroke:1px #ffffff66;
    pointer-events:none;
    -webkit-mask-image:linear-gradient(to bottom, black 0%, transparent 100%);
    mask-image:linear-gradient(to bottom, black 0%, transparent 100%);
}

#about .content{
    display:flex;
    flex-direction:column;
    gap: calc(var(--unit-space)*5)
}

#about .left, #about .right{
    width:100%;
    display:flex;
    height:max-content;
    flex-direction:column;
}

#about .right{
    align-items:center;
}

.projects-page{
    width:100%;
    height:100dvh;
    top:0;
    left:0;
    position:fixed;
    display:none;
    z-index:300;
    background-color:var(--purple-color-dark);
}

.projects-page .container{
    display:flex;
    flex-direction:column;
     padding:calc(var(--unit-space)*5);
}

.project-line{
    width:100%;
    height:90px;
    background-color:rgb(246, 224, 252);
    display:none;
    opacity:0;
    align-items:center;
    flex-shrink:0;
    padding:calc(var(--unit-space)*2) calc(var(--unit-space)*3);
    justify-content:space-between;
    transform:translateX(30px);
    animation:slideLeft 0.3s linear 0.3s forwards;
}

.all-projects{
    display:flex;
    width:100%;
    overflow-x:flex;
    height:auto;
    flex:1;
    gap: calc(var(--unit-space)*2);
    flex-direction:column;
    padding-top:calc(var(--unit-space)*3);
    align-items:center;
    overflow-y:scroll;
}

.close-projects{
    padding:calc(var(--unit-space)*2);
    width:38px;
    height:38px;
    position:absolute;
    top:calc(var(--unit-space)*3);
    right:calc(var(--unit-space)*3);
    background-color:white;
    border:solid 1px white;
    background-color:transparent;
}

.project-btns{
    width:max-content;
    height:max-content;
    display:flex;
    gap:calc(var(--unit-space)*2);
}

.project-btns button{
    width:40px;
    height:40px;
    display:flex;
    padding:calc(var(--unit-space)*2);
    border:solid 1px var(--purple-color-dark);
    gap:calc(var(--unit-space)*2);
}

.btn1{
    height:45px;
    display:flex;
    justify-content:center;
    align-items:center;
    width:max-content;
    background-color:var(--purple-color);
    padding:calc(var(--unit-space)*5);
    border-radius: calc(var(--unit-space)*2);
    color:white;
}

.heading2{
    font-size:3rem;
    line-height:0.9;
    margin-bottom:calc(var(--unit-space)*10);
    color:var(--light-color);
}

.send{
    width:100%;
    display:flex;
    justify-content:end;
}

.orbitron{
    font-family: "Orbitron", sans-serif;
}

.heading3{
    font-size:1.5rem;
    margin-bottom:calc(var(--unit-space)*3);
}
.heading4{
    font-size:1rem;
     margin-bottom: calc(var(--unit-space)*1.5)
}

.dot{
    width:100px;
    height:100px;
    border-radius: 50%;
    background-color:black;
}

.me{
    width:320px;
    height:320px;
    border:solid 2px var(--dark-color);
    border-radius:calc(var(--unit-space)*4);
    position:relative;
}

.me img{
    border-radius:inherit;
}

.more-projects{
    width:100%;
    height:max-content;
    position:absolute;
    justify-content:center;
    align-items:center;
    bottom:-50px;
    display:flex;
}

.see-more{
    width:300px;
    height:70px;
    border:solid 1px var(--purple-color);
    display:flex;
    gap:calc(var(--unit-space)*3);
    background-color:var(--purple-color-dark);
    color:white;
    white-space:nowrap;
    font-size:20px;
    justify-content:center;
    padding:calc(var(--unit-space)*3);
    align-items:center;
}

.me img{
    z-index:2;
    position:relative;
}

#works header{
    width: 100%;
    justify-content: center;
}

#works p{
    color:var(--light-color-text3);
}

#works .container{
    flex-direction:column;
}

.stacks{
    display:flex;
    gap:calc(var(--unit-space)*1);
    flex-wrap: wrap;
}

.stack{
    color:var(--light-color-text3);
    border: solid 1px var(--rim2);
}

.info{
    width:100%;
    height:100%;
    display:flex;
    flex-direction: column;
    gap:calc(var(--unit-space)*4);
}

.site{
    width:100%;
    height:100%;
    z-index: 2;
}

.card-content{
    display:flex;
    flex-direction:column-reverse;
    gap:calc(var(--unit-space)*5);
}

.website{
    width:100%;
    height:auto;
    aspect-ratio:16/9;
    position:relative;
    /* border:solid 2px var(--purple-color); */
}

iframe{
    top:0;
    left:0;
    position:absolute;
    transform-origin:top left;
    width:400%;
    height:400%;
    border-radius: inherit;
    transform:scale(0.25);
}

.card{
    width:340px;
    position:sticky;
    /* box-shadow:0px 0px 10px 2px black; */
    border:solid 5px var(--dark-color);
    top:70px;
    display:flex;
    justify-content:space-between;
    flex-direction:column;
    height:max-content;
    padding:calc(var(--unit-space)*4);
    transition: 0.8s;
    background-color:white;
}

.card-background{
    position:absolute;
    right:0;
    height:42%;
    width:100%;
    top:0;
    background-color:var(--purple-color-light2);
}

#pb1{
    padding:calc(var(--unit-space));
}

.project-btn{
    background-color:transparent;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:calc(var(--unit-space)*2);
    height:32px;
    width:max-content;
    color:var(--purple-color-dark);
    white-space:nowrap;
    padding:calc(var(--unit-space));
    border-radius:var(--unit-space);
    border:1px var(--purple-color-dark) solid;
}

.card-cta{
    width:max-content;
    height:30px;
    display:flex;
    justify-content:flex-end;
    gap:calc(var(--unit-space)*2);
    z-index:2;
}

#works .heading2{
    text-align: center;
}

#works .content{
    display:flex;
    justify-content:center;
    align-items:center;
}

.me-profile{
    width:max-content;
    height:max-content;
    padding:calc(var(--unit-space)*4);
    background-color:#ffffff;
    display:flex;
    flex-direction:column;
    gap: calc(var(--unit-space)*3)
}

.logo img{
    -webkit-filter: invert(100%) brightness(200%);
    filter:invert(100%) brightness(200%);
}

img{
    pointer-events:none;
    width:100%;
    height:100%;
}

.padded{
    padding:calc(var(--unit-space)*20) 0px;
}

button{
    font-size:14px;
    font-weight:600;
}

a, button{
    cursor: pointer;
    font-family: "Orbitron", sans-serif;
}

button:hover{
    transform:scale(0.9);
    transition:.5s;
}

.main-header a{
    color:var(--light-color);
    text-decoration:none;
}

footer .content{
    flex-direction:column-reverse;
    gap: calc(var(--unit-space)*4)
}

footer nav ul{
    width:max-content;
    height:max-content;
    display:flex;
    flex-direction:column;
}

.profile{
    width:40px;
    height:40px;
    border-radius:50%;
    border: solid 1.5px var(--purple-color);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:2px;
    background-color:var(--dark-color);
}

.profile img{
    border-radius: inherit;
}

.navs{
    width:max-content;
    height:max-content;
    display:flex;
    justify-content:center;
    align-items:center;
    gap:calc(var(--unit-space)*5);
}

.location-img{
    width:20px;
    height:20px;
}

.location{
    display:flex;
    gap:calc(var(--unit-space)*2);
    color: var(--light-color-text2);
    justify-content:center;
    align-items: center;
    transform:rotate(90deg);
    transform-origin:right center;
    /* right:0px; */
}

.spot{
    width:calc(100% - 32px);
    height:max-content;
    top:20%;
    display:flex;
    pointer-events: none;
    justify-content:flex-end;
    align-items: center;
    position:absolute;
}

.flex{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:calc(var(--unit-space)*2);
}

#skills header{
    display:flex;
    width:100%;
}

.names{
    display:flex;
    justify-content:space-between;
}

#certifications{
    background-color:white;
}

#certifications .heading2{
    color:var(--dark-color);
}

#skills .container{
    flex-direction:column;
}

.skill-left{
    display:flex;
    width:100%;
    height:max-content;
    justify-content:center;
    align-items:center;
}

.skill-content{
    display: flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:calc(var(--unit-space)*6);
}

.skill-right{
    display:flex;
    width:100%;
    justify-content:center;
    align-items:center;
    flex-direction: column;
}

    .cards{
        position:relative;
        width:340px;
        display:flex;
        flex-direction:column;
        gap:calc(var(--unit-space)*20);
    }

.skill-box{
    width:350px;
    height: 350px;
    display:grid;
    overflow:hidden;
    /* border-top-left-radius:100px 50px; */
    /* border-bottom-right-radius:100px 50px; */
    position: relative;
    grid-template-columns:repeat(4, 1fr);
    grid-template-rows:repeat(4, 1fr);
    gap:calc(var(--unit-space)*2);
}

.skill-box::after{
    width:100%;
    content: "";
    height:100%;
    position:absolute;
    /* background:radial-gradient(#ffffff5b,transparent, transparent, #0000007b, #000000); */
}

    #card0{
        transform-origin: left top;
    }
    #card1{
        transform-origin: center top;
    }
    #card2{
        transform-origin: top right;
    }

.tool{
    display:flex;
    justify-content: center;
    align-items:center;
    gap:var(--unit-space);
    background-color:white;
    flex-direction: column;
    /* z-index:2; */
    position:relative;
    /* border-radius:calc(var(--unit-space)*2); */
}

/* .tool:after{
    width:100%;
    height:100%;
    content:" ";
    border-radius:inherit;
    background-color:yellow;
    position:absolute;
    left:20px;
    top:20px;
} */

.tool-icon{
    width:35px;
    height:35px;
}

@media (min-width:768px){
    .main-header .navs ul{
        display:flex;
    }

    .spot{
        width:calc(100% - 40px);
        top:40%;
    }

    .card{
        width:750px;
        height:450px;
        padding:calc(var(--unit-space)*6);
    }

    .cards{
        width:750px;
    }

    form{
        padding:calc(var(--unit-space)*5);
    }

    .card-content{
        flex-direction:row;
    }

    footer .content{
        flex-direction:row;
        align-items:center;
        gap:0;
        justify-content:space-between;
    }

    
    .hero p{
        font-size:5rem;
    }

    .heading1{
        font-size:11rem;
    }

    .info{
        width:35%;
        padding-right:calc(var(--unit-space)*4);
    }

    .site{
        width:65%;
        padding-left:calc(var(--unit-space)*3);
    }

    .container{
        padding:0 calc(var(--unit-space)*5);
    }

    footer nav ul{
        width:max-content;
        height:max-content;
        display:flex;
        flex-direction:row;
        gap:calc(var(--unit-space)*3);
    }

    .card-background{
        width:65%;
        height:100%;
    }

    .me{
        width:360px;
        height:360px;
    }

    .image{
        width:440px;
        height:440px;
    }

    #home .container{
        padding:calc(var(--unit-space)*5);
        justify-content:center;
        align-items:center;
    }

    .toast{
        width:300px;
    }

    .project-line{
        padding:calc(var(--unit-space)*2) calc(var(--unit-space)*5);
    }
}

@media(min-width: 1024px){  
    .heading1{
        font-size:16rem;
    }

    .pointer{
        display:flex;
    }
    .spot{
        width:calc(100% - 96px);
        top:40%;
    }

    .card{
        width:1000px;
        height:450px;
        padding:calc(var(--unit-space)*6);
    }

    .cards{
        width:1000px;
    }

     footer nav ul{
       align-items:center;
    }

    #skills .content{
        flex-direction: row;
    }

    main{
        gap:calc(var(--unit-space)*35)
    }

    #about .content{
        flex-direction:row;
        gap:0;
    }

    #about .left, #about .right{
        width:50%;
        display:flex;
        height:max-content;
    }
    
    .heading2{
        font-size:5rem;
    }

    .heading3{
        margin-bottom:calc(var(--unit-space)*3);
    }

    .skill-left, .skill-right{
        width:50%;
    }

    .hero p{
        font-size:5.5rem;
        /* -webkit-text-stroke:0.5px; */
        -webkit-text-stroke-color:black;
        word-spacing:0.5rem;
        letter-spacing:1px;
    }

    #home .container{
        padding:calc(var(--unit-space)*12);
    }

    .container{
        padding:0 calc(var(--unit-space)*12);
    }

    .padded .container{
        padding:0 calc(var(--unit-space)*12);
    }
}

@keyframes slideLeft {
    0%{
        transform: translateX(30px);
        opacity:0;
    }
    100%{
        transform: translateX(0px);
        opacity:1;
    }
}

@keyframes fade-in {
    0%{
        opacity: 0;
    }
    100%{
        opacity:1;
    }
}
