/* --- Media Queries --- */

/* For Tablets and smaller laptops (max 991px) */
@media screen and (max-width: 991px) {
  .title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }
  
  .contact-info-upper-container {
    max-width: 90%;
    gap: 1.5rem;
  }
}

/* For Mobile Devices (max 768px) */
@media screen and (max-width: 768px) {
  #contact {
    padding: 2rem 5%;
    min-height: auto;
  }

  .title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  /* Keep boxes stacking but links horizontal */
  .contact-info-upper-container {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .contact-info-container {
    width: 100%; 
    min-width: unset;
    padding: 1.2rem;
    box-sizing: border-box;
  }

  /* FIX: Keep buttons side-by-side in the corners */
  .button {
    display: flex;
    flex-direction: row; 
    justify-content: space-between; 
    padding: 10px 20px;
    margin-top: 10px;
  }

  .btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links li a {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}

/* 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%;
  }
  .title {
    font-size: 1.8rem;
  }
  
  .btn {
    padding: 8px 12px;
    font-size: 0.75rem;
  }

  .contact-info-container p, 
  .contact-info-container a {
    font-size: 0.85rem;
    word-break: break-all; /* Prevents long emails from breaking the glass box */
  }

  .icon.contact-icon {
    width: 25px;
    height: 25px;
  }
  
  .nav-links {
    flex-direction: row;     
    flex-wrap: wrap;        
    justify-content: center; 
    gap: 0.5rem;            
  }
  .nav-links li a {
    padding: 6px 10px; /* Slightly smaller padding for tiny screens */
    font-size: 0.75rem;
}
footer p {
    max-width: 90%;       
    margin: 5px auto;     
    overflow-wrap: break-word; 
    text-align: center;   
    font-size: 0.8rem;    
  }
}

