/* Modern Obsidian & Silver Theme */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #050505; /* Deep rich black */
    text-align: center;
    color: #a0a0a0; /* Muted silver text */
    line-height: 1.6;
}

header {
    background-color: #000000;
    color: #ffffff;
    padding: 60px 20px;
    border-bottom: 1px solid #222; /* Sharp, subtle divider */
}

header h1 { 
    margin: 0; 
    font-size: 2.8rem; 
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to bottom, #ffffff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro { 
    margin: 60px auto; 
    max-width: 700px;
}

.intro h2 { 
    font-size: 2.2rem; 
    color: #ffffff; 
    font-weight: 300;
}

/* Refined Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Modern Glass Card */
.card {
    background: #111111; /* Dark card surface */
    border: 1px solid #222;
    border-radius: 12px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card:hover {
    border-color: #444;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.card h3 {
    color: #ffffff;
    border-bottom: 1px solid #333;
    padding-bottom: 15px;
    margin-top: 0;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

/* Display Area */
.box-container {
    background-color: #080808;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 25px 0;
    border-radius: 8px;
    border: 1px inset #1a1a1a;
}

/* The Object */
.box {
    width: 90px;
    height: 90px;
    background: #ffffff; /* Solid White for maximum contrast */
    color: #000;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1), background-color 0.3s ease; 
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* Modern Monospace Code */
code {
    background-color: #000000;
    color: #d1d1d1;
    padding: 15px;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.85rem;
    display: block;
    margin-top: 20px;
    border-radius: 6px;
    border: 1px solid #1a1a1a;
    text-align: left;
}

/* Interaction Effects */
.translate-box:hover {
    transform: translate(30px, -10px);
    background-color: #e0e0e0;
}

.rotate-box:hover {
    transform: rotate(45deg);
    border-radius: 10px; /* Changes shape slightly while rotating */
}

.scale-box:hover {
    transform: scale(1.2);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
}