/* Tablet adjustments */
@media screen and (max-width: 1024px) {
  .hero-section .hero-content {
    padding-left: 4rem;
  }
  .work-web h1, .work-web h2,
  .work-project h1, .work-project h2,
  .work-creative .left-section h1, .work-creative .left-section h2, .work-creative .left-section p,
  .right-section p {
    margin-left: 4rem;
  }
  .work-creative .left-section .logo-grid {
    margin-left: 4rem;
  }
  .tiling-container .dashboard {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 
      "profile clock"
      "profile weather"
      "ether error"
      "media music";
  }
}

/* Mobile adjustments (Phones / smaller tablets) */
@media screen and (max-width: 768px) {
  /* Navbar */
  .navbar {
    padding: 10px 20px;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .navbar .nav-list {
    margin-top: 15px;
    width: 100%;
    justify-content: space-evenly;
    gap: 15px;
  }
  
  /* Hero */
  .hero-section {
    flex-direction: column;
    justify-content: center;
    padding-top: 150px;
    height: auto;
    min-height: 100vh;
  }
  .hero-section .hero-content {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    align-items: flex-start;
  }
  .hero-section .hero-content h1 {
    font-size: 5rem;
  }
  .hero-section .hero-content h2 {
    font-size: 2rem;
  }
  .hero-section .hero-image {
    width: 100%;
    margin-top: 2rem;
  }
  
  /* Canvas Auto Scale */
  canvas#strokeCanvas, canvas#introCanvas, canvas#asciiCanvas {
    max-width: 100%;
    height: auto;
  }

  /* Work Sections */
  .work-web h1, .work-project h1, .work-creative .left-section h1 {
    font-size: 4rem;
    margin-left: 2rem;
  }
  .work-web h2, .work-project h2, .work-creative .left-section h2, .work-creative .left-section p, .right-section p {
    margin-left: 2rem;
    font-size: 1.5rem;
  }
  
  .work-creative {
    flex-direction: column;
  }
  .work-creative .left-section, .right-section {
    width: 100%;
  }
  .work-creative .left-section .logo-grid {
    margin-left: 2rem;
    justify-content: flex-start;
  }
  
  .right-section p {
    margin-top: 3rem;
  }
  .right-section .article-container {
    margin-right: 0;
    padding: 0 20px 20px;
  }
  
  /* Dashboard */
  .tiling-container .header-tiling {
    margin-left: 2rem;
  }
  .tiling-container .dashboard {
    grid-template-columns: 1fr;
    grid-template-areas: 
      "profile"
      "clock"
      "weather"
      "music"
      "media"
      "error"
      "ether";
    padding: 10px;
  }
  
  /* Footer */
  footer .left-footer {
    padding: 2rem !important;
  }
  footer .left-footer h1 {
    font-size: 3rem !important;
  }
  
  /* Article List Overrides */
  div[style*="min-height: 80vh"] .right-section p {
    margin-left: 2rem !important;
  }
  div[style*="min-height: 80vh"] .article-container {
    margin-left: 0 !important;
    padding-right: 20px !important;
    padding-left: 20px !important;
    grid-template-columns: 1fr !important;
  }
}

/* Small Phones */
@media screen and (max-width: 480px) {
  .hero-section .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-section .hero-content h2 {
    font-size: 1.5rem;
  }
  .work-web h1, .work-project h1, .work-creative .left-section h1 {
    font-size: 3rem;
    margin-left: 1rem;
  }
  .work-web h2, .work-project h2, .work-creative .left-section h2, .work-creative .left-section p, .right-section p {
    margin-left: 1rem;
    font-size: 1.2rem;
  }
  .work-creative .left-section .logo-grid {
    margin-left: 1rem;
  }
  .tiling-container .header-tiling {
    margin-left: 1rem;
  }
  footer .left-footer {
    padding: 1.5rem !important;
  }
  footer .left-footer h1 {
    font-size: 2.5rem !important;
  }
}
