@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700&display=swap');
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;

}
html,body{
    scroll-behavior: smooth;
    line-height: 1.4;
    font-size: 62.5%;
}
/* header start from here */
:root{
    --lighting-color:#0089b7;
    --dark-color:#003d62;
    --darker-color:#003251;
    --secondary-color:#fff700;
}
.top_section{
    scroll-margin: 30px;
}
.middle_section{
    scroll-margin: 50px;
    
}
/* #contact{
    scroll-margin-bottom: 1000px;
} */
header{
    position: sticky;
    top: 0;
    z-index: 100;
}
.nav-var{
    display: flex;
    justify-content:space-between;
    align-items: center;
    background-color:#0089b7;
    padding: 5px 50px;
    
       
}
.nav-var h1{
    color: white;
    font-size: 2.7rem;
    font-weight:700;
}
.icon ul{
    list-style: none;
}
.icon a{
    text-decoration: none;
    font-size: 1.9rem;
    color: white;
    font-weight: 500;
    border-bottom:1px solid transparent;
    transition: .03s ease-in;
    cursor: pointer;
    
}
.icon a:hover{
    border-bottom:2px solid white;
    color: white;
    transition: 0.3s ease-in;
}
.icon ul{
    display: flex;
    gap: 20px;
}
.top_section{
    width: 100%;
    height: 570px;
    background-color:#003251;
}

/* next_section */
.top_container{
    padding-top:50px ;
}
.top_img{
    width: 300px;
    
}
.top_title{
    color:white
}
.hi{
    font-size: 4.7rem;
    color: #fff700;
}
.sort{
    font-size: 2.9rem;
    font-weight: 700;
}
.top_title h1{
    font-size: 4.5rem;
    padding-bottom: 5px;
    font-weight: 700;
}
.top_title h2{
    font-size: 4rem;
    padding-bottom: 5px;
    font-weight: 700;
    border-right:5px solid transparent ;
    overflow: hidden;
    margin: 0 auto;
    white-space: nowrap;
    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;

}
}


.top_container{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    padding-top: 50px 50px;

}

/* next section */

.middle_section{
    /* margin-top: 30px; */
     background-color: #003251;
}
.middle{
    display: grid;
    padding:30px 50px ;
    gap: 30px;
    grid-template-columns: repeat(auto-fit,minmax(320px,1fr));
    place-items: center;
    text-align: center;
    /* color: white; */
   
}
.title h2{
    font-size: 2.2rem;
    font-weight: 700;
    color: transparent;
    transition: 0.3s ease-in;
}

.middle_section h1{
    font-size: 5rem;
    color:white;
    font-weight: 700;
    text-transform: uppercase;
    text-align: center;
    padding-top: 10px;
   
}
a.project_1{
    text-decoration: none;
}
.project_1:focus-visible{
    outline: 3px solid #fff700;
    outline-offset: 4px;
}
.top_title .role-line{
    font-size: 2.8rem;
    white-space: normal;
    border-right: 0;
    max-width: 560px;
    margin: 0;
    animation: role-fade 1.2s ease-in both;
}
@keyframes role-fade{
    from{ opacity: 0; transform: translateY(10px); }
    to{ opacity: 1; transform: translateY(0); }
}
.roles{
    font-size: 1.9rem;
    font-weight: 500;
    color: #cfe9f5;
    margin-top: 10px;
    line-height: 1.6;
}
.project_1{
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    transition: 0.3s ease-in-out;
    cursor: pointer;
    
}

.project_1:hover{
    
    opacity: 0.9;
    transform: scale(1.05);
    transition: 0.3s ease-in-out;
    
  
}
.project_1:hover h2{
    color: #003251;

}
.project_1:hover .title{
    
    background-color: white;
    transition: 0.3s ease-in-out;
    transform: translateY(0px);
   
}
.title{
    padding: 2rem;
    position: relative;
    top: -6.5rem;
    margin-bottom: -6.5rem;
    background-color: transparent;
    transition: 1s ease-in;
    transform: translateY(1000px);
    font-weight: 700;

}

footer{
    background-color: #003251;
    padding: 40px;
}
.footer{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
}
.footer h1{
   color: white;
   font-weight:700;
   font-size: 5rem;
}
.icon_title a{
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}
.icon_title{
    display: flex;
    gap: 25px;
    
}

.last_icon {
    display: flex;
    gap: 25px;
    
}
.last_icon a{
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}


@media(max-width:820px){


    .top_img{
        width: 200px;
        
    }
    .hi{
        font-size: 3.7rem;
        color: #fff700;
    }
    .sort{
        font-size: 1.9rem;
        font-weight: 700;
    }
    .top_title h1{
        font-size: 3.5rem;
        padding-bottom: 5px;
        font-weight: 700;
    }
    .top_title h2{
        font-size: 3.3rem;
        padding-bottom: 5px;
        font-weight: 700;
        border-right:5px solid transparent ;
        overflow: hidden;
        margin: 0 auto;
        white-space: nowrap;
        animation:typing 5s steps(40, end), blink-caret 0.75s step-end infinite ;
    
    }
    .middle_section h1{
        font-size: 4rem;
    }
.top_section{
    height:600px;
}
    .top_container{
        display: flex;
        gap: 50px;
        flex-direction: column;
       
    }
    .middle{
        display: flex;
        flex-direction: column;
    }
    .footer h1{
        color: white;
        font-weight:700;
        font-size: 3.5rem;
     }
     .icon_title a{
        text-decoration: none;
        font-size: 1.3rem;
        font-weight: 700;
        color: white;
    }
     .last_icon a{
        text-decoration: none;
        font-size: 1.3rem;
        font-weight: 700;
        color: white;
    }
   

}

@media(max-width:480px){
    .top_title{
        padding: 0 20px;
        text-align: center;
    }
    .top_title h1{
        font-size: 3rem;
    }
    .top_title h2{
        font-size: 2.7rem;
    }
    .roles{
        font-size: 1.6rem;
    }
    .top_title .role-line{
        font-size: 2.2rem;
        margin: 0 auto;
    }
}

@media(max-width:480px){
    .nav-var{
        padding: 5px 15px;
    }
    .nav-var h1{
        font-size: 2.2rem;
    }
    .icon ul{
        gap: 12px;
    }
    .icon a{
        font-size: 1.6rem;
    }
}
