
  @import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;1,100;1,200;1,300;1,400;1,500&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --lighting-color: #0089b7;
    --dark-color: #003d62;
    --darker-color: #003251;
    --secondary-color: #fff700;
    --purple-color : #a363aa;
    --white-color:#ffffff;
    --footer-color:#000000;
    --grey0-color:#9C9C9C;
    --grey1-color:#212529;
    --grey2-color:#515151;
    --grey3-color:#27272E;
    --grey4-color:#03213f;
    --grey5-color:#c0bfba;
    --grey6-color:#62393c;
    --golden-color:#8d4b00;
    --gradient-1: linear-gradient(to bottom right, #62393c, #181e41);
  --gradient-2: linear-gradient(
    to bottom,
    var(--primary-color),
    var(--secondary-color)
  );
}

/* 1rem= 16px */
/* 1rem = 10px = 62.5% */
html{
    font-size: 62.5%;
}
html, body{
    font-family: 'Inter', sans-serif;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    line-height: 1.4;
    scroll-behavior: smooth;
    color: #fff;
    background: var(--darker-color);
}
body{
    font-size: 1.4rem;
}

/* HERO NAV-SECTION */
.container{
    max-width: 1400px;
    margin: 0 auto;
    /* padding: 0 2rem; */
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.4rem;
}

header{
    background: var(--lighting-color);
}

a{
    text-decoration: none;
    list-style: none;
    color: #fff;
}
nav ul{
    display: flex;
    gap: 4rem;
}
nav li{
    font-size: 1.8rem;
    border-bottom: .4rem solid transparent;
    transition: .2s ease-in-out;
}
nav li:hover{
    border-bottom: .4rem solid var(--secondary-color);
    transition: .2s ease-in-out;
}

.logo{
    font-size: 2rem;
    font-weight: 700;
}

/* Hero Section */
#hero{
    /* background-color: var(--dark-color); */
    background-color: var(--dark-color);
    padding: 2rem 0;
    border-bottom: 4px solid var(--lighting-color);
}
#hero .container{
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 600px;
    overflow: hidden;
}
#hero .hero_image{
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero_content{
    display: grid;
    place-items: center;
}
#hero h1{
    font-size: 3rem;
    font-weight: bold;
}
.hi_text{
    font-size: 6rem;
    font-weight: bold;
    color: var(--secondary-color);
}
.name_text{
    font-size: 5rem;
}
/* Download CV */
#hero a{
    background-color: var(--lighting-color);
    border: 1px solid #003d62;
    border-radius: 15px;
    padding: 5px 20px;
    text-align: center;
    font-weight: 400;
}
#hero h2{
    font-size: 4rem;
    font-weight: bold;

    overflow: hidden; /* Ensures the content is not revealed until the animation */
    border-right: 0.15em solid orange; /* The typwriter cursor */
    white-space: nowrap; /* Keeps the content on a single line */
    margin: 0 auto; /* Gives that scrolling effect as the typing happens */ /* Adjust as needed */
    animation: typing 5s steps(40, end), blink-caret 0.75s step-end infinite;
}
@keyframes typing{
    from{
        width: 0;
    }
    to{
        width: 100%;
    }
}
@keyframes blink-caret{
    from,to{
        border-color: transparent;
    }
    50%{
        border-color: orange;
    }
}
/* About Section */
#about{
    background-color: var(--darker-color);
    padding: 3rem 0;
    border-bottom: 4px solid var(--lighting-color);
}
#about .container{
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 5rem;
    padding: 1rem 5rem;
    margin-bottom: 3rem;
}
#about h2{
    font-size: 6rem;
    text-align: center;
    padding: 3rem 0;
}
/* #about .about_img img{
    height: 330px;
    width: 550px;
} */
/* About Image side */
.about_img{
    position: relative;
}
#about .about_main_img{
    border-radius: 1.7rem;
    height: 35rem;
    width: 45rem;
}
.about_img span {
    background-color: #fff;
    border-radius: 50%;
    bottom: -33px;
    height: 19rem;
    position: absolute;
    right: 33px;
    width: 19rem;
}
.about_img span img{
    height: 200px;
    position: absolute;
}
#about .about_img .work-emoji {
    bottom: 35px;
    position: absolute;
    right: 198px;
    width: 6rem !important;
    height: 7rem;
    z-index: 10;
}
#about .about_img .work-emoji {
    position: absolute;
    z-index: 10;
    width: 6rem !important;
    bottom: 16px;
    right: 29px;
  
    @media (max-width: 1020px) {
      bottom: 25px;
      right: 245px;
    }
  
    @media (max-width: 880px) {
      bottom: -10px;
      right: 5px;
    }
  
    @media (max-width: 750px) {
      display: none;
    }

    @media (max-width: 425px) {
        display: none;
      }
  }
#about .about_img span img{
    width: 19rem;
    animation: rotate 9s linear infinite;
    bottom: -.8rem;
}
@keyframes rotate {
    to {
      transform: rotate(360deg);
    }
  }
#about .about_img span {
    bottom: -53px;
    right: -40px;
}
/* ---------------- */
#about .about_text{
    display: flex;
    flex-direction: column;
}
.about_intro{
    font-size: 2.2rem;
    font-weight: 500;
    color: var(--grey5-color);
}
.about_intro2{
    font-size: 2rem;
}

/* Project Section */
#project{
    background: var(--dark-color);
    padding: 2rem 0;
    border-bottom: 4px solid var(--lighting-color);
}
#project .container{
    padding-bottom: 3rem;
}

#project h2{
    font-size: 6rem;
    text-align: center;
    padding: 3rem 0;
}

.project_container{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 6rem;
}
.grid_item{
    display: grid;
    place-items: center;
}
.card{
    width: 320px;
    display: flex;
    flex-direction: column;
    border-radius: .5rem;
    overflow: hidden;
    transition: .2s ease-in-out;
}
.card:hover{
    transform: scale(1.05);
    transition: 1s ease-in-out;
}
.card:hover img{
    transform: scale(1.05);
    transition: .3s ease-in-out;
    opacity: .8;
}
.card:hover .card_content{
    background: #fff;
    color: var(--dark-color);
    transform: translateY(0px);
}
.card_content{
    padding: 2rem;
    position: relative;
    top: -6rem;
    margin-bottom: -6rem;
    transition: .5s ease-in-out;
    transform: translateY(100px);
}
.card_content h3{
    text-align: center;
}

/* Contact Section */
#contact{
    background: var(--darker-color);
    padding: 2rem 0;
}

#contact h2{
    font-size: 6rem;
    text-align: center;
    margin: 1rem 0;
}
/* #contact hr{
    border: none;
    width: 900px;
    height: 5px;
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 10px;
    margin-left: 250px;
} */

#contact .container{
    height: 85vh;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    justify-content: center;
    margin-top: 1rem;
}
.top_contact{
    max-width: 1000px;
    display: grid;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 5rem;
    margin-bottom: 5rem;
}
.contact_way{
    display: flex;
    gap: 1rem;
    align-items: center;
}
.contact_way a{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transition: .2s ease-in-out;
}
.contact_way a:hover{
    scale: 1.02;
    transition: .2s ease-in-out;
}
.contact_way i{
    font-size: 3rem;
}
.contact_way h3{
    font-size: 3rem;
    font-weight: bold;
}

.bottom_contact{
    max-width: 700px;
    display: grid;
    margin: 0 auto;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 2rem;
}

/* Footer Section */
footer{
    background-color: var(--footer-color);
    padding: 2rem;
    color: #fff;
    font-size: 1.6rem;
    text-align: center;
}

/* Media Query */
@media (max-width: 786px){
    html{
        font-size: 40%;
    }
    .logo{
        font-size: 5rem;
    }
    nav ul a li{
        font-size: 3rem;
        gap: 1rem;
    }
    #hero .container{
        flex-direction: column;
    }
    .hero_image{
        display: grid;
        place-items: center;
    }
    #contact .container{
        height: 70vh;
        padding: 3rem;
    }
    #about .container{
        flex-direction: column;
        margin: 0rem 2rem;
    }
    .about_img{
        display: grid;
        place-items: center;
    }
    #about .about_img span{
        display: none;
        height: 100px;
    }
    #about .about_img .work-emoji{
        display: none;
        height: 100px;
    }
}

@media (max-width: 500px){
    html{
        font-size: 32%;
    }
    .logo{
        font-size: 5rem;
    }
    nav ul a li{
        font-size: 3rem;
        gap: 1rem;
    }
    #hero .container{
        flex-direction: column;
    }
    #hero a{
        background-color: #0089b7;
        padding: 10px 25px;
        font-size: 18px;
        margin-top: 20px;
        margin-bottom: 20px;
        border-radius: 30px;
    }
    .hero_image {
        height: 515px;
        width: 400px;
        margin-top: -10px;
    }
    #about .container{
        flex-direction: column;
        margin: 0rem 3rem;
    }
    #about .about_img img{
        display: grid;
        place-items: center;
        height: 200px;
        width: 320px;
    }
    #about .about_img .work-emoji{
        display: none;
        
    }
    #about .about_text{
        display: flex;
        justify-content: center;
        align-items: center;
    }
    #about .about_intro{
        padding: 5px;
    }
    #about .about_intro2{
        padding: 5px;
    }
    #contact .container{
        height: 65vh;
        padding: 3rem;
    }
    #contact h2{
        font-size: 6rem;
        padding-top: 2rem;
    }
    .contact_way{
        display: flex;
        gap: .9rem;
        align-items: center;
    }
    .contact_way i{
        font-size: 5rem;
    }
    footer{
        font-size: 3.4rem;
    }
    
}



/* Contact Form CSS */
.contact-container{
    /* height: 100vh; */
    /* max-width: 1000px; */
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}
.contact-left{
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
}

.contact-inputs{
    width: 600px;
    height: 50px;
    border: none;
    outline: none;
    padding-left: 25px;
    font-weight: 500;
    color: #666;
    border-radius: 50px;
}
.contact-left textarea{
    height: 140px;
    padding-top: 20px;
    border-radius: 20px;
}
.contact-inputs:focus{
    border: 2px solid #ff994f;
}
.contact-inputs::placeholder{
    color: #a9a9a9;
}
.contact-left button{
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-size: 20px;
    color: #fff;
    gap: 10px;
    border: none;
    border-radius: 50px;
    width: 600px;
    background: linear-gradient(270deg, #ff994f,#fa6d86);
    cursor: pointer;
}
.contact-left button img{
    height: 15px;
}


/* Responsive */
@media (max-width: 786px){
    .contact-inputs{
        width: 80vw;
        height: 40px;
    }
    .contact-left button{
        width: 80vw;
    } 
     .contact-container{
        max-width: 100%;
    }
    #contact .container{
        height: 60vh;
        padding: 0 3rem;
        width: 100%;
    }
    #contact h2{
        font-size: 5rem;
    }
    .top_contact{
        margin-bottom: 1rem;
    }
    .hero_image {
        width: 380px;
        height: 500px;
    }
}  

@media (max-width: 911px) {
    html{
        font-size: 40%;
    }
    .logo{
        font-size: 3rem;
    }
    nav ul a li{
        font-size: 2rem;
        gap: 1rem;
    }
    /* #hero .container{
        flex-direction: column;
    } */
    .hero_image{
        display: grid;
        place-items: center;
    }
    .hero_image img{
        max-width: 80%;
    }
    .contact-container{
        max-width: 100%;
    }
    #contact .container{
        height: 65vh;
        padding: 0 2rem;
        width: 100%;
    }
    #contact h2{
        font-size: 4rem;
    }
    footer .container{
        font-size: 2.9rem;
    }
}
.hero_image img{
    /* height: 590px;
    width: 375px;
    aspect-ratio: 1/3; */
    max-width: 80%;
    max-height: 80%;
    /* background-position: cover;
    background-size: cover;
    background-repeat: no-repeat; */
}
/* .hero_image {
    height: 515px;
    width: 400px;
    margin-top: -130px;
} */


/* For Menubar Drawer slider */
.menu_mobile{
    background: var(--purple500);
    display: none;
    top: 0;
    height: 100vh;
    width: 100%;
    position: absolute;
    transform: translateX(+100vw);
    transition: .3s ease-in;
}
.menu_mobile ul{
    font-size: 2.2rem;
    text-align: center;
}
.menu_mobile ul li{
    padding: 1rem 0;
    transition: .3s ease-in;
    }
.menu_mobile ul li:hover{
background: #b495fc;
color: var(--purple600);
font-weight: 700;
transition: .3s ease-in;
}
.close_btn_container{
    display: flex;
    justify-content: end;
    margin-right: 2rem;
    margin-top: 2rem;
}

.show_menuBar{
    display: block;
    transform: translateX(0);
    transition: .3s ease-in;
}

@media (min-width: 1024px) {
    
    .menu_bar i{
        display: none;
    }    
}

@media (min-width: 768px) {
    
    .menu_bar i{
        display: none;
    }    
}

@media (max-width: 500px) {
    
    /* header nav ul{
        display: none;
    } */
    .menu_bar i{
        display: none;
        /* display: block; */
        font-size: 4.5rem;
        cursor: pointer;
    }    
}