/* SoftDG mobile / responsive overrides — loaded after style.css */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
}

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

.global-overlay,
.global-overlay canvas,
.overlay {
  max-width: 100vw;
}

#left-side .content nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

#left-side .content nav ul li {
  display: block;
}

#left-side .light-btn,
#left-side .action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  float: none !important;
  min-width: 11.5rem;
  padding: 0.85em 1.4em !important;
  line-height: 1.2;
  text-align: center;
}

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

@media only screen and (max-width: 1024px) {
  #left-side {
    min-height: 100svh;
    height: auto !important;
    padding: 5.5rem 1.25rem 4rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #left-side .brand-logo {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    display: block;
    margin: 0 auto 1.75rem;
    max-width: min(220px, 70vw);
  }

  #left-side .content {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: 36rem;
    margin: 0 auto;
    padding: 0 !important;
    text-align: center;
  }

  h1.text-intro {
    font-size: clamp(1.75rem, 7vw, 2.6rem) !important;
    line-height: 1.15;
    margin-bottom: 0.85rem;
  }

  h2.text-intro {
    font-size: clamp(1rem, 3.8vw, 1.2rem) !important;
    line-height: 1.45;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
  }

  #left-side .content nav {
    margin-top: 1.75rem;
  }

  #left-side .content nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  #left-side .light-btn,
  #left-side .action-btn {
    width: 100%;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  #about-section {
    padding: 3.5rem 0 2.5rem;
  }

  #about-section .content {
    padding: 0 1.25rem;
  }

  #about-section .content h3 {
    font-size: clamp(1.35rem, 5vw, 1.85rem);
    margin-bottom: 1.25rem;
  }

  #about-section .content p {
    font-size: 1rem;
    line-height: 1.65;
  }

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

  #about-section .content .photo-line figure .photo-details {
    padding: 1.25rem 0;
  }

  #about-section footer {
    padding: 2rem 1.25rem;
    text-align: center;
  }

  .dialog__content {
    width: min(94vw, 28rem) !important;
    max-width: 94vw !important;
    min-width: 0 !important;
  }

  .dialog .dialog-inner {
    padding: 1.75rem 1.25rem 2rem !important;
  }
}

@media only screen and (max-width: 480px) {
  #left-side {
    padding: 4.25rem 1rem 3rem !important;
  }

  #left-side .brand-logo {
    max-width: min(180px, 65vw);
    margin-bottom: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
