* {
    box-sizing: border-box;
}

body {
    background-color: black;
    color: white;
    padding-top: 90px;
}

header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    background-color: rgba(0, 0, 0, 0.6);
    font-family: serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    z-index: 999;
    display: flex;
    align-items: center;
    padding: 10px 40px;
    color: white;
    overflow-x: auto;
    white-space: nowrap;
    backdrop-filter: blur(13px);
}

.home img {
    width: 8vh;
    height: auto;
    padding: 1px;
    flex-shrink: 0;
    margin-right: 40px;
    min-width: 45px;
}

header ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    margin-right: 40px;
}

.header-btn {
    background-color: black;
    border: 1.5px solid white;
    border-radius: 8px;
    padding: 8px 15px;
    cursor: pointer;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-family: sans-serif;
    display: inline-block;
    flex: 0 0 auto;
    transition: background-color 0.3s, color 0.3s;
}

.header-btn:hover {
    background-color: white;
    color: black;
}

h1 {
    font-size: 350%;
    text-align: center;
    padding-top: 5px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 110px;
}

h1 ul {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.framework {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    text-align: center;
    font-size: 35px;
    padding-top: 15px;
    padding-bottom: 50px;
}

.introducing {
    padding-top: 6px;
    padding-bottom: 6px;
    text-align: center;
    font-weight: bold;
    font-size: 58px;
    font-family: 'Poppins', sans-serif;
    margin-top: -53px;
    background: linear-gradient(45deg, #ff6b6b, #5f27cd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    cursor: default;
}

.logo_text {
    min-width: 295px;
    height: auto;
}

.languages {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    padding: 10px 0;
}

.languages ul {
    display: inline-flex;
    gap: 28px;
    padding: 0 15px;
    margin: 0;
}

.languages li {
    list-style: none;
}

#typing {
    border-right: 4px solid white;
    white-space: nowrap;
    overflow: hidden;
    animation: blink 0.7s infinite;
}

header::-webkit-scrollbar {
    display: none;
}

.languages::-webkit-scrollbar {
    display: none;
}

.projects {
    max-width: 490px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;

}

.projects h2 {
    font-size: 30px;
    margin-bottom: 30px;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(45deg, #ff6b6b, #5f27cd);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 20px;
    transition: 0.25s;
}

.project-card h3 {
    margin-top: 0;
    cursor: default;
}

.project-card p {
    color: #ccc;
    font-size: 14px;
    cursor: default;
}

.project-card a {
    display: inline-block;
    margin-top: 10px;
    color: #00aced;
    text-decoration: none;
}

.project-card:hover {
    transform: translateY(-6px) !important;
    background-color: rgba(255, 255, 255, 0.15);
}

@keyframes blink {
    0% {
        border-color: white;
    }

    50% {
        border-color: transparent;
    }

    100% {
        border-color: white;
    }
}

footer {
    margin-top: 200px;
    text-align: center;
    color: gray;
    font-size: 13px;
}

.fw-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 190px;
    height: 190px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.fw-btn img {
    width: 85px;
    padding: 10px;
    transition: transform 0.3s ease;
}

.fw-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 12px rgba(95, 39, 205, 0.35);
}

.fw-btn:hover img {
    transform: scale(1.08);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    align-items: stretch;
}

.box {
    width: auto;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-family: 'Poppins', sans-serif;
    cursor: default;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.box h2 {
    margin-top: 0;
    font-size: 22px;
    background: linear-gradient(45deg, #ff6b6b, #5f27cd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.box ul {
    list-style: none;
    padding: 0;
}

.box ul li {
    margin-bottom: 10px;
}

.box a {
    color: #00aced;
    text-decoration: underline;
    cursor: pointer;
}

.box:hover {
    background-color: rgba(255, 255, 255, 0.13);
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 18px rgba(255, 255, 255, 0.15);
}

@media (max-width: 705px) {
    body {
        padding-top: 70px;
    }

    header {
        flex-direction: row;
        padding: 5px 10px;
        height: 70px;
    }

    .home img {
        margin-right: 10px;
    }

    header ul {
        gap: 10px;
    }

    .header-btn {
        font-size: 16px;
    }

    .introducing {
        font-size: 28px;
    }

    .codingimg {
        width: 320px;
        height: auto;
    }

    .framework {
        font-size: 22px;
    }

    .logo_text {
        margin-bottom: 65px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        padding: 15px 10px;
        gap: 12px;
    }

    .box {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .box h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .box p {
        font-size: 13px;
        line-height: 1.4;
    }

    .box ul li {
        font-size: 13px;
    }

    .fw-btn {
        width: 150px;
        height: 150px;
        font-size: 14px;
    }

    .fw-btn img {
        width: 60px;
        padding: 8px;
    }

}

@media (max-width: 800px) {
    .project-list {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 14px;
    }

    .project-card h3 {
        font-size: 16px;
    }

    .project-card p {
        font-size: 13px;
        line-height: 1.4;
    }
}
