/* General Styles */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #121212;
  color: #f1f1f1;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #282828 25%, transparent 25%),
    linear-gradient(-45deg, #1f1f1f 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #282828 75%),
    linear-gradient(-45deg, transparent 75%, #1f1f1f 75%);
  background-size: 50px 50px;
  animation: backgroundMove 7s linear infinite;
  z-index: -1;
}

@keyframes backgroundMove {
  0% {
    background-position: 0 0, 0 0, 0 0, 0 0;
  }

  100% {
    background-position: 50px 50px, -50px -50px, 50px -50px, -50px 50px;
  }
}

/* Header and Navigation Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  z-index: 100;
}

nav {
  position: fixed; /* Adjust based on header height */
  left: 0;
  width: 100%;
  background-color: #000000;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 20px; /* Increase padding to increase navigation bar height */
  z-index: 99;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  margin: 0 15px;
}

nav .right ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 20px; /* Increase padding for taller buttons */
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
  background-color: #535353;
}

.left a {
  color: #ffffff;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: bold;
  transition: color 0.3s;
}

.left a:hover {
  color: #9b9b9b;
}

/* Main Content Styles */
main {
  padding-top: 70px; /* Adjust based on header height */
  text-align: center;
}

.firstSection {
  margin-top: -50px; /* Adjust to move section further upwards */
  display: flex;
  flex-direction: row;
  justify-content: row;
  align-items: center;
  padding: 20px;
}

.leftSection{
  flex: 1;
  margin: 20px;
  text-align: center;
  margin-top: 5%;
  margin-left: 25%;  
}
.rightSection {
  flex: 2;
  text-align:left;
  margin-right: 0%;
}

.rightSection {
  margin-top: -60px;
  font-size: 1.5rem;
}

.rightSection .intro {
  font-size: 2.5rem;
  font-weight: bold;
}

.rightSection .sub-intro {
  font-size: 2rem;
  margin-bottom: 20px;
}

.rightSection #element {
  font-size: 2rem;
  font-weight: bold;
  color: #d2d2d2;
}

/* Resume Button Styles */
.secondSection {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
}

.btn-37,
.btn-37 *,
.btn-37 :after,
.btn-37 :before,
.btn-37:after,
.btn-37:before {
  border: 0 solid;
  box-sizing: border-box;
}

.btn-37 {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  background-color: #000000;
  background-image: none;
  color: #fff;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
    Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-size: 100%;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  -webkit-mask-image: -webkit-radial-gradient(#000000, #fff);
  padding: 0;
  border: 1px solid;
  display: block;
  overflow: hidden;
  padding: 1.1rem 4rem;
  position: relative;
  text-transform: uppercase;
}

.btn-37:disabled {
  cursor: default;
}

.btn-37:-moz-focusring {
  outline: auto;
}

.btn-37 svg {
  display: block;
  vertical-align: middle;
}

.btn-37 [hidden] {
  display: none;
}

.btn-37 .new,
.btn-37 .old span {
  font-weight: 900;
  transition: transform 0.2s;
}

.btn-37 .new {
  display: block;
  transform: scale(0);
}

.btn-37:hover .new {
  transform: scale(1);
}

.btn-37 .old,
.btn-37 .old span {
  inset: 0;
  position: absolute;
}

.btn-37 .old span {
  background: #000000;
  color: #ffffff;
  display: block;
  display: grid;
  place-items: center;
}

.btn-37 .old span:first-child {
  -webkit-clip-path: polygon(0 0, 51% 0, 51% 100%, 0 100%);
  clip-path: polygon(0 0, 51% 0, 51% 100%, 0 100%);
}

.btn-37 .old span:nth-child(2) {
  -webkit-clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
  clip-path: polygon(50% 0, 100% 0, 100% 100%, 50% 100%);
}

.btn-37:hover .old span:first-child {
  transform: translateY(-100%);
}

.btn-37:hover .old span:nth-child(2) {
  transform: translateY(100%);
}

.symbol-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px auto;
  width: 100px; /* Adjust width as needed */
  height: 500px; /* Adjust height as needed */
}

.symbol {
  font-size: 10rem; /* Adjust font size as needed */
  color: #ffffff; /* Symbol color */
  animation: moveSymbol 3s ease infinite; /* Adjust animation duration and timing */
}

@keyframes moveSymbol {
  0% {
      transform: translateY(0) rotate(0deg);
  }
  25% {
      transform: translateX(-50px) rotate(45deg);
  }
  50% {
      transform: translateY(50px) rotate(-45deg);
  }
  75% {
      transform: translateX(0) rotate(0deg);
  }
  100% {
      transform: translateY(0) rotate(0deg);
  }
}

/* Styles for project.html */

/* Centering the heading */
.centerSection {
  text-align: center;
  padding: 20px;
}

.centerSection h1 {
  font-size: 3rem;
  color: #f1f1f1;
  margin: 40px 0;
}

/* Styles for project boxes */
.project-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 20px;
}

.project-item {
  background-color: #00000088; /* Darker background color */
  border-radius: 30px; /* Increase border-radius for smoother corners */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4); /* Enhance box-shadow for depth */
  width: 90%; /* Use a percentage for flexible width */
  max-width: 400px; /* Limit maximum width */
  height: auto; /* Let the height adjust based on content */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  padding: 20px;
  margin: 10px; /* Add margin for spacing */
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(129, 129, 129, 0.6); /* Enhance box-shadow on hover */
}

.project-item h2 {
  font-size: 2rem; /* Increase font size */
  color: #ffffff; /* White text color */
  margin: 10px 0;
}

.project-item p {
  font-size: 1rem; /* Increase font size */
  color: #d2d2d2; /* Lighter text color */
  text-align: center;
  padding: 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .left a {
    font-size: 0.5 rem;
  }

  .right ul li {
    margin-right: 100px;
  }

  .right ul li a {
    font-size: 0.9rem;
  }

  nav ul {
    flex-direction: column;
  }

  nav ul li {
    margin: 10px 0;
  }

  .firstSection {
    flex-direction: column;
    padding: 10px;
  }

  .leftSection,
  .rightSection {
    margin: 10px 0;
    text-align: center;
  }

  .symbol-container {
    margin-top: 20;
    margin-left: 10;
    width: 100%;
  }
}

@media (max-width: 480px) {
  header, nav {
    padding: 10px;
  }

  .centerSection h1 {
    font-size: 2rem;
  }

  .project-item {
    width: 90%;
  }
}
