:root {
  --background-color-light: #fff;
  --background-header-color-light: rgb(244, 245, 246);
  --text-color-light: rgb(117, 139, 205);
  --link-color-light: #007bff;
  
  --background-header-color-dark: rgb(31, 31, 31);
  --background-color-dark: rgb(36, 33, 33);
  --text-color-dark: rgb(244, 245, 246);
  --link-color-dark: #55acee;
}
.dark-mode {
  --background-color: var(--background-color-dark);
  --text-color: var(--text-color-dark);
  --link-color: var(--link-color-dark);
}

/* Reset default browser styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* Set body background color */
body {
  background-color: var(--background-color-light);
  color: rgb(12, 12, 12);
}
/* Set banner styles */
#banner {
  background-color: rgb(228, 228, 66);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  text-align: center;
  z-index: 2;
  display: flex;
  color: rgba(99, 94, 94, 1);
  transition: transform 0.35s ease-out;
}
#banner.closed{
  transform: translateY(-100%);
}
#banner p{
  margin: auto;
  margin-left: 18%;
  margin-right: 0;
}
#close-banner {
  background-color: transparent;
  border: rgba(99, 94, 94, 1) solid 1px;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  cursor: pointer;
  margin: auto;
  margin-left: 2rem;
}
/* Set header styles */
header {
  background-color: var(--background-header-color-light);
  color: var(--text-color-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  position: fixed;
  z-index: 1;
  width: 100%;
}

header h1 {
  font-size: 2rem;
}
header img{
    height: 60px;
    float: left;
}
nav ul {
  display: flex;
  list-style: none;
}

nav li {
  margin-left: 1rem;
}

nav a {
  text-decoration: none;
  color: var(--text-color-light);
}
nav a:hover {
  color: var(--link-color-light);
}
nav a:not([href^="/"]):hover {
  color: var(--link-color-light);
}
/* Set about styles */
#about{
    background-image: url("../resources/images/bg-coding.jpg");
    background-size: cover;
    height: 35rem;
    display: flex;
    justify-content: center;
    align-items: center;
    color: rgb(244, 245, 246);
    backdrop-filter: blur(5px);
}
#about p{
    width: 50%;
    margin: 0 auto;
    font-size: 1.4rem;
    
    justify-self: center;
    padding: 1.6rem;
}
/* Set main styles */
main {
  max-width: 75rem;
  margin: 0 auto;
  padding: 2rem;
}

section {
  margin-bottom: 2rem;
}

main h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin: 2rem 0;
}

section ul {
  list-style: none;
}

section li {
  margin-bottom: 1rem;
}

section h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* Set projects styles */
#projects{
  display: flex;
  justify-content: space-around;
  gap: 2rem;
}
#projects a{
  text-decoration: none;
  color: #1d1f1d;
}
.project:hover{
  box-shadow:rgb(31, 31, 31) 0px 0px 10px;
}
#projects a:visited{
  color: #1d1f1d;
}
.project{
  width: 50%;
  padding: 2rem;
  border: 0.15rem solid rgb(116, 202, 253);
  border-radius: 0.8rem;
}
.project p{
  margin-bottom: 1rem;
}
.project img{
  max-width: 100%;
  height: auto;
  border: 1px solid #424242;
  padding: 3px;
  border-radius: 0.8rem;
}

/* set services styles */
#services ul {
  list-style: disc;
  margin-left: 1.5rem;
}

/* Set Contact styles */
.contact{
  display: grid;
  grid-template-columns: 1fr 1fr 4fr;
}
.contact img{
  width: 5rem;
  height: auto;
  border: none;
  padding: 3px;
  border-radius: 0.8rem;
  margin-left: 2rem;
  cursor: pointer;
}
/* CSS for the modal window */
.modal {
  display: none; /* hide the modal window by default */
  position: fixed; /* position the modal window relative to the viewport */
  z-index: 1; /* set the z-index to make sure the modal window is on top */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* enable scrolling if the content is too long */
  background-color: rgba(0, 0, 0, 0.4); /* add a semi-transparent background */
}

.modal-content {
  background-color: #fefefe;
  margin: 15% auto; /* center the modal window vertically and horizontally */
  padding: 20px;
  border: 0.2rem solid rgb(116, 202, 253);
  border-radius: 0.8rem;
  width: 80%;
  height: 15%;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto;
}

.close:hover,
.close:focus {
  color: var(--link-color-light);
  text-decoration: none;
  cursor: pointer;
}

/* Set form styles 
form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
}

label {
  margin-bottom: 0.5rem;
}
input[type="text"],
input[type="email"],
textarea {
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: solid 1px #ccc;
  border-radius: 0.25rem;
}

input[type="submit"] {
  background-color: #0077b6;
  color: #fff;
  padding: 0.5rem;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
}

input[type="submit"]:hover {
  background-color: #023e8a;
} */

/* Set footer styles */
footer {
  background-color: var(--background-footer-color-light);
  color: var(--text-color-light);
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}