/* css variables */
    :root {
      --primary-color: #4f46e5;
      --secondary-color: #93c5fd;
      --text-color: #333;
    }

    /* Reset */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

    body {
      font-family: Arial, sans-serif;
      line-height: 1.6;
      color: var(--text-color);
    }

    /* header */
    header {
      background: var(--primary-color);
      color: white;
      padding: 20px 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    .branding {
      display: flex;
      position: relative;
      align-items: flex-start;
      gap: 12px;
    }

    .logo img {
      width: 60px;
      height: 60px;
      border-radius: 8%;
      object-fit: cover;
      display: block;
      margin-left: 20px;
    }

    .instansi-name {
      font-size: 24px;
      font-weight: bold;
      opacity: 0;
      animation: fadeIn 2s forwards;
      margin: 0;
    }

    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(-10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    /* Style dasar */
body {
  margin: 0;
  font-family: Arial, sans-serif;
}

.navbar{
    display: flex;
    align-items: center;
    justify-content: center;
    height: 80px;
    width: 100%;
    position: sticky;
    top: 0;
    background: transparent;
    box-shadow: 0 10px 20px;
    backdrop-filter: blur(10px);
    z-index: 999;
}

.navbar-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 2rem;
    max-width: 1600px;
}
.navbar-container .navbar-menu{
    display: flex;
    text-align: center;
    gap: 1.5rem;
    list-style: none;
}
.navbar-container .navbar-menu li a{
    text-decoration: none;
    color: white;
    font-size: 1.3rem;
    font-weight: 500;
    padding: 3px 20px;
    border-radius: 20px;
    border: 2px solid transparent;
    transition: all 0.7s ease;
    white-space: nowrap;
}

.navbar-container .navbar-menu li a:hover,
.navbar-container .navbar-menu li a.acttive{
    color: black;
    background: white;
    border: 2px solid white;
}
.navbar-toggle{
    display: none;
    background: transparent;
    padding: 10px;
    border: none;
    cursor: pointer;
}

.bar{
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background: white;
    transition: all 0.3s ease;
}

/* Responsive untuk HP */
@media (max-width: 880px){
    .navbar{
        backdrop-filter: none;
    }
    .navbar-container .navbar-menu{
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.7rem !important;
        position: absolute;
        height: 100vh;
        width: 250px;
        top: 0;
        right: 0;
        padding: 5rem 1.5rem;
        box-shadow: 0 10px 10px black;
    }
    .navbar-container .navbar-menu.active{
        display: flex;
        background: #4f46e5;
    }
    .navbar-toggle{
        display: block;
        z-index: 999;
    }
    .navbar-toggle.active .bar:nth-child(2){
        opacity: 0;
    }
    .navbar-toggle.active .bar:nth-child(1){
        transform: translateY(8px) rotate(45deg);
    }
    .navbar-toggle.active .bar:nth-child(3){
        transform: translateY(-8px) rotate(-45deg);
    }
}
@media (max-width: 480px){
    .navbar-container{
        padding: 0 1rem;
    }

    .navbar-container .navbar-menu li a{
        font-size: 1.2rem;
        padding: 3px 60px;
    }
}
   

    /* about us */
    .about {
      padding: 50px;
      background: #f9f9f9;
    }

    .about h2 {
      margin-bottom: 20px;
      display: flex;
      justify-content: space-between;
    }

    .about p {
      column-count: 2;
      column-gap: 30px;
      text-align: justify;
    }

    .about img {
      width: 100%;
      max-width: 400px;
      display: block;
      margin: 20px auto;
      filter: grayscale(100%);
      transition: filter 0.5s ease;
      border-radius: 0.5rem;
      box-shadow: 1px 1px 3px rgba(1, 1, 3, 0.5);
    }

    .about img:hover {
      filter: grayscale(0);
    }

    /* sruktur original */
    .organisasi {
      padding: 50px;
      text-align: center;
    }

    .organisasi h2 {
      margin-bottom: 20px;
    }

    .team {
      display: flex;
      justify-content: center;
      gap: 30px;
      flex-wrap: wrap;
    }

    .person {
      position: relative;
    }

    .person img {
      width: 120px;
      height: 120px;
      border-radius: 50%;
      object-fit: cover;
      border: 3px solid var(--primary-color);
    }

    .tooltip {
      visibility: hidden;
      background: var(--primary-color);
      color: white;
      padding: 5px 10px;
      border-radius: 5px;
      position: absolute;
      bottom: -40px;
      left: 50%;
      transform: translateX(-50%);
      white-space: nowrap;
      font-size: 14px;
    }

    .person:hover .tooltip {
      visibility: visible;
    }

    /* galeri */
    .gallery {
      padding: 50px;
      background: #f9f9f9;
    }

    .gallery h2 {
      text-align: center;
      margin-bottom: 20px;
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 20px;
    }

    .gallery-grid img {
      width: 100%;
      height: 200px;
      object-fit: cover;
      border-radius: 20px;
      filter: sepia(30%);
      transition: all 0.5s ease;
      mask-image: radial-gradient(circle, rgba(0,0,0,1) 95%, transparent 100%);
      mask-repeat: no-repeat 20px;
      mask-position: center;
      mask-size: cover;
    }

    .gallery-grid img:hover {
      filter: none;
      transform: scale(1.05);
    }

    /* berita */
    .news {
      padding: 50px;
    }

    .news h2 {
      text-align: center;
      margin-bottom: 20px;
    }

    .news p {
      column-count: 3;
      column-gap: 30px;
      text-align: justify;
    }

    .pagination {
      text-align: center;
      margin-top: 20px;
    }

    .pagination a {
      margin: 0 5px;
      text-decoration: none;
      color: var(--primary-color);
      border: 1px solid var(--primary-color);
      padding: 5px 10px;
      border-radius: 5px;
      transition: all 0.3s ease;
    }

    .pagination a:hover {
      background: var(--primary-color);
      color: white;
    }

    /* kontak */
    .contact {
      padding: 50px;
      background: #f9f9f9;
    }

    .contact h2 {
      text-align: center;
      margin-bottom: 20px;
    }

    form {
      max-width: 600px;
      margin: auto;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }

    form input, form textarea {
      padding: 10px;
      border: 1px solid #ccc;
      border-radius: 8px;
      font-size: 14px;
      width: 100%;
    }

    form textarea {
      grid-column: span 2;
      resize: none;
    }

    form button {
      grid-column: span 2;
      padding: 12px;
      border: none;
      border-radius: 8px;
      background: var(--primary-color);
      color: white;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.3s ease, transform 0.2s ease;
    }

    form button:hover {
      background: var(--secondary-color);
      transform: scale(1.05);
    }

    footer .credit {
      font-size: 0.8rem;
      text-align: center;
      padding-bottom: 0;
    }

    /* Laptop */
    @media (max-width: 1366px) {
      html {
        font-size: 75%;
      }
    }

    
    

      
    