html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --secondary: #64748b;
  --accent: #0ea5e9;
  --background: #f8fafc;
  --text: #1e293b;
}

body {
  background-color: var(--background);
  color: var(--text);
}

img:not(#img4) {
  width: 150px;
  position: absolute;
  left: 20px;
  top: 15px;
  cursor: pointer;
}

.navbar {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 1.25rem 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  padding: 1rem 2rem;
  background-color: rgba(255, 255, 255, 0.98);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 3rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.container {
  max-width: 500px;
  width: 100%;
  background: var(--primary);
  margin: 120px auto;
  border-radius: 8px;
}

.dokubox {
  padding: 20px 30px;
}

.dokubox h2 {
  color: #fff;
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
}

.pdf-table {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 30px;
}

.pdf-table p {
  font-size: 18px;
  font-weight: 500;
  flex: .8;
}

.pdf-table a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  border: 1.4px solid #fff;
  border-radius: 8px;
  padding: 10px 20px;
  transition: .2s ease-out;
}
.pdf-table a:hover {
  background: var(--text);
}

.fa-solid.fa-file-pdf {
  color: #fff;
  font-size: 20px;
  margin-right: 7px;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: float 3s ease-in-out infinite;
}

.ham-menu {
  display: none;
}

@media (min-width: 769px) {
  #img4 {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    position: absolute;
    top: 79px;  
    left: 0;
    padding: 1rem 0;
  }

  .nav-links.active {
    display: flex;
  }

  .ham-menu {
    display: block;
    cursor: pointer;
    font-size: 2rem;
  }

  .nav-links a {
    text-align: center;
    margin-left: 30px;
  }

  #img3 {
    display: none;
  }

  #img4 {
    position: absolute;
    top: 25px;
    right: 20px;
    width: 150px;
    cursor: pointer;
  }

  .container {
    max-width: 90%;
    margin: 100px auto; 
    padding: 15px; 
  }

  .dokubox {
    padding: 15px 20px;
  }

  .dokubox h2 {
    font-size: 20px;
    margin-bottom: 25px;
  }

  .pdf-table {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pdf-table p {
    font-size: 16px;
    flex: unset;
    margin-bottom: 10px; /* Adds spacing */
  }

  .pdf-table a {
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .fa-solid.fa-file-pdf {
    font-size: 18px;
  }
}