@font-face {
  font-family: 'Pontano Sans';
  src: url('../fonts/Pontano_Sans/static/PontanoSans-Regular.eot');
  src: url('../fonts/Pontano_Sans/static/PontanoSans-Regular.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Pontano_Sans/static/PontanoSans-Regular.woff2') format('woff2'),
       url('../fonts/Pontano_Sans/static/PontanoSans-Regular.woff') format('woff'),
       url('../fonts/Pontano_Sans/static/PontanoSans-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Doto';
  src: url('../fonts/Doto/static/Doto-Regular.eot');
  src: url('../fonts/Doto/static/Doto-Regular.eot?#iefix') format('embedded-opentype'),
       url('../fonts/Doto/static/Doto-Regular.woff2') format('woff2'),
       url('../fonts/Doto/static/Doto-Regular.woff') format('woff'),
       url('../fonts/Doto/static/Doto-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* Gradient background */
body {
  background: linear-gradient(120deg, #ffffff, #dfdfdf, #c4c4c4);
  background-size: 400% 400%;
  animation: gradientAnimation 10s ease infinite;
  margin: 0;
  padding: 0;
  color: black;
  font-family: 'Pontano Sans', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

@keyframes gradientAnimation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Particles */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: #ffffff;
  border-radius: 50%;
  animation: float 4s infinite ease-in-out;
}

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

/* Binary numbers */
.binary {
  position: absolute;
  color: lime;
  font-family: "Courier New", Courier, monospace;
  font-size: 30px;
  animation: floatBinary 1.5s linear infinite;
  pointer-events: none;
}

@keyframes floatBinary {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1.5);
    opacity: 0;
  }
}

/* Typewriter effect */
#typewriter {
  position: absolute;
  left: 20px;
  top: 20px;
  font-family: 'Doto', sans-serif;
  font-size: 2em;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid black;
  padding-right: 5px;
  animation: typewriter 2s steps(30) 1s forwards, blink 0.75s step-end infinite;
  color: black;
  z-index: 10;
}

@keyframes typewriter {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Main content */
#main-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 100px auto 60px;
  padding: 40px 20px;
  text-align: center;
}

/* Navigation */
.top-nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.link {
  color: black;
  text-decoration: none;
  font-size: 18px;
  font-family: 'Pontano Sans', sans-serif;
  transition: all 0.3s ease;
}

.link:hover {
  text-decoration: underline;
}

/* Heading */
h1 {
  font-size: 2em;
  font-weight: normal;
  margin-bottom: 50px;
  font-family: 'Pontano Sans', sans-serif;
  letter-spacing: 1px;
}

/* Blog list container with glassmorphism - Apple style */
#blog-list {
  list-style: none;
  padding: 30px 40px;
  margin: 0 auto;
  max-width: 700px;
  display: flex;
  flex-direction: column;
  gap: 8px;

  /* Apple-style glassmorphism effect */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
}

#blog-list li {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}

#blog-list li:nth-child(1) { animation-delay: 0.1s; }
#blog-list li:nth-child(2) { animation-delay: 0.2s; }
#blog-list li:nth-child(3) { animation-delay: 0.3s; }
#blog-list li:nth-child(4) { animation-delay: 0.4s; }
#blog-list li:nth-child(5) { animation-delay: 0.5s; }
#blog-list li:nth-child(n+6) { animation-delay: 0.6s; }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#blog-list li a {
  text-decoration: none;
  color: black;
  font-size: 17px;
  font-family: 'Pontano Sans', sans-serif;
  display: block;
  padding: 14px 18px;
  transition: all 0.3s ease;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

#blog-list li a:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-top: 40px;
  font-family: 'Pontano Sans', sans-serif;
}

.pagination button {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 10px 20px;
  color: black;
  font-family: 'Pontano Sans', sans-serif;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.pagination button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination .page-info {
  font-size: 15px;
  color: black;
}

/* Footer */
footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  z-index: 10;
  font-family: 'Pontano Sans', sans-serif;
}

footer p {
  margin: 0;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  #typewriter {
    font-size: 1.5em;
  }

  h1 {
    font-size: 2em;
  }

  #blog-list li a {
    font-size: 18px;
  }

  .top-nav {
    gap: 20px;
  }

  #main-content {
    margin-top: 80px;
    padding: 20px;
  }
}
