* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
main {

    margin: 0;
    padding: 0;
    min-height: fit-content;
}

header,
main {
    max-width: 880px;
    margin: 0 auto;
    padding: 48px 24px;
}

main p {
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1rem;
    color: #e5e7eb;
}



.welcome {
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 600;
    color: #f8fafc;
    letter-spacing: -0.02em;
    padding-left: 1em;

    text-align: center;
}

.about {
    margin-top: 48px;
    font-size: 1.4rem;
    font-weight: 500;
    color: #d1d5db;
    line-height: 1.9;
}


body {
    font-family: 'Inter', sans-serif;
    background: #0d1b2a;
    color: #f1f5f9;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg,
            #0d1b2a 0%,
            #0d1b2a 60%,
            #0b1623 80%,
            #070b14 100%);
}

p,
li {
    color: #e5e7eb;
}

h1,
h2,
h3 {
    color: #f8fafc;
}

.skills {
    margin-top: 64px;
    padding: 32px;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    text-align: center;


}

.skills:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    transition: 0.7s;
}

.skills h2 {
    font-size: 1.7rem;
    margin-bottom: 24px;
    color: #f8fafc;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    justify-items: center;


}

.skill {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    color: #e2e8f0;
    transition: transform 0.3s, color 0.3s;
    cursor: default;
}

.skill:hover {
    transform: translateY(-3px);
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}



section {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6);
}


section p {
    color: #e2e8f0;
}

.projects-section {
    margin-top: 64px;
    padding: 32px;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    will-change: transform;

}

.tech {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #9ca3af;
    letter-spacing: 0.04em;
}


.projects-section:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    transition: 0.7s;
}



.h2-projects {
    margin-bottom: 32px;
    font-size: 1.7rem;
    color: #f8fafc;
}

.h3-projects-todo,
.h3-projects-portfolio,
.h3-projects-restaurant {
    margin-top: 24px;
    font-size: 1.5rem;
    font-weight: 600;
    color: #e2e8f0;
}

a {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

a:hover {
    color: #93c5fd;
}

footer {
    text-align: center;
    padding: 48px 0 24px;
}

.footer-text {
    font-size: 0.8rem;
    color: #9ca3af;
}

.contact {
    margin-top: 64px;
    padding: 32px;
    max-width: 800px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    text-align: center;
}

.contact h2 {
    font-size: 1.7rem;
    margin-bottom: 24px;
    color: #f8fafc;
}

.contact-icons {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.contact-icons .icon img {
    width: 40px;
    height: 40px;
    filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(93deg) brightness(105%) contrast(101%);
    transition: transform 0.3s, filter 0.3s;
}

.contact-icons .icon:hover img {
    transform: scale(1.2);
    filter: invert(64%) sepia(83%) saturate(360%) hue-rotate(192deg) brightness(98%) contrast(95%);
}

.contact:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
    transition: 0.7s;
}

.skill-bar {
    margin-bottom: 20px;
}

.skill-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    color: #f1f5f9;
    margin-bottom: 6px;
}

.bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: #60a5fa;
    border-radius: 8px;
    transition: width 1s ease-in-out;
}

.soon {
    color: rgb(189, 188, 188);
}


@media (max-width: 768px) {

    header,
    main {
        padding: 24px 16px;
    }

    .welcome {
        font-size: clamp(1.5rem, 6vw, 2rem);
        padding-left: 0;
        text-align: center;
    }

    .about {
        font-size: 1.2rem;
        margin-top: 32px;
        text-align: center;
    }


    .skills-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        justify-items: center;
    }

    .skill {
        width: 90%;
        font-size: 0.9rem;
    }


    .skill-bar {
        margin-bottom: 16px;
    }

    .bar {
        height: 16px;
    }

    .skill-name {
        font-size: 0.9rem;
    }


    .projects-section {
        padding: 24px 16px;
    }

    .h2-projects {
        font-size: 1.5rem;
        text-align: center;
    }

    .h3-projects-todo,
    .h3-projects-portfolio {
        font-size: 1.3rem;
        text-align: center;
    }

    .tech {
        font-size: 0.75rem;
    }

    p {
        font-size: 0.95rem;
        text-align: center;
    }


    .contact {
        padding: 24px 16px;
    }

    .contact h2 {
        font-size: 1.5rem;
    }

    .contact-icons {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
    }

    .contact-icons .icon img {
        width: 36px;
        height: 36px;
    }


    footer {
        padding: 32px 16px 16px;
    }

    .footer-text {
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {

    .welcome {
        font-size: 1.4rem;
    }

    .about {
        font-size: 1.1rem;
    }

    .skills h2,
    .contact h2,
    .h2-projects {
        font-size: 1.3rem;
    }

    .h3-projects-todo,
    .h3-projects-portfolio {
        font-size: 1.2rem;
    }

    .skill {
        font-size: 0.85rem;
    }

    .skill-name {
        font-size: 0.85rem;
    }

    .contact-icons .icon img {
        width: 32px;
        height: 32px;
    }
}
