@font-face {
  font-family: 'MegrimRegular';
  src: url('MegrimRegular.ttf') format('truetype');
}

body {
  background: #17252A;
  color: #b3e6e3f3;
  font-family: 'MegrimRegular', Verdana, Geneva, Tahoma, sans-serif;
  margin: 0;
  padding: 0;
  font-size: 1.18em; 
}

#container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 16px 48px 16px;
}

h1 {
  font-size: 3.2em;
  text-align: left;
  margin-bottom: 1.2em;
  color: #2B7A78;
  letter-spacing: 1px;
  margin-left: 0.1em;
}

section {
  margin-bottom: 1.5em;
  background: rgba(43, 122, 120, 0.08);
  border-radius: 18px;
  padding: 1.3em 1.5em;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  margin-left: 4.1em;
}

.section-title {
  font-size: 2em;
  color: #2B7A78;
  margin-bottom: 1em;
  font-family: 'MegrimRegular', Verdana, Geneva, Tahoma, sans-serif;
  letter-spacing: 0.5px;
  font-weight: bold;
}

.highlight {
  color: #2B7A78;
  font-size: 1.1em;
}

section p, section ul, section li {
  font-size: 0.95em; 
  line-height: 1.6;
}

.portfolio-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5em;
  overflow: hidden;      /* Hide overflow for JS carousel to work */
  padding-top: 8px;      /* Keep space for hover effect */
  padding-bottom: 0.5em;
  position: relative;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

section#portfolio {
  overflow: hidden;
  position: relative;
}

.portfolio-tile {
  background: #2B7A78;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  min-width: 180px;
  max-width: 200px;
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5em 0.3em 0.8em 0.3em;
  transition: transform 0.2s;
}

.portfolio-tile:hover {
  transform: translateY(-4px) scale(1.03);
  z-index: 2;
}

.portfolio-img {
  width: 100%;
  max-width: 190px;    /* Slightly bigger image */
  height: auto;
  border-radius: 8px;
  margin-bottom: 0.4em; /* Slightly less space below image */
  background: #fff2;
  margin-top: 0.1em;    /* Slightly less space above image */
}

.portfolio-desc {
  font-size: 0.7em;
  color: #b3e6e3f3;
  text-align: justify;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  margin: 0 0.6em;      /* Less distance from tile edges */
  margin-top: 0.4em;    /* Slightly less space above description */
  line-height: 1.4;
}

.icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5em;
  justify-content: flex-start;
  align-items: center;
  margin-top: 1em;
  margin-left: 0.1em;
}

.contact-icon {
  width: 70px;
  height: 70px;
  object-fit: contain;
  transition: transform 0.15s;
  border-radius: 12px;
  background: none;
}

.contact-icon:hover {
  transform: scale(1.12);
  background: none;
}

@media (max-width: 700px) {
  #container {
    padding: 12px 2vw 32px 2vw;
  }
  h1 {
    font-size: 1.5em;
    margin-bottom: 1.5em;
    text-align: left;
    margin-left: 0.1em;
  }
  section {
    padding: 1em 0.5em;
  }
  .portfolio-row {
    animation: none;
    overflow-x: auto;
    gap: 0.7em;
  }
  .portfolio-tile {
    min-width: 140px;
    max-width: 150px;
    flex: 0 0 150px;
    padding: 0.7em 0.3em 1em 0.3em;
  }
  .portfolio-img {
    max-width: 80px;
  }
  .contact-icon {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 600px) {
  .job-tasks {
    padding-left: 2em !important; /* or increase as needed */
    margin-left: 1em !important;  /* optional, for extra indent */
  }
}

.section-content {
  margin-left: 2.5em;
  text-align: justify;
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  font-size: 0.95em;
}

.job-header {
  cursor: pointer;
  user-select: none;
  transition: background 0.2s;
  padding: 0.2em 0.2em;
}

.job-header:hover {
  background: rgba(43, 122, 120, 0.10);
}

.job-tasks {
  margin-bottom: 1em;
}

.section-hint {
  font-size: 0.95em;
  opacity: 0.5;
  margin-left: 2.5em;
  margin-top: -0.8em;
  margin-bottom: 1em;
}

.section-content ul ul {
  list-style-type: disc;
  padding-left: 1.2em;
  margin-left: 0;
}

.portfolio-title {
  font-size: 0.9em;
  font-weight: bold;
  margin-top: 0.3em;
  margin-bottom: 0.1em;
  color: #b3e6e3f3;
  text-align: center;
  letter-spacing: 0.5px;
}

.kamil-color {
  color: #b3e6e3f3;
}
