@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;700&display=swap');

body{
    font-family: "Fira Sans", sans-serif;
  font-optical-sizing: auto;
  font-size: 20px;
  font-style: normal;
}

h1, h3 {
  font-family: "Barlow Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
    letter-spacing: 3px;
}

:root{
    --primary: #141413;
    --second: #333232;
    --third: #636361;
    --fourth: #8f7d1b;
}

html, body{
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

/* satu */
.hero{
    text-align: center;     
    display: flex;
    flex-direction: column;   
    align-items: center;    
    margin: 0 auto;          
    padding: 200px;
    background-size: cover;
    background-color: var(--primary);
    min-height: 40vh;
}

img{
    height: 30px;
    width: 30px;
    margin-right: 40px;
}

h1{
    font-size: 50px;
    color: rgb(255, 255, 255);
}

span{
    color: rgb(255, 255, 255);
    transition: all 0.5s ease;
}

span:hover{
    color: var(--fourth);
    font-size: 53px;
}

.teks p{
    left: 20px;
    font-size: 20px;
    color: rgb(228, 228, 228);
    max-width: 900px;
}

.hero a{
    color: white;
    margin: 10px;
    transition: all 0.5s ease;
}

.hero a:hover{
    color: var(--fourth);
}

.sosmed a:nth-of-type(3) {
    margin-left: 0px;
}

/* dua */
.about{
    display: flex; 
    justify-content: center; 
    align-items: center;
    background-color: var(--second);
    min-height: 100vh;
}

.about_foto{
    height: 450px;
    width: 450px;
    margin-right: 40px;
}

.about_teks{
    justify-content: space-between;
}

.about_p{
    top: 15px;
    color: #d3d0d0;
    letter-spacing: 5px;
    position: relative;
}

.about p{
    color: #d3d0d0;
    max-width: 600px;
    font-size: 20px;
    bottom: 30px;
    position: relative;
}

.p_about {
    background-color: transparent; 
    margin-top: 30px;
    width: 160px;
    border: 2px solid black; 
    border-radius: 30px;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.p_about a {
    text-decoration: none;
    color: black; 
    font-size: 20px;
    display: inline-block;
    transition: all 0.3s ease;
}

.p_about:hover {
    background-color: var(--fourth);
    border: 2px solid var(--fourth); 
}

.p_about:hover a {
    color: black; 
}

.about_teks h1{
    font-size: 50px;
    color: rgb(255, 255, 255);
    position: relative;
}

/* tiga */
.skill{
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding-top: 40px;
    background-color:  var(--third);
    min-height: 30vh;
}

.box {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    /* padding: 10px; */
}

.skill .box {
    background-color: #fff;
    width: 300px;
    height: 150px;
    margin: 0 15px 40px 15px;
    border-radius: 10px;
    padding: 0 10px 0 0;
    box-shadow: 0 6px 52px rgba(0, 0, 0, 0.50);

}

.skill .box h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.skill .box p {
    color: #666;
    margin-bottom: 30px;
    margin-left: 10px;
    font-size: 16px;
    text-align: center;
}

/* empat */
.proyek {
    display: flex; 
    justify-content: center;
    gap: 100px; 
    align-items: stretch; 
    background-color: var(--second);
    padding: 50px; 
    flex-wrap: wrap; 
}

.kolom {
    width: 300px;
    padding: 20px;
    margin-top: 50px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.proyek_img {
    width: 100%;
    height: 200px;
    object-fit: cover; 
    margin-bottom: 15px;
    border-radius: 5px;
    left: 20px;
    position: relative;
    box-shadow: 0 6px 52px rgba(0, 0, 0, 0.50);

}

.kolom h1 {
    font-size: 24px;
    color: #fff;
    margin: 10px 0;
    font-weight: 500;
}

.kolom p {
    
    color: #d3d3d3;
    line-height: 1.5;
    text-align: justify;
}

.kolom h1{
    font-weight: bold;
}

/* lima */
.kontak{
    display: flex; 
    justify-content: center; 
    align-items: center;
    background-color: var(--primary);
    font-size: 28px;
    color: #fff;
    min-height: 25vh;
}


@media screen and (max-width: 1200px) {
    .hero {
        padding: 100px 10px;
    }

    h1 {
        font-size: 30px;
    }

    .teks p {
        font-size: 18px;
        padding: 0 10px;
        text-align: center;
    }

    .about {
        flex-direction: column;
        padding: 40px 20px;
        text-align: center;
    }

    .about_foto {
        width: 250px;
        height: 250px;
        margin: 0 auto 20px auto;
    }

    .about_teks h1 {
        font-size: 28px;
    }

    .about p {
        font-size: 16px;
        max-width: 100%;
    }

    .p_about {
        margin: 20px auto;
    }

    .skill {
        flex-direction: column;
        padding: 20px;
    }

    .skill .box {
        width: 90%;
        height: auto;
        margin: 10 px auto;
    }

    .proyek {
        flex-direction: column;
        gap: 30px;
        padding: 30px 20px;
    }

    .kolom {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
    }

    .proyek_img {
        height: 180px;
    }

    .kontak {
        font-size: 20px;
        padding: 20px;
        text-align: center;
    }

    .sosmed a {
        margin: 0 10px;
    }

    img {
        height: 24px;
        width: 24px;
        margin-right: 10px;
    }
}
