* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(160deg, #1f2937 0%, #111827 100%);
    min-height: 100vh;
    padding: 2rem;
    color: #e5e7eb;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem;
    background: #374151;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

h1 {
    color: #60a5fa;
    margin-bottom: 1rem;
}

.transforms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

.transform-card {
    background: #374151;
    padding: 2rem;
    border-radius: 15px;
    flex: 1 1 350px;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
    transition: transform 0.3s ease;
}

.transform-card:hover {
    transform: translateY(-10px);
}

.transform-card h2 {
    color: #93c5fd;
    margin-bottom: 1rem;
}

.demo-box {
    width: 100px;
    height: 100px;
    background: linear-gradient(145deg, #3b82f6, #06b6d4);
    margin: 2rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    transition: transform 0.6s ease, box-shadow 0.6s ease;
    transform-style: preserve-3d;
    position: relative;
    border-radius: 10px;
}

.demo-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    transform: translateZ(-12px);
    border-radius: 10px;
}

.rotateX:hover {
    transform: rotateX(360deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.rotateY:hover {
    transform: rotateY(360deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.rotateZ:hover {
    transform: rotateZ(360deg);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.5);
}

.code {
    background: #111827;
    padding: 1rem;
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    color: #93c5fd;
    border-left: 4px solid #3b82f6;
}