/* For Portfolio heading */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

/* For other headings */
@import url("https://fonts.googleapis.com/css2?family=Syne:wght@400..800&display=swap");

:root{
    --header-height: 3.5rem;
    /* color */
    --body-color: hsl(216, 18.07%, 16.27%);
    --body-light-color: hsl(216.92, 10.24%, 24.9%);
    --hue: 216;
    --text-color: hsl(0, 0%, 100%);
    --text-dark-color: hsl(0, 0%, 85.1%);
    --text-blue-color: hsl(182.65, 100%, 35.49%);

    /* fonts type and size*/
    --header-font: "Raleway", sans-serif;
    --body-font: "Syne", sans-serif;
    --biggest-font-size: 3rem;
    --big-font-size: 1.5rem;
    --h1-font-size: 1.5rem;
    --h2-font-size: 1.25rem;
    --noraml-font-size: 0.938rem;
    --small-font-size: 0.813rem;

    /* Font weight */
    --font-regular: 400;
    --font-semi-bold: 600;
    --font-bold: 700;

    /* z index */
    --z-tooltip: 10;
    --z-fixed: 100;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--body-color);
    color: var(--text-color);
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
}

input, textarea{
    border: none;
    outline: none;
}

h1, h2{
    font-family: var(--body-font);
}

/* header and navigation */

.header{
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    background-color: var(--body-light-color);
    z-index: var(--z-fixed);
}

.nav__close,
.nav__toggle {
    font-size: 1.5rem;
    color: var(--title-color);
    cursor: pointer;
}

.nav__close, .nav__toggle {
    position: absolute;
    right: -10rem;
}

@media screen and (max-width: 500px) {
    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        background-color: hsl(var(--hue), 70%, 4%, .2);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        width: 50%;
        height: 100%;
        padding: 7rem 3rem;
        transition: right .4s;
    }
    .nav__close{
        position: absolute;
        top: 1rem;
        right: 1.5rem;
    }
    .nav__toggle{
        position: static;
    }
}

.show-menu {
    right: 0;
}

.nav{
    position: relative;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 2rem;
}

.nav__logo{
    color: var(--text-color);
    font-family: var(--header-font);
    font-weight: var(--font-semi-bold);
    font-size: var(--h2-font-size);
}

.nav__list{
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.nav__link{
    position: relative;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--noraml-font-size);
    margin: 0.7rem;
}

.nav__link:hover{
    color: var(--text-blue-color);
    transition: color .5s;
}

.nav__link::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: var(--text-blue-color);
    position: absolute;
    left: 0rem;
    top: 1rem;
    transition: width .3s;
}

.nav__link:hover::after {
    width: 35%;
}


/* main */
/* .main{
    height: 100vh;
} */

.home__container {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-inline: 20rem;
}
.home__widget{
    position: absolute;
    height: 10rem;
    width: 10rem;
    background-color: var(--text-dark-color);
    border-radius: 50%;
    left: -5rem;
}

.home__data{
    display: flex;
    font-family: var(--body-font);
    flex-direction: column;
    gap: 0.5rem;
}

.home__social{
    display: flex;
    flex-direction: row;
    position: relative;
    top: 2rem;
    gap: 1.3rem;
    font-size: var(--big-font-size);
}

.home__greeting{
    font-size: var(--noraml-font-size);
}
.home__greeting span{
    color: var(--text-blue-color);
}

.home__name{
    font-size: var(--biggest-font-size);
}

.home__profession{
    font-size: var(--noraml-font-size);
}

.home__image img{
    top: 40vh;
    position: absolute;
    height: 15rem;
    z-index: 100;
}

.home__widget{
    top: 40vh;
}

.rect_one, .rect_two{
    position: absolute;
    height: 18rem;
    width: 18rem;
}

.rect_one{
    top: 30vh;
    right: 10rem;
    /* background-color: #47A4A9; */
    background-image: url("assets/profile2.jpg");
    /* transform: rotate(20deg); */
    z-index: 50;
    /* border: solid black 0.4rem; */
    /* opacity: 0.8; */
    background-size: cover; /* Ensures the image covers the div */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    border-radius: 50%;
}

.rect_two{
    top: 30vh;
    right: 8rem;
    background-color: var(--body-light-color);
    /* background-color: #FFB1B1; */
    transform: rotate(20deg);
    z-index: 1;
    border-radius: 5px;
    /* border: solid black 0.4rem; */
    /* opacity: 0.8; */
}

/* About Me section */

.about__container{
    position: relative;
    height: 100vh;
    display: flex;
    padding-inline: 10rem;
    font-family: var(--body-font);
    flex-direction: row;
    gap: 15rem;
    justify-content: center;
    align-items: center;
    /* top: 5rem; */
    /* margin: 5rem; */
}

.about__container h1{
    position: absolute;
    top: 6rem;
}

.about__profile img{
    height: 50vh;
    border-radius: 10px;
}

.about__data{
    position: relative;
    /* display: grid; */
    grid-template-columns: 1;
    grid-template-rows: 2;
    /* display: flex;
    flex-direction: column; */
    /* gap: 2rem; */
    /* top: -3.5rem; */
    min-width: 250px;
    height: 50vh;
    flex-wrap: wrap;
}
.about__heading span{
    
    color: var(--text-blue-color)
}
.about__heading{
    display: flex;
    justify-content: center;
    gap: .5rem;
    position: relative;
    top: calc(var(--header-height) + 10px);
}

.about__heading h1{
    font-size: var(--biggest-font-size);
}



.about__data button{
    /* position: absolute; */
    bottom: -1rem;
    background-color: var(--text-blue-color);
    border: none;
    outline: none;
    color: var(--text-color);
    text-align: center;
    margin-top: 1rem;
    padding: 1rem 1rem;
    font-size: 1rem;
    border-radius: 20px;
}

.about__data button:hover{
    cursor: pointer;
}

/* Blur header */
.blur-header::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    /* background-color: hsla(216.92, 70%, 4%, 0.2); */
    background-color: hsl(216.92, 10.24%, 24.9%, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px); 
    top: 0;
    left: 0;
    z-index: -1;
}

/* Scroll bar */
::-webkit-scrollbar{
    width: .6rem;
    background-color: hsl(var(--hue), 20%, 20%);
}

::-webkit-scrollbar-thumb{
    background-color: hsl(var(--hue), 20%, 30%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover{
    background-color: hsl(var(--hue), 20%, 40%);
}

/* Skills container */
.skills__container{
    position: relative;
    /* height: 60vh; */
    display: grid;
    grid-template-columns: 3fr 1fr;
    background-color: var(--body-light-color);
    margin: 5rem;
    padding: 2rem;
    gap: 3rem;
    border-radius: 20px;
    font-family: var(--body-font);
}

.skills__img{
    height: 3rem;
    margin: 1rem;
}

.skills__data{
    /* grid-column: 1/4;
    display: grid;
    grid-template-rows: repeat(7, 1fr); */
    /* align-items: center; */
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 160px;
}

.skills__data button{
    background-color: var(--text-blue-color);
    border: none;
    outline: none;
    color: var(--text-color);
    width: 80px;
    height: 2.5rem;
    border-radius: 1rem;
}

.skills__data button:hover{
    cursor: pointer;
}

/* .skills__box{
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    flex-direction: row;
    align-content: flex-start;
} */

.skills__box{
    display: grid;
    grid-column: 5/7;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    grid-template-rows: repeat(4, 1fr);
}

/* projects */

.projects__heading{
    display: flex;
    justify-content: center;
    position: relative;
    top: calc(var(--header-height) + 15px);
}

.projects__container{
    height: 100vh;
    position: relative;
    display: flex;
    padding-inline: 10rem;
    font-family: var(--body-font);
    flex-direction: column;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-block: 5rem;
}

.project{
    height: 15rem;
    width: 15rem;
    background-color: var(--body-light-color);
}

/* .projects{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    row-gap: 1.5rem;
} */

.projects{
    column-gap: 5vw;
    display: grid;
    row-gap: 3rem;
    grid-template-columns: repeat(3, 1fr);
}

.project{
    width: 350px;
    height: 200px;
    background-size: 100% 100%; /* Scales the image to fill the div */
    background-position: center; /* Centers the image */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    cursor: pointer; /* This makes the cursor a hand when hovering */
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.project:hover {
    background-color: hsl(218, 23%, 16%); /* Change background color on hover */
    color: white; /* Change text color on hover */
    transform: scale(1.05); /* Slightly scale up the div on hover */
}

#project_1{
    background-image: url('./assets/projects/watermark.png');
}
#project_2{
    background-image: url('./assets/projects/text_to_morse.png');
}#project_3{
    background-image: url('./assets/projects/type_master.png');
}#project_4{
    background-image: url('./assets/projects/ctae_map.png');
}#project_5{
    background-image: url('./assets/projects/portfolio.png');
}


/* .projects{
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
} */

/* Contact */

.contact{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    /* margin-block: 5rem; */
    height: 100vh;
    font-family: var(--body-font);
    gap: 5rem;
}
.contact__form{
    display: grid;
    justify-content: center;
    flex-direction: column;
    grid-template-columns: repeat(2, 1fr);
}

.contact__group, .contact__input{
    grid-column: 1/3;
}

.contact__group, .contact__form{
    gap: 1rem;
}

.contact__form{
    position: relative;
}

.contact__input{
    padding: 1.25rem;
    background-color: var(--body-light-color);
    color: var(--title-color);
    font-weight: var(--font-semi-bold);
}

.contact__input::placeholder{
    color: var(--text-color-light);
}

.contact__area{
    height: 10rem;
    resize: none;
}
.contact__button{
    background-color: var(--text-blue-color);
    border: none;
    outline: none;
    padding: 1rem;
    border-radius: 20px;
    color: var(--text-color);
    width: 8rem;
    margin-top: 1rem;
    cursor: pointer;
}

.contact__social{
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 3rem;
}

.contact__social-link{
    color:var(--title-color);
    display: inline-flex;
    column-gap: .25rem;
    align-items: center;
    transition: color .4s;
}

.contact__social-link i{
    font-size: 1.5rem;
}

.contact__social-link span{
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
}

.contact__social-link:hover{
    color: var(--first-color-light);
}

.contact__message{
    position: absolute;
    left: 0;
    bottom: -2rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--title-color);
}

/* Media */