html {
    scroll-behavior: smooth;
}

body, html {
    overflow-x: hidden;
}

body {
    overflow-y: scroll;
}

::-webkit-scrollbar {
    display: none;
}

body {
    background-color: #fff;
    font-family: "Poppins", sans-serif;
}

p {
    font-weight: 400;
}

.navbar.scrolled-navbar {
    transition: background-color 2s ease, padding 0.3s ease;
    padding-bottom: 1rem;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.fade-in {
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
}

.fade-in.visible {
    animation: fadeInUp 1.5s ease forwards;
    opacity: 1;
    -webkit-animation: fadeInUp 1.5s ease forwards;
}

.fade-in2 {
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
}

.fade-in2.visible {
    animation: fadeInUp 2s ease forwards;
    opacity: 1;
    -webkit-animation: fadeInUp 2s ease forwards;
}

.fade-in3 {
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
}

.fade-in3.visible {
    animation: fadeInUp 1s ease forwards;
    opacity: 1;
    -webkit-animation: fadeInUp 1s ease forwards;
}

.fade-in4 {
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-transition: opacity 0.3s ease;
    -moz-transition: opacity 0.3s ease;
    -ms-transition: opacity 0.3s ease;
    -o-transition: opacity 0.3s ease;
}

.fade-in4.visible {
    animation: fadeInUp 2.5s ease forwards;
    opacity: 1;
    -webkit-animation: fadeInUp 2.5s ease forwards;
}

.navbar {
    animation: navbarSlideIn 1s ease forwards;
    opacity: 0;
    -webkit-animation: navbarSlideIn 1s ease forwards;
}

.navbar.visible {
    opacity: 1;
}

.navbar.scrolled-navbar .nav-link {
    color: #000000 !important;
}

.navbar.scrolled-navbar .nav-link:hover {
    color: #fff !important;
    background-color: #fcc435 !important;
}

.disabled {
    pointer-events: none;
}

.navbar.scrolled-navbar .navbar-brand {
    color: #000000;
}

.navbar.scrolled-navbar .span-brand-n {
    color: #fcc435 !important;
}

.nav-link {
    color: #000;
}

.nav-link:hover {
    transition: 0.5s;
    background-color: white;
    color: #fcc435 !important;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    -ms-border-radius: 5px;
    -o-border-radius: 5px;
    -webkit-transition: 0.5s;
    -moz-transition: 0.5s;
    -ms-transition: 0.5s;
    -o-transition: 0.5s;
}

.nav-item .nav-link.active {
    background-color: #fcc435;
    color: #fff !important;
    border-radius: 5px;
}

.navbar-brand {
    color: #fff;
}

.home {
    transition: 1s;
    overflow: hidden;
    position: relative;
    background-image: url("../img/wave (13).svg");
    background-size: initial;
    background-repeat: no-repeat;
    padding: 100px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
}

.home.visible {
    animation: backgroundSlideIn 1s ease forwards;
    opacity: 1;
    -webkit-animation: backgroundSlideIn 1s ease forwards;
}

.row-home {
    margin-top: 8rem;
}

.img-portofolio {
    transition: filter 0.3s ease;
    -webkit-box-shadow: 0px 0px 7px 1px rgba(252, 196, 53, 1);
    -moz-box-shadow: 0px 0px 7px 1px rgba(252, 196, 53, 1);
    box-shadow: 0px 0px 7px 1px rgba(252, 196, 53, 1);
}

.project-button {
    background-color: #fcc435;
    border-radius: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.project-button:hover {
    border: solid #fcc435 2px;
    color: #fcc435 !important;
    transition: 0.3s;
    border-radius: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.project-button2 {
    border: solid #fcc435 2px;
    color: #fcc435;
    border-radius: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.project-button2:hover {
    background-color: #fcc435;
    color: #fff;
    transition: 0.3s;
    border-radius: 1rem;
    padding-left: 1rem;
    padding-right: 1rem;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.github-button {
    border: 2px solid #fcc435;
    font-size: 1.7rem;
    color: #fcc435;
    margin-right: 8px;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.github-button:hover {
    background-color: #fcc435;
    transition: 0.3s;
    font-size: 1.7rem;
    color: #fff;
    margin-right: 8px;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.github-button2 {
    background-color: #fcc435;
    font-size: 1.7rem;
    color: #fff;
    margin-right: 8px;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.github-button2:hover {
    transition: 0.3s;
    border: 2px solid #fcc435;
    font-size: 1.7rem;
    color: #fcc435;
    margin-right: 8px;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-transition: 0.3s;
    -moz-transition: 0.3s;
    -ms-transition: 0.3s;
    -o-transition: 0.3s;
}

.home {
    overflow: hidden;
    position: relative;
    background-image: url("../img/wave (13).svg");
    background-size: initial;
    background-repeat: no-repeat;
    padding: 100px 0;
}

.home-text {
    transition: 1s;
    color: #6c757d;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
}

.about-text {
    transition: 1s;
    color: #6c757d;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
}

.portofolio {
    transition: 1s;
    overflow: hidden;
    position: relative;
    background-color: #fff;
    padding-top: 7.5rem;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
}

.auto-height {
    height: auto;
    min-height: 60px;
}

#message {
    resize: none;
    overflow-y: auto;
}

.skills {
    transition: 1s;
    overflow: hidden;
    position: relative;
    padding-top: 7.5rem;
    padding-bottom: 7.5rem;
    background-color: #f2f2f2;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
}

.body-text {
    color: #6c757d;
}

.body-text2 {
    color: #6c757d;
}

.header-text {
    color: #000;
}

.header-text2 {
    color: #000;
}

footer li {
    margin-bottom: 1rem;
}

footer p {
    color: #f6f6f6;
}

footer h3 {
    color: #fff;
}

footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

footer a {
    text-decoration: none;
    color: #f6f6f6;
}

footer {
    padding-bottom: 8rem;
    background-color: #fcc435;
}

.gallery {
    transition: 1s;
    overflow: hidden;
    position: relative;
    background-color: #f2f2f2;
    padding-bottom: 7.5rem;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
}

.card {
    transition: background-color 0.3s ease, color 0.3s ease;
}

.card:hover {
    background-color: #fff !important;
    color: black !important;
}

.image-effect {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.image-effect:hover {
    filter: grayscale(100%);
    transform: scale(1.02);
}

.image-effect-big {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.image-effect-big:hover {
    filter: grayscale(100%);
    transform: scale(1.02);
}

.contact {
    transition: 1s;
    padding-top: 7.5rem;
    padding-bottom: 9rem;
    background-color: #fff;
    overflow: hidden;
    position: relative;
    -webkit-transition: 1s;
    -moz-transition: 1s;
    -ms-transition: 1s;
    -o-transition: 1s;
}

input {
    display: none;
}

label {
    width: 50px; /* Lebih kecil dari sebelumnya */
    height: 25px; /* Lebih kecil dari sebelumnya */
    border-radius: 999px;
    background: #F3F3F3;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05) inset;
    cursor: pointer;
    position: relative;
}

.circle {
    width: 20px; /* Lebih kecil dari sebelumnya */
    height: 20px; /* Lebih kecil dari sebelumnya */
    border-radius: 50%;
    background: white;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05),
                -2px -2px 5px rgba(0, 0, 0, 0.05) inset;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(10%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

svg {
    width: 10px; /* Lebih kecil untuk ikon */
    position: absolute;
}

.sun {
    color: #FFD600;
    opacity: 1;
}

.moon {
    margin-top: -100%;
    color: white;
    opacity: 0;
}

input[type=checkbox]:checked + .display label {
    background: #1F1F21;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5) inset;
}

input[type=checkbox]:checked + .display label .circle {
    left: 100%;
    transform: translate(-110%, -50%);
    background: #2C2C2F;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5),
                -2px -2px 5px rgba(0, 0, 0, 0.5) inset;
}

input[type=checkbox]:checked + .display label .circle .sun {
    opacity: 0;
}

input[type=checkbox]:checked + .display label .circle .moon {
    margin-top: 0;
    opacity: 1;
}

label:active .circle {
    width: 25px; /* Lebih kecil saat aktif */
}