/************************************************
 * 1) OVERLAY (Darker background, closes on click)
 ************************************************/
.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.7); /* Darker overlay */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1),
                visibility 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1000; /* behind the panel but above the page */
}
  
.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}
  
/************************************************
 * 2) SLIDE-IN PANEL (Width: 30vw)
 ************************************************/
.slide-in-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: clamp(300px, 30vw, 500px); /* Responsive with clamp */
    height: 100vh;
    background-color: #ebecf3; /* Match the light gray background from the image */
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1001;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto; /* Enable scrolling for smaller screens */
}
  
.slide-in-panel.active {
    transform: translateX(0);
}

/* Better mobile responsiveness */
@media (max-width: 768px) {
    .slide-in-panel {
        width: 85vw;
    }
}
  
  /************************************************
   * 3) PANEL CONTENT (includes background image)
   ************************************************/
  .panel-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 2rem;
    box-sizing: border-box;
    font-family: 'Libre Baskerville', sans-serif; /* match your site font */
    display: flex;
    flex-direction: column;
    padding: 24px;
  }
  
  /* Faint background image (Group 44.svg) at bottom-right with opacity: 0.1 */
  .panel-content::after {
    content: "";
    position: absolute;
    bottom: 2rem; 
    right: 2rem;
    width: 200px;
    height: 200px;
    background: url('img/Group 44.svg') no-repeat center/contain;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1; /* behind the text */
  }
  
  /* Header container */
  .panel-content > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  
  /************************************************
   * 4) TOP HEADER (Arrow + "Back To Projects.")
   ************************************************/
   .panel-header {
    position: relative;       /* so the .header-line can be absolutely positioned */
    height: 60px;            /* adjust as needed */
    padding: 0 1rem;         /* horizontal padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* You can also set a background color here if needed */
  }
  
  /* Arrow */
  .arrow-icon {
    width: 24px;             /* adjust size */
    height: 24px;
    fill: none;              /* or currentColor if you want it to inherit text color */
    stroke: #000;            /* arrow color */
    cursor: pointer;
    transition: transform 0.3s ease;
  }
  
  .header-left:hover .arrow-icon {
    transform: translateX(-5px);
  }
  
  /* Right-side text in italic */
  .back-text {
    font-style: italic;
    font-weight: normal;
    font-size: 1rem;
    color: #000;             /* text color */
    font-family: 'Libre Baskerville', sans-serif;
    font-size: 16px;
  }
  
  /* The thin horizontal line at the bottom */
  .header-line {
    position: relative;
    width: 100%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1); /* light gray */
    margin-top: 16px;
    margin-bottom: 24px;
  }
  
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
  }
  
  .header-left {
    display: flex;
    align-items: center;
    cursor: pointer;
  }
  
  .header-right {
    display: flex;
    align-items: center;
  }
  
  /************************************************
   * 5) QUOTED PROJECT NAME
   ************************************************/
  .panel-title {
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #111;
    font-weight: 400;
  }
  
  /************************************************
   * 6) GRAY RECTANGLE PLACEHOLDER (image area)
   ************************************************/
  .panel-image-placeholder {
    width: 100%;
    height: 200px;
    background: #d3d3d3;  /* light gray as shown in the image */
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  }
  
  /************************************************
   * 7) SECTION HEADINGS (About, Technologies, Website)
   ************************************************/
  .panel-section-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #111;
  }
  
  /************************************************
   * 8) ABOUT TEXT
   ************************************************/
  .panel-about-text {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
  }
  
  /************************************************
   * 9) TECHNOLOGIES (Small gray circles from image)
   ************************************************/
  .panel-tech-list {
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.75rem;
    align-items: center;
  }
  
  /* Each technology is a pill-shaped tag */
  .panel-tech-list span {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background: #f0f0f0;
    border-radius: 4px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: #333;
  }
  
  /************************************************
   * 10) WEBSITE LINK (Underlined "GitHub" or any link)
   ************************************************/
  .panel-website {
    margin-bottom: 1.5rem;
  }
  
  /* Style for container with multiple website links */
  #panel-website-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  #panel-website-container a {
    text-decoration: underline;
    color: #000;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
  }
  
  #panel-website-container a:hover {
    opacity: 0.8;
    transform: translateX(3px);
  }
