@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');

/**********************************************
                Global styles
**********************************************/
*,
::before,
::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-white: #fff;
  --matrix-green: #00cc00;
  --matrix-light: #0f0;
}

li,
a {
  list-style: none;
  text-decoration: none;
  color: var(--matrix-green);
}

body {
  width: 100%;
  height: 100vh;
  font-family: 'PT Sans', sans-serif;
  background-color: rgba(0, 0, 0, 1);
  color: var(--matrix-green);
  text-shadow: 2px 1px 1px #333;
}

/**********************************************
                Specific styles
**********************************************/
.container {
  position: relative;
  width: 90%;
  height: 100vh;
  margin: auto;
}

/**********************************************
             M A I N    H E A D E R
**********************************************/
.my-header {
  z-index: 3;
}

.logo {
  width: 150px;
  height: 57px;
  padding-top: 10px;
  background-color: rgba(0, 0, 0, .1);
}

.logo>img {
  max-width: 100%;
}

.my-nav {
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  z-index: 2;
}

.my-nav>ul {
  margin-top: 35px;
}

.my-nav>ul>li {
  animation: liAnime 1s ease 0s 1 normal forwards;
}

@keyframes liAnime {
  0% {
    opacity: 0;
    transform: translateX(250px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.my-nav>ul>li>a {
  display: block;
  padding: 5px 10px;
  color: var(--matrix-green);
  background-color: rgba(0, 0, 0, .1);
  z-index: 3;
}

.my-nav>ul>li>a:active {
  transform: scale(.9);
}

.my-nav>ul>li>a:hover {
  text-decoration: underline;
  color: #0f0;
}

.ham-menu {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
}

.ham-menu:active {
  transform: scale(.9);
}

.ham-menu>img {
  cursor: pointer;
  width: 100%;
}

.matrix-btn {
  display: block;
  padding: 10px 10px;
  margin: 50px auto;
  color: var(--matrix-green);
  border: none;
  border-radius: 5px;
  background-color: rgba(0, 0, 0, .1);
  text-shadow: 1px 1px 1px #000;
  cursor: pointer;
  animation: myBtn 1s ease 0s 1 normal forwards;
}

@keyframes myBtn {
  0% {
    transform: scale(2);
  }

  100% {
    transform: scale(1);
  }
}

.matrix-btn:hover {
  color: #333;
  background-color: var(--matrix-green);
}

.matrix-btn:active {
  position: relative;
  top: 2px;
  left: 2px;
}

/**********************************************
         M A I N    H E A D E R   E N D
**********************************************/


/**********************************************
       M A I N    F I R S T    P A G E 
**********************************************/
#my-heading {
  margin: 0 auto;
  text-align: center;
  background-color: rgba(0, 0, 0, .1);
  border-radius: 5px;
  font-size: 1.7rem;
}

.welcomeText {
  margin: 0 auto 10px;
  text-align: center;
  font-size: 1.2rem;
  background-color: rgba(0, 0, 0, .1);
}

#my-story {
  background-color: rgba(0, 0, 0, .1);
}

#read,
#read-more {
  margin: 0 auto;
}

#read-more {
  display: none;
  margin-top: 5px;
  padding: 0;
  width: 120px;
  height: 35px;
  text-align: center;
  line-height: 35px;
}

#read-more a:hover {
  color: #333;
}

/**********************************************
    M A I N    F I R S T    P A G E   E N D
**********************************************/


/**********************************************************
                 A B O U T    ME    P A G E
**********************************************************/
.about-me-section {
  position: relative;
  margin-top: 200px;
  z-index: -1;
}

.about-me-section p {
  text-indent: 30px;
}

#nokey {
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
}

.myFooterAbout {
  position: relative !important;
  z-index: 2;
}

#biography {
  position: relative;
  z-index: 2;
}

#biography h2 {
  text-align: center;
  margin-top: 50px;
}

#biography h3 {
  text-align: center;
}

#biography h3:nth-last-child(1) {
  color: #888;
}

.biography-img-holder {
  width: 150px;
  height: 150px;
  border: 5px solid var(--matrix-green);
  border-radius: 50%;
  overflow: hidden;
  margin: 20px auto;
}

.biography-img-holder img {
  width: 100%;
}

.biography-holder {
  padding: 3% 0;
  text-align: center;
}

#biography a {
  color: #888;
}

#biography p {
  line-height: 1.5;
  letter-spacing: 1px;
  word-spacing: 3px;
}

.projects {
  display: block;
  width: 150px;
  margin: auto;
  padding: 5px;
  text-align: center;
}

/**********************************************************
             A B O U T    ME    P A G E    E N D
**********************************************************/


/**********************************************************
                 B L O G    P A G E
**********************************************************/
.header-img-holder {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 270px;
  background: url(../img/matrix-background.jpg) center/cover no-repeat;
}

.matrix-blog {
  top: 270px !important;
}

.blog-section {
  margin-top: 200px;
  z-index: -1;
}

.blog-heading {
  text-align: center;
  margin-top: 20px;
  background-color: rgba(0, 0, 0, .1);
  cursor: pointer;
  animation: blogHeadingAnim 3s ease 0s 1 normal forwards;
}

@keyframes blogHeadingAnim {
  0% {
    opacity: 0;
    transform: translateY(-250px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.blog-heading:hover {
  color: var(--matrix-light);
}

.blog-heading:active {
  position: relative;
  top: 2px;
  left: 2px;
}

.blog-heading:nth-child(2) {
  margin-top: 100px;
}

.blog-heading:nth-child(5) {
  margin-bottom: 100px;
}

.blog-info-text {
  width: 100%;
}

.blog-info-text h2 {
  text-align: center;
  background-color: rgba(0, 0, 0, .8);
  animation: myh2Anim 3s ease 0s 1 normal forwards;
}

@keyframes myh2Anim {
  0% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}

.blog-info-text p {
  line-height: 1.4;
  background-color: rgba(0, 0, 0, .8);
  animation: blogHeadingAnim 3s ease 0s 1 normal forwards;
}

#blogBackBtn {
  margin: 10px auto;
  display: none;
}

.myFooterBlog {
  position: static !important;

}

/**********************************************************
             B L O G    P A G E    E N D
**********************************************************/


/**************************************************************************************
                                      M A T R I X
**************************************************************************************/
.matrix-holder {
  display: flex;
  justify-content: space-evenly;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.matrix {
  width: 10px;
  height: 100%;
  align-self: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

/* Matrix 1 */
.matrix1 {
  background-image: url(../img/matrix-1.png);
  animation: matrix-1 30s linear infinite;
}

@keyframes matrix-1 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 2 */
.matrix2 {
  background-image: url(../img/matrix-2.png);
  animation: matrix-2 60s linear infinite;
}

@keyframes matrix-2 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 3 */
.matrix3 {
  background-image: url(../img/matrix-3.png);
  animation: matrix-3 35s linear infinite;
}

@keyframes matrix-3 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 4 */
.matrix4 {
  background-image: url(../img/matrix-4.png);
  animation: matrix-4 65s linear infinite;
}

@keyframes matrix-4 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 5 */
.matrix5 {
  background-image: url(../img/matrix-5.png);
  animation: matrix-5 40s linear infinite;
}

@keyframes matrix-5 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 6 */
.matrix6 {
  background-image: url(../img/matrix-6.png);
  animation: matrix-6 70s linear infinite;
}

@keyframes matrix-6 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 7 */
.matrix7 {
  background-image: url(../img/matrix-7.png);
  animation: matrix-7 45s linear infinite;
}

@keyframes matrix-7 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 8 */
.matrix8 {
  background-image: url(../img/matrix-8.png);
  animation: matrix-8 75s linear infinite;
}

@keyframes matrix-8 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 9 */
.matrix9 {
  background-image: url(../img/matrix-9.png);
  animation: matrix-9 50s linear infinite;
}

@keyframes matrix-9 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 10 */
.matrix10 {
  background-image: url(../img/matrix-10.png);
  animation: matrix-10 80s linear infinite;
}

@keyframes matrix-10 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 11 */
.matrix11 {
  background-image: url(../img/matrix-11.png);
  animation: matrix-11 30s linear infinite;
}

@keyframes matrix-11 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 12 */
.matrix12 {
  background-image: url(../img/matrix-12.png);
  animation: matrix-12 60s linear infinite;
}

@keyframes matrix-12 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 13 */
.matrix13 {
  background-image: url(../img/matrix-13.png);
  animation: matrix-13 35s linear infinite;
}

@keyframes matrix-13 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 14 */
.matrix14 {
  background-image: url(../img/matrix-14.png);
  animation: matrix-14 65s linear infinite;
}

@keyframes matrix-14 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 15 */
.matrix15 {
  background-image: url(../img/matrix-15.png);
  animation: matrix-15 40s linear infinite;
}

@keyframes matrix-15 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 16 */
.matrix16 {
  background-image: url(../img/matrix-16.png);
  animation: matrix-16 70s linear infinite;
}

@keyframes matrix-16 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 17 */
.matrix17 {
  background-image: url(../img/matrix-17.png);
  animation: matrix-17 45s linear infinite;
}

@keyframes matrix-17 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 18 */
.matrix18 {
  background-image: url(../img/matrix-18.png);
  animation: matrix-18 75s linear infinite;
}

@keyframes matrix-18 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 19 */
.matrix19 {
  background-image: url(../img/matrix-19.png);
  animation: matrix-19 50s linear infinite;
}

@keyframes matrix-19 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/* Matrix 20 */
.matrix20 {
  background-image: url(../img/matrix-20.png);
  animation: matrix-20 80s linear infinite;
}

@keyframes matrix-20 {
  0% {
    background-position: 0px 0px;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    background-position: 0px 1080px;
    opacity: 0;
  }
}

/**************************************************************************************
                                E N D     M A T R I X
**************************************************************************************/


/**********************************************************
                      M Y    F O T E R
**********************************************************/
#myFooter {
  text-align: center;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 0;
  margin-top: 20px;
}

.social-holder {
  display: flex;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 10px;
}

.social {
  display: block;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ddd;
  transition: all .1s ease;
}

.facebook {
  background: url(../img/social-sprite.png);
  background-color: var(--matrix-green);
  background-position: -1px -0px;

}

.viber {
  background: url(../img/social-sprite.png);
  background-color: var(--matrix-green);
  background-position: -1px -160px;
}

.github {
  background: url(../img/social-sprite.png);
  background-color: var(--matrix-green);
  background-position: -1px -82px;
}

.facebook:hover {
  background: url(../img/social-sprite.png);
  background-color: var(--matrix-light);
  background-position: -1px -40px;
}

.viber:hover {
  background: url(../img/social-sprite.png);
  background-color: var(--matrix-light);
  background-position: -1px -200px;
}

.github:hover {
  background: url(../img/social-sprite.png);
  background-color: var(--matrix-light);
  background-position: -1px -122px;
}

.facebook:active {
  transform: scale(.9);
}

.viber:active {
  transform: scale(.9);
}

.github:active {
  transform: scale(.9);
}

.clock {
  position: absolute;
  top: -10px;
  left: calc(40%);
  font-size: 1rem;
  background-color: rgba(0, 0, 0, .1);
}

.clock span {
  display: inline-block;
  text-align: left;
}

.clock span.bigger {
  min-width: 50px;
  font-size: 1rem;
  text-align: center;
}

.clock span.little {
  width: 25px;
  font-size: .9rem;
}

#myFooter small {
  font-size: .7rem;
}

#myFooter small:hover {
  color: var(--matrix-light);
}

/**********************************************************
                 M Y    F O T E R   E N D
**********************************************************/


/**************************************
            @media Queries
**************************************/

@media all and (min-width: 360px) {
  .logo {
    width: 200px;
    height: 70px;
  }

  .my-nav>ul {
    margin-top: 60px;
  }

  .matrix-btn {
    margin: 65px auto;
  }

  .welcomeText {
    margin: 0 auto 40px;
  }

  #read-more {
    margin-top: 30px;
  }
}

@media all and (min-width: 412px) {
  .logo {
    width: 230px;
    height: 75px;
  }

  .my-nav>ul {
    margin-top: 80px;
  }

  .matrix-btn {
    margin: 80px auto;
  }

  #my-heading {
    margin: 0 auto 20px;
    font-size: 2rem;
  }

  .welcomeText {
    margin: 0 auto 50px;
    font-size: 1.4rem;
  }

  #my-story {
    font-size: 1.3rem;
    letter-spacing: 1.5px;
    font-weight: 100;
  }

  #read-more {
    margin-top: 50px;
  }

  .clock span.bigger {
    min-width: 60px;
    font-size: 1.3rem;
  }

  .clock span.little {
    width: 30px;
    font-size: 1.1rem;
  }

  #myFooter small {
    font-size: 1rem;
  }
}

@media all and (min-width: 576px) {
  .clock {
    top: -15px;
    left: calc(43%);
  }
}

@media all and (min-width: 768px) {
  .container {
    width: 85%;
  }

  .my-header {
    display: flex;
    justify-content: space-between;
  }

  .my-nav {
    position: static;
    display: block;
  }

  .my-nav>ul {
    margin-top: 30px;
    display: flex;
    gap: 5px;
  }

  .my-nav>ul>li>a {
    width: 74px;
    height: 30px;
    padding: 0;
    text-align: center;
    line-height: 30px;
    color: var(--matrix-green);
    border: 1px double var(--matrix-green);
    border-radius: 3px;
  }

  .my-nav>ul>li>a:hover {
    text-decoration: none;
    color: #000;
    border-color: var(--matrix-light);
    background-color: var(--matrix-green);
  }

  .my-nav>ul>li>a:active {
    transform: scale(.9);
  }

  .clock {
    left: calc(45%);
  }

  /* About me Page */
  .biography-holder {
    padding: 3% 15%;
  }
}

@media all and (min-width: 992px) {
  .container {
    width: 80%;
  }

  .clock {
    left: calc(46%);
  }
}

@media all and (min-width: 1200px) {
  .container {
    width: 70%;
  }
}

@media all and (min-width: 1400px) {
  .container {
    width: 60%;
  }

  .logo {
    width: 260px;
    height: 85px;
  }

  .my-nav>ul {
    margin-top: 40px;
  }

  .clock {
    left: calc(46.5%);
  }
}