body {
  font-family: monospace, monospace;
  font-size: 16px;
  line-height: 1.5;
  background-color: #f8eaea;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column; /* Ensure content stacks vertically */
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Make body fill the viewport height */
  color: #333;
  opacity: 1;
  position: relative; /* Enable positioning for the blob */
  overflow: hidden; /* Prevent the blob from overflowing the viewport */
  z-index: 0; /* Ensure the blob is behind other elements */
  width: 100%;
  box-sizing: border-box;
  animation: fadeIn 1s ease-in-out forwards; /* Add fade-in animation */
}
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: monospace, monospace;
  font-size: 16px;
  line-height: 1.5;
  background-color: #f8eaea;
  color: #333;
  width: 100%;
  overflow-x: hidden;
}

main {
  flex: 1; /* Allow main content to take up remaining space */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

section {
  max-width: 800px;
  width: 100%;
  margin: 20px auto; /* Center horizontally */
  padding: 30px 25px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  text-align: left; /* Keep text left-aligned */
}

section h3 {
  font-size: 24px;
  margin-bottom: 15px;
  text-align: left;
  border-bottom: 2px solid #3498db;
  display: inline-block;
  padding-bottom: 5px;
}

#about,
#skills {
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.15);
  padding: 30px 25px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  animation: fadeIn 2.5s ease-out forwards;
  opacity: 0;
  transition: all 0.3s ease-in-out;
}

#about h3,
#skills h3 {
  font-size: 24px;
  margin-bottom: 15px;
  text-align: left;
  border-bottom: 2px solid #3498db;
  display: inline-block;
  padding-bottom: 5px;
}

#about p {
  margin-bottom: 1em;
  line-height: 1.7;
}

#skills ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

#skills li {
  margin-bottom: 10px;
  line-height: 1.6;
}

#skills li strong {
  color: #000;
  font-weight: bold;
}
#education {
  max-width: 800px;
  width: 100%;
  margin: 40px auto;
  background: rgba(255, 255, 255, 0.15);
  padding: 30px 25px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
  animation: fadeIn 2.5s ease-out forwards;
  opacity: 0;
}

#education h3 {
  font-size: 24px;
  margin-bottom: 15px;
  border-bottom: 2px solid #3498db;
  display: inline-block;
  padding-bottom: 5px;
}

#education ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#education li {
  margin-bottom: 10px;
  line-height: 1.6;
}

header {
  padding: 10px 20px;
  text-align: center;
  width: 100%;
  animation: fadeIn 2s ease-out forwards;
  opacity: 0;
  position: relative; /* Ensure header is above the blob */
  z-index: 1; /* Place header above the blob */
  box-sizing: border-box;
}

header p {
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

nav {
  padding: 20px 20px;
  width: 100%;
  animation: fadeIn 4s; 
  box-sizing: border-box;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap; /* Allow wrapping for smaller screens */
  justify-content: center;
  gap: 15px; /* Adjust spacing */
}

nav ul li {
  flex: 0 1 auto; /* Change from flex: 1 to prevent stretching */
  min-width: 120px; /* Minimum width for nav items */
  text-align: center; /* Center-align text */
}

nav ul li a {
  display: block; /* Ensure clickable area spans full width */
  text-decoration: none;
  color: #000000eb;
  font-size: 16px;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

nav ul li a:hover {
  background-color: #333333a3;
  transform: scale(1.1);
}

nav ul li a.active {
  background-color: #3498db;
  color: #fff;
}

.gooey-blob {
  position: absolute;
  bottom: -200px; /* Lower it further */
  left: 50%; /* Center horizontally */
  width: min(600px, 100vw); /* Responsive width */
  height: min(600px, 100vw); /* Responsive height */
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.3), rgba(108, 92, 231, 0.2)); /* Subtle gradient */
  border-radius: 50%; /* Keep circular shape */
  filter: blur(100px); /* Slightly increase blur for softness */
  transform: translateX(-50%) translateY(0);
  animation: gooey-move 30s ease-in-out infinite; /* Smooth and dynamic animation */
  z-index: -1;
}

footer {
  text-align: center;
  padding: 20px;
  background-color: transparent; /* No background */
  color: #333;
  width: 100%;
  margin-top: auto; /* Push footer to the bottom */
}

footer .social-links {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  justify-content: center;
  gap: 15px;
}

footer .social-links li {
  display: inline-block;
}

footer .social-links a {
  text-decoration: none;
  color: #3498db;
  font-size: 24px;
  transition: color 0.3s ease, transform 0.3s ease;
}

footer .social-links a:hover {
  color: #6c5ce7;
  transform: scale(1.2);
}

footer p {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

@keyframes gooey-move {
  0% {
      transform: translate(-50%, 50%) scale(0.8); /* Start larger and lower */
  }
  25% {
      transform: translate(-30%, -20%) scale(1.2); /* Move up and expand */
  }
  50% {
      transform: translate(-50%, 10%) scale(1); /* Center and normalize */
  }
  75% {
      transform: translate(-70%, -30%) scale(1.3); /* Move left and expand */
  }
  100% {
      transform: translate(-50%, 50%) scale(0.8); /* Return to start */
  }
}

@keyframes fadeIn {
  0% {
      opacity: 0;
  }
  100% {
      opacity: 1;
  }
}

.fade-out {
  animation: fadeOut 0.5s forwards;
}

@keyframes fadeOut {
  0% {
      opacity: 1;
  }
  100% {
      opacity: 0;
  }
}

/* Add responsive adjustments */
@media screen and (max-width: 768px) {
  body {
      font-size: 14px;
  }

  header {
      padding: 10px;
  }

  nav {
      padding: 10px;
  }

  nav ul {
      gap: 10px;
  }

  nav ul li a {
      padding: 8px 12px;
      font-size: 14px;
  }

  .gooey-blob {
      bottom: -100px;
  }

  section {
      margin: 20px 10px; /* Adjust margins for smaller screens */
      padding: 20px;
  }

  section h3 {
      font-size: 20px;
  }

  section p,
  section li {
      font-size: 14px;
  }
}

@media screen and (max-width: 480px) {
  body {
      font-size: 12px;
  }

  header p {
      max-width: 100%;
      padding: 0 10px;
  }

  nav ul li {
      min-width: 100px;
  }

  nav ul li a {
      padding: 6px 10px;
      font-size: 12px;
  }

  footer .social-links a {
      font-size: 20px;
  }
}

