body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #d1e7dd;
  color: #333;
  margin: 0;
  padding: 0;
}

header,
footer {
  text-align: center;
  padding: 1rem;
  background: linear-gradient(to right, #c8b3ee, #b9d8c2);
  color: #212529;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

h1,
h2 {
  margin-bottom: 0.5rem;
	text-align: center;
}

/* Navigation Styling */
nav {
  margin-top: 1rem;
  text-align: center;
}

.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease, transform 0.2s ease;
  color: #333;
}

.nav-links li a:hover {
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}


.transform-demo.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-items: center;
  margin: 2rem 0;
	padding: 1rem;
}

.box {
  height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.5s ease-in-out;
  padding: 1rem;
  text-align: center;
}

.description {
  font-weight: normal;
  font-size: 0.95rem;
  margin-top: 0.75rem;
}

.glass {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  color: #212529;
}

.translate:hover {
  transform: translate(20px, 20px);
	background:#c8b3ee;
}

.rotate:hover {
  transform: rotate(45deg);
	background:#c8b3ee;
}

.scale:hover {
  transform: scale(1.2);
	background:#c8b3ee;
}

.skewx:hover {
  transform: skewX(45deg);
	background:#c8b3ee;
}

.skewy:hover {
  transform: skewY(45deg);
	background:#c8b3ee;
}

.matrix:hover {
  transform: matrix(1, 0.5, 0.5, 1, 30, 30);
	background:#c8b3ee;
}

.translate3d:hover {
  transform: translate3d(20px, 20px, 50px);
	background:#c8b3ee;
}

.translateX:hover {
  transform: translateX(50px);
	background:#c8b3ee;
}

.translateY:hover {
  transform: translateY(-30px);
	background:#c8b3ee;
}

.translateZ:hover {
  transform: perspective(300px) translateZ(80px) rotateY(20deg);
	background:#c8b3ee;
}

.scale3d:hover {
  transform: scale3d(1.2, 1.2, 1.2);
	background:#c8b3ee;
}

.rotate3d:hover {
  transform: rotate3d(1, 1, 0, 45deg);
  background:#c8b3ee;
}

.perspective-wrapper {
  perspective: 800px;
  display: flex;
  justify-content: center;
}

.perspective:hover {
  transform: rotateY(45deg);
  background:#c8b3ee;
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .box {
    height: auto;
    padding: 2rem 1rem;
  }
}
