html {
    scroll-behavior: smooth;
}

html::-webkit-scrollbar {
    display: none !important;
}

body {
    font-family: 'Organetto';
    font-optical-sizing: auto;
    font-weight: normal;
    font-style: normal;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    transition: all 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* root color */

:root {
    --bs-body-bg: #f8f9fa;
    --bs-body-color: rgb(21, 23, 27);
}

[data-bs-theme="dark"] {
    --bs-body-bg: rgb(21, 23, 27);
    --bs-body-color: #f8f9fa;
}

/* font */

@font-face {
    font-family: 'Organetto';
    src: url('/static/fonts/Organetto-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Organetto UltraBold SemiExt';
    src: url('/static/fonts/Organetto-UltraBoldSemiExt.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

/* navbar */

.navbar {
    transition: background-color 0.3s ease-in-out;
    background: transparent;
    backdrop-filter: blur(1.5px);
}

.nav-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 60px;
}

.atur {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item .nav-link {
    font-weight: 600;
    line-height: 1.2;
    padding: 0.5rem 0.75rem;
}

/* hero */

.hero {
    padding: 6rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
}

/* section */

.section-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

/* card image */

.project-card img {
    border-radius: 0.5rem;
}

.social-icons a {
    color: var(--bs-body-color);
    margin: 0 0.5rem;
    font-size: 1.25rem;
}

/* button */

.dynamic-btn {
    color: rgb(21, 23, 27);
    border: 1px solid rgb(21, 23, 27);
    background-color: transparent;
    animation: 0.5s ease-in-out;
}

.dynamic-btn:hover {
    background-color: rgb(21, 23, 27);
    animation: 0.5s ease-in-out;
    color: #eaebed;
}

/* dark mode */

[data-bs-theme="dark"] .dynamic-btn {
    color: #eaebed;
    border: 1px solid #eaebed;
    background-color: transparent;
    transition: all 0.3s ease-in-out;
}

[data-bs-theme="dark"] .dynamic-btn:hover {
    background-color: #eaebed;
    color: rgb(21, 23, 27);
    transition: all 0.3s ease-in-out;
}

/* zoom animate */

.zoom-on-load {
    opacity: 0;
    transform: scale(0.8);
    animation: zoomIn 0.35s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes zoomIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* nav link */

.navbar-nav .nav-item .nav-link {
    font-weight: 700;
    line-height: 1.2;
    padding: 0;
    margin: 0 12px;
    display: inline-block;
    position: relative;
}

.navbar-nav .nav-item .nav-link.active {
    font-weight: 800;
}

.navbar-nav .nav-item .nav-link.active::after {
    content: "";
    display: block;
    height: 2px;
    background-color: #444;
    margin-top: 0px;
    width: 100%;
}

[data-bs-theme="dark"] .nav-link.active::after {
    background-color: #eaebed;
}

/* multi-language */

[data-i18n] {
    transition: opacity 0.3s ease;
    opacity: 1;
}

[data-i18n].fade-out {
    opacity: 0;
}

#langToggleBtn {
    padding: 0;
    border: 1px solid transparent;
    width: 30px;
    height: 30px;
    background: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#langToggleBtn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

/* animation */

@keyframes click-scale {
    0%   { transform: scale(1); }
    50%  { transform: scale(0.85); }
    100% { transform: scale(1); }
}

.flag-animate {
    animation: click-scale 0.2s ease;
}

footer {
    background-color: var(--bs-body-bg);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--bs-border-color);
    color: var(--bs-body-color);
}

/* kode responsive */

@media (max-width: 768px) {
    html {
        font-size: 90%;
    }

    body {
        font-size: 1rem;
        padding: 0rem;
        width: 90%;
        margin: 0 auto;
    }

    .navbar-nav {
        display: flex;
        flex-direction: row;
        align-items: center;
        padding-left: 0;
        margin-bottom: 0;
        list-style: none;
    }

    .navbar-nav .nav-item {
        margin-right: 1rem;
    }

    .navbar-collapse.navbarr {
        display: flex !important;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
        font-size: 0.8125rem;
        margin-top: 0;
    }

    .navbar-collapse.navbarr ul.navbar-nav {
        flex-direction: row;
        gap: 0.625rem;
    }

    .navbar-collapse.navbarr .dynamic-btn {
        margin-left: 1.25rem;
    }

    .pesan {
        width: 90%;
        margin-top: clamp(1rem, 4vw, 2rem);
    }

    .atur {
        margin-top: 0.46875rem;
        font-size: 0.75rem;
        font-weight: 600;
        opacity: 90%;
    }

    form label,
    form input,
    form textarea,
    form button {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
    }

    .navv {
        font-size: 0.75rem;
        margin-top: 0.1rem;
        opacity: 90%;
        margin-left: -35px;
        margin-right: 14px;
    }

    .pon {
        font-size: clamp(0.75rem, 1rem, 1.1rem);
    }

    .pp {
        font-size: 85%;
    }

   .nav-grid {
      grid-template-columns: auto 1fr auto;
      min-height: 50px;
      margin: 0 auto;
      margin-left: 27.5px;

    .nav-link {
      margin-top: -5px;
    }

  }

}