img {
  max-width: 100%;
  height: auto;
}



@media (max-width: 1024px) {
  .hero {
    gap: 32px;
    padding: 40px 24px;
  }
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-content h1 {
    font-size: 40px;
  }

  .hero-content p {
    max-width: 100%;
    font-size: 15px;
  }

  .hero-avatar {
    margin: 0 auto;
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 34px;
  }
}


@media (max-width: 768px) {
  .about {
    padding: 30px 20px;
  }

  .about-text {
    max-width: 100%;
    font-size: 14px;
  }
}







@media (max-width: 768px) {
  .contact {
    padding: 40px 20px 100px;
  }

  .contact h2 {
    font-size: 36px;
  }

  .contact p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .contact h2 {
    font-size: 32px;
  }

  .hero-avatar {
    width: 100px;
    height: 100px;
  }

  /* Hide dock labels on mobile as they break touch UX */
  .dock-item::after {
    display: none !important;
  }

  .dock {
    gap: 2px;
    padding: 6px 10px;
    bottom: 12px;
    /* Maintain centering with transform override */
    transform: translateX(-50%) scale(0.95);
    transform-origin: bottom center;
    max-width: 98vw;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
  }

  .dock::-webkit-scrollbar {
    display: none;
  }

  .dock-item {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
  }

  .dock-bg {
    width: 34px;
    height: 34px;
    top: 6px;
    left: 10px;
  }

  .dock-item i {
    font-size: 14px;
  }

  .dock-separator {
    height: 14px;
    margin: 0 1px;
    opacity: 0.5;
  }

  .experience,
  .education-item {
    padding: 8px;
  }
}


/* removed scale for better scroll behavior */

main {
  width: 100%;
  overflow-x: hidden;
}