/* ========================================
   BASE STYLES & GLOBAL LAYOUT
   ======================================== */

   body {
    max-width: 650px;
    margin: 40px auto;
    font-family: Georgia, serif;
    font-size: 18px;
    color: #3d3d3d;
    line-height: 1.6;
    background-color: #fff8dc;
    padding: 0 20px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
  }
  
  main {
    margin: 0 20px 140px 20px;
  }
  
  /* ========================================
     TYPOGRAPHY
     ======================================== */
  
  h1 {
    line-height: 1.2;
  }
  
  h3 {
    font-size: 24px;
    margin-bottom: 2px;
  }
  
  h4 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  
  h5 {
    margin-bottom: -16px;
    margin-top: 20px;
  }
  
  /* ========================================
     HEADER & TITLE SECTION
     ======================================== */
  
  #title {
    display: flex;
    margin-bottom: 40px;
  }
  
  #title > h1 {
    font-size: 32px;
    margin-left: 54px;
  }
  
  #title > img {
    border-radius: 100%;
    width: 38px;
    height: 38px;
    align-self: center;
    position: absolute;
  }
  
  /* ========================================
     NAVIGATION
     ======================================== */
  
  .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0 8px;
  }
  
  .nav-link:first-child {
    margin-left: 0;
  }
  
  .nav-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
  }
  
  /* ========================================
     CONTENT COMPONENTS
     ======================================== */
  
  .project-cover-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  /* ========================================
     CHAT/CONVERSATION COMPONENTS
     ======================================== */
  
  .chat-container {
    max-width: 100%;
    margin: 20px 0;
    padding: 0;
  }
  
  .message {
    margin-bottom: 20px;
    display: flex;
    clear: both;
  }
  
  .message-left {
    justify-content: flex-start;
  }
  
  .message-right {
    justify-content: flex-end;
  }
  
  .message-content {
    max-width: 70%;
    padding: 22px 22px;
    border-radius: 18px;
    position: relative;
    word-wrap: break-word;
  }
  
  .message-left .message-content {
    background-color: #f0f0f0;
    border-bottom-left-radius: 4px;
    margin-right: auto;
  }
  
  .message-right .message-content {
    background-color: #f3dedf;
    border-bottom-right-radius: 4px;
    margin-left: auto;
  }
  
  .message-content p {
    margin: 0 0 22px 0;
    line-height: 1.5;
  }
  
  .message-content p:last-of-type {
    margin-bottom: 0;
  }
  
  .message-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
  }
  
  .icon-display {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #3d3d3d;
  }
  
  .icon-display img {
    width: 48px;
    height: 48px;
  }
  
  .icon-display.small img {
    width: 34px;
    height: 34px;
  }
  
  .icon-display h3 {
    margin: 0;
  }
  
  /* ========================================
     RESPONSIVE DESIGN - TABLET & MOBILE
     ======================================== */
  
  @media (max-width: 600px) {
    /* Base Layout */
    body {
      font-size: 16px;
      margin: 20px auto;
      padding: 0 14px 0 14px;
      width: 100%;
      box-sizing: border-box;
    }
  
    main {
      margin: 0 10px 100px 10px;
      width: 90%;
      box-sizing: border-box;
    }
  
    /* Typography */
    h3 {
      font-size: 20px;
    }
  
    h4 {
      font-size: 18px;
    }
  
    /* Header & Title */
    #title > h1 {
      font-size: 26px;
      margin-left: 44px;
    }
  
    #title > img {
      width: 34px;
      height: 34px;
    }
  
    /* Content Components */
    .project-cover-image {
      width: 100%;
      height: auto;
    }
  
    /* Icon Display - Mobile */
    .icon-display h1 {
      font-size: 24px;
    }
  
    /* Chat Components - Mobile */
    .message-content {
      max-width: 85%;
      padding: 18px 18px;
      font-size: 16px;
    }
  
    .message-content p {
      line-height: 1.5;
    }
  
    /* Navigation - Mobile Vertical Layout */
    .nav-link {
      display: flex;
      margin: 8px 0;
      padding: 8px 0;
    }
  
    .nav-link:first-child {
      margin-left: 0;
      margin-top: 0;
    }
  }
  
  /* ========================================
     RESPONSIVE DESIGN - SMALL MOBILE
     ======================================== */
  
  @media (max-width: 400px) {
    /* Base Layout */
    body {
      font-size: 14px;
      padding: 0 16px 0 26px;
      margin: 24px auto;
    }
  
    main {
      margin: 0 5px 80px 5px;
    }
  
    /* Typography */
    h3 {
      font-size: 18px;
    }
  
    h4 {
      font-size: 16px;
    }
  
    /* Header & Title */
    #title > h1 {
      font-size: 22px;
      margin-left: 40px;
    }
  
    #title > img {
      width: 30px;
      height: 30px;
    }
  
    /* Content Components */
    .icon-display img {
      width: 32px;
      height: 32px;
    }
  
    .icon-display.small img {
      width: 24px;
      height: 24px;
    }
  
    /* Icon Display - Small Mobile */
    .icon-display h1 {
      font-size: 20px;
    }
  
    /* Chat Components - Small Mobile */
    .message-content {
      max-width: 90%;
      padding: 16px 16px;
      font-size: 14px;
    }
  
    /* Navigation - Compact Mobile Layout */
    .nav-link {
      display: flex;
      margin: 6px 0;
      padding: 6px 0;
    }
  
    .nav-link:first-child {
      margin-left: 0;
      margin-top: 0;
    }
  }