
.navbar {
    width: 100%;
    background-color: #0009FF;
    position: fixed;
    z-index: 3;
    overflow: hidden;
}

.navbar-brand  {
    font-size: 2rem;
    font-family: 'Gabarito', sans-serif;
    font-optical-sizing: auto;
    font-weight: bold;
    font-style: normal;
}

.navbar-brand span:first-child {
    color: #FFF600;
}
.navbar-brand span:last-child {
    color: #d2d2d2;
}
.navbar-nav .nav-item{
    font-size: 1.1rem;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: white;
}

.nav-link{
    position: relative;
    display: inline-block;
    color: white;
    text-decoration: none;
}
.nav-link::after{
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    left: 0;
    bottom: -3px;
    background-color: #B2DA25;
    transition: width 0.3s ease;
}
.nav-link:hover::after{
    width: 100%;
    color: #B2DA25;
}

.nav-link:hover{
    color: #B2DA25;
    transition: 0.3s;
}
.nav-link:active{
    color: #B2DA25;
}
.navbar .btn-cv{
    border: 3px solid #FFF600;
    font-family: 'Poppins', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    font-weight: 1.2rem;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    transition: 0.3s;
    box-shadow:  0px 0px 4px 1px #FFF600;
}
.navbar .btn-cv:hover{
    background-color: #FFF600;
    box-shadow: 0px 0px 8px 2px #FFF600;
    transform: scale(1.05);
    color: black;
}

#navbarNav {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background-color: #0009FF; /* warna default nav */
  padding: 1rem;
  border-radius: 12px;
}

#navbarNav.show {
  display: flex;
}

/* agar tombol di posisi kanan */
.navbar-toggler {
  background: none;
  border: none;
  cursor: pointer;
  color: white;
}

@media (min-width: 992px) {
  #navbarNav {
    display: flex !important;
    flex-direction: row;
    background: none;
    padding: 0;
  }
}


.navbar.scrolled {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1) ;
}
.navbar.scrolled #navbarNav {
    background-color: #f8f9fa;
    transition: background-color 0.3s ease;
}
.navbar.scrolled .nav-link,
.navbar.scrolled .navbar-brand span:last-child,
.navbar.scrolled .navbar {
    color: black; 
}
.navbar.scrolled .btn-cv,.navbar.scrolled .btn-cv{
    color: #0009FF;
}

.navbar.scrolled .navbar-brand span:first-child {
    color: #0009FF; 
}
.navbar.scrolled .btn-cv:hover {
    background-color: #0009FF;
    box-shadow: 0px 0px 8px 2px #0009FF;
    color: white;
}


.navbar.scrolled .btn-cv {
    border-color: #0009FF;
    box-shadow: 0px 0px 0px 0px;
}


body {
      background-color: #f8f9fa;
}

.profile-section,
.credential-section,
.skills-section,
.portfolio-section,
.contact-section,
.footer-section {
    scroll-margin-top: 80px;
}

