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

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
    
}

/* header */
body {
    background:linear-gradient(to right,rgb(255,255,255), rgb(254,215,173));
    /* overflow:hidden; */
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}
header{
    height:10vh;
    width:100%;
    padding:0 0.2rem;
    padding-top:1rem;
}
.header-container{
    height:100%;
    width:100%;
    margin:0 auto;
    display:flex;
    justify-content:space-around;
    align-items:center;
}
nav ul{
    display:flex;
    gap:3rem;
    list-style: none;
    align-items:center;
}
nav ul li a{
    position: relative;
    text-decoration:none;
    color:black;
    font-weight:500;
    font-size:1.2rem;
    transform: 0.3s linear;
}
nav ul li a::before{
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: rgb(109,67, 0);
    transition: 0.2s linear;
}
nav ul li a:hover::before{
    width: 100%;
}
.cnt-btn{
    background:rgb(109,67, 0);
    font-weight:500;
    font-size:1.2rem;
    padding: 5px 20px;
    border-radius: 20px;
    border: 2px solid rgb(109,67, 0);
    transition:all 0.2s linear;
}
.cnt-btn:hover{
    transform: scale(1.1);
    box-shadow:0 0 10px rgb(109,67, 0); 
}
.cnt-btn a{
    text-decoration: none;
    color:white;
}
.logo{
    font-weight:600;
    font-size:2.5rem;
    color: rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
    cursor:pointer;
}
/* --------------------------------------------------------------------------- */
/* Main */
main{
    height:90%;
    width:100%;
}
.hero-container {
    height:100%;
    width:100%;
    display:flex;
    justify-content:space-evenly;
    align-items:center;
    margin-bottom:4rem;
}
.hero-container+hr {
    border-bottom:5px solid rgb(109,67, 0);
    box-shadow: 0 6px 20px rgb(109,67, 0);
}
.hero-img{
    width:70%;
    text-align: center;
    z-index: -1;
}
.hero-img img{
    width: 70%;
}
.hero-text{
    width:50%;
    min-height:100px;
}
.hero-text h1 {
    font-size:3rem;
    /* line-height:1.9; */
    font-weight:600;
}
.hero-text h1 span{
    font-size:3.3rem;
    color:rgb(109,67, 0);
    text-shadow: 0 0 10px rgb(109,67, 0);
}
.hero-text .typewriter{
    font-weight: 600;
    font-size:2rem;
    /* line-height:1.8; */
}
.hero-text .typewriter span {
    color:rgb(109,67, 0);
    text-shadow: 0 0 5px rgb(109,67, 0);
    font-size:2.5rem;

    position: relative;
    transition: 0.3s linear;
}
.typewriter span::before{
    content: "Web Developer";
    animation: words 15s infinite;
}

.typewriter span::after{
    content: "";
    position: absolute;
    /* width: calc(100% + 8px); */
    height: 100%;
    border-left: 3px solid black;
    animation: cursor 0.6s linear infinite;
}
@keyframes cursor {
    to{
        border-left: 3px solid #b74b4b;
    }
}

@keyframes words {
    0%, 33%{
        content: "Web Developer";
    }
    34%, 66%{
        content: "Web Designer";
    }
    67%, 100%{
        content: "Btech Student";
    }
}

.hero-btn{
    margin-top:1.8rem;
    display:flex;
    gap:1rem;
    padding-left:10px;
}
.hero-btn a {
    color:rgb(109,67, 0);
    font-size:1.5rem;
    text-align:center;
    border-radius:50%;
    padding:3px 10px;
    border:3.3px solid rgb(109,67, 0);
    transition:all 0.2s ease-in-out;
}
.hero-btn a:hover{
    transform:scale(1.3);
    box-shadow: 0 0 10px rgb(109,67, 0);
    background-color: rgb(109,67, 0);
    color:white;
}

.hero-text button {
    font-weight:500;
    background:rgb(109,67, 0);
    margin-top:2rem;
    margin-left:25px;
    padding:0.5rem 3rem;
    border-radius:5px;
    border:none;
    color:white;
    transition:all 0.2s linear;
}
.hero-text button:hover{
    box-shadow:0 0 40px rgb(109,67, 0);
    transform: scale(1.2);
    border:1px solid rgb(109,67, 0);
    background-color:white;
    color:rgb(109,67, 0);
    cursor:pointer;
}

.content-container{
    /* height:100%; */
    /* width:100%; */
    display:flex;
    flex-direction: column;
    justify-content:space-evenly;
    align-items:center;
}
.about-text{
    width:80%;
    margin-top:2rem;
    text-align:center;
}
.about-text p {
    padding-top:0.5rem;
}
.projects h1{
    width:100%;
    margin-top:2rem;
    text-align:center;
    margin-bottom: 1rem;
}
.projects {
    margin-bottom: 4rem;
}
.grid-container {
    width:100%;
    display:grid;
    /* grid-template-columns: repeat(3,1fr); */
    /* gap:2rem; */
    /* padding-left:1rem; */
    /* padding-right:1rem; */
}
.grid-items {
    display: grid;
    place-items: center;
}
.card {
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: 0.2s ease-in-out;
}
.card a {
    text-decoration: none;
}
.card img {
    width:320px;
    height: 360px;
}
.card:hover {
    transform: scale(1.05);
    transition: 1s ease-in-out;
}
.card:hover img {
    transform: scale(1.05);
    transition: 0.3s ease-in-out;
    opacity: 0.8;
}
.card-content h3 {
    text-align: center;
    color:black;
}
.card-content {
    padding: 2rem;
    position: relative;
    top: -6.5rem;
    margin-bottom: -6.5rem;
    transition: 0.5s ease-in-out;
    transform: translateY(100px);
}
.card:hover .card-content {
    background: white;
    color:#003251 ;
    transform: translateY(12px);
}

/* --------------------------------------------------------------------------- */
.hamburg, .cancel{
    cursor: pointer;
    position: absolute;
    right: 15px;
    top: 10px;
    color: black;
    font-size: 2rem;
    display: none;
}

.dropdown{
    z-index: 100;
    position: absolute;
    top: 0;
    transform: translateY(-500px);
    width: 100%;
    height: auto;
    backdrop-filter: brightness(40%) blur(3px);
    box-shadow: 0 0 20px black;
    transition: 0.2s linear;
}

.dropdown .links a{
    color: white;
    display: flex;
    text-decoration: none;
    justify-content: center;
    padding: 15px 0;
    align-items: center;
    transition: 0.2s linear;
}

.dropdown .links a:hover{
    background-color: rgb(109,67, 0);
}

@media (max-width:1050px) {
    body{
        overflow-y: visible;
    }
    .hero-container {
        flex-direction: column;
    }
    .hero-text {
        width:80%;
    }
    .hero-img{
        width:80%;
    }
}
@media (max-width:850px) {
    .hamburg,.cancel{
        display: block;
    }
    .cancel{
        color: white;
    }
    .header-container ul{
        display: none;
    }
    .logo{
        position: absolute;
        top: 16px;
        left: 15px;
        font-size: 1.5rem;
    }
}
@media (max-width:520px) {
    .hero-text h1 {
        font-size:2.2rem;
    }
    .hero-text h1 span {
        font-size:2.7rem;
    }
    .hero-text {
        width:90%;
    }
    .hero-container {
        margin-bottom: 5rem;
    }

    @keyframes words {
        0%, 33%{
            content: "Developer";
        }
        34%, 66%{
            content: "Designer";
        }
        67%, 100%{
            content: "Student";
        }
    }

}
