@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    scroll-behavior: smooth;
    font-family: 'Nunito', sans-serif;
}

:root {
    --bg-color: #191f36;
    --snd-bg-color: #262B40;
    --text-color: #fff;
    --main-color: #59B2F4;
    --max-width: 1200px;
}

html {
    font-size: 80%;
    overflow-x: hidden;
}

body {
    background: var(--bg-color);
    color: var(--text-color);
    min-width: 100%;
    gap: 100%;
    margin: auto;
    padding: 2px;
}

section {
    min-width: 100vh;
    min-height: 100vh;
    padding: 6rem 5% 6rem;
    gap: 2px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    min-width: 100vh;
    padding: 1rem 2%;
    background: var(--bg-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    color: var(--main-color);
    font-weight: 700;
    cursor: default;
}

.navbar a {
    font-size: 1.6rem;
    color: var(--text-color);
    margin-left: 4rem;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.navbar a:hover,
.navbar a.active {
    transform: scale(1.2);
    color: #03a9f4;
}

#menu-icon {
    font-size: 3.6rem;
    color: var(--text-color);
    display: none;
}

.home {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7em;
    flex-wrap: wrap;
}

.home-content h3 {
    min-width: 100vh;
    font-size: 2rem;
    font-weight: 700;
    line-height: 40px;
}

.home-content h3:nth-of-type(2) {
    margin-bottom: 1rem;
}

span {
    color: var(--main-color);
}

.home-content h1 {
    min-width: 100vh;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.3;
}

.home-content {
    max-width: 100vh;
    min-width: 100vh;
}

.home-img img {
    width: 20vw;
    border-radius: 50%;
    object-fit: cover;
    margin: 5px;
    padding: 0;
    background: linear-gradient(145deg, #00bfff, #1e90ff); /* Cahaya biru */
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

.home-content p {
    font-size: 1.4rem;
    margin: 1rem 0 2rem;
}

.social-icons a {
  color: #4fc3f7;
  margin-right: 15px;
  font-size: 28px;
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.2);
  color: #03a9f4;
}

.home-content p {
    font-size: 1.6rem;;
}

.social-media a{
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 3rem;
    height: 3rem;
    background: transparent;
    border: .2rem solid var(--main-color);
    border-radius: 2rem;
    font-size: 1.5rem;
    color: var(--main-color);
    margin: 2rem .1rem 2rem;
    transition: .5s ease;
}

.social-media a:hover {
    background: var(--main-color);
    color: var(--snd-bg-color);
    box-shadow: 0 0 1rem var(--main-color);
}

.btn {
    display: inline-block;
    padding: 1rem 1rem;
    background: var(--main-color);
    border-radius: 2rem;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1rem;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 700;
    transition: .5s ease;
}

.btn:hover {
    box-shadow: none;
}

.about {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 100vw;
    gap: 5rem;
    background: var(--snd-bg-color);
}

.about-img img {
    width: 20vw;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    padding: 5px;
    background: linear-gradient(145deg, #00bfff, #1e90ff); /* Cahaya biru */
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
}


.heading {
    text-align: center;
    font-size: 2.6rem;
}

.about-content h2{
    text-align: left;
    line-height: 1.2;
}

.about-content h3 {
    font-size: 1.5rem;
}

.about-content p {
    font-size: 1.4rem;
    margin: 1rem 0 2rem;
}

.education h2 {
    max-height: 100px;
    margin-bottom: 4rem;
}

.education-section {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding: 100px 0;
    background-color: var(--snd-bg-color);
    color: var(--text-color);
}

.education-cotainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.education-box {
    display: inline-flex;
    justify-content: space-between;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    min-width: 250px;
    max-width: 280px;
    height: 300px;
    text-align: center;       
    background: var(--snd-bg-color);
    padding: 20px 5px 10px;
    border-radius: 2rem;
    border: .2rem solid var(--bg-color);
    transition: .5s ease;
}

.education-box:hover {
    box-shadow: 0 0 1rem var(--main-color);
    background: var(--snd-bg-color);
    color: var(--text-color);
    border-color: var(--main-color);
    transform: scale(1.02);
}

.education-box i {
    color: var(--main-color);
    font-size: 5em;
    margin: 1px;
}

.education-box h3 {
    font-size: 1.6em;
    margin: 2px;
}  

.education-box p {
    font-size: 1rem;
    margin: 2px;
    padding: 1px;
}

.education-box a {
    display: inline-flex;
    justify-items: space-between;
    flex-direction: column;
    flex-wrap: wrap;
    background: var(--main-color);
    padding: 10px 5px 10px;
    margin: 10px auto;
    border-radius: 20px;
    box-shadow: 0 0 1rem var(--main-color);
    font-size: 1rem;
    width: 150px;
    text-align: center;
    color: var(--bg-color);
    letter-spacing: .1rem;
    font-weight: 700;
    transition: .5s ease;
}

.skills-container {
    padding: 20px;
}

.skill {
    margin: 0;
}

.skill h2 {
    margin-top: 0;
    margin-bottom: 0;
    text-align: center;
    padding: 0;
    color: var(--text-color);
}

.technical-skills {
    margin: 30px 0;
}

.skill h3 {
    color: var(--text-color);
    font-size: 1rem;
    padding: 0;
    margin-top: 0;
}

.skill span {
    color: var(--main-color);
    padding-bottom: 0;
}

.skills li:hover {
    box-shadow: inset ;
}

.skills {
    width: 600px;
    margin: 20px auto;
    color: var(--text-color);
    padding: 10px;
    background: var(--bg-color);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.skills li {
    margin: 0;
    padding: 10px;
}

.persen {
    background: var(--snd-bg-color);
    display: block;
    height: 20px;
    border: 1px solid rgba(0 0, 0, 0, 0.3);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
}

.persen:hover {
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.persen span {
    height: 20px;
    float: left;
}

.persen p {
    color: var(--text-color);
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0;
    padding: 0 10px;
    transition: all 0.3s ease;
}

.HTML {
    width: 75%;
    animation: HTML 3s;
    background: linear-gradient(135deg, #0000ff 0%, #007afd 100%);
    border-radius: 10px;
    box-shadow: 0 0 1rem rgba(0, 106, 236, 0.5);
    transition: width .5s ease-in-out;
}
.CSS {
    width: 85%;
    animation: CSS 3s;
    background: linear-gradient(135deg, #0000ff 0%, #007afd 100%);
    border-radius: 10px;
    box-shadow: 0 0 1rem rgba(0, 106, 236, 0.5);
    transition: width .5s ease-in-out;
}
.JavaScript {
    width: 65%;
    animation: JavaScript 3s;
    background: linear-gradient(135deg, #0000ff 0%, #007afd 100%);
    border-radius: 10px;
    box-shadow: 0 0 1rem rgba(0, 106, 236, 0.5);
    transition: width .5s ease-in-out;
}

.Python {
    width: 70%;
    animation: Python 3s;
    background: linear-gradient(135deg, #0000ff 0%, #007afd 100%);
    border-radius: 10px;
    box-shadow: 0 0 1rem rgba(0, 106, 236, 0.5);
    transition: width .5s ease-in-out;
}

@keyframes HTML {
    0% {
        width: 0;
    }
    100% {
        width: 75%;
    }
}

@keyframes CSS {
    0% {
        width: 0;
    }
    100% {
        width: 85%;
    }
}

@keyframes JavaScript {
    0% {
        width: 0;
    }
    100% {
        width: 65%;
    }
}

@keyframes Python {
    0% {
        width: 0;
    }
    100% {
        width: 70%;
    }
}

.contact h2 {
    max-height: 2rem;
    margin-bottom: 50px;
    margin-top: 0;
}

.contact form {
    max-width: 100rem;
    margin: 1rem auto;
    text-align: center;
    margin-bottom: 3rem;
}

.contact form .input-box {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.contact form .input-box input,
.contact form textarea {
    width: 100%;
    padding: 1rem;
    font-size: 1.2rem;
    color: var(--text-color);
    background: var(--snd-bg-color);
    border-radius: .8rem;
    margin: .5rem 0;
}

.contact form .input-box input {
    width: 49%;
}

.contact form textarea {
    resize: none;
}

.contact form .btn {
    margin-top: 1rem;
    cursor: pointer;
}

.footer {
    text-align: center;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: .5rem 10%;
    background: var(--snd-bg-color);
}

.footer-text {
    font-size: .5rem;
}

.footer p {
    display: inline-block;
    font-size: 1.2rem;
    justify-content: center;
    align-items: center;
}

.IconTop {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .8rem .8rem;
    background: var(--main-color);
    border-radius: .5rem;
    transition: .5s ease;
}
 
.IconTop a:hover {
    box-shadow: 0 0 1rem var(--main-color);
}

.IconTop a i {
    font-size: 1.4rem;
    color: var(--snd-bg-color);
}

@media (max-width: 1200px) {
    .html {
        font-size: 50%;
    }
}
@media (max-width: 991px) {
    .header {
        padding: 2rem;
    }

    .section {
        padding: 3rem 3%;
    }

    .portolio {
        padding-bottom: 2rem;
    }   

    .contact {
        min-height: auto;
    }

    .footer {
        padding: .3rem 8%;
    }
}

@media (max-width: 768px) {
    .html {
        font-size: 50%;
    }

    #menu-icon {
        display: block;
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        padding: 1rem 3%;
        background: var(--bg-color);
        border-top: .1rem solid rgba(0 0 0 .2);
        box-shadow: 0 .5rem .1rem solid rgba(0 0 0 .2);
        display: none;
    }

    .navbar.active {
        display: block;
    }

    .home {
        flex-direction: column;
    }

    .home-content {
        text-align: center;
        max-width: 100%;
    }

    .home-img img {
        width: 40vw;
        margin-top: 2rem;
    }
    .home-content h3 {
        font-size: 1.8rem;
    }

    .home-content h1 {
        font-size: 2.4rem;
    } 

    .home-content p {
        font-size: 1.4rem;
    }   

    .about {
        flex-direction: column;
    }

    .about-img img {
        width: 35vw;
        margin-top: 4rem;
    }
    .education-box {
        display: inline-flex;
        justify-items: space-between;
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
        height: auto;
        margin-bottom: 20px;
        font-weight: 300;
        align-items: center;
        min-width: 225px;
        max-width: 250px;
        height: 290px;
        text-align: center;
    }
    .education h2 {
        margin-bottom: 3rem;
    }

    .skills {
    width: 500px;
    margin: 20px auto;
    color: var(--text-color);
    padding: 20px;
    }

    .persen {
        height: 20px;
        border-radius: 20px;
        overflow: hidden;
    }

    .portofolio h2 {
        margin-bottom: 2rem;
    }

    .portofolio-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 617px) {
    .html {
        font-size: 50%;
    }

    .home-content h1 {
        font-size: 2rem;
    }

    .home-content p {
        font-size: 1.2rem;
    }

    .about-content h2 {
        font-size: 1.8rem;
    }

    .about-content h3 {
        font-size: 1.4rem;
    }

    .about-content p {
        font-size: 1.2rem;
    }

    .education-box {
        display: inline-flex;
        justify-items: space-between;
        flex-direction: column;
        flex-wrap: wrap;
        width: 100%;
        height: auto;
        margin-bottom: 20px;
        font-weight: 100;
        align-items: center;
        min-width: 220px;
        max-width: 230px;
        height: 290px;
        text-align: center;
    }

    .skills {
    width: 400px;
    margin: 20px auto;
    color: var(--text-color);
    padding: 20px;
    }

    .persen {
        height: 20px;
        border-radius: 20px;
        overflow: hidden;
    }

}