html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito Sans", sans-serif;
  margin: 0;
  padding: 0;
  background-color: #353535;
  color: #5497A7;
}

header {
  background-color: #5497A7;
  padding: 20px;
}

#container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#home {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70vh;
  opacity: 0;
  animation: fadeInUp 1s ease-in-out forwards;
}

#home img {
  border-radius: 25px;
  width: 300px;
  height: 300px;
}

#home-text {
  padding: 50px;
  display: flex;
  flex-direction: column;
}

#home h1,
#home p {
  margin: 0;
  width: 45vw;
}

#home h1 {
  font-size: 50px;
}

#home p {
  font-size: 30px;
}

#about,
#experience, 
#projects {
  width: 80vw;
}

#about img {
  height: 8vw;
  padding: 5px;
}

#container ul{
  list-style-type: square ;
}

.xDesign img, .drone img {
  height: 25vw;
  padding: 5px;
  display: block;
  margin-left: 5%;
}

a {
  text-decoration: none;
  color: #5497A7;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.typewriter {
  overflow: hidden;
  white-space: nowrap;
  animation: typing 3s steps(40) forwards;
}

/* Optional blinking cursor animation */
@keyframes blink {
  0%, 100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

.blinking-cursor {
  display: inline-block;
  margin-left: 3px;
  width: 2px;
  height: 50px;
  background-color: #5497A7;
  animation: blink 1s infinite;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
}

nav ul li a {
  color: #353535;
  text-decoration: none;
  margin-right: 10px;
}

section {
  padding: 40px;
}

section h2 {
  margin-bottom: 20px;
}

.project {
  margin-bottom: 40px;
}

.project img {
  max-width: 100%; /* Adjusted for responsiveness */
  height: auto;
}

footer {
  background-color: #353535;
  color: #5497A7;
  padding: 20px;
  text-align: center;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  body {
    font-size: 16px; /* Adjust font size for smaller screens */
  }

  #home {
    display: flex;
    flex-direction: column; /* Reverses the stack order so image is on top */
    width: 100%;
  }

  #home-text {
    text-align: center; /* Centers the text for smaller screens */
  }

  #home img {
    width: 100%; /* Adjust image size for smaller screens */
    height: auto;
  }

  #home h1 {
    font-size: 36px; /* Adjust heading size for smaller screens */
  }

  #home p {
    font-size: 24px; /* Adjust paragraph size for smaller screens */
    align-items: center;
  }

  #about,
  #experience,
  #projects {
    width: 90vw; /* Increase width for smaller screens */
  }

  #about img {
    height: 6vw; /* Adjust image size for smaller screens */
  }
}

#experience div {
  /* background-color: #bfb1c1;  */
  /* Grey background color */
  padding: 20px; /* Add some padding around the content */
  border-radius: 10px; /* Rounded corners for the box */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Add a subtle shadow */
  margin: 20px;
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
  body {
    font-size: 16px; /* Adjust font size for smaller screens */
  }

  header {
    padding: 10px; /* Reduce header padding for smaller screens */
  }

  #home img {
    width: 150px; /* Adjust image size for smaller screens */
    height: 150px;
  }

  #home h1 {
    font-size: 28px; /* Adjust heading size for smaller screens */
  }

  #home p {
    font-size: 18px; /* Adjust paragraph size for smaller screens */
  }

  #home-text {
    padding: 0px;
    display: flex;
    flex-direction: column;
  }

  #about,
  #experience,
  #projects {
    width: 90vw; /* Increase width for smaller screens */
    padding: 10px; /* Add some padding for smaller screens */
  }

  #about img {
    height: 4vw; /* Adjust image size for smaller screens */
  }

  .xDesign img,
  .drone img {
    height: 15vw; /* Adjust image size for smaller screens */
    margin-left: 0; /* Remove margin for smaller screens */
  }

  section {
    padding: 20px; /* Increase padding for smaller screens */
  }

  section h2 {
    font-size: 24px; /* Adjust heading size for smaller screens */
  }

  .project {
    margin-bottom: 20px; /* Reduce margin for smaller screens */
  }

  .project img {
    max-width: 100%; /* Allow images to adjust to the screen width */
    height: auto;
  }

  footer {
    padding: 10px; /* Reduce footer padding for smaller screens */
  }
}
