@import url('./buttons.css');

@media (max-width: 1200px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .contact-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .hero-banner {
    height: 300px;
  }

  .hero-banner .profile-image {
    left: 40px;
    bottom: -60px;
    width: 130px;
    height: 130px;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .bento-stats {
    flex-direction: row;
    gap: 20px;
  }

  .projects-showcase {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }

  .showcase-image img {
    width: 260px;
  }
  
  .stat-card {
    flex: 1;
    min-height: 120px;
  }
  
  .profile-section {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .profile-info {
    padding-left: 0;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-showcase {
    flex-direction: column;
    text-align: center;
    padding: 25px;
    gap: 30px;
  }

  .showcase-image img {
    width: 220px;
  }

  .badges {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 15px;
  }
  
  .badge-item {
    flex: 0 0 calc(50% - 15px);
  }
  
  .back-to-top {
    width: 40px;
    height: 40px;
    font-size: 1rem;
    bottom: 20px;
    right: 20px;
  }
  
  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
  }
  
  .bento-grid,
  .projects-grid,
  .skills-grid,
  .contact-grid,
  .footer-content {
    width: 100%;
    max-width: 100%;
  }
  
  .bento-main,
  .stat-card,
  .project-card,
  .skill-item,
  .contact-card {
    max-width: 100%;
    box-sizing: border-box;
  }
  
  img {
    max-width: 100%;
    height: auto;
  }
}

@media (max-width: 576px) {
  .hero-banner {
    height: 200px;
  }

  .hero-banner .profile-image {
    left: 20px;
    bottom: -50px;
    width: 110px;
    height: 110px;
  }

  .bento-main {
    padding: 20px;
  }
  
  .profile-image {
    width: 120px;
    height: 120px;
  }
  
  .profile-name {
    font-size: 1.8rem;
    font-weight: 800;
  }
  
  .profile-title {
    font-size: 0.9rem;
  }
  
  .profile-buttons {
    flex-direction: row;
    gap: 10px;
  }
  
  .btn {
    min-width: 130px;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .bento-stats {
    flex-direction: row;
    gap: 10px;
  }
  
  .stat-card {
    padding: 15px;
    min-height: 90px;
  }
  
  .stat-icon {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .stat-content h3 {
    font-size: 1.3rem;
  }
  
  .stat-content p {
    font-size: 0.75rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
    gap: 10px;
  }
  
  .skill-item {
    width: 70px;
    height: 70px;
    padding: 10px 6px;
  }
  
  .skill-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 5px;
  }
  
  .skill-name {
    font-size: 0.65rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .projects-showcase {
    padding: 20px;
    gap: 24px;
  }

  .showcase-image img {
    width: 100%;
    max-width: 280px;
  }

  .badges {
    gap: 10px;
  }
  
  .badge-item {
    flex: 0 0 calc(50% - 10px);
  }
  
  .badge-icon {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }
  
  .badge-d, .badge-s, .badge-c, .badge-e {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-banner {
    height: 180px;
  }

  .hero-banner .profile-image {
    left: 15px;
    bottom: -45px;
    width: 100px;
    height: 100px;
  }

  .bento-main {
    padding: 15px;
  }
  
  .profile-section {
    gap: 15px;
  }
  
  .profile-image {
    width: 100px;
    height: 100px;
  }
  
  .profile-name {
    font-size: 1.5rem;
    font-weight: 800;
  }
  
  .profile-title {
    font-size: 0.8rem;
  }
  
  .profile-buttons {
    flex-direction: row;
    gap: 8px;
  }
  
  .btn {
    min-width: 120px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  
  .bento-stats {
    flex-direction: row;
    gap: 8px;
  }
  
  .stat-card {
    padding: 12px;
    min-height: 80px;
  }
  
  .stat-icon {
    width: 30px;
    height: 30px;
    font-size: 0.9rem;
  }
  
  .stat-content h3 {
    font-size: 1.1rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(65px, 1fr));
    gap: 8px;
  }
  
  .skill-item {
    width: 65px;
    height: 65px;
    padding: 8px 5px;
  }
  
  .skill-icon {
    width: 20px;
    height: 20px;
  }
  
  .skill-name {
    font-size: 0.6rem;
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .projects-showcase {
    padding: 16px;
    gap: 20px;
    margin: 30px 0;
  }

  .showcase-image img {
    width: 100%;
    max-width: 220px;
  }

  .badges {
    gap: 8px;
  }
  
  .badge-item {
    flex: 0 0 calc(50% - 8px);
  }
}

@media (max-width: 1200px) {
  .profile-image {
    width: 140px;
    height: 140px;
  }
}

@media (max-width: 992px) {
  .profile-image {
    width: 130px;
    height: 130px;
  }
}

@media (max-width: 768px) {
  .profile-image {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 576px) {
  .profile-image {
    width: 110px;
    height: 110px;
  }
}

@media (max-width: 480px) {
  .profile-image {
    width: 100px;
    height: 100px;
  }
}