:root {
    --bg: #f8f9fa;
    --card-white: #ffffff;
    --text-main: #1a1a1a;
    --text-sub: #5f6368;
    --border-light: #e0e0e0;
    
    /* Cores de Identificação */
    --video-color: #ff0000;
    --article-color: #03a87c; 
    --web-color: #1a73e8;
    --idea-color: #f2994a;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg);
    padding: 60px 20px;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    max-width: 1200px;
    width: 100%;
    margin-bottom: 50px;
    text-align: center;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 10px;
}

header p {
    color: var(--text-sub);
    font-size: 1.1rem;
}

/* Grid Layout */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 240px; 
    gap: 24px;
    max-width: 1200px;
    width: 100%;
}

/* The Card */
.card {
    background: var(--card-white);
    border-radius: 28px;
    padding: 30px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: #d1d1d1;
}

/* Bento Variations */
.wide { grid-column: span 2; }
.tall { grid-row: span 2; }
.large { grid-column: span 2; grid-row: span 2; }

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 12px;
    margin-bottom: 20px;
    width: fit-content;
}

.badge-video { background: #fee2e2; color: var(--video-color); }
.badge-article { background: #e6f6f2; color: var(--article-color); }
.badge-web { background: #e8f0fe; color: var(--web-color); }
.badge-idea { background: #fff4e5; color: var(--idea-color); }

/* Typography */
.card h2 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card p {
    font-size: 0.8rem;
    color: var(--text-sub);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    margin-top: auto;
    font-size: 0.72rem;
    font-weight: 500;
    color: #999;
}

/* About Me card */
.card-about {
    background: var(--text-main);
    color: #fff;
    border-color: transparent;
}

.card-about h2 {
    color: #fff;
}

.card-about p {
    color: rgba(255,255,255,0.65);
}

.card-about .card-footer span {
    color: rgba(255,255,255,0.4);
}

.card-about .badge-web {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* Responsive */
@media (max-width: 850px) {
    .wide, .tall, .large {
        grid-column: span 1;
        grid-row: span 1;
    }
    .grid-container {
        grid-auto-rows: auto;
    }
}