body {
  font-family: Fira Mono, sans-serif;
  margin: 0;
  padding: 0;
  color: whitesmoke;
  background-color: black;
}

header {
  background-color: black;
  color: white;
  padding: 10px 0;
  position: sticky;
  width: 100%;
  z-index: 100;
}

header nav {
  left: 0;
  right: 0;
  width: 100%;
  background-color: transparent;
  z-index: 101;
  padding: 10px 20px;
  box-sizing: border-box;
}

h1 {
  font-size: 40px;
  font-weight: bold;
}
header h1 {
  z-index: -1;
  opacity: 0.5;
  font-size: 36px;
  margin: 20px 0 10px 0;
  padding: 0 20px;
  transition: opacity 0.3s ease;
}

nav a {
  transition: all 0.5s ease-in-out 0s;
}
nav a:active {
  transition: all 0.5s ease-in-out 0s;
  color: aqua;
}
nav a:hover {
  color: aqua;
}

.alejandro-logo {
  width: 100%;
  height: 100%;
}

.svgs {
  display: flex;
  align-items: center;
}

.svg1-container {
  width: 49%;
  height: auto;
  position: fixed;
  background-color: rgba(0, 0, 0, 0.382);
  border-radius: 30px;
  margin-top: 4%;
  transition: opacity 0.3s ease;
}

.svg2-container {
  width: 50%;
  height: auto;
  margin-left: 50%;
  margin-top: 4%;
  z-index: -1;
  transition: opacity 0.3s ease;
}
#textAle {
  letter-spacing: 2.5px;
}
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 16px;
  padding: 8px 15px;
  display: inline-block;
}

.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

main {
  box-sizing: border-box;

  padding: 5%;
  width: 50%;
  background-color: rgba(0, 0, 0, 0.323);
  margin-bottom: 0;
}

section {
  margin-bottom: 20px;
  text-align: center;
}

.project {
  border: 1px solid #ccc;
  padding: 10px;
  margin-bottom: 10px;
}

.react:hover {
  color: #1179d4;
}
.angular:hover {
  color: rgb(246, 13, 32);
}
.vue:hover {
  color: rgb(53, 238, 158);
}
.node:hover {
  color: rgb(154, 245, 177);
}
.php:hover {
  color: rgb(110, 173, 229);
}
.js:hover {
  color: rgb(234, 236, 88);
}
.aws:hover {
  color: #ff9900;
}
.azure:hover {
  color: #0078d4;
}
.typescript:hover {
  color: #3178c6;
}
.nextjs:hover {
  color: #000000;
}
.tailwind:hover {
  color: #06b6d4;
}

.soMe-container {
  text-align: center;
}
.soMeLinks {
  margin: 20px;
}

footer {
  background-color: #3333339b;
  color: white;
  text-align: center;
  padding: 20px 0;
  width: 100%;
  margin-top: 40px;
  position: relative;
}
.soMeLinks a {
  color: darkcyan;
}
#aside-window {
  width: 50%;
  background-color: rgba(34, 34, 34, 0.023);
  z-index: 1;
  padding: 20px 5%;
  box-sizing: border-box;
}

.dividers {
  width: 100%;
  max-width: 98%;
  height: 2px;
  background-color: #333;
  margin: 20px auto;
}

.framework-icons {
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.framework-icons i {
  width: 42px;
  font-size: 30px;
  text-align: center;
}

.buttons {
  margin-top: 9%;
  border-radius: 50px;
  padding: 10px;
  background-color: #05b8bb;
  border: none;
  color: white;
  font-size: medium;
  transition: all 0.3s ease;
}
.buttons:hover {
  color: #05b8bb;
  background-color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(5, 184, 187, 0.3);
}

/* --------------------------aside */
aside h1 {
  margin: 8px;
}
#description-sectionII {
  margin: 25% 0;
}

#description-sectionII p {
  margin: 40px 0;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

#description-sectionII .buttons {
  margin-top: 30px;
}

.green {
  color: #05b8bb;
}

.secondH1 {
  margin: 8% 0;
}
.anchor {
  text-decoration: none;
}
.anchor:active {
  color: #1179d4;
}

#theFirstImage {
  opacity: 0.8;
}

#theSecondImage {
  opacity: 0.7;
  animation-name: wheel;
  animation-duration: 8s;
  animation-iteration-count: infinite;
  animation-timing-function: linear;
  width: 100%;
}
@keyframes wheel {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#theSecondImage:hover {
  opacity: 1;
  filter: drop-shadow(0 0 0.75rem rgb(255, 217, 0));
}

.iframesRow {
  display: flex;
  width: 100%;
  margin-bottom: 20px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  margin-bottom: 20px;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.words1 {
  margin-left: 0;
  padding: 0 15px;
}

#survey {
  height: 800px;
}

#contact {
  text-align: center;
  height: auto;
  min-height: 200px;
  padding: 3% 5%;
  background-color: black;
}
#form {
  width: 100%;
  height: 100%;
}

.item1 {
  margin: 40px auto;
}
.item2 {
  margin: 40px auto;
}
.item3 {
  margin: 40px auto;
}

.item3 label {
  display: block;
}

.green-letter {
  color: black;
  background-color: #40ff40;
}
/* ---------animation-------- */

.typeText,
.typeTextII {
  overflow: hidden;
  border-right: 0.15em solid #40ff40; /* The typwriter cursor */
  white-space: nowrap; /* Keeps the content on a single line */
  margin: 10px auto;
  letter-spacing: 0.01em; /* Adjust as needed */
  font-size: 18px;
  display: inline-block;
}

.typeText {
  animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* The typing effect */
@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #40ff40;
  }
}

.typeTextII {
  animation: typingII 6.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* The typing effect */
@keyframes typingII {
  from {
    width: 0;
  }
  50% {
    width: 0;
  }
  to {
    width: 100%;
  }
}

.char {
  font-size: 50px;
  color: #05b8bb;
}

/* ----------------------------background animation----------- */
#canvas1 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* background: radial-gradient(#8cff92, #56ff40); */
  background-color: rgba(7, 7, 7, 0.243);
  z-index: -2;
  color: white;
}

/* ---------------------------responsive----------- */

/* Tablet styles */
@media only screen and (max-width: 1024px) {
  .content-wrapper {
    flex-direction: column;
  }

  main {
    width: 100%;
    padding: 4%;
    margin-bottom: 0;
  }

  #aside-window {
    width: 100%;
    padding: 0 4% 4% 4%;
    background-color: transparent;
    margin-top: 0;
  }

  h1 {
    font-size: 32px;
  }

  header h1 {
    font-size: 28px;
  }

  .typeText,
  .typeTextII {
    font-size: 16px;
  }
}

/* Mobile styles */
@media only screen and (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
  }

  header {
    padding: 10px 0;
  }

  header nav,
  header h1 {
    padding: 0 15px;
  }

  header h1 {
    font-size: 24px;
    opacity: 0.5;
  }

  nav ul {
    gap: 10px;
    justify-content: center;
  }

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

  nav a:hover {
    font-size: 120%;
  }

  .svgs {
    margin-top: 10px;
  }

  .svg1-container {
    width: 49%;
    position: fixed;
    margin-top: 4%;
  }

  .svg2-container {
    width: 50%;
    margin-left: 50%;
    margin-top: 4%;
  }

  .content-wrapper {
    flex-direction: column;
  }

  main {
    width: 100%;
    padding: 4% 3%;
    position: relative;
    margin-bottom: 0;
  }

  h1 {
    font-size: 24px;
    font-weight: bold;
  }

  .typeText,
  .typeTextII {
    font-size: 14px;
    white-space: normal;
    border-right: none;
  }

  .framework-icons {
    padding: 15px 10px;
    gap: 15px;
  }

  .framework-icons i {
    font-size: 24px;
    width: 34px;
  }

  .buttons {
    margin-top: 5%;
    padding: 12px 24px;
    font-size: 14px;
  }

  #aside-window {
    padding: 0 3% 4% 3%;
    width: 100%;
    background-color: transparent;
    margin-top: 0;
  }

  #description-sectionII {
    margin: 5% 0;
    text-align: center;
  }

  #description-sectionII p {
    margin: 20px 0;
    font-size: 14px;
  }

  #description-sectionII .buttons {
    margin-top: 20px;
  }

  .secondH1 {
    margin: 5% 0;
  }

  .words1 {
    margin-left: 0;
    padding: 0;
  }

  .words1 h1 {
    font-size: 20px;
  }

  .iframesRow {
    margin-bottom: 15px;
  }

  .video-wrapper {
    margin-bottom: 15px;
    padding-bottom: 56.25%;
  }

  .dividers {
    margin: 30px auto;
    width: 95%;
  }

  #contact {
    padding: 3% 3%;
    min-height: 150px;
  }

  .item1,
  .item2,
  .item3 {
    width: 100%;
    margin: 20px auto;
  }

  .soMeLinks {
    margin: 15px;
  }

  .soMeLinks a {
    font-size: 14px;
    margin: 0 10px;
  }

  footer {
    padding: 15px 10px;
    position: relative;
  }

  footer .soMeLinks {
    margin: 10px;
  }

  .char {
    font-size: 30px;
  }
}

/* Small mobile styles */
@media only screen and (max-width: 480px) {
  header h1 {
    font-size: 20px;
  }

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

  h1 {
    font-size: 20px;
  }

  .typeText,
  .typeTextII {
    font-size: 12px;
  }

  .framework-icons i {
    font-size: 20px;
    width: 30px;
  }

  .buttons {
    padding: 10px 20px;
    font-size: 12px;
  }

  #description-sectionII p {
    font-size: 12px;
  }

  .words1 h1 {
    font-size: 18px;
  }

  .char {
    font-size: 24px;
  }
}
