@import url('https://fonts.googleapis.com/css2?family=Changa:wght@200..800&family=Poppins:wght@400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Black+Han+Sans&family=Changa:wght@200..800&family=Poppins:wght@400;500&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: black;
    width: 100%;

    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

li, a {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #f7f7f7;
    text-decoration: none;
}

button {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #0f0f0f;
    text-decoration: none;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 10%;
    background-color: #222222;
}

.logo {
    cursor: pointer;
}

.nav__links {
    list-style: none;
}

.nav__links li {
    display: inline-block;
    padding: 0px 20px;
}

.nav__links li a {
    transition: all 0.3s ease 0s;
}

.nav__links li a:hover {
    color: #FBBE17;
}

.nav__links li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #FBBE17;
    bottom: -5px;
    left: 0;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease 0s;
}

.nav__links li a:hover::after {
    transform: scaleX(1);
}

.hamburger-container {
    display: none;
    z-index: 110;
}

#hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.hamburger-icon {
    position: relative;
    width: 24px;
    height: 18px;
}
.hamburger-icon span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: white;
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}
.hamburger-icon span:nth-child(1) { top: 0px; }
.hamburger-icon span:nth-child(2), .hamburger-icon span:nth-child(3) { top: 8px; }
.hamburger-icon span:nth-child(4) { top: 16px; }

.hamburger-icon.open span:nth-child(1), .hamburger-icon.open span:nth-child(4) {
    top: 8px;
    width: 0%;
    left: 50%;
}
.hamburger-icon.open span:nth-child(2) { transform: rotate(45deg); }
.hamburger-icon.open span:nth-child(3) { transform: rotate(-45deg); }

#mobile-menu {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    width: 80%;
    max-width: 400px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(15px);
    z-index: 100;
    padding-top: 7rem; 
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

#mobile-menu.is-active {
    transform: translateX(0);
    opacity: 1;
}

#close-menu-btn {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2.25rem;
    font-weight: 300;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
}

#close-menu-btn:hover {
    color: #cccccc;
}

#mobile-menu ul {
    list-style: none;
    padding: 0 2rem;
    width: 100%;
}

#mobile-menu ul li {
    margin-bottom: 0.5rem;
}

.mobile-menu-link {
    display: block;
    padding: 12px 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.mobile-menu-link:hover {
    color: #FBBE17;
}

.hero{
    background-image: url(aset/background-skill.png);
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;

    height: 780px;
    width: 100%;

    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
}

.hero h1{
    background-color: white;
    font-size: 65px;
    font-family: "Black Han Sans", sans-serif;
    font-weight: bold;
    width: 80%;
    max-width: 911px;

    text-align: center;
    margin-top: 80px;
    margin-bottom: 50px;
    padding: 20px;
}

.hero span{
    color: #FBBE17;
}

.hero .form{
    background-color: black;
    color: white;
    text-align: center;
    padding: 20px;
    height: 258px;
    width: 100%;
    max-width:430px;
    /* position: absolute; */

    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

.form label{
    display: block;
    color: white;
    font-weight: bold;
    margin-bottom: 40px;

    font-size: 15px;
}

.form input[type= "number"]{
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 25px;
    text-align: center;
    font-weight: bold;
    font-size: 14px;
    outline: none;
    margin-bottom: 40px;
}

.form button{
    background-color: #FBBE17;
    color: black;

    width: 80%;
    height: 38px;
    border-radius: 30px;
}

.balok{
    background-color: #FBBE17;
    height: 116px;
}

.division{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;

    padding: 50px;
}

.division > h1{
    color: #FBBE17;
    font-size: 40px;

    font-family: "Black Han Sans", sans-serif;
    font-weight: bold;
}

.division .card-division{
    /* background-color: blue; */
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(520px, 1fr));

    place-items: center;
}

.card{
    margin: 100px;
    background-color: black;
    border: 3px solid #FBBE17;
    border-radius: 20px;

    height: auto;
    width: 80%;
    /* max-width: 420px; */

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.card:hover{
    scale: 1.1;
}

.card h1{
    color: #FBBE17;
    font-size: 28px;
    width: auto;

    font-weight: normal;
    padding: 20px;
    margin-bottom: 20px;
}

.card .image{
    height: 120px;
    width: 100%;
    
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: red; */
}

.image img{
    /* background-color: blue; */
    width: 90%;
    padding: 5px;
    height: 90%;
    object-fit: contain;
}

.card .text{
    display: flex;
    flex-direction: column;
    /* align-items: first baseline; */
    /* background-color: red; */
    text-align: justify;
    width: 80%;

    margin: 30px;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
}

.contact{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background-color: red; */
}

.text-contact{
    /* background-color: blue; */
    width: 80%;

    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    text-align: center;
}

.text-contact h1{
    color: #FBBE17;
    font-size: 40px;
    font-family: "Black Han Sans", sans-serif;
    font-weight: bold;
}

.text-contact p{
    color: white;
}

.contact .box-contact{
    border: 3px solid #FBBE17;
    border-radius: 20px;

    width: 40%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 20px;
    margin-bottom: 100px;

    
}

.box-contact h1{
    color: #FBBE17;
    font-size: 30px;
    font-weight: normal;

    width: 100%;
    text-align: center;
    padding: 20px;
    /* background-color: white; */
}

.box-contact .medsos{
    color: white;
    padding: 20px;
    font-size: 14px;
    /* background-color: red; */
    /* width: auto; */
    /* margin-left: 100px; */
    
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 10px;
}

.medsos .email{
    display: flex;
    place-items: center;

    width: auto;
    gap: 20px;
    /* background-color: blue; */
}

.email img{
    height: 28px;
}

.email p{
    margin-left: 10px;
    /* background-color: red; */
}

.medsos .whatsapp{
    display: flex;
    place-items: center;

    width: 100%;
    gap: 32px;
    /* background-color: yellow; */
}

.whatsapp img{
    height: 28px;
    border-radius: 20px;
}

footer {
    position: relative;
    width: 100%;
    height: auto;
    padding: 5rem 7% 1.4rem;  
    background-color: #222222;
}

footer .container {
    width: 100%;
    display: flex;
}

footer .container .logo-big img {
    width: 300px;
    margin-top: 1.5rem;
    margin-left: 10rem;
    margin-bottom: 1.8rem;
}

footer .container .info {
    margin: auto;
}

footer .container .info h1 {
    text-align: left;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 20px;
    color: #f7f7f7;
}

footer .container .info p {
    text-align: left;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #f7f7f7;
}

footer h2 {
    text-align: center;
    font-family: "Poppins", sans-serif;
    font-weight: 300;
    font-size: 14px;
    margin-top: 50px;
    color: rgba(253, 253, 253, 0.7);
}

.fade-section{
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease-out, transform .6s ease-out;
}

.fade-section.active{
    opacity: 1;
    transform: translateY(0);
}

* {
    box-sizing: border-box;
    margin: 0;
}

section, footer{
    overflow: hidden;
    white-space: wrap;
    word-break: break-word;
}


footer h2 {
    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {

    
    .nav__links {
        display: none; 
    }

    .hamburger-container {
        display: block; 
        position: absolute;
        right: 5%;
    }
    
    header {
        padding: 10px 5%;
        justify-content: center;
        position: relative;
    }

    .logo {
        margin-bottom: 10px;
    }

    .hero h1{
        font-size: 200%;
        margin-bottom: 0px;
        margin-top: 20px;
        padding: 10px;
    }

    .card{
        margin: 0;
        margin-top: 50px;
    }

    .image img{
        width: 80%;
    }

    .division h1{
        font-size: 20px;
    }
    
    .box-contact{
        width: 85% !important;
    }

    .text-contact h1{
        font-size: 20px;
    }

    .division .card-division{
        grid-template-columns: 1fr;
    }

    

    footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    footer .container .logo-big img {
        margin: 1rem 0;
        width: 200px; 
    }

    footer .container .info h1 {
        font-size: 16px;
        text-align: center;
    }

    footer .container .info p {
        font-size: 12px; 
        text-align: center;
    }

    footer h2 {
        font-size: 12px; 
    }
}