@import url("https://fonts.googleapis.com/css2?family=Comfortaa:wght@600&family=Poppins&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
}

.max-width {
  padding: 0 80px;
  margin: auto;
}

@media (max-width: 1300px) {
  .home .max-width {
    margin-left: 0px;
  }
}

@media (max-width: 1104px) {
  .about .about-content .left img {
    height: 350px;
    width: 350px;
  }
}

html {
  scroll-behavior: smooth;
  transition: 3s;
}

/* Navbar styling */
.navbar {
  position: fixed;
  width: 100%;
  padding: 15px 0;
  z-index: 999;
  /* background: #3f3f3f; */
  font-family: "Ubuntu", sans-serif;
  transition: all 0.3s ease;
}

.navbar .max-width {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar .logo a {
  color: #fff;
  font-size: 35px;
  font-weight: 600;
}

.navbar .max-width .logo a span {
  color: crimson;
}

.navbar .menu li {
  list-style: none;
  display: inline-block;
}

.navbar .menu li a {
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  margin-left: 25px;
}

.navbar .menu li a:hover {
  color: crimson;
  font-size: 18px;
  font-weight: 500;
  margin-left: 25px;
  transition: color 0.5s ease;
}

.navbar.sticky {
  padding: 15px 0;
  background: crimson;
}

.navbar.sticky .logo a span {
  padding: 30px 0;
  color: #fff;
}

.navbar.sticky .menu li a:hover {
  color: black;
  font-size: 18px;
  font-weight: 500;
  margin-left: 25px;
  transition: color 0.5s ease;
}

.navbar.sticky .menu-btn:hover {
  color: black;
  font-size: 23px;
  transition: 0.5s ease;
  cursor: pointer;
}

.menu-btn {
  color: #fff;
  font-size: 23px;
  cursor: pointer;
  display: none;
}

.menu-btn:hover {
  color: crimson;
  transition: 0.5s ease;
  cursor: pointer;
}

.home {
  display: flex;
  background: url("images/Portfolio.jpg");
  height: 100vh;
  color: #fff;
  min-height: 500px;
  font-family: "Ubuntu", sans-serif;
}

.home .max-width {
  margin: auto 0 auto 40px;
}

.about,
.services,
.skills {
  font-family: "Poppins", "sans-serif";
}

.section .title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin-top: 50px;
  margin-bottom: 60px;
  padding-bottom: 20px;
  font-family: "Ubuntu", "sans-serif";
}

.section .max-width .title::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 180px;
  height: 3px;
  background: #111;
  transform: translateX(-50%);
}

.section .max-width .title::after {
  position: absolute;
  bottom: -12px;
  left: 50%;
  font-size: 20px;
  color: crimson;
  padding: 5px;
  background: #fff;
  transform: translateX(-50%);
}

.section-serv .title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin-top: 50px;
  margin-bottom: 60px;
  padding-bottom: 20px;
  font-family: "Ubuntu", "sans-serif";
}

.section-serv .max-width .title::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 180px;
  height: 3px;
  background: #fff;
  transform: translateX(-50%);
}

.section-serv .max-width .title::after {
  position: absolute;
  bottom: -12px;
  left: 50%;
  font-size: 20px;
  color: crimson;
  padding: 5px;
  background: #111;
  transform: translateX(-50%);
}

.services .title::before {
  content: "";
}

.services .title::after {
  content: "what i work";
  color: crimson;
}

.roles .title::before {
  content: "";
}

.roles .title::after {
  content: "where i work";
  color: crimson;
}

.about .title::after {
  content: "who i am";
}

.about .about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.about .about-content .left {
  width: 45%;
}

.about .about-content .left img {
  height: 400px;
  width: 400px;
  object-fit: cover;
}

.about .about-content .right {
  width: 55%;
}

.about .about-content .right .text {
  font-size: 25px;
  font-weight: 600;
  margin-bottom: 10px;
}

.about .about-content .right .text span {
  color: crimson;
}

.about .about-content .right p {
  text-align: justify;
}

.about .about-content .right a {
  display: inline-block;
  background: crimson;
  color: #fff;
  font-size: 25px;
  font-weight: 500px;
  padding: 1px 30px;
  margin-top: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 2px solid crimson;
  transition: all 0.3s ease;
}

.about .about-content .right a:hover {
  color: crimson;
  background: none;
}

.home .home-content .text-1 {
  font-size: 27px;
}

.home .home-content .text-2 {
  font-size: 75px;
  font-weight: 600;
  margin-left: -3px;
}

.home .home-content .text-3 {
  font-size: 40px;
  margin: 5px 0;
}

.home .home-content .text-3 .font-1 {
  color: crimson;
  font-family: "Comfortaa", cursive;
}

.home .home-content a {
  display: inline-block;
  background: crimson;
  color: #fff;
  font-size: 25px;
  padding: 12px 36px;
  margin-top: 80px;
  border-radius: 6px;
  border: 2px solid crimson;
}

.home .home-content a:hover {
  background: none;
  color: crimson;
}

@media (max-width: 947px) {
  .home .max-width {
    margin-left: 0px;
  }

  .max-width {
    padding: 0 50px;
  }

  .menu-btn {
    display: block;
    z-index: 999;
  }

  .menu-btn i.active::before {
    content: "\f00d";
  }

  .navbar .menu {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: 0;
    top: 0;
    background: #111;
    text-align: center;
    padding-top: 80px;
    transition: all 0.3s ease;
  }

  .navbar .menu li {
    display: block;
    padding-top: 40px;
  }

  .navbar .meny li a {
    display: inline-block;
    margin: 20px 0;
    font-size: 25px;
  }

  .navbar.sticky .menu li a:hover {
    color: crimson;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.5s ease;
  }

  .home .home-content .text-1 {
    font-size: 25px;
  }
  .home .home-content .text-2 {
    font-size: 60px;
  }
  .home .home-content .text-3 {
    font-size: 30px;
  }

  .about .about-content .column {
    width: 50%;
  }

  .about .about-content .left {
    display: flex;
    justify-content: center;
    margin: 0 auto 60px;
  }

  .about .about-content .right {
    flex: 100%;
  }
}

@media (max-width: 600px) {
  .home .max-width {
    margin-left: 0px;
  }

  .max-width {
    padding: 0 40px;
  }

  .menu-btn {
    display: block;
    font-size: 20px;
    z-index: 999;
  }

  .menu-btn i.active:before {
    content: "\f00d";
  }

  .navbar .menu {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: 0;
    top: 0;
    background: #111;
    text-align: center;
    padding-top: 80px;
    transition: all 0.3s ease;
  }

  .navbar .menu li {
    display: block;
    padding-top: 40px;
  }

  .navbar .meny li a {
    display: inline-block;
    margin: 20px 0;
    font-size: 25px;
  }

  .navbar.sticky .menu li a:hover {
    color: crimson;
    font-size: 20px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.5s ease;
  }

  .home .home-content .text-1 {
    font-size: 20px;
  }
  .home .home-content .text-2 {
    font-size: 42px;
  }
  .home .home-content .text-3 {
    font-size: 30px;
  }

  .navbar .logo a {
    color: #fff;
    font-size: 30px;
    font-weight: 600;
  }

  .home .home-content a {
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 22px;
    padding: 10px 30px;
    margin-top: 60px;
    border-radius: 6px;
    border: 2px solid crimson;
  }
}

@media (max-width: 420px) {
  .home .max-width {
    margin-left: 0px;
  }

  .max-width {
    padding: 0 30px;
  }

  .menu-btn {
    display: block;
    font-size: 15px;
    z-index: 999;
  }

  .menu-btn i.active:before {
    content: "\f00d";
  }

  .navbar .menu {
    position: fixed;
    height: 100vh;
    width: 100%;
    left: 0;
    top: 0;
    background: #111;
    text-align: center;
    padding-top: 80px;
    transition: all 0.3s ease;
  }

  .navbar .menu li {
    display: block;
    padding-top: 40px;
  }

  .navbar .meny li a {
    display: inline-block;
    margin: 20px 0;
    font-size: 25px;
  }

  .navbar.sticky .menu li a:hover {
    color: crimson;
    font-size: 18px;
    font-weight: 500;
    margin-left: 25px;
    transition: color 0.5s ease;
  }

  .home .home-content .text-1 {
    font-size: 20px;
  }
  .home .home-content .text-2 {
    font-size: 40px;
  }
  .home .home-content .text-3 {
    font-size: 25px;
  }

  .navbar .logo a {
    color: #fff;
    font-size: 20px;
    font-weight: 600;
  }

  .home .home-content a {
    display: inline-block;
    background: crimson;
    color: #fff;
    font-size: 20px;
    padding: 10px 30px;
    margin-top: 50px;
    border-radius: 6px;
    border: 2px solid crimson;
  }
}

/* Services */
.services {
  background: #111;
  color: #fff;
  padding-top: 10px;
}

.services .servcontent {
  display: grid;
  grid-template-columns: 23% 23% 23% 23%;
  align-items: center;
  justify-content: space-between;
}

.services .servcontent .card {
  background: #222;
  text-align: center;
  border-radius: 6px;
  padding: 20px 25px;
  margin-bottom: 55px;
  cursor: pointer;
  height: 200px;
}

.services .servcontent .card:hover {
  background: crimson;
  color: white;
  transition: all 0.5s ease;
  transform: scale(1.02);
}

@media (max-width: 1775px) {
  .services .servcontent {
    display: grid;
    grid-template-columns: 23% 23% 23% 23%;
    align-items: center;
    justify-content: space-between;
  }

  .services .servcontent .card {
    background: #222;
    text-align: center;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 20px;
    cursor: pointer;
    height: 320px;
  }
}

@media (max-width: 1104px) {
  .services .servcontent {
    display: grid;
    grid-template-columns: 100%;
    align-items: center;
    justify-content: space-between;
  }

  .services .servcontent .card {
    background: #222;
    text-align: center;
    border-radius: 6px;
    padding: 20px 25px;
    margin-bottom: 20px;
    cursor: pointer;
    height: auto;
  }
}

.skills .title::before {
  content: "";
}

.skills .title::after {
  content: "what i do";
  color: crimson;
}

.skills .bars .info {
  margin-top: 10px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.skills .line {
  height: 5px;
  width: 100%;
  background: lightgray;
  position: relative;
}

.skills .line::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 80%;
  background: crimson;
}

.skills .line .c::before {
  width: 85%;
}
.skills .line .java::before {
  width: 100%;
}
.skills .spring::before {
  width: 100%;
}
.skills .hibernate::before {
  width: 100%;
}
.skills .aws::before {
  width: 70%;
}
.skills .kubernetes::before {
  width: 80%;
}
.skills .css::before {
  width: 50%;
}
.skills .javascript::before {
  width: 80%;
}
.skills .git::before {
  width: 100%;
}
.skills .mysql::before {
  width: 80%;
}

.contact .title {
  position: relative;
  text-align: center;
  font-size: 40px;
  font-weight: 500;
  margin-top: 50px;
  margin-bottom: 60px;
  padding-bottom: 20px;
  padding-top: 20px;
  font-family: "Ubuntu", "sans-serif";
}

.contact .max-width .title::before {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 50%;
  width: 180px;
  height: 3px;
  background: white;
  transform: translateX(-50%);
}

.contact .max-width .title::after {
  content: "get in touch";
  position: absolute;
  bottom: -12px;
  left: 50%;
  font-size: 20px;
  color: crimson;
  padding: 5px;
  background: rgb(77, 77, 77);
  transform: translateX(-50%);
}

.contact {
  font-family: "Poppins", "sans-serif";
  background: rgb(77, 77, 77);
  color: white;
}

.contact .cont-left {
  display: grid;
  grid-template-columns: 60% 40%;
}

.contact .contact-content .column {
  width: calc(80% - 30px);
}

.contact .contact-content .text {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.contact .contact-content .left p {
  text-align: justify;
}

.contact .contact-content .row {
  display: flex;
  height: 65px;
  align-items: center;
}

.contact .contact-content .row .info {
  margin-left: 30px;
}

.contact .contact-content i {
  font-size: 20px;
  color: crimson;
}

.contact .contact-content .row .info .head {
  font-weight: 700;
  color: #aaa;
}

.contact .contact-content .row .info .sub-title {
  color: #fff;
}

.contact .right {
  position: relative;
  min-height: 150px;
}

.contact .right .text {
  position: absolute;
  text-align: center;
  font-weight: 600;
  font-size: 20px;
  bottom: 10%;
}

.contact .right i {
  color: crimson;
}

.contact .right .links i {
  font-size: 40px;
  text-align: center;
}

.contact .mid-text {
  position: absolute;
  text-align: center;
  font-weight: 600;
  width: 50%;
  bottom: 30%;
}

@media (max-width: 800px) {
  .contact .cont-left {
    display: grid;
    grid-template-columns: 100%;
  }

  .contact .right .text {
    bottom: 30%;
    text-align: center;
  }

  .contact .contact-content .column {
    width: 100%;
  }

  .contact .mid-text {
    text-align: left;
    font: 20px;
    bottom: 50%;
  }
}

.heart::before {
  content: "\2665"; /* Unicode character for a heart symbol */
  color: crimson; /* Set the color of the heart */
  font-size: 25px; /* Adjust the font size as needed */
  display: inline-block; /* Ensures the heart is treated as an inline element */
}

.roles {
  margin-top: 50px;
  margin-bottom: 50px;
  font-family: "Ubuntu", sans-serif;
}

.roles .row {
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  grid-column-gap: 40px;
}

.roles .row .lined {
  position: relative;
  background-color: grey;
  grid-area: theLine;
}

.roles .row .date {
  grid-area: theDate;
}

.roles .lined span {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid crimson;
  background-color: white;
  border-radius: 50%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.5s;
}

.row .content {
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 10px;
  grid-area: theContent;
  font-size: medium;
}
.roles .content .text {
  padding-bottom: 8px;
  color: crimson;
  font-weight: 600;
  font-size: large;
}

.roles .content p {
  line-height: 1.5;
}

.roles .row:nth-child(odd) {
  grid-template-areas: "theDate theLine theContent";
}

.roles .row:nth-child(even) {
  grid-template-areas: "theContent theLine theDate";
}

.roles .row:nth-child(odd) .date {
  text-align: right;
}

.roles .row:nth-child(even) .content {
  text-align: right;
}

.roles .content,
.row .date {
  margin-bottom: 35px;
}

.roles .date span {
  display: inline-block;
  padding: 5px 10px;
  font-weight: 800;
  font-size: small;
  border: 1px solid #aaa;
  color: #222;
  border-radius: 10px;
}
.roles .lined .last-point {
  top: initial;
  bottom: 0;
}

.row .last {
  margin-bottom: 0;
}

.roles .row:hover .lined span:not(.last-point) {
  background-color: crimson;
}

@media (max-width: 800px) {
  .roles .row {
    column-gap: 20px;
  }

  .roles .row:nth-child(odd) {
    grid-template-columns: 2px 1fr;
    grid-template-areas:
      "theLine theDate"
      "theLine theContent";
  }

  .roles .row:nth-child(even) {
    grid-template-columns: 2px 1fr;
    grid-template-areas:
      "theLine theDate"
      "theLine theContent";
  }

  .roles .row:nth-child(odd) .date {
    text-align: left;
  }

  .roles .row:nth-child(even) .content {
    text-align: left;
  }

  .roles .date {
    margin-bottom: 5px;
  }

  .roles .date span {
    font-size: x-small;
  }

  .roles .row .content {
    margin-bottom: 25px;
  }

  .roles .row .content p {
    font-size: smaller;
    line-height: 1.2;
  }

  .roles .row .text {
    font-size: small;
  }

  .roles .row last {
    margin-bottom: 5px;
  }
}
