/* Global fixes for text overflow issues - all screen sizes */

/* Force content to stay within viewport width */
* {
  max-width: 100%;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
  width: 100%;
  position: relative;
}

/* Ensure content stays within container */
.container {
  overflow-x: hidden;
  position: relative;
}

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

/* Apply word breaking to all text elements */
p, h1, h2, h3, h4, h5, h6, span, div, li, a, strong, em {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-word;
  word-break: break-word;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
}

/* Additional protection for long Polish words */
.highlight-text, 
.about-text, 
.services-section, 
.contact-section,
.contact-info,
.text-content {
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

.experience-section {
  max-width: 100%;
}
