@import url('https://fonts.googleapis.com/css2?family=Special+Gothic+Expanded+One&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Special Gothic Expanded One", sans-serif;
}

body{
    background-image: url(./Images/sky.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
    height: 150vh;
}

.header{
    position: fixed;
    top: 0;
    left: 0;
    width: 60%;
    padding: 20px 3%;
    margin-top: 20px;
    margin-left: 20%;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: space-between;
    border: 1px solid rgba(255, 255, 255, 0.267);
    border-radius: 12px;
    z-index: 100;
}

.logo{
    font-size: 25px;
    font-weight: 600;
    text-decoration: none;
    color: rgb(12, 14, 6);
}

.logo::after{
    content: "🕊️";
}

.navbar a {
    font-size: 22px;
    color: rgba(7, 5, 158, 0.911);
    text-decoration: none;
    font-weight: 500;
    margin-left: 15px;
    transition: color 0.3s ease;
}

.navbar a:hover{
    color: rgb(0, 0, 0);
}
.navbar i{
    font-size: 25px;
}

.home{
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    justify-content: space-between;
    background: transparent;
    margin-top: 30px;
    overflow: hidden;
    z-index: 10;
    position: relative;
}
 
.home-content{
    background: transparent;
    max-width: 800px;
    display: flex;
}

.home-content h1{
    font-size: 60px;
    font-weight: 700;
    width: 100%;
    white-space: nowrap;
    line-height: 1.1;
    overflow: hidden;
    animation: typing 2s steps(25),
    cursor .4s step-end infinite alternate;
}

@keyframes typing{
    from {width: 0}
    to {width: 100%}
}

.nameclr{
    background-image: linear-gradient(to right, #5a22db, #8029e4);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-content h3{
    font-size: 30px;
    font-weight: 500;
    color: rgba(7, 5, 158, 0.911);
}

.home-content p{
    font-size: 17px;
    margin: 20px 0 40px;
    color: rgb(0, 0, 0);
    font-weight: 500;
    line-height: 1.5;
    max-width: 600px;
    background: transparent;
}

.home-content .btn-box{
    width: 345px;
    height: 50px;
    background-color: transparent
}

.btn-box a{
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 100%;
    background: black;
    border: 2px solid black;
    border-radius: 8px;
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
    color: wheat;
    letter-spacing: 2px;
    z-index: 1;
    overflow: hidden;
}

.btn-box a::before{
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: hsla(240, 74%, 43%, 0.534);
    z-index: -1;
    transition: width 0.5s ease;
}

.btn-box a:hover::before{
    width: 100%;
}

.designproj{
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.lang-content{
    display: flex;
    flex-wrap: wrap;
    margin-top: 20px;
}

.lang1{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    left: 15%;
    margin: 20px;
    padding: 130px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.267);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 20%;
}

ul{ 
    list-style-type: disc;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    font-size: 20px;
}

.design1{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;    
    margin: 20px;
    padding: 100px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.267);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    width: 30%;
}

.design1:hover, .lang1:hover{
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.57);
}

.lang1 h3{
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 25px;
    font-weight: 600;
    color: rgba(7, 5, 158, 0.911);
    margin-bottom: 15px;
    width: auto;
}
.design1 h3{
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 20px;
    font-weight: 600;
    color: rgba(7, 5, 158, 0.911);
    margin-bottom: 15px;
    width: auto;
}

.design1 p, .lang1 p{
    font-size: 15px;
    font-weight: 500;
    color: rgb(0, 0, 0);
    position: absolute;
    top: 40px;
    left: 20px;
    width: 90%;
}

.langs{
    height: 80vh;
}

.projects{
    height: 95vh;
}

.project-content h1{
    align-items: center;
    justify-content: center;
    display: flex;
    color: rgba(7, 5, 158, 0.911);
}

.project-content p{
    align-items: center;
    justify-content: center;
    display: flex;
    margin-top: 10px;
    color: rgb(0, 0, 0);
}

.project-link {
    background: linear-gradient(90deg, #0739a2 0%, #4f8edc 100%);
    color: #fff;
    font-weight: 600;
    font-size: 12px;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(7, 57, 162, 0.12);
    transition: background 0.3s, transform 0.2s;
    letter-spacing: 1px;
    align-items: center;
    justify-content: center;
    display: flex;
    width: 90%;
    height: 27px;
    padding: 5px 10px;
    margin-top: 10px;
    position: absolute;
    bottom: 20px;
}

.project-link i {
    margin-right: 8px;
    font-size: 10px;
    vertical-align: middle;
}

.project-link:hover {
    background: linear-gradient(90deg, #4f8edc 0%, #0739a2 100%);
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 4px 16px rgba(7, 57, 162, 0.18);
}

@media  (max-width: 768px){
    .header{
        width: 90%;
        height: 12%;
        margin-left: 5%;
        flex-direction: column;
        align-items: center;
    }

    .home{
        flex-direction: column;
        text-align: center;
        margin-top: 100px;
    }

    .home-content h1{
        font-size: 40px;
    }

    .home-content h3{
        font-size: 25px;
    }

    .design1, .lang1{
        width: 80%;
        padding: 80px;
        left: 0;
    }
}

@media  (max-width: 480px){
    .home-content h1{
        font-size: 30px;
    }

    .home-content h3{
        font-size: 20px;
    }

    .btn-box{
        width: 220px;
    }

    .btn-box a{
        width: 120px;
        font-size: 16px;
    }

    .design1, .lang1{
        padding: 60px;
    }
}

@media (max-width: 320px){
    .home-content h1{
        font-size: 25px;
    }

    .home-content h3{
        font-size: 18px;
    }

    .btn-box{
        width: 180px;
    }

    .btn-box a{
        width: 100px;
        font-size: 14px;
    }

    .design1, .lang1{
        padding: 40px;
    }
}

@media (max-height: 600px){
    .home{
        margin-top: 50px;
    }
}

@media (max-height: 400px){
    .home{
        margin-top: 20px;
    }
}
@media screen {
    ::-webkit-scrollbar {
        width: 10px;
    }

    ::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.267);
        backdrop-filter: blur(5px);
        border-radius: 12px;
    }

    ::-webkit-scrollbar-thumb {
        background: rgba(7, 5, 158, 0.911);
        border-radius: 12px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: rgba(0, 0, 0, 0.8);
    }    
}