Default styles for desktop and large screens

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  margin: 0;
  padding: 0;
}

h1 {
  font-size: 2rem;
  color: #1a7eb8;
  margin: 0;
}

p { 
  font-size: 1.25rem;
  color:  rgba(79, 76, 77);
  line-height: 1.5;
}

li {
  list-style: none;
  font-size: 1rem;
}

a {
  text-decoration: none;
}


section {
  padding: 3rem;
}

section h2 {
  font-size: 1.5rem;
  color: #1a7eb8;
  margin-top: 0;
}

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

section li {
  margin: 0;
  padding: 0;
}

a {
  color: #007bff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Styles for header*/
.navbar {
  background-color: rgba(246, 246, 246);
  padding: .5rem 3rem;
  z-index: 10;
  display: flex;
  flex: 1;
  justify-content: space-between;
  align-items: center;
}

.nav-logo img {
  width: 15em;
}

.nav-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-item {
  margin-left: 1.25rem;
}

.nav-link{
  font-size: 1.25rem;
  color: #1a7eb8;
}

.nav-link:hover{
  color:  #999;
}

.hamburger {
  display: none;
}



/* Banner Section */
.banner {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  position: relative;
}

.bannerContainer {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.portrait {
  height: 15rem;
  width: 15rem;
  border-radius: 50%;
  margin-right: 2rem;  
  border: 1px solid #ffffff;
}

.banner h1 {
  font-size: 6rem;
  color: #1a7eb8;
  font-family: 'Times New Roman', Times, serif;
}

.banner p {
  font-size: 1.5rem;
  font-family: 'arial', sans-serif;
  font-weight: lighter;
  color:  rgba(79, 76, 77);
  margin-top: 1rem;  
}

/* Fade In animation */
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.fadeIn-animation {
  animation: fadeIn 2s ease-in-out forwards;
}

/* Float animation */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0);
  }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
  animation-iteration-count: 2;
}

/* About section NO STYLING APPLIES */

/* Projects section */
.card {
  background-color: rgba(79, 76, 77, 0.05);
  border-radius: 5px;
  padding: 20px;
  margin: .5rem;
  width: 20rem;
}

.portfolioDesc {
  margin-top: 0;
}

.portTitle {
  font-size: 1.5rem;
  font-weight: 100;
  margin-bottom: 1rem;
}

.button {
  background-color: #1a7eb8;
  border: none;
  border-radius: 5px;
  color: white;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 1.25rem;
  margin: 4px 2px;
  display: flex;
  justify-content: center;
  width: fit-content;
  cursor: pointer;
}

/* Skills Section */
.skillHeader {
  font-size: 1rem;
}

#skills ul {
  flex-wrap: wrap;
  columns: 3;
  column-width: 30%;
  justify-content: space-between;
  margin-bottom: 15px;
}

.skillGroup {
  margin-bottom: 3rem;
}

#skills li {
  margin-bottom: 15px;
}

#projects ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  columns: 2;
}

#projects li {
  margin-bottom: 10px;
  flex-wrap: wrap;
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
}


/* Portfolio Styling  */
#projects img {
  width: 100%;
  height: auto;
  margin-bottom: 10px;
}

.portSection:first-child {
  padding-top: 2rem;
}

section + .portSection {
  padding-top: 0rem;
}

.project-image {
  width: 100%; 
  border-radius: 5px;
}

.titleContainer {
  display: flex;
  flex-direction: row;  
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.linksContainer {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.Orderlist li {
  list-style: number;
  padding-top: 1rem;
}

.Orderlist li:first-child {
  padding-top: 0rem;
}

.Orderlist li:last-child {
  padding-bottom: 2rem;
}

ol {
  list-style-position: inside;
  padding-left: 1rem;
}

.overviewList {
  margin-top: 0rem;
}

.overviewHeader {
  margin-bottom: .5rem;
  margin-top: 0rem;
}

.specs {
  display: flex;
  flex-direction: row;
  
}

.stacks {
  padding: 1rem;
  border: 1px solid #1a7eb8;  
  margin-right: 1rem;
  width: 25%;
}

.stacks:last-child {
  margin-right: 0;
}

/*  Contact Section  */

.contactGroup {
  margin-bottom: 2rem;
}

.contactHeader {
  margin-bottom: .5rem;
  margin-top: 0rem;
  text-transform: uppercase;
  font-size: 1rem;
}

.contactInfo {
  font-size: 16px;
  text-decoration: none;
  color: #0077b5; /* LinkedIn blue color */
  background-color: #e1e1e1;
  padding: 5px 10px;
  border-radius: 5px;
  display: inline-block;
  transition: background-color 0.3s;
}

.contactInfo:hover {
  background-color: #0077b5;
  color: #ffffff;
  text-decoration: none;

}


/* Footer Section  */
.footer {
  background-color: rgba(79, 76, 77, 0.05);
  text-align: center;
  padding: 1rem;
}

footer p {
  margin: 0;
  font-size: 1em;
}

/* Styles for screens with a max-width of 768px (tablets) */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }

  .logo {
    width: 13em;
  }
}

/* Styles for screens with a max-width of 480px (mobile phones) */

/* Styles for screens with a max-width of 480px (mobile phones) */
@media (max-width: 480px) {
  .hamburger {
    display: block;
    cursor: pointer;
  }

  .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: #101010;
  }

  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .nav-menu {
    position: fixed;
    left: -110%;
    top: 4em; /* Adjust this value to the height of your header */
    flex-direction: column;
    max-height: 20vh;
    background-color: #1a7eb8;
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
    z-index: 1000; /* Ensure it is above other content */
    height: calc(100vh - 4em); /* Ensure it fits within the viewport */
    overflow-y: auto; /* Add scroll if needed */
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-menu.active a {
    color: white;
  }

  .nav-menu.active a:hover {
    color: rgba(0, 0, 0);
    text-decoration: none;
  }

  .nav-item {
    margin: .5rem 0;
    align-self: start;
    flex: 1;
  }
  
  .nav-link {
    width: 100%;
  }

  /* Banner */
  .banner {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    margin-top: 1rem;
  }

  .banner h1 {
    font-size: 3rem;
    color: #1a7eb8;
    font-family: 'Times New Roman', Times, serif;
  }

  .bannerContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
  }

  .portrait {
    display: inline-block;
    height: 5rem;
    width: 5rem;
    border-radius: 50%;
    border: 1px solid #ffffff;
  }

  /* Skills */
  #skills h3 {
    font-size: 1rem;
    margin-top: 3rem;
  }

  #skills ul {
    columns: 2;
    margin-bottom: 15px;
  }

  li {
    font-size: 1rem;
  }

  /* Stacks */
  .stacks {
    padding: 1rem;
    border: 1px solid #1a7eb8;
    margin-right: 1rem;
    flex: 1;
  }

  /* Title and Links Containers */
  .titleContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 1rem;
  }

  .linksContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
  }
}
