:root {
    --dark: #0f0f0f;
    --light: #fdfdfd;
    --accent-tech: #4285f4;
    --accent-art: #ff3e00;
}

body { margin: 0; font-family: 'Segoe UI', Roboto, sans-serif; background: var(--light); color: var(--dark); }

/* --- HOME PAGE --- */
.split-screen { display: flex; height: 100vh; }
.pane { 
    flex: 1; position: relative; text-decoration: none; 
    display: flex; align-items: center; justify-content: center;
    transition: all 0.6s ease;
}
.technical { background: var(--dark); color: var(--accent-tech); }
.practical { background: #e0e0e0; color: var(--accent-art); }
.pane:hover { flex: 1.4; filter: brightness(1.2); }

.overlay { text-align: center; padding: 20px; }
.overlay h2 { font-size: 3rem; margin: 0; text-transform: uppercase; }
.btn-discover { display: inline-block; margin-top: 20px; padding: 10px 20px; border: 1px solid currentColor; border-radius: 50px; }

/* --- LAYOUT --- */
.container { max-width: 1200px; margin: 0 auto; padding: 40px 20px; }
.main-nav { padding: 20px; background: #fff; border-bottom: 1px solid #ddd; display: flex; justify-content: space-between; font-weight: bold; }
.main-nav a { text-decoration: none; color: var(--dark); }
.page-header { text-align: center; margin-bottom: 50px; }

/* --- GRIDS --- */
.grid, .art-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }

/* --- CARDS --- */
.card, .art-card { background: white; border: 1px solid #eee; padding: 25px; border-radius: 8px; transition: 0.3s; }
.card:hover { border-color: var(--accent-tech); transform: translateY(-5px); }
.art-card:hover { border-color: var(--accent-art); }

.art-placeholder { height: 200px; background: #111; display: flex; align-items: center; justify-content: center; color: #333; font-weight: bold; margin: 15px 0; }
.art-number { color: var(--accent-art); font-family: monospace; }

/* --- PRACTICAL SITUATION ENHANCEMENTS --- */

/* Background with a subtle radial gradient for depth */
.practical-body {
    background: radial-gradient(circle at center, #1a1a1a 0%, #0a0a0a 100%);
    color: #eee;
    min-height: 100vh;
}

/* Header Styling */
.page-header h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
    background: linear-gradient(45deg, var(--accent-art), #ff8c00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
}

.page-header p {
    color: #888;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* The Art Grid */
.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    padding-bottom: 100px;
}

/* Card Styling */
.art-link { text-decoration: none; color: inherit; }

.art-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0px; /* Sharp edges feel more "art-gallery" */
    padding: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.art-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--accent-art);
    transform: translateY(-10px);
}

/* Placeholder/Visual Box */
.art-placeholder {
    height: 240px;
    background: #000;
    position: relative;
    border: 1px solid #222;
    margin-bottom: 20px;
}

.glitch-box {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #111 25%, #1a1a1a 25%, #1a1a1a 50%, #111 50%, #111 75%, #1a1a1a 75%, #1a1a1a 100%);
    background-size: 20px 20px;
    opacity: 0.3;
    transition: opacity 0.3s;
}

.art-card:hover .glitch-box {
    opacity: 0.6;
    background: linear-gradient(135deg, #111 25%, var(--accent-art) 25%, #1a1a1a 50%, #111 50%, #111 75%, var(--accent-art) 75%, #1a1a1a 100%);
    background-size: 10px 10px;
}

/* Typography in Card */
.art-number {
    font-size: 0.7rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: inline-block;
    border-bottom: 2px solid var(--accent-art);
}

.art-card h3 {
    font-family: serif; /* Elegant contrast to the tech side */
    font-size: 1.8rem;
    margin: 10px 0;
    font-weight: 400;
}

.art-card p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #aaa;
}

.view-label {
    position: absolute;
    bottom: 20px;
    right: 20px;
    font-size: 0.65rem;
    letter-spacing: 2px;
    opacity: 0;
    transition: opacity 0.3s;
}

.art-card:hover .view-label {
    opacity: 1;
}

/* 1. Add a Film Grain Texture Overlay */
.practical-body::before {
    content: "";
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05; /* Keep it subtle */
    pointer-events: none;
    z-index: 9999;
}

/* 2. Keyframes for the Glitch Effect */
@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* 3. Apply Glitch to the placeholder on hover */
.art-card:hover .art-placeholder {
    border-color: var(--accent-art);
    animation: glitch-anim 0.2s infinite;
}

/* 4. Smooth out the typography */
.art-card h3 {
    font-family: 'Playfair Display', serif; /* Or any system serif like 'Georgia' */
    letter-spacing: -0.5px;
    color: #fff;
}