/* Reset some basic styles */
:root {
  --main-bg-color: brown;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    font-family: 'Poppins', sans-serif;
    color: #333;
  }
  
  .nav-links {
    list-style: none;
    position: sticky;
  }
  
  .nav-links li {
    display: inline;
    margin: 0 1rem;
  }
  
  .nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
  }
  
  .hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 2rem;
    background-color: #3e3e3e;
    color: #fff;
  }
  
  .hero-section .btn {
    background-color: #b41b00;
    color: #fff;
    padding: 0.75rem 1.5rem;
    margin-top: 1.5rem;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    max-width: max-content;
  }
  .hero-section .btn:hover {
    filter: brightness(1.1);
  }

  .about-section,
  .portfolio-section,
  .contact-section {
    padding: 1.5rem 2rem 2rem 2rem;
    text-align: center;
  }

  .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
  }
  
  .portfolio-item {
    background: #f3f3f3;
    display: flex;
    padding: 1rem;
    border-radius: 8px;
    gap: 0.7rem;
    position: relative;
    user-select: none;
  }

  .portfolio-item:hover {
    background-color:#e8e8e8;
	box-shadow: 3px 3px rgb(201, 201, 201);
	transform:translate(-3px,-3px);
    cursor: pointer;
  }

  .portfolio-item p {
    margin-bottom: 1rem;
  }
  
  .portfolio-item img {
    max-width: 7rem;
    border-radius: 8px;
    align-self: center;
  }

  .item-content {
    display: flex; 
    flex-direction: column; 
    align-items: center;
    margin-left: auto;
    margin-right: auto;
  }
  
  footer {
    background-color: #3e3e3e;
    color: #fff;
    padding: 1rem;
    text-align: center;
  }
  
  .tag-zone {
    margin-top:auto;
  }

  .tag {
    background-color: #075ca6;
    border-radius: 1rem;
    padding: 0.1rem 0.9rem;
    font-size: small;
    color: whitesmoke;
    margin-inline-end: 1rem;
    text-wrap: nowrap;
  }

  .project-class {
    background-color: transparent;
    border: 1px solid #075ca6;
    color: #075ca6;
  }

  .separator {
    width: 30%;
    height: 0.1rem;
    margin: 0.5rem;
    border-radius: 1rem;
    background-color: #cccccc;
  }

  @media (max-width:600px){
    .about-section,
    .portfolio-section,
    .contact-section {
      padding: 2.5rem 0.5rem 2rem 0.5rem;
      text-align: center;
    }

    .portfolio-item img {
      max-width: 6rem;
    }

    .portfolio-grid {
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 1rem;
    }
  }