body {
  background-color: #ffffff;
  background-image:
    linear-gradient(30deg, #f5f5f5 12%, transparent 12.5%, transparent 87%, #f5f5f5 87.5%, #f5f5f5),
    linear-gradient(150deg, #f5f5f5 12%, transparent 12.5%, transparent 87%, #f5f5f5 87.5%, #f5f5f5),
    linear-gradient(30deg, #f5f5f5 12%, transparent 12.5%, transparent 87%, #f5f5f5 87.5%, #f5f5f5),
    linear-gradient(150deg, #f5f5f5 12%, transparent 12.5%, transparent 87%, #f5f5f5 87.5%, #f5f5f5);
  background-size: 80px 140px;
  background-position: 0 0, 0 0, 40px 70px, 40px 70px;
  color: #333;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  /* Subtle gradient pattern */
  background: linear-gradient(135deg, #ffffff 0%, #f5f5f5 100%);
}

/* Add a subtle overlay to make the pattern more soft */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  pointer-events: none;
  z-index: -1;
}

/* Main container */
.landing-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 60px auto 0;
}

/* Content box styling */
.content-box {
  position: relative;
  width: 80%;
  margin: 0 auto;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: pointer;
  border-radius: 30px 0 30px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border: 2px solid #000;
  padding: 10px;
  transition: all 0.8s ease;
  background-size: cover;
  background-position: center;
  transform-origin: center;
}

.content-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: all 0.8s ease;
  z-index: 0;
  border-radius: 30px 0 30px 0;
  overflow: hidden;
  transform-origin: center;
  will-change: transform;
  clip-path: inset(0 0 0 0 round 30px 0 30px 0);
}

.content-box:hover::before {
  transform: scale(1.1);
  filter: blur(1.5px);
}

.content-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.box-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  width: 100%;
  border-radius: 30px 0 30px 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.box-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #333;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
  border-radius: 30px 0 30px 0;
  z-index: 2;
  overflow: hidden;
}

.content-box:hover .box-content {
  opacity: 1;
  transform: translateY(0);
}

.box-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  text-align: center;
  position: absolute;
  bottom: 1rem;
  width: 100%;
  left: 0;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: #000;
  border-radius: 30px 0 30px 0;
  z-index: 3;
  transform: translateY(0);
  font-weight: bold;
  backdrop-filter: blur(4px);
  transition: opacity 0.6s ease;
  opacity: 1;
}

.content-box:hover .box-title {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.content-box:not(:hover) .box-title {
  transition: opacity 1s ease;
}

.box-description {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0;
  text-align: center;
  color: #000;
  max-width: 60%;
  font-weight: bold;
  transform: translateY(20px);
  transition: all 0.6s ease;
  background: rgba(255, 255, 255, 0.9);
  padding: 1.5rem 2.5rem;
  border-radius: 30px 0 30px 0;
  backdrop-filter: blur(4px);
  position: absolute;
  top: 45%;
  left: 45%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition-delay: 0.3s;
}

.content-box:hover .box-description {
  opacity: 1;
  transform: translate(-50%, -50%);
  transition-delay: 0.3s;
}

/* Responsive design */
@media (max-width: 1024px) {
  .landing-container {
    gap: 2rem;
    padding: 1.5rem;
  }

  .content-box {
    width: 90%;
  }

  .box-title {
    font-size: 1.3rem;
  }

  .box-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .landing-container {
    grid-template-columns: 1fr;
    padding: 1rem;
    margin-top: 50px;
  }

  .content-box {
    width: 95%;
    padding: 8px;
  }

  .box-title {
    font-size: 1.2rem;
    padding: 0.75rem;
  }

  .box-description {
    font-size: 0.95rem;
    margin-top: 0.5rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  .landing-container {
    gap: 1.5rem;
    padding: 0.5rem;
    margin-top: 50px;
  }

  .content-box {
    width: 95%;
    padding: 6px;
    aspect-ratio: 4/3;
  }

  .box-title {
    font-size: 1.1rem;
    padding: 0.5rem;
  }

  .box-description {
    font-size: 0.9rem;
    max-width: 90%;
  }
}

/* Add safe area for notched devices */
@supports (padding: max(0px)) {
  .landing-container {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
}