/* Reset default browser styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  /* Set basic styles */
  body {
    font-family: "Anonymous Pro", monospace, sans-serif;
    background-color: #000;
    color: #fff;
  }
  
  .container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px;
  }
  
  /* Header styles */
  header {
    background-color: #000;
    color: #fff;
    padding: 20px;
  }
  
  .profile-image {
    width: 300px;
    height: 300px;
    display: block;
    margin: 0 auto;
  }
  
  nav ul {
    list-style-type: none;
    text-align: center;
  }
  
  nav ul li {
    display: inline-block;
    margin: 0 10px;
  }
  
  nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease-in-out;
  }
  
  nav ul li a:hover {
    color: #00ffcc;
  }
  
  /* Home section styles */
  #home {
    background-image: url("background.jpg");
    background-size: cover;
    background-position: center;
    text-align: center;
    padding: 50px 0;
    animation: pulse 2s infinite;
  }
  
  #home h1 {
    font-size: 64px;
    font-weight: bold;
    margin-bottom: 20px;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }
  
  #home p {
    font-size: 24px;
    color: #fff;
  }
  
  #typing-text {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #00ffcc;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  }
  
  
  #home p {
    font-size: 24px;
    color: #fff;
  }

  .social-media {
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .social-media a {
    color: #fff;
    font-size: 24px;
    margin-right: 20px;
    text-decoration: none;
  }

  .social-media a:hover {
      color: #00ffcc;
  }

  
  /* About section styles */
  #about {
    padding: 80px 0;
    background-color: #111;
  }
  
  #about h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #00ffcc;
  }
  
  #about p {
    font-size: 18px;
    line-height: 1.5;
  }

  #about a {
    color: white;
  }
  
  /* Writings section styles */
  #writings {
    padding: 80px 0;
    background-color: #222;
  }
  
  #writings h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #00ffcc;
  }
  
  .writing-platforms {
    margin-top: 20px;
  }
  
  .writing-platforms a {
    display: block;
    margin-bottom: 10px;
    color: white;
    text-decoration: none;
  }
  
  .writing-platforms a:hover {
    text-decoration: underline;
  }
  
  .gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 20px;
    margin-top: 40px;
  }
  
  .gallery img {
    width: 100%;
    border-radius: 5px;
  }
  
  /* Projects section styles */
#projects {
  padding: 80px 0;
  background-color: #111;
  text-align: center;
}

#projects h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #00ffcc;
}

.project-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.project {
  flex: 0 0 calc(33% - 20px);
  background-color: #555;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 30px;
  margin-left: 10px;
  margin-right: 10px;
}

.project img {
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.project h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #000;
}

.project p {
  font-size: 14px;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #ccc;
}

.project-details-button {
  display: inline-block;
  padding: 6px 15px;
  background-color: #00ffcc;
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: background-color 0.3s ease-in-out;
}

.project-details-button:hover {
  background-color: #009980;
}

  /* CSS styles for the carousel and book covers */

  #bookshelf h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #00ffcc;
  }

  #bookshelf {
    text-align: center;
    padding: 80px 0;
    background-color: #222;
  }

  .carousel-container {
    width: 400px;
    height: auto;
    margin: 0 0;
    display: grid;
    grid-template-columns: repeat(6, 2fr);
    grid-gap: 20px;
    margin-top: 40px;
  }
  .carousel-item img {
    width: 100px;
    height: 150px;
    object-fit: cover;
  }

  .book-title {
    font-size: 16px;
    color: white;
    padding: 3px;
    margin-top: 5px;
    display: block;
  }

  @media (max-width: 768px) {
    /* Adjust container width and padding */
    .container {
      max-width: 90%;
      padding: 0 15px;
    }
  
    /* Adjust gallery grid */
    .gallery {
      grid-template-columns: repeat(2, 1fr);
    }
  
    /* Adjust bookshelf carousel */
    .carousel-container {
      width: 90%;
      grid-template-columns: repeat(2, 1fr);
    }
  
    /* Adjust article width */
    .article {
      width: 100%;
    }
  }

  /* Contact section styles */
  #contact {
    padding: 80px 0;
    background-color: #333;
  }
  
  #contact h2 {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #00ffcc;
  }
  
  form input,
  form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 5px;
    color: #fff;
    font-family: "Anonymous Pro", monospace, sans-serif;
  }
  
  form textarea {
    resize: vertical;
    min-height: 150px;
  }
  
  form button {
    display: block;
    width: 150px;
    padding: 10px;
    margin: 0 auto;
    background-color: #00ffcc;
    border: none;
    border-radius: 5px;
    color: #000;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out

    }

    #about {
      text-align: center;
    }

    #writings {
      padding-top: 50px;
      text-align: center;
    }
    
    #writings-gallery {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 20px;
    }
    
    .article {
      flex: 0 0 auto;
      width: 220px;
      background-color: #f4f4f4a0;
      padding: 10px;
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      text-align: center;
    }
    
    .article a {
      text-decoration: none;
      color: #000;
    }
    
    .article img {
      width: 120px;
      height: 80px;
      border-radius: 4px;
      object-fit: cover;
      margin-bottom: 10px;
    }
    
    .article p {
      font-size: 14px;
      line-height: 1.4;
      margin-bottom: 0;
    }


/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  color: black;
}

.modal-content {
  text-align: center;
  position: relative;
  margin: 10% auto;
  padding: 20px;
  width: 80%;
  max-width: 600px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
}

.article-details {
  text-align: center;
}

#modal-title {
  margin-top: 50;
  margin-bottom: 50;
  font-size: 28px;
  text-align: center;
}

#modal-image {
  width: 70%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  margin-bottom: 20px;
}

#modal-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.see-all-button {
  display: inline-block;
  padding: 10px 20px;
  background-color: #00ffcc;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease-in-out;
  margin-top: 50px;
}

.see-all-button:hover {
  background-color: #009980;
}