* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
  }

  body {
    background: #111;
    color: white;
    overflow-x: hidden;
  }
 
    nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 2rem;
        background: linear-gradient(to right, #c9bdbe, transparent);
        position: fixed;
        width: 100%;
        top: 0;
        z-index: 100;
      }
  
      .logo img {
        height: 40px;
      }
  
      .right-nav {
        display: flex;
        align-items: center;
      }
  
      .hamburger {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 25px;
        height: 20px;
        cursor: pointer;
      }
  
      .hamburger span {
        height: 3px;
        background: white;
        border-radius: 2px;
        transition: 0.4s ease;
      }
  
      .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translateY(13px);
      }
  
      .hamburger.active span:nth-child(2) {
        opacity: 0;
      }
  
      .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translateY(-13px);
      }
  
      .nav-links {
        display: flex;
        gap: 2rem;
      }
  
      .nav-links a {
        color: white;
        text-decoration: none;
        font-size: 1rem;
      }
      .nav-links a:hover{
          color: #050505;
      background: rgba(255, 2, 2, .7);
      transition: .2s; 
      }
      @media (max-width: 768px) {
        .hamburger {
          display: flex;
        }
  
        .nav-links {
          position: absolute;
          top: 100%;
          left: 0;
          right: 0;
          background: rgba(0, 0, 0, 0.95);
          flex-direction: column;

          align-items: center;
          overflow: hidden;
          max-height: 0;
          transition: max-height 0.4s ease-in-out;
        }
  
        .nav-links.open {
          max-height: 500px;
          border-radius: 0rem 0rem 2rem 2rem;
        }
  
        .nav-links a {
          padding: .4rem;
          width: 100%;
          text-align: center;
        }
      }