/* style.css */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
  }
  
  article[data-testid="test-profile-card"] {
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 30px;
  }
  
  figure {
    display: flex;
    justify-content: center;
  }
  
  img[data-testid="test-user-avatar"] {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
  }

  nav[data-testid="test-user-social-links"] {
    padding: 1rem 0rem 0rem ;
  }
  
  nav a:hover,
  nav a:focus {
    text-decoration: underline;
    color: #005fa3;
  }
  
  nav ul {
    display: flex;
    justify-content: flex-start; /* Aligns all links to the left */
    gap: 1rem;
    list-style: none;
    flex-wrap: wrap;
  }
  
  a {
    text-decoration: none;
    color: #0077cc;
    font-weight: 500;
}
  
  a:focus, a:hover {
    text-decoration: underline;
  }

  /* Hobbies & dislikes */
section {
    margin-top: 1rem;
  }
  
  section h3 {
    margin-bottom: 0.5rem;
    text-align: start;
  }
  
  ul {
    list-style-type: disc;
  }

  section ul{
    padding-left: 1.5rem;
  }
  
  nav a.active {
    color: #000;
    border-bottom: 2px solid #0077cc;
  }
  
  
  @media (min-width: 768px) {
    body{
      padding:80px 0px;
    }
     
    nav ul{
      gap: 1.5rem;
    }

    main {
      width: 65%;
    }


    article[data-testid="test-profile-card"] {
      flex-direction: row;
      align-items: flex-start;
      margin-top: 50px;
    }


    figure, section {
      flex: 1;
    }

    .profile-avatar {
        flex: 1;
        display: flex;
        justify-content: center;
      }
    
      /* Text section on right */
      .profile-info {
        flex: 2;
      }
    
      h2[data-testid="test-user-name"],
      p[data-testid="test-user-bio"],
      section h3 {
        text-align: left;
      }
    
  }
  

  