@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@200;400&display=swap');

html {
    scroll-behavior: smooth;
	background: black;
  }

body {
    background: radial-gradient(ellipse at bottom, #1B2735 0%, black 100%);
    margin: 0;
    padding: 0;
}

.nav-list {
    font-family: 'League Spartan', sans-serif;
    font-size: 25px;
    list-style-type: none;
    margin: 0;
    padding-top: 10px;
    padding-left: 20px;
  }

  .navbar{
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 100;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.7); /* Adjust the opacity as needed */
  }

  .nav-list li {
    display: inline; /* Display the list items horizontally */
    margin-right: 20px; /* Adjust spacing between items */
  }  

  .nav-list a {
    color:white;
    text-decoration: none;
    font-weight: normal;
    transition: font-weight 0.3s;
    position: relative;
  }

  .nav-list a:visited {
    text-decoration: none;
    color:white;
  }

  .nav-list a:hover {
    font-weight: bold;
  }

  .nav-list a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white; /* Underline color for link effect */
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
  }

  .nav-list a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
  }

  h1 {
    font-size: 60px;
    color: white;
    font-family: 'League Spartan', sans-serif;
  }

  h2 {
    font-weight: 200;
    font-size: 40px;
    color: white;
    font-family: 'League Spartan', sans-serif;
  }

  p {
    color: white;
    font-family: 'League Spartan', sans-serif;
    font-weight: 200;
    line-height: 1.25;
  }

  .elias {
    height: auto;
    text-align: center;
    position: relative;
    top: 30%;
  }

  .elias p{
    font-size: 25px;
  }

hr {
    border-color: grey;
    width: 95%;
    border-width: 0.1px;
    margin: auto;
}

  .about {
    text-align: center;
    padding: 50px;
  }
  
  .about h2 {
    font-size: 50px;
    color: white;
    font-family: 'League Spartan', sans-serif;
  }
  
  .about-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .about-text {
    flex: 1;
    text-align: center;
    padding-right: 20px;
    padding-left: 30px;
  }
  
  .about-text p {
    color: white;
    font-family: 'League Spartan', sans-serif;
    font-weight: 200;
    font-size: 23px; 
  }
  
  .about-text a {
    display: inline-block;
    margin-top: 10px;
    color: white;
    text-decoration: none;
    border: 2px solid white;
    padding: 10px 20px;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
    font-family: 'League Spartan', sans-serif;
  }
  
  .about-text a:hover {
    background-color: white;
    color: black;
  }
  
  .about-image {
    margin: auto;
    flex: 1;
    text-align: left;
  }
  
  .about-image img {
	margin: auto;
    max-width: 100%;
    border-radius: 10px; /* Optional: Add rounded corners to the image */
  }
  
  @media (max-width: 600px) {
  .about-image {
    display: none; /* Hide the image on screens with a width of 600px or less */
  }
}


.projects {
    text-align: center;
    margin-bottom: 50px;
}

.projects h2{
    font-size: 50px;
    text-align: center;
}

.project-grid {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping to the next line */
}

.repo-card {
    flex: 1;
    padding: 20px;
    text-align: center;
    margin: 5px; /* Margin between rectangles */
}

.contact {
    background: radial-gradient(#1B2735 0%, black 100%);
    bottom: 0;
    width: 100%;
    padding-top: 20px;
    padding-bottom: 50px;
    text-align: center;
}

.contact h2 {
    font-size: 60px;
}

    .contact p {
        text-align: center;
        font-size: 25px;
        margin: auto;
        padding-left: 20px;
        padding-right: 20px;
        text-align: center;
    }

.contact a {
    color: white;
    text-decoration: none;
    font-weight: normal;
    transition: font-weight 0.3s;
    }

.contact a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: white; /* Underline color for link effect */
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.contact a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.contact a:hover {
    font-weight: bold;
}

/* Hamburger icon styles */
.menu-toggle {
    display: none;
    position: fixed;
    top: 10px; /* Adjust the top position as needed */
    right: 10px; /* Adjust the right position as needed */
    z-index: 1000; /* Ensure it's above other content */
    flex-direction: column;
    cursor: pointer;
}

    .menu-toggle .bar {
        display: none;
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: background-color 0.3s;
    }

/* Media query for smaller viewports */
@media (max-width: 768px) {
    .navbar {
        height: 60px;
        padding-right: 70px;
    }

    .nav-list {
        max-height: auto;
        display: none;
        flex-direction: column;
        width: 100%;
        margin: 0;
        padding-bottom: 10px;
        text-align: left;
        background-color: rgba(0, 0, 0, 0.7);
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 1;
    }

        .nav-list.active {
            display: flex;

        }

    .menu-toggle {
        display: flex;
        left: 20px;        
    }

    .bar {
        background-color: white;
        display: flex;
    }

    .menu-toggle .bar {
        display: flex;
        width: 30px;
        height: 3px;
        background-color: white;
        margin: 5px 0;
        transition: background-color 0.3s;
    }

    .nav-list li {
        margin-bottom: 10px; /* Adjust spacing between list options */
    }

}
/* Add this CSS for social media icons hover effect */
.social-icon {
    color: white; /* Initial color */
    text-decoration: none; /* Remove default underline */
    transition: color 0.3s; /* Smooth color transition */
}

    .social-icon:hover {
        color: darkslateblue; /* Change color on hover to your desired color */
    }
