/* ========== Base Layout ========== */
body {
    font-family: "Fira Code", monospace;
    margin: 0;
    padding: 0;
    height: 100%;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
  }
  
  .page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
  }
  
  .layout {
    flex: 1; /* this will be 5/7 of the screen */
    display: flex;
    overflow: hidden; /* prevent layout from scrolling */
  }
  
  /* ========== Header & Footer ========== */
  header {
    background: #333;
    color: white;
    text-align: center;
    padding: 1rem;
    height: 10vh; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 0.6;
  }
  
  footer {
    background: #eee;
    text-align: center;
    padding: 1rem;
    height: 10vh;
    font-size: 0.7rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1;
  }
  
  .footer-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
  }
  
  .footer-icons a {
    display: flex;
    align-items: center;
    color: #333;
    font-size: 1.5rem;
    text-decoration: none;
  }
  
  .footer-icons a:hover {
    color: #0077b6;
  }
  
  /* ========== Sidebar ========== */
  .sidebar {
    width: 500px;
    background-color: #f9f9f9;
    color: black;
    padding-left: 5rem;
    padding-top: 5rem;
    padding-right: 3rem;
    box-sizing: border-box;
    overflow-y: auto;
    overflow: hidden;
  }
  
  .sidebar nav {
    display: flex;
    font-size: 1.2rem;
    flex-direction: column;
    padding-left: 3.4rem;
  }
  
  .sidebar a {
    color: #333;
    text-decoration: none;
    margin-bottom: 1rem;
    font-weight: bold;
  }
  
  .sidebar a:hover {
    color: #0077b6;
  }
  
  /* ========== Main Content ========== */
  .main-content {
    flex: 1;
    padding-top: 3rem; 
    overflow-y: auto;
    box-sizing: border-box;
  }
  
  .main-content h2 {
    font-size: 1.5em;
    font-weight: bold;
  }
  
  /* ========== Sections & Text ========== */
  section {
    max-width: 800px;
    margin: auto;
  }
  
  p {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
  }
  
  pre {
    margin-top: 0.35rem;
    margin-bottom: 0.35rem;
    font-size: 16px;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  
  /* ========== Resume Button ========== */
  .resume-download button {
    padding: 0rem 1rem;
    font-size: 1.2rem;
    font-family: "Fira Code", monospace;
    background-color: transparent;
    color: #333;
    border: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: bold;
  }
  
  .resume-download button:hover {
    color: #0077b6;
  }
  
  .resume-download i {
    margin-right: 0.5rem;
  }
  
  /* ========== Hero Section ========== */
  .hero {
    background: #333;
    color: white;
    text-align: center;

    padding-left: 1rem;
    padding-right: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 1.5rem;

    height: 15vh;
    width: 100%;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.2;
    font-size: 1.4rem;
    font-weight: bold;
  }

  /* ========== About Me ========== */

  .about {
    background-color: #eaeaea; 
    border-radius: 10px;
    padding: 1.3rem 1.3rem 1.5rem 1.5rem; 
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  
  .about h2 {
    font-size: 1.6rem;
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: bold;
    color: #222;
    text-align: center;
  }
  
  .about p {
    margin-bottom: 1rem;
    text-align: justify;
  }
  

  /* ========== Projects ========== */
  
  .project {
    background-color: #eaeaea;
    border-radius: 10px;
    padding: 1.2rem 1.5rem 1.5rem 1.5rem; /* slightly reduced top padding */
    margin-top: 0; /* no extra margin above the project */
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  
  .project h3 {
    margin-top: 0; 
    margin-bottom: 0.5rem;
  }
  
  .project p {
    margin-top: 0.2rem; 
    margin-bottom: 0.75rem;
  }
  
  .project:hover {
    background-color: #e0e0e0; 
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .project-skills {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .project-skills span {
    background-color: #d0d0d0;
    color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
  }
  

  /* ========== Experiences ========== */
  
  .experience {
    background-color: #eaeaea; /* light grey */
    border-radius: 10px;
    padding: 1.2rem 1.5rem 1.5rem 1.5rem; /* match project padding, reduce top spacing */
    margin-top: 0;
    margin-bottom: 2rem;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  }
  
  .experience:hover {
    background-color: #e0e0e0; /* slightly darker grey on hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .experience h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
  }
  
  .experience p {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
  }  

  .experience-skills {
    margin-top: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .experience-skills span {
    background-color: #d0d0d0;
    color: #333;
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
  }

  /* ========== Utilities ========== */
  .small-text {
    font-size: 0.75em;
  }  

  .hero .small-text {
    font-size: 0.6em;
    font-weight: normal;
  }  



  /* ========== Responsive Enhancements ========== */

/* Scale sidebar and section widths down on smaller screens */
    @media (max-width: 1200px) {
    .sidebar {
      width: 400px;
      padding-left: 3rem;
      padding-right: 2rem;
    }
  
    section {
      max-width: 700px;
    }
  }
  
  @media (max-width: 992px) {
    .sidebar {
      width: 300px;
      padding-left: 2rem;
      padding-right: 1.5rem;
    }
  
    section {
      max-width: 600px;
    }
  
    .hero {
      font-size: 1.2rem;
    }
  
    .hero p {
      font-size: 0.75rem;
    }
  }
  
  @media (max-width: 768px) {
    .layout {
      flex-direction: column;
    }
  
    .sidebar {
      width: 100%;
      height: auto;
      padding: 2rem;
    }
  
    .main-content {
      padding: 2rem;
    }
  
    section {
      max-width: 100%;
      padding: 0 1rem;
    }
  }
  