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

body {
    background-color: black;
    font-family: "Kanit", sans-serif;
    margin: 0;
    padding: 0;
}

a:link,
a:visited {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s;
}

.center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text {
    position: absolute;
    top: 22px;
    right: 100px;
    font-size: 30px;
    color: white;
}

.menu-i {
  left: 60px;
  width: 50px;
  height: 30px;
}

.overlay {
  z-index: 9;
  position: fixed;
  top: 25px;
  width: 10%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  }

.overlay-slide-right {
  transition: all 0.4s ease-in-out;
  transform: translateX(0);
}

.overlay-slide-left {
  transition: all 0.8s ease-in-out;
  transform: translateX(-100%);
}

nav ul {
  height: 40vh;
  height: 40vh;
  list-style: none;
}

nav ul li {
  height: 15%;
}

nav li:nth-of-type(1) {
  background-color: #000000;
}

nav li:nth-of-type(2) {
  background-color: #000000;
}

nav li:nth-of-type(3) {
  background-color: #000000;
}

nav li:nth-of-type(4) {
  background-color: #000000;
}

nav li:nth-of-type(5) {
  background-color: #000000;
}

nav li a {
  letter-spacing: 0.4rem;
  font-size: 1rem;
}

nav li a:hover,
nav li a:active {
  transform: scale(1.2);
  color: rgba(192,161,94,255);
}

.slide-in-1 {
  animation: slide-in 0.4s linear 0.2s both;
}

.slide-in-2 {
  animation: slide-in 0.4s linear 0.4s both;
}

.slide-in-3 {
  animation: slide-in 0.4s linear 0.6s both;
}

.slide-in-4 {
  animation: slide-in 0.4s linear 0.8s both;
}

.slide-in-5 {
  animation: slide-in 0.4s linear 1s both;
}

@keyframes slide-in {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.slide-out-1 {
  animation: slide-out 0.3s linear 0.5s both;
}

.slide-out-2 {
  animation: slide-out 0.3s linear 0.4s both;
}

.slide-out-3 {
  animation: slide-out 0.3s linear 0.3s both;
}

.slide-out-4 {
  animation: slide-out 0.3s linear 0.2s both;
}

.slide-out-5 {
  animation: slide-out 0.3s linear 0.1s both;
}

@keyframes slide-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

.hamburger-menu {
  position: fixed;
  top: 1rem;
  right: 2rem;
  z-index: 10;
  cursor: pointer;
}

.menu-bar1,
.menu-bar2,
.menu-bar3 {
  width: 1.5rem;
  height: 0.2rem;
  background-color: #fff;
  margin: 0.8rem 0;
  transition: 0.4s;
}

.menu-bar2 {
  width: 1rem;
  margin-left: auto;
}

.active .menu-bar1 {
  transform: rotate(-45deg) translate(-0.7rem, 0.8rem);
}

.active .menu-bar2 {
  opacity: 0;
}

.active .menu-bar3 {
  transform: rotate(45deg) translate(-0.6rem, -0.8rem);
}

/*.section {
  width: 100%;
  height: 100vh;
  height: 100svh;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  text-align: center;
  color: #fff;
}*/

/*.logo {
  position: fixed;
  z-index: 2;
  top: 1.5rem;
  left: 1.5rem;
  font-size: 1.4rem;
  letter-spacing: 0.3rem;
}*/


/*
section#home {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1473172707857-f9e276582ab6?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80")
      no-repeat center center / cover;
}

section#about {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1543269664-647163ef2ee4?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80")
      no-repeat center center / cover;
}

section#skills {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2071&q=80")
      no-repeat center center / cover;
}

section#projects {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1432888498266-38ffec3eaf0a?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2074&q=80")
      no-repeat center center / cover;
}

section#contact {
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("https://images.unsplash.com/photo-1497032628192-86f99bcd76bc?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2070&q=80")
      no-repeat center center / cover;
}*/


.container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-content: center;
    align-items: center;
    margin-top: 250px;
    margin-left: 450px;
    width: 1000px;
    height: 100%;
    position: relative; 
}

.image-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-image: url('./images/security.png');
    background-position: center;
    background-size: cover;
    z-index: 1;
    width: 350px;
    height: 350px;
    border-radius: 50%;
}

.card {
    position: relative;
    overflow: hidden;
    background-color: white;
    width: 500px;
    height: 250px;
}

.position-1{
    border-top-left-radius: 25px 25px;
}

.position-2{
    border-top-right-radius: 25px 25px;
}

.position-3{
    border-bottom-left-radius: 25px 25px;
}

.position-4{
    border-bottom-right-radius: 25px 25px;
}

h1 {
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 50px;
    color: rgba(186,149,84,255);
}

h2 {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: rgba(186,149,84,255);
}

h3 {
    position: absolute;
    top: 20px;
    left: 40px;
    font-size: 50px;
    color: rgba(186,149,84,255);
}

h4 {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: rgba(186,149,84,255);
}

h5 {
  position: absolute;
  top: 125px;
  left: 40px;
  font-size: 40px;
  color: white;
}

h6 {
  position: absolute;
  top: 125px;
  right: 40px;
  font-size: 40px;
  color: white;
}

h7 {
  position: absolute;
  top: 125px;
  left: 40px;
  font-size: 40px;
  color: white;
}

h8 {
  position: absolute;
  top: 125px;
  right: 40px;
  font-size: 40px;
  color: white;
}

.card h1,
.card h2,
.card h3,
.card h4 {
    transition: color 2.5s, transform 2s;
}

.card:hover h1,
.card:hover h2,
.card:hover h3,
.card:hover h4 {
    color: white;
    transform: scale(1.4);
}

.card h5,
.card h6,
.card h7,
.card h8 {
    transition: color 2.5s, transform 2s;
}

.card:hover h5,
.card:hover h6,
.card:hover h7,
.card:hover h8 {
    color: black;
    transform: scale(1.2);
}

.layover {
    position: absolute;
    width: 50px;
    height: 50px;
    background-color: rgba(186,149,84,255);
}

.layover-1{
    bottom: 0;
    right: 0;
}

.layover-2{
    left: 0;
    bottom: 0;
}

.layover-3{
    top: 0;
    right: 0;
}

.layover-4{
    top: 0;
    left: 0;
}

.begin
{
    animation: top-left .5s ease-in forwards;
}

@keyframes top-left
{
    100%
    {
        height: 100%;
        width: 100%;
    }
}

.exit
{
    animation: exit .5s ease-out forwards;
}

@keyframes exit
{
    0%
    {
        height: 100%;
        width: 100%;
    }
    100%
    {
        height: 0%;
        width: 0%;
    }
}

.card:nth-child(odd) p {
    left: 50px;
}

.card:nth-child(even) p {
    right: -400px;
}

#slider {
  width: 1000px;
  display: flex;
  gap: 15px;
  font-size: 30px;
  color: #fff;
  margin-left: 550px;
  margin-top: 100px;
}

#sliderValue {
  display: flex;
  color: rgba(192,161,94,255);
    font-weight: 700;
}

.start {
  opacity: 0;
}

.animation {
  animation: fade .3s forwards;
}

@keyframes fade {
  0%{
    opacity: 0;
    transform: translateY(20px);
  }
  100%{
    opacity: 1;
    transform: translateY(0px);
  }
}

.holder-animation {
  animation: holder 4s;
}

@keyframes holder {
  0%{
    opacity: 1;
  }
  95%{
    opacity: 1;
  }
  100%{
    opacity: 0;
  }
}