body {
    font-family: Arial, sans-serif;
    background-color: aliceblue;
    background-position: center;
    background-size: contain;
    margin: 0;
    height: calc(100vh);
    display: grid;
    grid-template-rows: 1fr 6fr 1fr;
    font-family:monospace;
    -webkit-transition: .4s;
    transition: .4s;
}
header {
    padding: 0px 30px;
    display: flex;
    background-color: inherit;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
header ul {
    list-style: none;
    display: flex;
    gap: 50px;
    margin: 0;
    padding: 0;
}
nav {
    display: flex;
    gap: 75px;
    align-items: center;
}
header ul li {
    font-size: 20px; 
    cursor: pointer;
}

header ul li a {
    text-decoration: none;
    color: inherit;
}

#logo {
    width: 150px;
    height: auto;
    margin-bottom: 20px;
}

#settings-icon {
    width: 30px;
    height: auto;
    cursor: pointer;
}

footer {
    padding-left: 25px;
    display: flex;
    background-color: inherit;
    flex-direction: column;
    align-items: left;
    color: inherit;
    row-gap: 10px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #414141;
  box-shadow: 0 0 10px #ffffff;

}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

.dark-mode {
    background-color: #414141;
    color: white;
    -webkit-transition: .4s;
    transition: .4s;
}


/* home section */
.container {
    position: relative;
    background-color: inherit;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(59,130,246,0.15);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 999px;
    color: #60a5fa;
    font-size: 14px;
    margin-bottom: 20px;
}
h1 {
    font-size: 90px;
    margin-bottom: 10px;
    background-clip: text;
    color: inherit;
    text-shadow: none;
    letter-spacing: 5px;
}
h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}
.highlight {
    color: #60a5fa;
}
.highlight mark {
    background-color: #60a5fa;
    color: white;
}
.intro {
    font-size: 20px;
    color: inherit;
    margin-bottom: 40px;
    max-width: 800px;
    line-height: 1.5;
    padding: 0.1em 0.3em;
}
.intro mark {
    background-color: #94a3b8;
}
.home {
    background-color: inherit;
    max-width: 100vw;
}
.home img {
    position: fixed;
    scale: 2;
    top: 50%;
    right: 0%;
    width: 400px;
    height: auto;
    margin-top: 20px;
    clip-path: circle(40%);
    z-index: -1;
}

/* projects section */
.projects {
    background-color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.projects ul {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    flex-direction: column;
    width: 100vw;
}


.project-card {
    background-color: inherit;
    border: 2px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 0 10px #ffffff;
    border-radius: 0px 10px 10px 0px;
    width: 80%;
    padding: 20px;
    text-align: center;
    display: grid;
    align-self: flex-start;
    grid-template-areas: 
        "image header"
        "image desc";
    grid-template-columns: 2fr 3fr;
    grid-template-rows: 1fr 1fr;
    transition: left 0.5s ease;
}

.project-card h2 {
    grid-area: header;
}

.project-card p {
    grid-area: desc;
}

.project-card img {
    height: auto;
    border-radius: 10px;
    grid-area: image;
    width: 40%;
    align-self: center;
    justify-self: center;
}

.project-card:nth-child(even) {
    align-self: flex-end;
    border-radius: 10px 0px 0px 10px;
    grid-template-areas: 
    "header image"
    "desc image";
    grid-template-columns: 3fr 2fr;
    transition: right 0.5s ease;
}

