
@media (max-width: 768px) {
  .header {
    width: 100%;
    min-width: 0;
    flex-direction: column;
    padding: 0;
    left: 0;
    transform: none;
    border-radius: 0;
    top: 0;
  }

  .navbar {
    flex-direction: column;
    padding: 1rem 0.5rem;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-links {
    gap: 0.5rem;
    flex-direction: column;
    align-items: center;
    margin: 0.5rem 0;
    width: 100%;
  }

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

  .nav-links a {
    display: block;
    width: 100%;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    word-break: break-all;
    overflow-wrap: break-word;
    text-overflow: ellipsis;
  }

  .logo img {
    height: 40px;
    max-height: 40px;
    margin-bottom: 10px;
  }

  .text-section {
    flex-direction: column;
    text-align: center;
    padding: 1rem 0.5rem;
  }

  .text-box {
    margin: 0 auto;
    max-width: 100%;
    width: auto;
    padding: 1rem;
    font-size: 1rem;
    box-sizing: border-box;
    min-width: 0;
    max-height: none;
  }

  main, .about-content, .contact-content, .gallery-content {
    margin-top: 200px;
  }
}
