body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: rgb(10, 10, 10);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
  }

.content {
  display: flex;
  gap: 10px; 
  margin: 20px;
}

.switch {
  border-radius: 30px;
  background-color: rgb(9 9 9 / 20%);
  border: 2px solid rgba(93, 93, 93, 0.101);
  color: #bbb;
  height: 40px;
  width: 70px;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.portfolio {
  width: 95%;
  display: grid;
  gap: 20px;
  margin-bottom: 20px;
}

.portfolio.sites {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.portfolio.bots {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}


.project {
  margin-bottom: 20px;
  border: 2px solid rgba(93, 93, 93, 0.101);
  background-color: rgb(14, 14, 14);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3 ease;
}

.project:hover {
  transform: scale(1.01);
}

  .project img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: brightness(0.6);
  }


  .project_content {
    padding: 15px;
  }

  .project_title {
    font-size: 1.5em;
    margin: 0 0 10px;
    color: #e6e6e6;
  }

  .project_description {
    font-size: 1em;
    line-height: 1.5;
    color: #707070;
  }

  
  .project[data-category="sites"] {
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
    height: 250px;
    border-radius: 15px;
    background-color: rgb(14, 14, 14);
    border: 2px solid rgba(93, 93, 93, 0.101);
    margin-bottom: 20px;
    transition: transform 0.3s;
  }
  
  .project[data-category="sites"]:hover {
    transform: scale(1.01);
  }
  
  .project[data-category="sites"] img {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 20%, black 60%, black 100%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.3) 20%, black 60%, black 100%);
    
    order: 2;
    width: 70%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.3);
    border-radius: 0 15px 15px 0;
  }
  
  .project[data-category="sites"] .project_content {
    order: 1;
    width: 50%;
    padding: 20px;
    color: #e6e6e6;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }
  
  .hidden {
    display: none;
  }

  .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
  }
  
  .modal.show {
    display: flex;
    opacity: 1;
    pointer-events: auto;
  }
  
  .modal-content {
    max-width: 90%;
    max-height: 90%;
    background: linear-gradient(145deg, #1a1a1a, #121212);
    border-radius: 20px;
    border: 1px solid #444;
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  @keyframes slideUp {
    from {
      transform: translateY(50px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
  
  .modal.hide {
    animation: fadeOut 0.4s ease forwards;
  }
  
  @keyframes fadeOut {
    from {
      opacity: 1;
    }
    to {
      opacity: 0;
    }
  }

a {
    text-decoration: none; 
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.separator {
  width: 70%;
  height: 2px;
  background-color: #333;
  margin: 20px 0 50px;
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .portfolio {
    width: 100%;
    margin-bottom: 5px;
  }

  .portfolio.sites {
    grid-template-columns: 1fr !important;
  }

  .portfolio.bots {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  }

  .project[data-category="sites"] {
    flex-direction: column;
    height: auto;
  }

  .project[data-category="sites"] img {
    order: 1;
    width: 100%;
    height: 180px;
    border-radius: 15px 15px 0 0;
    -webkit-mask-image: none;
    mask-image: none;
    filter: brightness(0.5);
  }

  .project[data-category="sites"] .project_content {
    order: 2;
    width: 100%;
    padding: 10px 0 0 10px;
  }

  .project img {
    height: 150px;
  }

  .project_content {
    padding: 15px;
  }

  .project_title {
    font-size: 1.5em;
  }

  .project_description {
    font-size: 1em;
    color: #b4b4b4;
  }

  .modal-content {
    max-width: 95%;
    max-height: 80%;
  }

  .separator {
    width: 90%;
    margin: 15px 0 30px;
  }
}
