/* Large desktop fine-tuning */
@media (max-width: 1200px) {
  .container {
    padding: 0 1.75rem;
  }
}
 
/* Small laptops / large tablets */
@media (max-width: 1024px) {
  .hero-container {
    gap: 3rem;
  }
 
  .hero-image-frame {
    max-width: 380px;
  }
 
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
 
  .projects-grid .project-card:nth-child(odd):last-child {
    grid-column: span 2;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
 
  .philosophy-layout {
    gap: 3.5rem;
  }
 
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
 
  .skills-grid .skills-column:last-child {
    grid-column: span 2;
  }
 
  .skills-grid .skills-column:last-child .skills-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
 
  .contact-layout {
    gap: 3rem;
  }


}
 

@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
 
  .hero-content {
    max-width: 100%;
  }
 
  .hero-media {
    justify-content: center;
    order: -1;
  }
 
  .hero-image-frame {
    max-width: 360px;
  }
 
  .philosophy-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
 
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
 
  .contact-content {
    max-width: 100%;
  }
 
  .contact-card {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
  }


  .around-card--games {
    order: 0;
  }

  .around-right-col {
    order: 1;
  }
}
 
/* Tablet and mobile screens */
@media (max-width: 768px) {
  .container {
    padding: 0 1.5rem;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }
 
  .hero-section {
    padding: 3rem 0 4.5rem;
    min-height: auto;
  }
 
  .hero-image-frame {
    max-width: 340px;
    border-radius: var(--radius-lg);
  }
 
  .projects-section,
  .philosophy-section,
  .skills-section,
  .contact-section {
    padding: 4.5rem 0;
  }


  .projects-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
 
  .projects-grid .project-card:last-child {
    grid-column: auto;
    max-width: 100%;
    margin: 0;
  }
 
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
 
  .skills-grid .skills-column:last-child {
    grid-column: auto;
  }
 
  .skills-grid .skills-column:last-child .skills-items {
    display: flex;
    flex-direction: column;
  }
 
  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
  }

  .footer-bottom-container {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 16px;
    text-align: center;
  }
}
 
/* Small mobile devices */
@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }


  .media-items {
    grid-template-columns: 1fr;
  }
 
  .header-container {
    height: 64px;
  }

  .brand-name {
    font-size: 13px;
  }
 
  .hero-title {
    font-size: 2.15rem;
  }
 
  .hero-description {
    font-size: 0.98rem;
  }
 
  .hero-actions {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
 
  .section-title {
    font-size: 1.85rem;
  }
 
  .contact-card {
    padding: 1.5rem;
  }
 
  .contact-email {
    font-size: 1.15rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }
 
  .contact-card-actions {
    width: 100%;
  }
}
 
/* Very small phones (iPhone SE and similar ~360px and below) */
@media (max-width: 360px) {
  .header-container {
    height: 60px;
  }
 
  .brand-logo svg,
  .brand-logo-icon {
    width: 26px;
    height: 26px;
  }
 
  .brand-name {
    font-size: 11.5px;
  }
 
  .theme-toggle,
  .mobile-toggle {
    width: 34px;
    height: 34px;
  }
 
  .hero-title {
    font-size: 1.85rem;
  }
 
  .cta-link {
    font-size: 0.76rem;
  }
 
  .contact-email {
    font-size: 1.02rem;
  }
 
  .browser-domain {
    font-size: 0.62rem;
  }
}
 