

@import url("https://fonts.googleapis.com/css?family=Open+Sans:300, 400,600&display=swap");




/* Style the entire scrollbar */
::-webkit-scrollbar {
    width: 5px;  /* width for vertical scrollbar */
    height: 5px; /* height for horizontal scrollbar */
  }
  
  /* Style the track (background of the scrollbar) */
  ::-webkit-scrollbar-track {
    background: transparent;  /* light gray */
    border-radius: 20px;
  }
  
  /* Style the handle (thumb) */
  ::-webkit-scrollbar-thumb {
    background: #c8102e;  /* gray color for thumb */
    border-radius: 20px;
  }
  
  /* Style the handle when hovered */
  ::-webkit-scrollbar-thumb:hover {
    background: #c8102e;  /* darker gray when hovered */
    cursor: grab;
    width: 10px;
  }
  
  /* Optional: Style the corners where the scrollbars meet */
  ::-webkit-scrollbar-corner {
    background: #f1f1f1;
  }


  body{
    margin: 0;
    padding: 50px 0px;
    padding-top: 2rem;
    padding-bottom: 2rem;
    background: #222;
    color: var(--txt-color);
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    scroll-behavior: smooth;
    font-family: "Open Sans", sans-serif;
    font-size: 0.9rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
  }

/* Row layout */
.row {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 0;
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-top: calc(-1 * var(--bs-gutter-y));
  margin-right: calc(-0.5 * var(--bs-gutter-x));
  margin-left: calc(-0.5 * var(--bs-gutter-x));
}

/* Column class - 30% width */
.col-3 {
  flex: 0 0 auto;
  width: 30%;
  box-sizing: border-box; 
  position: relative; 
  overflow: visible; 
  z-index: 1;
}

/* Column class - 70% width */
.col-9 {
  flex: 0 0 auto;
  width: 70%;
  box-sizing: border-box;
}


  /* contact */


    /* Closed state - shrinks and moves to the left */
    .closed {
      opacity: 0;
      display: none;
      z-index: 999;
      transform: scale(0.1) translateX(-1000px);
    }

    /* Opened state - returns to normal size and position */
    .opened {
      opacity: 1;
      display: flex;
      z-index: 9;
      transform: scale(1) translateX(0);
    }
  @keyframes fadeInOnEnter-fadeOutOnExit{
    entry 0%  {
      opacity: 0;
      translate: 100% 0;
    }
    entry 100%  {
      opacity: 1;
      translate: 0 0;
    }
    exit 0% {
      opacity: 1;
      translate: 0 0;
    }
    exit 100% {
      opacity: 0;
     translate: 100% 0;
    }
  }
  .contactList__item {
    animation: linear fadeInOnEnter-fadeOutOnExit ;
    animation-timeline: view();
  }
  
/* Base button styling */
.button {
  padding: 5px 10px;
  background-color: #222; /* Green background */
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  overflow: visible;
  box-sizing: border-box;
  text-align: center;
  font-family: "Open Sans", sans-serif;
  font-weight: bold;
  position: absolute;
  z-index: 10;
  width: 100%;
  border-radius: 10px;
  border: 2px solid #c8102e;
  margin: 20px 10px;
}

.buttons {
  padding: 15px 30px;
  background-color: #c8102e; /* Green background */
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  width: 70%;
  box-sizing: border-box;
  text-align: center;
  font-family: "Open Sans", sans-serif;
  font-weight: bold;
  z-index: 10;
  border-radius: 10px;
  border: 2px solid #c8102e;
  margin: 5px 10px;
}

.btn-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

/* Sticky button styling */
.sticky {
  position: -webkit-sticky; /* For Safari */
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Initially hide all buttons (except the most recent one) */
.sticky.hidden {
  display: none;
}

  
  /* COMPONENT COSMETIC */
  .contactList {
    /* border: 1px solid var(--txt-color); */
    list-style: none;
    margin: 0;
    padding: 10px;
    padding-right: 30px;
    height: calc(100vh - 250px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    overflow-y: scroll;
    overflow-x: hidden;
    transition: .4s ease-out;
    border-radius: .5rem;
    width: 100%;
    margin-top: 20px;
  }

  /* .contactList:hover {
    border-color:#1ADEFF;
    box-shadow:0 0 10px rgba(25,222,255,.5);
  } */
  .contactList__item{
    background: #c8102e;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5em;
    margin-bottom: 1px;
    height: 80px;
    width: 100%;
    border-radius: 15px;
    margin: 10px;
    margin-right: 30px;
    scroll-behavior: smooth;
    
  }
  .contactList__pic{
    border-radius: 100%;
    width: 60px;
    height: 60px;
    border: 3px dotted #fff;
    padding: 2px;
  }
  
  /* GENERAL DOCUMENT COSMETIC */
  :root {
    --txt-color: #ffffff;
  }
  
  img {
    width: 100%;
  }

  
  h1 {
    width: 100%;   
    position:sticky;
    top: 0;
    color:  var(--primary-color);
    background: #222;
    font-size: 5em;
    line-height: 0.9;
    z-index: 1;
    padding-block: 2rem;
    margin-inline: -2em;
    padding-inline: 2em;
  }
  p{
    line-height: 1.75;
  }



* {
  margin: 0;
  box-sizing: border-box;
}

.align{
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme--light {
  --back: #dfdfec;
  --element: linear-gradient(45deg, #bfbfd9, #fff);
  --shadow: #bfbfd9;
  --pils-back: rgba(0, 0, 0, 0.05);
  --text-primary: #333;
  --text-secondary: #555;
  --text-third: #000;

  --text-cv: #1a53ff;
}
.theme--dark {
  --back: #131417;
  --element: linear-gradient(45deg, #101010, #2c3e50);
  --shadow: #3f5973;
  --pils-back: rgba(255, 255, 255, 0.05);
  --text-primary: white;
  --text-secondary: #6b8cae;
  --text-third: #777;

  --text-cv: #ef5350;
}

input[type="checkbox"] {
  z-index: -1;
  display: none;
}

a:visited,
a:link {
  text-decoration: none;
}



#container {
  position: relative;
  background: var(--element);
  box-shadow: 12px 12px 0 -4px var(--shadow), 0 5px 15px -4px rgba(0,0,0,0.1);
  box-shadow: -5px -5px 15px -4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.6s;
  opacity: 0;
  transform: scale(0.6);
  animation: fade_in 1s forwards;
  border: 1px solid #c8102e;
  margin: 10px;
  border-radius: 10px;
  height: 50%;

  .header {
    position: absolute;
    width: 100%;
    height: 65px;
    z-index: 50;
    h2 {
      display: inline-block;
      float: left;
      font-weight: 400;
      margin: 20px 20px;
    }
    .logo {
      display: block;
      width: 65px;
      height: 50px;
      margin-left: 30px;
      margin-top: 20px;
      float: left;
      background: var(--logo);
      background-size: 100%;
      background-repeat: no-repeat;
    }
    .night-mode {
      position: absolute;
      right: 0px;
      text-align: center;
      margin: 10px;
      width: 45px;
      height: 45px;
      border-radius: 50%;
      cursor: pointer;
      &:hover {
        background: rgba(100, 100, 100, 0.1);
      }
      &:active {
        background: rgba(100, 100, 100, 0.3);
      }
      i {
        line-height: 45px;
        color: var(--text-primary);
        font-size: 16px;
      }
    }
  }
  .left-section {
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* display: flex; */
    position: relative;
    justify-content: space-evenly;
    align-content: center;
    align-items: center;
    padding: 20px;
    transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
    .profile-pic {
      width: 140px;
      flex-basis: 140px;
      flex-shrink: 0;
      border-radius: 50%;
      box-shadow: inset 0 0 10px 6px rgba(0, 0, 0, 0.2);
    }
    .logo-pic {
      width: 140px;
      flex-basis: 140px;
      flex-shrink: 0;
      box-shadow: inset 0 0 10px 6px rgba(0, 0, 0, 0.2);
    }
    .profile-detail {
      /* margin-left: 20px; */
      text-align: center;
      .profile-name {
        color: var(--text-primary);
        font-size: 1.45rem;
        padding-bottom: 10px;
        text-align: center;
      }
      .profile-name span{
        font-size: 18px;
        text-align: center;
      }
      .profile-maps {
        text-align: center;
        display: block;
        margin-bottom: 10px;
        color: var(--text-third);
        font-size: 1rem;
        i {
          color: var(--text-third);
          font-size: 1rem;
        }
      }
      .profile-summary {
        color: var(--text-secondary);
        font-size: 12px;
        text-transform: uppercase;
        text-align: center;
        align-items: center;
      }

      .profile-cv {
        display: block;
        margin-top: 20px;
        color: var(--text-cv);
        font-weight: 700;
      }
    }
  }
}

.fa-map-marker {
  padding-right: 10px;
}

.fa-arrow-down {
  padding-left: 10px;
}

.profile-pils {
  display: flex;
  flex-wrap: wrap;
  align-content: space-between;
  .pils {
    background: var(--pils-back);
    box-shadow: inset 0 0 0 1px var(--border),
      0 10px 30px -10px rgba(0, 0, 0, 0.12);
    border-radius: 60px;
    transition: all 0.3s;
    font-size: 13px;
    cursor: pointer;
    margin: 5px;
    border: 1px solid #fff;
    width: 100%;
    text-align: center;
    color: var(--text-primary);
    a,
    a:visited,
    a:link {
      display: block;
      text-decoration: none;
      color: var(--main-2-fore);
      padding: 5px 10px;
      i {
        padding-right: 2px;
      }
    }
    &:nth-child(1):hover {
      box-shadow: inset 0 0 0 1px #007cf8,
        0 10px 35px -10px rgba(20, 122, 255, 0.5);
      i {
        color: #007cf8;
      }
    }
    &:nth-child(2):hover {
      box-shadow: inset 0 0 0 1px #fff,
        0 10px 30px -10px rgba(100, 100, 100, 0.6);
    }
    &:nth-child(3):hover {
      box-shadow: inset 0 0 0 1px #f154ff,
        0 10px 35px -10px rgba(255, 59, 245, 0.5);
      i {
        color: #f154ff;
      }
    }
    &:nth-child(4):hover {
      box-shadow: inset 0 0 0 1px #163ca3,
        0 10px 30px -10px rgba(13, 60, 121, 0.5);
      i {
        color: #163ca3;
      }
    }
  }
}

@media screen and (min-width: 768px) {

  .contactList {
    /* border: 1px solid var(--txt-color); */
    list-style: none;
    margin: 0;
    padding: 10px;
    padding-right: 30px;
    height: calc(100vh - 150px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    overflow-y: scroll;
    overflow-x: hidden;
    transition: .4s ease-out;
    border-radius: .5rem;
    width: 100%;
    margin-top: 20px;
  }

  .btn-group {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .button {
    padding: 20px 30px;
  }
  #container {
    width: 100%;
    height: 400px;
    .left-section {
      width: 100%;
      flex-direction: row;
    }
  }

  .profile-pic {
    margin: 0 15px;
  }

  .profile-detail {
    flex-basis: 400px;
  }

  .profile-pils {
    justify-content: flex-end;
    margin: 0 10px;
    flex-basis: 240px;
  }

  .pop-up-menu {
    width: 190px;
    .list-menu {
      li {
        font-size: 18px;
        text-align: right;
        margin-bottom: 5px;
      }
    }
  }
}

@media screen and (max-width: 768px) {
  #container {
    flex-grow: 1;
    height: calc(100% - 100px);
    .left-section {
      width: 100%;
      flex-direction: column;
      justify-content: center;
      padding: 10px;

      .profile-detail {
        padding: 20px;
      }
    }
  }

  .profile-pils {
    justify-content: center;
  }

  .pop-up-menu {
    width: 100%;
    height: 100%;
    background: var(--menu);
    .list-menu {
      margin-top: 50px;
      li {
        font-size: 26px;
        text-align: center;
        margin-bottom: 30px;
      }
    }
  }
}

/* Action */
#night:checked {
  & ~ .foreground .night-mode i {
    color: var(--main-1-fore);
  }
}

#menu:checked {
  & ~ #container .pop-up-menu {
    right: 0;
    transition: opacity 0.5s, right 0.3s;
    opacity: 1;
  }

  & ~ #container .menu div {
    width: 20px !important;
    transition: all 0.3s;
  }

  & ~ #container .menu div:nth-child(2) {
    opacity: 0;
  }

  & ~ #container .menu div:nth-child(1) {
    margin-top: 30px;
    transform: rotateZ(-45deg);
  }

  & ~ #container .menu div:nth-child(3) {
    opacity: 0;
  }

  & ~ #container .works {
    transform: translateX(-200px);
    transition: transform 0.3s;
  }
}

/* Keyframe */

@keyframes fade_in {
  to {
    opacity: 1;
    transform: scale(1);
  }
}