body, html {
  overflow-x: hidden;
  background: black;
  color: white;
  font-family: monospace;
  margin: 0;
  padding: 0;
}

#binaryMatrix {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30vw;
  height: 40vh;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

#binaryMatrix span {
  position: absolute;
  opacity: 0;
  transition: all 1s ease;
  font-size: 2rem;
  color: white;
  text-shadow: 0 0 5px aqua, 0 0 10px cyan, 0 0 20px deepskyblue;
}

#mainContent {
  display: none;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-direction: column;
  padding: 2rem 5vw;
  text-align: center;
  min-height: 100vh;
  background: linear-gradient(to bottom, #0b0b1f, #000000);
}

.hero-img {
  width: 180px;
  height: 180px;
  opacity: 0;
  display: block;
  margin-bottom: 1rem;
}

.hadesLogo {
  width: 180px;
  height: auto;
  font-family: monospace;
  font-size: 13px;
  color: white;
  line-height: 1.1;
  text-align: left;
  text-shadow: 0 0 5px aqua, 0 0 10px cyan, 0 0 20px deepskyblue;
  white-space: pre-wrap;
  background: transparent;
  display: block;
  opacity: 1;
}

.hero-title {
  font-size: 1.8rem;
  font-weight: bold;
}

#animated-text {
  background: linear-gradient(45deg, #8e44ad, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  color: #cccccc;
}

.title {
  max-width: 600px;
  width: 100%;
}

.btn {
  background: linear-gradient(90deg, #8e44ad, #3498db);
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 0 10px #8e44ad, 0 0 20px #3498db;
  transition: transform 0.3s, box-shadow 0.3s;
  margin-top: 5rem;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(142, 68, 173, 0.5);
}

.social-icons {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  font-size: 2rem;
  justify-content: center;
}

.social-icons a {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.5s ease-out forwards;
}

.social-icons a:nth-child(1) {
  animation-delay: 0.6s;
}
.social-icons a:nth-child(2) {
  animation-delay: 0.8s;
}
.social-icons a:nth-child(3) {
  animation-delay: 1s;
}

.social-icons a i {
  background: linear-gradient(135deg, #8e44ad, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: inherit;
  text-shadow: 0 2px 5px rgba(255, 255, 255, 0.3);
  transition: transform 0.3s, text-shadow 0.3s;
}

.social-icons a:hover i {
  transform: scale(1.3);
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
}

.about-section {
  padding: 4rem 5vw;
  text-align: center;
  background: linear-gradient(to bottom, #000000, #0b0b1f);
  color: white;
}

.about-heading {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(45deg, #8e44ad, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

.about-subheading {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 2rem;
}

.about-profile {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.about-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 5px solid transparent;
  background-image: linear-gradient(black, black),
    conic-gradient(from 0deg, #8e44ad, #3498db, #8e44ad);
  background-origin: border-box;
  background-clip: content-box, border-box;
}

.about-title {
  font-size: 1.2rem;
  color: #b0b0b0;
  margin-bottom: 0.2rem;
}

.about-name {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #8e44ad, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.about-desc {
  font-size: 0.95rem;
  color: #dddddd;
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  padding: 0 1rem;
}

body.blog-page {
  background: url('/assets/bg.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  color: white;
}

img.img-post {
  width: 70%;
  border-radius: 8%;
}

.post-section {
  max-width: 1200px;
  margin: 5rem auto;
  padding: 3rem 3vw;
  background: rgba(11, 11, 31, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  color: white;
  box-shadow: 0 0 30px rgba(142, 68, 173, 0.25);
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-title {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #8e44ad, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: bold;
}

.post-title-link {
  font-size: 1.2rem;
  color: #8ecdfc;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.post-excerpt {
  font-size: 0.95rem;
  color: #ccc;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.post-meta {
  font-size: 0.9rem;
  color: #aaa;
}

.post-content {
  font-size: 1rem;
  line-height: 1.8;
  color: #ddd;
}

.post-content-wrapper {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.post-content h2 {
  color: #8e44ad;
  margin-top: 2rem;
}

.post-content a {
  color: #3498db;
  text-decoration: underline;
}

.post-section ul {
  list-style: none;
  padding: 0;
}

.post-section li {
  background: #111827;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 4px solid #8e44ad;
  box-shadow: 0 4px 8px rgba(142, 68, 173, 0.2);
  transition: transform 0.2s ease;
}

.post-section li:hover {
  transform: translateX(5px);
  background: #1f2937;
}

.post-section li a {
  text-decoration: none;
  color: #8ecdfc;
  font-size: 1.2rem;
}

.post-section small {
  color: #aaa;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.post-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(142, 68, 173, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
  transfor2m: translateY(-5px);
  box-shadow: 0 8px 20px rgba(142, 68, 173, 0.3);
}

.post-card a {
  font-size: 1.3rem;
  color: #8ecdfc;
  text-decoration: none;
}

.post-card small {
  color: #aaa;
  display: block;
  margin-top: 0.5rem;
}

.post-thumb {
  width: 100%;
  object-fit: cover;
  filter: brightness(0.95);
}

.post-card:hover .post-thumbnail {
  transform: scale(1.03);
}

.post-tags {
  margin-top: 0.5rem;
}

.tag-badge {
  display: inline-block;
  background: #8e44ad;
  color: white;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-right: 0.5rem;
  text-decoration: none;
  transition: background 0.3s ease;
}

.tag-badge:hover {
  background: #3498db;
}

pre code {
  font-size: 1rem;
  line-height: 1.8;
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  padding: 1rem;
  border-radius: 6px;
  background-color: #0d1117;
  display: block;
  overflow-x: auto;
  color: #dcdcdc;
}

.code-block {
  position: relative;
}

.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #8e44ad;
  color: white;
  border: none;
  padding: 0.3rem 0.6rem;
  font-size: 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.copy-btn:hover {
  opacity: 1;
}

a {
  text-decoration: none;
}

.site-footer {
  background: linear-gradient(to bottom, #0b0b1f, #000000);
  color: white;
  padding: 2rem 1rem;
  font-size: 0.95rem;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer-copy p {
  margin: 0;
  color: #cccccc;
}

@media (min-width: 768px) {
}


@media (min-width: 1024px) {
  #binaryMatrix {
    font-size: 1rem;
  }

  .hero {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
    padding: 4rem 9vw;
    padding-bottom: 10px;
  }

  .hero-img {
    order: 2;
  }

  .title {
    order: 1;
    padding-right: 2rem;
  }
  
  .hero-title, .about-heading {
    font-size: 3rem;
  }
  
  .hero-subtitle, .btn, .about-subheading {
    font-size: 2rem;
  }

  .hero-title, .hero-subtitle, .btn {
    text-align: left;
  }
  
  .social-icons {
    justify-content: left;
    font-size: 2.5rem;
  }
  
  .hadesLogo {
    font-size: 20px;
    padding-right: 100px;
  }
  
  .about-title, .about-name {
    font-size: 2rem;
  }
  
  .about-desc {
    font-size: 1.5rem;
  }
  
  img.img-post {
    width: 30%;
  }
}

@media (max-width: 767px) {
  .hero-img {
    order: -1;
    margin-bottom: 1rem;
    margin-right: 3rem;
  }

  .title {
    text-align: center;
    padding-top: 1rem;
  }
}

[data-aos] {
  opacity: 0;
  transition-property: opacity, transform;
  transition-duration: 0.8s;
}

[data-aos].aos-animate {
  opacity: 1;
}

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

@keyframes zoomOut {
  from {
    opacity: 0;
    transform: scale(2);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
