:root {
  --background-color: #f3f4f0;
  --secondary-background-color: #201f22;
  --call-to-action-color: #41B4D7;
}

body {
  font-family: 'Sofia Sans', sans-serif;
  margin: 0;
  background-color: var(--background-color);
  line-height: 1.6;
  font-size: 18px;
}

h1 {
  font-size: 48px; 
  line-height: 1.2;
}

h2 {
  font-size: 32px;
}

h1, h2 {
  font-weight: 600;
}

p {
  font-weight: 400;
  font-size: 18px;
}

h2 {
  padding-top: 175px;
  padding-bottom: 50px;
  text-align: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px;
  height: 55px;
  z-index: 9999;
}

nav div {
  display: flex;
  gap: 30px;
}

nav .home {
  position: fixed;
  left: 0;
  margin-left: 50px;
}

.nav-links-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px;
  color: white;
  margin: 5px;
  background-color: var(--secondary-background-color);
  border-radius: 8px;
  position: fixed;
  right: 0;
  margin-right: 50px;
}

nav a:hover {
  color: var(--call-to-action-color);
}

#welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100vw;
  height: 100vh;
}

#about-me-section {
  margin-top: 50px; 
  margin-bottom: 50px;
  padding: 0 15px; 
  max-width: 1200px; 
  width: 100%;
  margin-left: auto; 
  margin-right: auto; 
  text-align: center;
}

#about-me-section p {
  max-width: 800px; 
  margin: 0 auto;
}

#projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 1fr));
  gap: 20px;
  max-width: 1200px;
  justify-content: center;
  margin: 0 auto;
}

div {
}

a {
  color: unset;
  text-decoration: none;
}

.skills-carousel {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.skills-group {
  display: flex;
  gap: 15px;
  justify-content: center;
  animation: scroll 60s linear infinite;
}

.skill {
  text-align: center;
  min-width: 120px;
}

@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.skill img {
  width: 55px;
  height: 55px;
}

.skill p {
  margin: 0;
  padding-top: 10px;
}

#btnContainer {
  display: flex;
  gap: 10px;
  margin: 0 auto 30px auto;
  max-width: 1200px;
  padding: 0 10px;
}

.filterDiv {
  display: none;
}

.show {
  display: block;
}

.filter-btn {
  border: none;
  outline: none;
  padding: 12px 16px;
  background-color: #e1dddd;
  cursor: pointer;
  border-radius: 8px;
}

.filter-btn.active {
  background-color: var(--call-to-action-color);
  color: white;
}

.project {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.project:hover {
  transform: rotate(1.5deg);
}

.project a {
  display: inline-block;
  width: 100%;
  height: 100%;
}

.project img {
  width: 100%;           
  height: 225px;         
  object-fit: contain;   
  display: block;
  background-color: white; 
  border-radius: 8px 8px 0 0;
}

.project-title {
  background-color: var(--secondary-background-color);
  color: white;
  padding: 25px;
  text-align: center;
  margin: 0;
}

footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 100px;
  margin-right: 0;
  margin-bottom: 0;
  padding: 50px;
  background: url("images/background-image.jpg");
  background-size: cover;
}

footer a {
  display: inline-block;
  font-size: 18px;
  padding: 15px;
  color: white;
  margin: 5px;
  background-color: var(--secondary-background-color);
  border-radius: 8px;
}

footer a i {
  font-size: 20px;
}

footer .copyright-section {
  color: white;
  padding: 7.5px 15px;
  background-color: var(--secondary-background-color);
  border-radius: 8px;
}

footer a:hover {
  color: var(--call-to-action-color);
}

@media screen and (max-width: 500px) {
  div {
    width: 300px;
    height: 321px;
  }
}

.project-header {
  text-align: center;
}

.project-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-image-section {
  display: flex;
  justify-content: center;
  padding-bottom: 65px;
}

.project-image {
  width: 80%;
  height: 30%;
}

.project-links {
  display: flex;
  justify-content: center;
  width: 80%;
  gap: 20px;
  padding-bottom: 65px;
}

.project-links i {
  font-size: 45px;
}

.project-links i:hover {
  color: var(--call-to-action-color)
}

.project-content-section {
  text-align: left;
  margin: 0 auto; 
  padding-left: 25%;
  padding-right: 25%;
}

.project-content-section h2 {
  text-align: left;
  margin: 0 auto; 
  padding: 0;
}

.project-content-section p, .project-content-section ul {
  padding-top: 10px;
  padding-bottom: 10px;
}

li {
  padding-bottom: 15px;
}