/* https://www.joshwcomeau.com/css/custom-css-reset/ */

*,
*::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    line-height: calc(1em + 0.5rem);
}

body {
    -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

#root, #__next {
    isolation: isolate;
}

/* Fonts */

@font-face {
    font-family: Inter;
    font-weight: 100 900;
    font-display: swap;
    font-style: normal;
    src: url(fonts/inter/Inter.otf) format("otf");
}

@font-face {
    font-family: BreulGrotesk;
    font-weight: 400;
    font-style: normal;
    src: url(fonts/breul-grotesk/BreulGroteskA-Regular.woff) format("woff");
}

@font-face {
    font-family: BreulGrotesk;
    font-weight: 100;
    font-style: normal;
    src: url(fonts/breul-grotesk/BreulGroteskA-Light.woff) format("woff");
}

/* General */

:root {
    --primary-color: #AEA377;
    --secondary-color: #416A35;
    --body-color: #333;
}

body {
    font-family: inter, sans-serif;
    color: var(--body-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: .2s ease;
}

a:hover {
    color: var(--secondary-color);
}

.icon {
    display: inline-block;
    position: relative;
    vertical-align: middle;
    width: 1.2em;
    height: auto;
}

/* Layout */

:root {
    --header-height: 7.5rem;
}

.container {
    width: 100%;
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* Header */

header .container {
    display: flex;
    align-items: center;
    gap: 3rem;
    color: #999;
    height: var(--header-height);
    font-weight: 600;
}

header .logo a {
    background-image: url('assets/logo.svg');
    --basewidth: 152px;
    --ratio: .27;
    flex-shrink: 0;
}

header .nav-menu {
    display: flex;
    column-gap: 2rem;
    row-gap: 1rem;
    flex-wrap: wrap;
}

header .nav-button {
    display: none;
}

@media print, screen and (max-width: 40rem) {

    header .container {
        justify-content: space-between;
        position: relative;
    }

    header .nav-button {
        display: inline-block;
        font-size: 2rem;
    }

    header nav.active {
        display: inline-block;
    }

    header nav.active .nav-menu {
        display: block;
    }

    header .nav-menu {
        display: none;
        position: absolute;
        right: 1.5rem;
        top: 5rem;
        z-index: 100;
        background: #fff;
        text-align: right;
        box-shadow: 0 .5em 1em rgba(0,0,0,.25);
        border-radius: .5rem;
        overflow: hidden;
    }
    
    header .nav-menu a {
        display: block;
        padding: .5em 1em;
    }
    
    header .nav-menu a:hover {
        background-color: var(--secondary-color);
        color: #fff;
    }

}

/* Hero */

.hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #ffbc4d 100%);
    height: 70svh;
    min-height: 30rem;
    position: relative;
}

.hero .container {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: flex-start;
    justify-content: flex-end;
    position: relative;
    z-index: 10;
}

.hero h1 {
    background-image: url('assets/title.svg');
    --basewidth: 553px;
    --ratio: .27;
    max-width: 100%;
    background-position: center 75%;
}

.hero p {
    font-family: BreulGrotesk, sans;
    font-size: clamp(1.13rem, calc(0.76rem + 1.21vw), 1.67rem);
    width: min(100%, 34rem);
    max-width: 100%;
    background-color: rgba(255, 255, 255, .5);
    padding: .5em;
    margin: 0 clamp(-0.50rem, calc(0.33rem + -1.11vw), 0.00rem) clamp(1.00rem, calc(0.33rem + 2.22vw), 2.00rem);
}

.btn {
    font-family: BreulGrotesk, sans;
    font-size: clamp(1.25rem, calc(0.95rem + 1.00vw), 1.70rem);
    font-weight: 100;
    background-color: var(--secondary-color);
    color: #fff;
    padding: clamp(1.00rem, calc(0.67rem + 1.11vw), 1.50rem);;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .15em;
    margin-bottom: clamp(2.00rem, calc(0.67rem + 4.44vw), 4.00rem);;
}

.btn:hover {
    color: #fff;
    filter: saturate(1.5);
}


.hero > img {
    position: absolute;
    bottom: 0;
    right: clamp(0.00rem, calc(-15.34rem + 34.09vw), 18.75rem);
    height: 75svh;
    min-height: 34.5rem;
    object-fit: cover;
    pointer-events: none;
}

.icon.whatsapp,
.icon.email,
.icon.phone,
.icon.facebook,
.icon.linkedin {
    margin-right: .5em;
    top: -2px;
}

.icon.bindanaku {
    margin-right: .3em;
    top: -1px;
}

/* Details */

.details {
    margin: clamp(2.00rem, calc(0.67rem + 4.44vw), 4.00rem) 0;
    display: flex;
    gap: 4rem;
}

.details .container {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(2.00rem, calc(0.67rem + 4.44vw), 4.00rem);
}

.details ul {
    padding: 0;
    margin: 0;
    list-style-type: none;
}

.details h2 {
    font-family: BreulGrotesk, sans;
    font-weight: 400;
    font-size: clamp(1.50rem, calc(1.37rem + 0.44vw), 1.70rem);
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: .05em;
    margin-bottom: clamp(1.00rem, calc(0.33rem + 2.22vw), 2.00rem);
}

/* Pengalaman */

#pengalaman {
    width: 100%;
}

#pengalaman ul {
    display: flex;
    overflow-x: scroll;
    scroll-snap-type: x mandatory;
    direction: rtl;
    scroll-behavior: smooth;
    cursor: ew-resize;
    padding-top: .5rem;
}

#pengalaman li {
    max-width: 100%;
    flex-shrink: 0;
    scroll-snap-align: start;
    text-align: left;
    position: relative;
    border-top: 2px solid #999;
}

#pengalaman li.current {
    border-top: 2px dotted #999;
}

#pengalaman li::after {
    content: '';
    position: absolute;
    top: -.5rem;
    left: 0;
    display: block;
    width: 1rem;
    height: 1rem;
    background-color: #999;
    border-radius: 50%;
}

#pengalaman li > div {
    padding: 2rem clamp(1.00rem, calc(0.00rem + 3.33vw), 2.50rem) 2rem 0;
}

#pengalaman li h3 {
    font-family: BreulGrotesk, sans;
    font-weight: 400;
    font-size: clamp(1.13rem, calc(0.96rem + 0.56vw), 1.38rem);
    color: var(--primary-color);
}

#pengalaman li span {
    font-weight: 700;
    font-size: .85em;
    text-transform: uppercase;
}

/* Sertifikasi */

#lpjk {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

#lpjk .section-logo {
    width: 5.6rem;
}

#lpjk .section-logo img {
    object-fit: contain;
}

#lpjk li {
    margin-bottom: 1rem;
}

#lpjk li:last-child {
    margin-bottom: 0;
}

/* Pelatihan */

#pelatihan {
    flex-grow: 1;
    flex-basis: 30rem;
}

#pelatihan li {
    margin-bottom: 1rem;
}

#pelatihan li:last-child {
    margin-bottom: 0;
}

/* Kontak */

#kontak {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    column-gap: 3rem;
    align-items: baseline;
}

#kontak ul {
    display: flex;
    column-gap: 2rem;
    row-gap: 1rem;
    flex-wrap: wrap;
}

@media print, screen and (max-width: 500px) {
  
  #kontak li {
    width: 100%;
  }
  
}

/* Footer */

footer .container {
    border-top: 1px solid #999;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    color: #999;
    font-size: .95em;
}

/* Helpers */

.ir {
    background-position: center center;
    background-repeat: no-repeat;
    background-size: contain;
    text-indent: -9999em;
    overflow: hidden;
    width: var(--basewidth);
    height: calc(var(--basewidth) * var(--ratio));
    color: transparent !important;
}