@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
    --color-pr: #FFC60A;
}

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

body {
    padding-top: 100px;
    position: relative;

    background: url('assets/bg.jpg');
    background-size: cover;
    background-repeat: no-repeat;

    .page {
        display: flex;

        color: rgba(255, 255, 255, 0.3);
        font-size: 10px;
        p {
            border: 1px solid rgba(255, 255, 255, 0.3);
            padding-left: 7px;
            padding-right: 7px;
            border-radius: 10px;

        }
    }

}


@media (min-width: 768px) {
    nav {
        top: 0;

        .navbar {
            width: 700px;
    
            .navbar-nav {
                padding: 15px;
    
                .nav-item {
                    margin-right: 20px;
                    margin-left: 20px;
                }
            }        
        }
    }

    aside {
        height: 100%;
        position: sticky;
        top: 160px;
    }

}

@media (max-width: 768px) {
    nav {
        bottom: 0 !important;

        .navbar-nav {
            width: 390px;
    
            justify-content: center;
    
            .nav-item {
                margin-right: 12px;
                margin-left: 12px;
    
                .nav-link {
                    font-size: 12px !important;
                }
            }
        }
    }

    aside {
        align-items: center;

        .card-aside {
            align-items: center;
            padding: 0px !important;

            background: none !important;

            .profile {
                display: flex;
                align-items: center;

                width: 200px;

                img {
                    box-shadow: 2px 2px 10px white;
                    bottom: 0;
                }
            }

            .medsos {
                gap: 10px;
                scale: 0.8;

                .medsos-link {
                    svg {
                        color: rgba(255, 255, 255, 0.3) !important;
                        border: solid 2px rgba(255, 255, 255, 0.3) !important;

                        &:hover {
                            color: white !important;
                            border: solid 2px white !important;                        
                        }

                    }
                }

            }
        }
    }

    #hero {
        scroll-margin-bottom: 1000px;
        height: 380px !important;

        h3 {
            font-size: 16px !important;
        }
        h1 {
            font-size: 24px !important;
            margin-top: 10px !important;
            margin-bottom: 10px !important;
        }
        h2 {
            font-size: 20px !important;
        }

        button {
            margin-top: 50px !important;
            font-size: 12px !important;
            width: 100px !important;
            height: 30px !important;
        }
    }

    #portofolio {
        scroll-margin-top: 50px !important;

        h1 {
            font-size: 26px !important;
        }
    }

    #about {
        scroll-margin-top: 50px !important;

        h1 {
            font-size: 26px !important;
        }
        .about-data {
            margin-top: 20px;
        }
    }

    footer {
        margin-bottom: 150px !important;
    }
}


/* Navigasi */
nav {
    position: fixed;
    width: 100%;
    z-index: 100;

    .navbar {
    
        margin-top: 20px;
        margin-bottom: 20px;
    
    
        .navbar-nav {
    
            background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15)) !important;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 40px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
    
            .nav-item {
    
    
                .nav-link {
                    font-size: 16px;
                    font-weight: 400;
                    color: rgba(255, 255, 255, 0.3);
    
                    position: relative;
                    transition: .3s all ease;
    
                    display: flex;
                    flex-direction: column;
    
                    position: relative;
                    justify-content: center;
    
                    &::before {
                        @media (min-width: 768px) {
                            content: "";
                            position: absolute;
                            bottom: 0;
                            left: 8px;
                            right: 8px;
                            background: white !important;
                            height: 5px;
                            opacity: 1;
                            visibility: visible;
                            width: 0;
                            transition: .15s all ease-out;
                        }
                    }
    
                    &:hover {
                        opacity: 1;
                        color: white;
                    }
                }
    
                &.active {
                    a {
                        opacity: 1;
                        font-weight: 600;
                        color: white;
    
                        &::before {
                            width: calc(100% - 16px);
                        }
                    }
                }
            }
        }
    
    }
}

/* Aside */
aside {
    display: flex;
    justify-content: center;

    .card-aside {
        padding: 40px;
        border-radius: 40px;
        max-width: 340px;

        background: rgba(255, 255, 255, 0.7);
        color: black;

        .logo {
            align-items: center;
            align-content: center;
            gap: 20px;

            margin: 0;
            font-weight: 600;
            margin-bottom: 20px;

            img {
                width: 40px;
                height: 40px;
            }
               
        }
        
        .profile {
            img {
                border-radius: 20px;
                margin-bottom: 20px;
                width: 100%;

            }
        }

        .text-aside {
            
            p {
                font-size: 12px;
                font-weight: 500;
                margin: 0;
            }
            span {
                font-size: 14px;
                font-weight: 600;
            }
        }

        .medsos {
            justify-content: space-around;
            .medsos-link {
                svg {
                    color: rgba(0, 0, 0, 0.3);
                    border: solid 2px rgba(0, 0, 0, 0.3);
                    border-radius: 30px;

                    padding: 7px;

                    &:hover {
                        scale: 1.1;
                        color: black;
                        border: solid 2px black;
                    }
                }
            }
        }
    }
}

#hero {
    color: white;
    height: 900px;
    display: flex;
    align-items: center;

    h3 {
        font-size: 24px;
        font-weight: 400;
    }
    h1 {
        font-size: 40px;
        font-weight: 700;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    h2 {
        font-size: 36px;
        font-weight: 600;
    }
    span {
        color: var(--color-pr);
    }

    button {
        margin-top: 80px;
        width: 170px;
        height: 40px;
        border-radius: 20px;
        border: none;

        background-color: var(--color-pr);
        color: rgba(0, 0, 0, 0.7);
        font-size: 18px;
        font-weight: 700;

        &:hover {
            scale: 1.01;
            color: black;
        }

    }
}

#portofolio {
    scroll-margin-top: 200px;
    margin-top: 150px;

    display: flex;
    flex-direction: column;
    justify-content: end;
    text-align: end;

    .page {
        justify-content: end;
    }

    h1 {
        font-size: 36px;
        font-weight: 700;
        color: white;

        span {
            color: var(--color-pr);
        }
    }


    .porto {
        display: flex;

        .card-porto {
            text-align: start;
            color: white;

            height: auto;
            padding: 15px;

            background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15)) !important;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);
            
            h5 {
                font-size: 20px;
                font-weight: 700;
                margin: 0;
            }
            p {
                font-size: 12px;
                font-weight: 500;
            }

            img {
                width: 100%;
                max-height: 300px;
                background-size: cover;
                margin-bottom: 20px;
                border-radius: 10px 10px 0 0;
            }

            button {
                position: relative;
                z-index: 100 !important;
                cursor: pointer;

                width: 100%;

                background-color: var(--color-pr);
                color: rgba(0, 0, 0, 0.7);
                font-size: 14px;
                font-weight: 700;

                border-radius: 20px;
                padding: 10px 10px;

                &:hover {
                    scale: 1.01;
                    color: black;
                }
            }
        }
    }
}

#about {
    scroll-margin-top: 200px;
    margin-top: 300px;

    h1 {
        font-size: 36px;
        font-weight: 700;
        color: white;
    }

    .garis {
        color: white;
        width: 75%;
    }

    .text-about {
        p {
            font-size: 12px;
            color: white;
            font-weight: 400;
        }
    }

    .about-data {
        color: white;
        p {
            font-size: 12px;
            font-weight: 400;
            margin-bottom: 0;
        }
        h5 {
            font-size: 14px;
            font-weight: 600;
            margin-bottom: 20px;
        }
    }

    .download {
        button {
            border: none;
            color: black;
            background-color: var(--color-pr);
            border-radius: 20px;
            font-size: 16px;
            font-weight: 700;

            width: 190px;
            height: 30px;

            margin-top: 20px;
        }
    }

    .skills {
        margin-top: 300px;
        margin-bottom: 20px;
    }


    .icon {
        display: grid;
        grid-template-columns: repeat(auto-fit, 100px);
        gap: 15px;
        justify-content: center;

        flex-wrap: wrap;
        justify-content: space-between;

        z-index: -100;

        .icon-skill {
            display: flex;
            justify-content: center;
            align-items: center;

            min-width: 100px;

            aspect-ratio: 1/1;
            box-sizing: border-box;

            background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.15)) !important;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border-radius: 20px;
            border: 1px solid rgba(255, 255, 255, 0.18);
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.37);

        }
    }
}

footer {
    margin-top: 400px;
    margin-bottom: 100px;

    hr {
        color: white;
    }

    h1 {
        color: white;
        font-size: 28px;
        font-weight: 700;
    }
    .more {
        display: flex;
        justify-content: space-between;
        color: white;

        h3 {
            font-size: 15px;
        }
        p {
            font-size: 12px
        }
    }
}
