* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif
}

body {
    background: linear-gradient(170deg, #c3dbff 0%, #4e88ee 100%);
    min-height: 100vh;
    padding: 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
}

h1 {
    color: #365c99;
    margin-bottom: 1rem;
}

.transforms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.transform-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    flex: 1 1 350px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.transform-card h2 {
   color: #365c99;
    margin-bottom: 1rem;
}

.demo-box {
    width: 100px;
    height: 100px;
    background: #8dbfe9;
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    transform-style: preserve-3d;
    position: relative;
    border-radius: 6px;
}

.demo-box::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    transform: translateZ(-10px);
    border-radius: 10px;
}

.rotateX:hover {
    transform: rotateX(360deg);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
}

.rotateY:hover {
    transform: rotateY(360deg);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
}

.rotateZ:hover {
    transform: rotateZ(360deg);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.3);
}

.code {
    background: #f7fafc;
    padding: 1rem;
    border-radius: 0.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: #4a5568;
}

