/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Grechen+Fuemen&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* CSS VARIABLES */
:root{
/* Colors */
 --hue:265;
 --first-color: hsl(var(--hue), 80%, 49%);
 --first-color-alt: hsl(var(--hue), 76%, 45%);
 --white-color: hsl(0, 0%, 100%);
 --black-color: hsl(0, 0%, 0%);
 --text-color: hsl(var(--hue), 2%, 66%);
 --body-color: hsl(var(--hue), 100%, 1%);
 --container-color: hsl(var(--hue), 2%, 10%);
 --conic-gradiant: conic-gradiant(from 150deg at 50% 45%,
                  hsl(var(--hue), 80%, 20%), 0deg,
                  hsl(var(--hue), 80%, 48%), 140deg,
                  hsl(var(--hue), 80%, 20%), 360deg);


/* Font and typography */
--body-font: 'Montserrat', sans-serif;
--biggest-font-size: 2.25rem;
--second-font: 'Grechen Fuemen', cursive;
--h1-font-size: 1.5rem;
--h2-font-size: 1.25rem;
--h3-font-size: 1rem;
--normal-font-size: .938rem;
--small-font-size: .813rem;
--smaller-font-size: .75rem;

/* Font weight */
--font-regular: 400;
--font-medium: 500;
--font-semi-bold: 600;
--font-bold: 700;

/* z index */
--z-tooltip: 10;
--z-fixed: 100;
/* Responsive Typography */
@media screen and (min-width: 1168px){
    :root{
        --biggest-font-size: 4rem;
        --h1-font-size: 2.25rem;
        --h2-font-size: 1.5rem;
        --h3-font-size: 1.25rem;
        --normal-font-size: 1rem;
        --small-font-size: .875rem;
        --smaller-font-size: .813rem;
    }
}
}
/* Base */
* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}
html{
    scroll-behavior: smooth;
}
body,
input,
textarea,
button{
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}
body{
    background-color: var(--body-color);
    color: (var(--white-color));
   
}
/* Global Styles */
button{
    cursor: pointer;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    transition: var(--transition);
}
a{
    color: var(--white-color);

}
input,
button,
textarea{
    border:none;
    outline: none;
}
h1, h2, h3, h4{
    color: var(--white-color);
    font-weight: var(--font-semi-bold);

}
ul{
    list-style: none;
}
a{
    text-decoration: none;
}
img{
    display: block;
    max-width: 100%;
    height: auto;
}
/* Reusable Classes */
.container{
    max-width: 1168px;
    margin-inline: 1.5rem;
}
.grid{
    display: grid;
    gap:1.5rem;
}
.section{
    padding-block: 2rem 3rem;
}
.section__title{
    font-size: var(--h2-font-size);
    text-align: center;
    margin-bottom: 2rem;
}
.main{
    overflow: hidden;
}

/* Nav */
.nav{
    position: fixed;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    background-color: hsla(0, 0%, 98%, .1);
    width: 88%;
    margin-inline: auto;
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 1rem 2rem;
    border-radius: 4rem;
    z-index: var(--z-fixed);
}

.nav__list{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav__link{
    width: 2.5rem;
    height: 2.5rem;
    background-color: trans;
    color: var(--white-color);
    font-size: 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background-color .6s;
}   
/* Active LInk */
.active-link{
    background-color: var(--first-color);
}

/* HOme */

/* profile */
.profile {
    position: relative;
  background: var(--conic-gradiant, #e0e0e0); /* fallback if variable missing */
  height: 415px;
  border-radius: 2rem;
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
  width: 100%;
  max-width: 380px; /* ensures good size on large screens too */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  }
  
  /* Profile Image */
  .profile__img {
    width: 350px;
    border-radius: 1.5rem;
    z-index: 1;
  }
  
  /* Overlay Data */
  .profile__data {
    position: absolute;
    bottom: 40px; /* adjust this to move up/down */
    left: 50%;
    transform: translateX(-50%);
    background-color: hsla(0, 0%, 100%, 0.5);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    padding: 1.5rem 1rem;
    border-radius: 1.5rem;
    border: 2px solid hsla(0, 0%, 100%, 0.5);
    z-index: 2;
    text-align: center;
  }
  
  

.profile__name{
    font: var(--font-regular) var(--biggest-font-size) var(--second-font);
    margin-bottom: 1rem;
}

.profile__buttons{
    display: grid;
    column-gap: .5rem;
    grid-template-columns: repeat(2, 1fr);
}
.profile__buttons .button{
    padding: .75rem 0;
}

/* info */
.info,
.about,
.skills{
    background-color: var(--container-color);
    padding: 2rem 1.5rem;
    border-radius: 2rem;
    color: var(--white-color);

}
.info__circle{
    width: 2rem;
    height: 2rem;
    background-color: var(--first-color);
    border-radius: 50%;
}
.info__name{
    font: var(--font-regular) var(--h1-font-size) var(--second-font);

}
.info__data{
    display: flex;
    justify-content: center;
    align-items: center;
    column-gap: .5rem;
}
.info__image{
    background: var(--conic-gradiant);
    height: 180px;
    border-radius: 2rem;
    display: grid;
    margin-block: 1.5rem;
    overflow: hidden;
}

.info__img{
    width: 140px;
    justify-self: center;
    align-self: flex-end;
}
.info__description{
    font-size: var(--small-font-size);
    margin-bottom: 2rem;
}
.info .button{
    width: 100%;
}


/* about */
.about__name{
    font-size: var(--normal-font-size);
    font-weight: var(--font-regular);
    margin-bottom: 1rem;
}
.about__social{
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
    margin-block: 2rem;
}
.about__link{
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--white-color);
    color: var(--black-color);
    font-size: 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background-color .4s, color .4s;
}
.about__link:hover{
    background-color: var(--conic-gradiant);
    color: var(--white-color);
}

.about__image{
    background: var(--conic-gradiant);
    height: 180px;
    border-radius: 2rem;
    display: grid;
    overflow: hidden;
}
.about__image img{
    border-radius: 1rem;
}

.about__img{
    width: 250px;
    border-radius: 1rem;
    justify-self: center;
    transform: translateY(-2.5rem);
}
.about__note{
    font-size: var(--small-font-size);
    margin-block: 1rem 2rem;
}
.about .button{
    width: 100%;
}


/* skills */
.skills__title{
    font-size: var(--h2-font-size);
}
.skills__item{
    width: 1.5rem;
    transition: transform .4s;
}
.skills__item:hover{      
    transform: translateY(-.25rem);
}
.skills__items{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    margin-block: 1.5rem;
}
.skills__description{
    font-size: var(--small-font-size);
}

/* button */
.button{
    display: inline-block;
    justify-content: center;
    background-color: var(--first-color);
    color: var(--white-color);
    font-weight: var(--font-semi-bold);
    padding: 1.25rem 2.5rem;
    border-radius: 4rem;
    transition: background-color .4s;
}

.button__black{
 background-color: var(--black-color);
}

.button:hover{
    background-color: var(--font-color-alt);
}
/* Projects */
.projects__container{
    background-color: var(--body-color);
}
.projects__card{
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 2rem;
}

.projects__image{
    display: block;
    overflow: hidden;
    border-radius: 1.5rem;
    margin-bottom: 1.5rem;
}
.projects__img{
    transition: transform .4s;
}

.projects__name{
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}
.projects__description{
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.projects__skill{
    width: 1rem;
    transition: transform .4s;
}
.projects__skill:hover{
    transform: translateY(-.25rem);
}
.projects__skills{
    width: max-content;
    height: 34px;
    background-color: var(--black-color);
    padding-inline: .75rem;
    color: var(--white-color);
    display: flex;
    align-items: center;
    border-radius: 4rem;
    margin-right: .5rem;
    column-gap: .75rem;
    margin-bottom: 1rem;
}
.projects__buttom{
    color: var(--white-color);
    display: inline-flex;
    align-items: center;
    column-gap: .5rem;
    transition: color .4s;
}

.projects__buttom i{
    font-size: 1.25rem;
}
.projects__buttom span{
    font-weight: var(--font-medium);
}
.projects__buttom:hover .projects__img{
 transform: scale(1.2);
}
/* Services */
.services__card{
    background-color: var(--container-color);
    padding: 4rem 1.5rem 3.5rem 1.5rem;
    border-radius: 2rem;
    color: var(--white-color);
    transition: background-color .4s;
}
.services__icon{
    display: inline-block;
    position: relative;
    margin-bottom: 2rem;
    top: -2rem;
    right: -2rem;
}
.services__icon i{
    font-size: 2.5rem;
    
    z-index: var(--z-tooltip);
}
.services__circle{
    width: 3rem;
    height: 3rem;
    background-color: var(--first-color);
    border-radius: 50%;
    position: absolute;
   
    transition: transform .4s;
}
.services__name{
    font-size: var(--h3-font-size);
    margin-bottom: 2rem;
}
.services__description{
    color: var(--text-color);
    margin-top: 2rem;
}
.services__card:hover .services__circle{
    transform: translate(.25rem, -.25rem);
}
/* Experience */
.experience__container{
    row-gap: 2rem;
}
.experience__card{
    display: grid;
    row-gap: 1rem;
}
.experience_company{
    font-size: var(--h2-font-size);
}
.experience__data{
    background-color: var(--container-color);
    padding: 1.5rem;
    border-radius: 1.5rem;
}
.experience__profession{
    font-size: var(--h3-font-size);
    margin-bottom: .5rem;
}
.experience__date{
    display: block;
    font-size: var(--small-font-size);
    margin-bottom: 1rem;
}
.experience__description{
    color: var(--text-color);
}

/* Contact */
.contact{
    color: var(--white-color);
}
.contact__group,
.contact__form{
    gap: 1rem;
}
.contact__form{
    position: relative;
}
.contact__input{
    background-color: var(--container-color);
    padding: 1rem;
    border-radius: 1rem;
    border: none;
    color: var(--white-color);
}
.contact__input::placeholder{
    color: var(--text-color);
}
.contact__input:autofill{
    transition: background-color 6000s, color 6000s;
}
.contact__area{
    height: 10rem;
    border-radius: 1.5rem;
    resize: none;
}
.contact__button{
    margin-top: 1.5rem;
    cursor: pointer;
}
.contact__message{
    position: absolute;
    color: var(--white-color);
    left: 0;
    bottom: 4.5rem;
    font-size: var(--small-font-size);
}
/* Footer */
.footer{
    padding-block: 2rem 8rem;
}
.footer__content {
    justify-items: center;
}

.footer__container{
    row-gap: 2.5rem;
}

.footer__logo{
    color: var(--white-color);
    font: var(--font-regular) var(--biggest-font-size) var(--second-font);
    text-align: center;
    display: block;
    margin: 0 auto;
}
.footer__links{
    display: flex;
    justify-content: center;
    column-gap: 2rem;
}

.footer__link{
    color: var(--white-color);
    transition: color .4s;
}

.footer__link:hover{
    color: var(--text-color);
}

.footer__social{
    display: flex;
    justify-content: center;
    column-gap: 1.5rem;
}

.footer__social-link{
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--first-color);
    color: var(--white-color);
    font-size: 1.5rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: background-color .4s, color .4s;
}

.footer__social-link:hover{
    background-color: var(--white-color);
    color: var(--black-color);
}
.footer__copy{
    display: block;
    margin-top: 4.5rem;
    text-align: center;
    color: var(--text-color);
    font-size: var(--small-font-size);
}

/* Scroll Bar */

::-webkit-scrollbar{
    width: .6rem;
    background-color: hsl(0,0%,20%);
    border-radius: .5rem;
}
::-webkit-scrollbar-thumb{
    background-color: hsl(0,0%,30%);
    border-radius: .5rem;
}
::scroll-bar-thumb:hover{
    background-color: hsl(0,0%,30%);
}

/* Scroll Up */

.scrollup{
    position: fixed;
    right: 1rem;
    bottom: -50%;
    background-color: hsla(0, 0%, 98%, .1);
    display: inline-flex;
    padding: 6px;
    color: var(--white-color);
    cursor: pointer;
    border-radius: .5rem;
    font-size: 1.25rem;
    backdrop-filter: blur(16px);
    --webkit-backdrop-filter: blur(16px);
   z-index: var(--z-tooltip);
   transition: bottom .4s, transform .4s;
}

.scrollup:hover{
    transform: translateY(-.5rem);
}
/* Show Scroll up */

.show-scroll{
    bottom: 8rem;
}

/* Breakpoints */

/* For Small Devices */
@media screen and (max-width: 320px) {
    .container{
        margin-inline: 1rem;
    }
    .nav{
        padding: 1rem;
    }
    
}


/* For Medium Devices */
@media screen and (min-width: 540px){
    .nav{
        width: max-content;
    }
    .nav__list{
        column-gap: 1.25 rem;
    }

    .home__container,
    .projects__container,
    .services__container,
    .experience__container,
    .contact__container{
        grid-template-columns: 380px;
        justify-content: center;
    }
}

@media screen and (min-width: 768px){
    .home__container{
        grid-template-columns: repeat(2,380px);
        align-items: flex-start;
    }
    .profile{
        height: 100%;
    }
    .skills{
        height: 70%;
        
    }
    .skills__title{
        margin-top: 2rem;
        margin-left: 1rem;
    }
    .skills__items{
        margin-left: 1rem;
        margin-top: 4rem;
    }
    .skills__item{
        height: 50px;
        width: 50px;
    }
    .skills__description{
        margin-left: 1rem;
        margin-top: 4rem;
    }
    .projects__container,
    .services__container{
        grid-template-columns: repeat(2, 380px);
    }
    .experience__container{
        grid-template-columns: initial;
    }
    .experience__card{
        grid-template-columns: 500px;
    }
    .footer__container{
        grid-template-columns: repeat(2, 1fr);
        align-items: end;
        justify-content: space-between;
    }
    .footer__content{
        column-gap: 3.5rem;
    }
    .show-scroll{
        bottom: 3rem;
    }

} 




/* For Large Devices */
@media screen and (min-width: 1200px){
    .nav{
        color: var(--white-color);
    }
    .container{
        margin-inline: auto;
    }
    .section{
        padding-block: 3rem 4rem;
    }
    .section__title{
        font-size: var(--h1-font-size);
        margin-bottom: 4rem;
    }
    .home__container{
        grid-template-columns: repeat(300px, 600px, 300px);
        align-items: stretch;
        gap: 1rem;
        margin-bottom: -22rem;
    }
    .profile{
        grid-column: 2/3;
        position: relative;
        grid-row: 1/3;
        overflow: hidden;
        
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        height: 1200px;
        margin-right: 1rem;
    }
    .profile__img{
        width: 560px;
    }
 
    .profile__data{
        position: absolute;
        left: 50%;
        height: 250px;
        top: 32rem;
        transform: translateX(-50%);
        text-align: center;
        width: 370px;
        padding: 1.5rem;
        border-radius: 2rem;
    }
    .info{
        grid-column: 1/2;
        grid-row: 1/2;
        height: 500px;
        position: relative;
        width: 300px;
    }
    .info__name{
        font-size: var(--h2-font-size);
    }
    .about{
        
        grid-column: 3/4;
        grid-row: 1.3;
        align-content: center;
        height: auto;
        width: 300px;
    }
    .about__image{
        height: 210px;
    }
    .about__img{
        transform: translateY(-1rem);
    }
    .skills{
        margin-top: 1rem;
        position: absolute;
        grid-column: 1/2;
        grid-row: 2/3;
        width: 300px;
        left: 14%;
        top: 34rem;
    }
    .skills__title{
        font-size: var(--h3-font-size);
        margin-top: 1rem;
    }
    .skills__items{
        margin-top: 2rem;
    }
    .projects__container{
        grid-template-columns: repeat(3,368px);
        gap: 2rem;
    }
    .projects__card{
        padding: 2rem;
    }
    .services__container{
        grid-template-columns: repeat(3, 368px);
        gap: 2rem;
    }
    .services__card{
        padding-block: 6rem 5rem;

    }

    .services__icon i{
        font-size: 3.5rem;
    }
    .services__circle{
        width: 4rem;
        height: 4rem;
        right: -1.5rem;
        top: -1.5rem;
    }
    .experience__container{
        row-gap: 4rem;
    }
    .experience__card{
        grid-template-columns: 500px;
    }
    .experience_company{
        font-size: var(--h1-font-size);

    }
    .experience__data{
        padding: 2rem;
        border-radius: 2rem;
    }
    .contact__container{
        grid-template-columns: 620px;
    }
    .contact__group{
        grid-template-columns: repeat(2, 1fr);
    }
    .contact__area{
        height: 15rem;
    }
    .contact__button{
        width: max-content;
        justify-self: center;
    }
    .footer{
        padding-top: 3rem;
    }
    .footer__links{
        column-gap: 3rem;
    }
    .footer__copy{
        margin-top: 7rem;
    }

}

@media screen and (min-width: 1500px){

    .nav{
        width: max-content;
        height: max-content;
        padding: 2rem 1rem;
        left:initial;
        right: 3rem;
        top: 0;
        bottom: 0;
        margin-block: auto;
        color: var(--white-color);
    }

    .nav__list{
        flex-direction: column;
        row-gap: 1.25rem;

    }
    .footer{
        padding-block: 3rem;
    }
    .scrollup{
        right: 4rem;
    }

}









