:root {
    --background-color: #071f10;
    --text-color: #fff;
    --transition-duration: 1.2s;
    --font-family: "Open Sans", sans-serif;
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }
  
  body {
    background-color: var(--background-color);
    font-family: var(--font-family);
  }
  
  .container {
    height: 100vh;
    display: grid;
    place-items: center;
  }
  
  .item {
    position: relative;
    overflow: hidden;
  }
  
  .item::after {
    content: '';
    display: block;
    background-color: var(--background-color);
    opacity: 0.8;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    transform: scale(2) translate(-65%, -65%) rotate(45deg);
    transition: transform var(--transition-duration) ease-in-out;
  }
  
  .item:hover::after {
    transform: scale(2) translate(0, 0) rotate(45deg);
  }
  
  .item-image img {
    width: 100%;
    height: auto;
    max-width: 350px;
    object-fit: cover;
    transition: transform 1s ease;
  }
  
  .item:hover .item-image img {
    transform: scale(1.2);
  }
  
  .item-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    z-index: 1;
    opacity: 0;
    color: var(--text-color);
    transform: translateY(-30px);
    transition: opacity 2s ease, transform 1s ease;
    transition-delay: 0.5s;
  }
  
  .item:hover .item-text {
    opacity: 1;
    transform: translateY(0);
  }
  
  .item-text h2 {
    font-size: 4rem;
    letter-spacing: 3px;
    margin: 5px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2); 
    transition: transform 0.5s, text-shadow 0.5s; 
  }
  
  .item-text p {
    font-size: 2.5rem;
    letter-spacing: 3px;
    margin: 10px;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s, text-shadow 0.5s; 
  }
  
  .item:hover .item-text h2,
  .item:hover .item-text p {
    transform: translateZ(10px) rotateX(10deg) rotateY(10deg); 
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4); 
  }
  
  .item-text button {
    font-size: 1.5rem;
    margin: 4px;
    padding: 6px 12px;
    border-radius: 30px;
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color);
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.5s, text-shadow 0.5s;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  }
  
  .item-text button:hover,
  .item-text button:focus {
    background: var(--text-color);
    color: var(--background-color);
    outline: none;
    transform: translateZ(10px) rotateX(10deg) rotateY(10deg);
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.4); 
  }
  