@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --left-bg-color: rgba(248, 111, 3, 0.52);
  --right-bg-color: rgba(149, 159, 0, 0.74);
  --hover-width: 75%;
  --other-width: 25%;
  --speed: 5000ms;
}


.btn i {
  font-size: 1.8rem; 
  margin-left: 0.5rem;
}

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

body {
  font-family: 'Poppins', sans-serif;
  height: 100vh;
  overflow: hidden;
}

h1 {
  font-size: 4rem;
  color: #fff;
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  white-space: nowrap;
}

.btn {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  left: 50%;
  top: 40%;
  transform: translateX(-50%);
  text-decoration: none;
  color: #fff;
  border: #fff solid 0.2rem;
  font-size: 1rem;
  font-weight: bold;
  text-transform: uppercase;
  width: 15rem;
  padding: 1.5rem;
  overflow: hidden; 
  background: linear-gradient(to right, black 50%, transparent 50%); 
  background-size: 200% 100%; 
  background-position: right bottom; 
  transition: background-position 1s ease-in-out; 
}

.btn:hover {
  background-position: left bottom; 
}

.container {
  position: relative;
  width: 100%;
  height: 100%;
  background: #333;
}

.split {
  position: absolute;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.split.left {
  left: 0;
  background: url('imageMas.png');
  background-repeat: no-repeat;
  background-size: cover;
}

.split.left::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--left-bg-color);
}

.split.right {
  right: 0;
  background: url('imageFit.png');
  background-repeat: no-repeat;
  background-size: cover;
}

.split.right::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--right-bg-color);
}

.split.right,
.split.left,
.split.right::before,
.split.left::before {
  transition: all var(--speed) ease-in-out;
}

.hover-left .left {
  width: var(--hover-width);
}

.hover-left .right {
  width: var(--other-width);
}

.hover-right .right {
  width: var(--hover-width);
}

.hover-right .left {
  width: var(--other-width);
}
@media (max-width: 800px) {
  h1 {
    font-size: 2rem;
    top: 20%; 
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
  }

  .btn {
    padding: 1rem; 
    width: 7rem; 
    font-size: 0.8rem; 
    top: 50%; 
    transform: translate(-50%, -50%); 
  }

  

  .split.right,
  .split.left,
  .split.right::before,
  .split.left::before {
    transition: none;
  }

  .split {
    width: 100%;
    height: 50%;
    position: relative;
  }

  .split.left {
    top: 0;
  }

  .split.right {
    bottom: 0;
  }

  .hover-left .left,
  .hover-right .right {
    width: 100%;
    height: 50%;
  }

  .hover-left .right,
  .hover-right .left {
    width: 100%;
    height: 50%;
  }
}