@media screen and (max-width: 800px) {
  #desktop-nav {
    display: none !important; 
  }

  #hamburger-nav {
    display: flex !important; /* Shows mobile nav */
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: 12vh;
    position: relative;
    top: 0;
    background: rgba(11, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 255, 127, 0.2);
  }

  /* Small Menu List (Floating Dropdown) */
  .menu-links{
    position: absolute;
    top: 100%;
    right: 5%;
    width: 150px; 
    background: rgba(20, 25, 40, 0.98); 
    border: 1px solid rgba(0, 255, 127, 0.4);
    border-radius: 10px;
    list-style: none;
    display: none; 
    flex-direction: column;
    padding: 5px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  }

  /* Trigger class for JavaScript */
  .menu-links.open {
    display: flex !important;
  }

  .menu-links li a {
    padding: 10px 15px;
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    display: block;
  }

  /* Hamburger Icon Styling */
  .hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 18px;
    width: 25px;
    cursor: pointer;
  }

  .hamburger-icon span {
    height: 2px;
    width: 100%;
    background-color: #00ff7f;
    transition: all 0.3s ease;
  }

  /* Prevent sections from being forced to full screen height */
  #profile, #overview {
    height: auto !important; 
    min-height: auto !important; 
    padding: 60px 5% 40px 5% !important; 
    display: flex;
    flex-direction: column;
  }

  .section__pic-container img {
    width: 200px; 
    height: 200px;
    margin-top: 0;
  }

  .title {
    font-size: 2rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.2;
    text-align: center;
  }

  .p2 {
    margin: 0 !important; 
    font-size: 1.1rem;
    margin-bottom: 20px !important;
    text-align: center;
  }

  .btn-container {
    flex-direction: column; 
    align-items: center;
    width: 100%;
    gap: 10px;
  }

  .btn {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  /* Overview Boxes Fix */
  .about-details-container {
    flex-direction: column !important;
    align-items: center;
    gap: 1rem;
    padding: 0;
  }

  .about-containers {
    max-width: 100% !important;
    width: 100% !important;
  }

  .details-container, .section-content {
    width: 100% !important;
    margin: 10px 0 !important;
    padding: 1.5rem !important;
    box-sizing: border-box;
  }

  .section-content {
    text-align: left; 
    line-height: 1.6;
  }
}
/* --- Desktop/Laptop Zoom Safety (801px to 1250px) --- */
@media screen and (min-width: 801px) and (max-width: 1250px) {
  .title {
    font-size: 2.5rem !important; 
    margin-bottom: 1.5rem !important; 
  }

  .p2 {
    margin: 0 !important; 
    margin-bottom: 30px
  }

  #profile {
    height: auto !important; 
    min-height: 100vh;
    padding: 120px 0 50px 0;
  }
}
/* For Very Small Phones (max 480px) */
@media screen and (max-width: 480px) {
 html, body {
    overflow-x: hidden;
    position: relative; /* This helps mobile browsers understand the boundaries */
    width: 100%;
  }
  footer p {
    max-width: 90%;       
    margin: 5px auto;     
    overflow-wrap: break-word; 
    text-align: center;   
    font-size: 0.8rem;    
  }
}
