/* Clearfix */
.clearfix {
  display: inline-block;
}
.clearfix:after {
  visibility: hidden;
  display: block;
  font-size: 0;
  content: " ";
  clear: both;
  height: 0;
}
* html .clearfix {
  height: 1%;
}
.clearfix {
  display: block;
}

/* Universal Reset and Base Styles */
* {
  -webkit-text-size-adjust: none;
  -moz-text-size-adjust: none;
  -ms-text-size-adjust: none;
  text-size-adjust: none;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: none;
  -ms-text-size-adjust: none;
}

body {
  padding: 30px 20px 20px 20px;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to right bottom, #222 0%, #444 61%);
  min-height: 100vh;
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  zoom: 1;
  transform: scale(1);
}

a {
  text-decoration: none;
  color: #0198E1;
}

.divider {
  width: 100%;
  float: left;
  position: relative;
}

.divider:after {
  position: absolute;
  width: 100%;
  margin-top: 0px;
  bottom: -11px;
  left: -3px;
  background: #595959;
  content: "";
  display: block;
  transform: skew(-31deg, 0deg);
  height: 11px;
}

.contOut {
  opacity: 0;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  position: relative;
  overflow: visible;
  margin-bottom: 6px;
}

.contOut:before {
  position: absolute;
  width: 6px;
  margin-top: 6px;
  left: -6px;
  background: #8c8c8c;
  content: "";
  display: block;
  transform: skew(0deg, -61deg);
  height: 100%;
}

.contIn {
  width: 100%;
  float: left;
}

.section {
  padding-left: 30px;
  padding-right: 30px;
}

.section.top {
  padding-top: 20px;
  padding-bottom: 10px;
}

.section.top:hover img {
  filter: grayscale(0%);
}

.logoCont {
display: none;
}

.logo {
  display: none;
}

h1 {
  width: 55%;
  float: left;
  display: inline-block;
  font-family: 'Playfair Display', serif;
  margin: 0;
  font-size: 40px;
  line-height: 40px;
}

p.tagline {
  float: left;
  width: 100%;
  font-size: 14px;
  margin-top: 10px;
  clear: both;
}

.moreInfo {
  float: right;
  width: 40%;
  text-align: right;
}

.moreInfo p {
  margin: 0;
  line-height: 20px;
  word-wrap: break-word;
}

.middle {
  padding-top: 20px;
  padding-bottom: 20px;
}

.middle h2 {
  border-left: solid 0 #fff;
  transition: all 200ms ease-in;
}

.middle h2 i.fa {
  display: inline-block;
  margin-left: 10px;
}

.middle h2 i.fa:hover {
  cursor: pointer;
  color: #0177b8;
}

.middle:hover h2 {
  border-left: solid 10px #000;
  padding-left: 8px;
  transition: all 100ms ease-in;
}

.job {
  width: 100%;
  float: left;
}

.job h2 {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 5px;
  position: relative;
  padding-right: 200px;
  min-height: 60px;
}

.job h2 .company {
  display: block;
  width: 100%;
  font-size: 24px;
  font-weight: 700;
  order: 1;
  line-height: 1.2;
}

.job h2 .position {
  display: block;
  width: 100%;
  font-size: 18px;
  font-weight: 400;
  font-style: italic;
  color: #666;
  order: 2;
  line-height: 1.3;
}

.job h2 i.fa {
  display: inline-block;
  margin-left: 0;
  order: 3;
  position: absolute;
  right: 190px;
top: 15px;
}

.job h2 .date-badge {
  float: none;
  display: inline-block;
  font-size: 16px;
  background: #000;
  color: #fff;
padding: 6px 8px;
  min-width: 120px;
  max-width: 170px;
  text-align: center;
  order: 4;
  position: absolute;
  right: 0;
  top: 10px;
  white-space: nowrap;
overflow: hidden;
  text-overflow: ellipsis;
}

.job p {
  margin: 6px 0;
}

.job p .brag {
  display: inline-block;
  margin: 10px 0;
  font-style: italic;
  background: #dbdbdb;
  padding: 20px 20px 20px 50px;
  color: #333;
  text-align: justify;
  border-bottom: solid 1px #bfbfbf;
  position: relative;
  text-shadow: 0 1px 1px #fff;
  max-height: 40px;
  overflow: hidden;
}

.job p .brag:before {
  position: absolute;
  left: 0;
  top: 0;
  content: "";
  width: 0;
  height: 0;
  border-top: 40px solid transparent;
  border-bottom: 40px solid transparent;
  border-left: 40px solid #fff;
}

.skills {
  width: 49%;
  display: block;
  float: left;
  padding-bottom: 20px;
  color: #fff;
  margin-bottom: 10px;
  clear: none;
  min-height: 200px;
}

.skills h3 {
margin: 20px 20px 10px 20px;
  text-transform: uppercase;
  position: relative;
}

.skills h3 .fa {
  position: absolute;
  top: -4px;
  right: 0;
  padding: 4px;
  border-radius: 3px;
}

.skills ul {
  font-size: 14px;
  list-style: none;
  margin: 0;
  padding: 0 20px;
  padding-bottom: 20px;
  min-height: 100px;
}

.skills ul li {
  float: left;
  padding: 4px 6px;
  margin: 0 4px 4px 0;
}

.skills ul li.light {
  opacity: 1;
}

.skills.odd {
  margin-right: 2%;
  clear: left;
}

.skills.software {
  margin-right: 0;
}

.skills.full-width {
  width: 100%;
  margin-right: 0;
  clear: both;
  min-height: auto;
  padding-bottom: 10px;
}

.skills.full-width ul {
  min-height: auto;
  padding-bottom: 10px;
}

.skills.code {
background: #0198E1;
}

.skills.code .fa {
  background: #34aae8;
  box-shadow: inset 0 1px 2px #015d8a;
}

.skills.code li {
  background: #34aae8;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.skills.code li:hover {
  background: #5bbcf0;
  transform: scale(1.05);
  transition: all 200ms ease-in-out;
}

.skills.code li.prim {
  background: #34aae8;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.skills.software {
  background: #608341;
}

.skills.software .fa {
  background: #7ca056;
  box-shadow: inset 0 1px 2px #3c5128;
}

.skills.software li {
  background: #7ca056;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

.skills.software li:hover {
  background: #8db363;
  transform: scale(1.05);
  transition: all 200ms ease-in-out;
}

.skills.software li.prim {
  background: #7ca056;
  text-shadow: 0 1px 1px rgba(0,0,0,0.2);
}

ul.buttons {
  margin: 0;
  padding: 0;
  list-style: none;
}

ul.buttons li {
  float: left;
  text-align: center;
  display: inline-block;
  width: 32%;
  margin-right: 1%;
  border-radius: 2px;
  position: relative;
  margin-bottom: 8px;
  transition: all 100ms ease-in-out;
}

ul.buttons li a {
  display: inline-block;
  padding: 10px 0;
  color: #fff;
  font-size: 13px;
}

ul.buttons li:last-child {
  margin-right: 0;
  background: #8B4513;
  border-bottom: solid 3px #5c2d0c;
width: 33%;
}

ul.buttons li:last-child:hover {
  background: #b05a1a;
  border-bottom: solid 3px #70380f;
  transition: all 200ms ease-in-out;
}

ul.buttons li:nth-child(1) {
  background: #B5509C;
  border-bottom: solid 3px #7a3569;
}

ul.buttons li:nth-child(1):hover {
  background: #cc71b4;
  border-bottom: solid 3px #904179;
}

ul.buttons li:nth-child(2) {
  background: #608341;
  border-bottom: solid 3px #3c5128;
}

ul.buttons li:nth-child(2):hover {
  background: #7ca056;
  border-bottom: solid 3px #4b6833;
}

ul.buttons li:nth-child(3) {
  background: #0198E1;
  border-bottom: solid 3px #016399;
  margin-right: 0;
  width: 33%;
}

ul.buttons li:nth-child(3):hover {
  background: #01bdff;
  border-bottom: solid 3px #0177b8;
}

ul.buttons li:nth-child(4) {
  background: #FF6103;
  border-bottom: solid 3px #b24402;
}

ul.buttons li:nth-child(4):hover {
  background: #ff8136;
  border-bottom: solid 3px #cc4e02;
}

ul.buttons li:nth-child(5) {
  background: #444;
  border-bottom: solid 3px #1b1b1b;
}

ul.buttons li:nth-child(5):hover {
background: #5e5e5e;
  border-bottom: solid 3px #2b2b2b;
}

.contracts {
  width: 100%;
  box-sizing: border-box;
  padding: 20px 30px;
}

.contracts h3 {
  margin: 0 0 20px 0;
}

.contract {
  box-sizing: border-box;
  padding: 10px;
  width: 49%;
  min-height: 160px;
  background: #ffc;
  border: solid 1px #e6d699;
box-shadow: 0 1px 2px #999;
  color: #332;
  float: left;
  margin-right: 1%;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 15px;
}

.contract:last-child {
  margin-right: 0;
}

.contract h4 {
  margin: 0;
}

.contract p.desc {
  font-size: 14px;
  color: #403;
  word-wrap: break-word;
}

.contract p.desc a:hover {
  text-decoration: underline;
}

.contract span.date {
  position: absolute;
  bottom: 5px;
  right: 5px;
  font-size: 12px;
  color: #665;
}

.sm {
  list-style: none;
  position: absolute;
  top: 10px;
  right: 30px;
  margin: 0;
  padding: 0;
}

.sm li {
  display: inline-block;
  float: left;
  margin-left: 6px;
}

.sm a {
  color: #ccc;
}

.sm a:hover {
  color: #fff;
}

/* Language Selector */
.language-selector {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 1000;
  display: flex;
  gap: 10px;
}

.lang-btn {
  padding: 8px 16px;
  background: #fff;
  border: 2px solid #0198E1;
  border-radius: 5px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0198E1;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.lang-btn:hover {
  background: #0198E1;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.lang-btn.active {
  background: #0198E1;
  color: #fff;
}

/* Media Queries */
@media(max-width: 1010px) {
  .contOut .contIn h1, 
  .contOut .contIn p.tagline {
    width: 42%;
    margin-left: 3%;
  }
  .skills.code, 
  .skills.software {
 width: 100%;
  }
  .skills.code {
    margin-bottom: 10px;
  }
  ul.buttons li {
    width: 48%;
    margin-bottom: 10px;
  }
  ul.buttons li:nth-child(3), 
  ul.buttons li:last-child {
    width: 48%;
  }
  ul.buttons li:nth-child(even) {
    float: right;
    margin-right: 0;
  }
}

@media(max-width: 850px) {
  .middle .job p .brag {
    padding-left: 70px;
    max-height: 60px;
  }
  .middle .job p .brag:before {
    border-top: 50px solid transparent;
    border-bottom: 50px solid transparent;
    border-left: 50px solid #fff;
  }
  .contOut .contIn .logoCont {
    width: 35%;
  }
  .contOut .contIn .logoCont .logo {
    max-width: 200px;
  }
  .contOut .contIn h1 {
    width: 62%;
    float: right;
  text-align: right;
    margin-bottom: 10px;
  }
  .contOut .contIn .moreInfo {
    width: 60%;
  }
  .contOut .contIn p.tagline {
    clear: left;
    width: 30%;
    margin: 0;
  }
}

@media(max-width: 800px) {
  .contracts .contract {
    width: 49%;
  }
}

@media(max-width: 620px) {
  .middle .job p .brag {
    padding-left: 80px;
    max-height: 80px;
  }
  .middle .job p .brag:before {
    border-top: 60px solid transparent;
    border-bottom: 60px solid transparent;
    border-left: 60px solid #fff;
  }
}

@media(max-width: 570px) {
  .middle .job p .brag {
    padding-left: 90px;
    max-height: 100px;
  }
  .middle .job p .brag:before {
    border-top: 70px solid transparent;
    border-bottom: 70px solid transparent;
    border-left: 70px solid #fff;
  }
  ul.buttons li {
    width: 100%;
    margin-right: 0;
  }
  ul.buttons li:nth-child(3), 
  ul.buttons li:last-child {
    width: 100%;
  }
  .skills ul li {
    float: none;
  }
  .contOut .contIn h1 {
    font-size: 34px;
  }
  .contracts .contract {
    width: 100%;
    margin-right: 0;
  }
}

@media(max-width: 500px) {
  .middle .job p .brag {
    padding-left: 20px;
    max-height: none;
  }
  .middle .job p .brag:before {
    border-top: none;
    border-bottom: none;
    border-left: none;
  }
  .middle .job h2 span {
    margin-top: 10px;
  }
  .contOut .contIn h1 {
 font-size: 28px;
  }
  .contOut .contIn .moreInfo {
    font-size: 14px;
  }
}

@media(max-width: 450px) {
  .contOut .contIn .moreInfo, 
  .contOut .contIn p.tagline {
    font-size: 12px;
  }
}
