/* Responsive CSS */

/* Laptop */
@media (max-width: 1200px) {
  .section-content {
    width: 100%;
    max-width: 100%;
    padding-inline: 2rem;
  }

  #home {
  height: 100vh;
  overflow: hidden;
  }
  

  .home-title {
    font-size: clamp(3rem, 8vw, 5rem);
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  }
}

/* Tablet */
@media (max-width: 900px) {
  .section {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 90px 1.5rem 5rem;
    overflow-y: auto;
    overflow-x: hidden;
  }

    #home {
  height: auto;
  overflow-y: auto;
  }

  .home-profile-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    border-radius: var(--r-lg);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    margin-inline: auto;
  }

  .about-text-on-obj {
    flex-direction: column;
  }
  .about-text-on-obj img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }
  #home {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .home-visual {
    display: none;
  }

  .home-title {
    font-size: clamp(2.5rem, 10vw, 4rem);
    line-height: 1;
  }

  .home-sub {
    max-width: 100%;
    margin-inline: auto;
  }

  .home-actions,
  .home-stats {
    justify-content: center;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-card {
    width: 100%;
    max-width: 500px;
    margin-inline: auto;
  }

  .nav-status {
    display: none;
  }
}

/* Mobile */
@media (max-width: 600px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .home-profile-img {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: var(--r-lg);
    object-fit: cover;
    box-shadow: var(--shadow-md);
    margin-inline: auto;
  }
  
  #navbar {
    padding: 0.75rem;
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .nav-logo {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .nav-link {
    font-size: 0.72rem;
  }

  .section {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 110px 1rem 5rem;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .section-content {
    width: 100%;
    max-width: 100%;
    padding: 0;
  }

  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    line-height: 1.1;
  }

  .section-label {
    font-size: 0.7rem;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-card,
  .about-card,
  .contact-form {
    width: 100%;
    min-width: 0;
  }

  .home-title {
    font-size: clamp(2rem, 12vw, 3.5rem);
  }

  .home-sub {
    font-size: 0.95rem;
  }

  .home-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .home-actions button {
    width: 100%;
    max-width: 280px;
  }

  .home-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    text-align: center;
  }

  .stat-num {
    font-size: 1.5rem;
  }

  .about-tags {
    justify-content: center;
    flex-wrap: wrap;
  }

  .avatar-ring {
    width: 220px;
    height: 220px;
  }

  .avatar-img {
    width: 180px;
    height: 180px;
  }

  .contact-link {
    word-break: break-word;
  }

  .form-input,
  .form-textarea {
    width: 100%;
  }

  .project-thumb {
    height: 180px;
  }

  #keyboard-canvas {
    width: 100%;
    height: auto;
  }
}

/* Very Small Phones */
@media (max-width: 400px) {
  .home-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .home-stats {
    grid-template-columns: 1fr;
  }

  .stat-num {
    font-size: 1.3rem;
  }

  .nav-link {
    font-size: 0.65rem;
  }

  .avatar-ring {
    width: 180px;
    height: 180px;
  }

  .avatar-img {
    width: 150px;
    height: 150px;
  }
}

/* Large Screens */
@media (min-width: 1400px) {
  .section-content {
    max-width: 1400px;
    margin-inline: auto;
  }

  .home-title {
    font-size: 7rem;
  }
}