Files
portfoliowai/assets/css/modules/_cards.css
T

264 lines
5.1 KiB
CSS

/* =====================================================
PROJECT CARDS
===================================================== */
.project-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
gap: 24px;
}
a.project-card {
text-decoration: none;
color: inherit;
display: block;
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 16px;
overflow: hidden;
transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
backdrop-filter: blur(10px);
}
a.project-card:hover {
transform: translateY(-6px);
border-color: var(--border-hover);
box-shadow: var(--shadow-glow);
}
.card-img {
position: relative;
height: 200px;
overflow: hidden;
}
.card-img img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.5s var(--ease);
}
a.project-card:hover .card-img img {
transform: scale(1.05);
}
.card-img-overlay {
position: absolute;
inset: 0;
background: linear-gradient(to bottom, transparent 40%, rgba(9, 13, 22, 0.8));
transition: opacity 0.3s;
}
.card-content {
padding: 24px;
}
.card-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: 10px;
gap: 10px;
}
.card-header h3 {
font-family: 'Outfit', sans-serif;
font-size: 1.15rem;
font-weight: 700;
color: var(--text-main);
line-height: 1.3;
}
.arrow-icon {
font-size: 1.1rem;
opacity: 0;
transform: translate(-6px, 6px);
transition: all 0.3s var(--ease);
color: var(--accent-2);
flex-shrink: 0;
}
a.project-card:hover .arrow-icon {
opacity: 1;
transform: translate(0, 0);
}
.card-content p {
color: var(--text-muted);
font-size: 0.88rem;
margin-bottom: 18px;
line-height: 1.7;
}
.stack-badges {
display: flex;
flex-wrap: wrap;
gap: 6px;
}
.stack-badge {
padding: 4px 10px;
border-radius: 50px;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.04em;
background: rgba(59, 130, 246, 0.12);
border: 1px solid rgba(59, 130, 246, 0.25);
color: var(--accent-2);
}
/* =====================================================
CERTIFICATIONS
===================================================== */
.cert-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
gap: 20px;
}
.cert-card {
background: var(--card-bg);
border: 1px solid var(--border);
border-radius: 16px;
padding: 28px;
display: flex;
align-items: center;
gap: 20px;
transition: all 0.3s var(--ease);
backdrop-filter: blur(10px);
cursor: default;
}
.cert-card:hover {
border-color: var(--border-hover);
transform: translateY(-3px);
box-shadow: var(--shadow-glow);
}
.cert-icon {
font-size: 2rem;
width: 56px;
height: 56px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(37, 99, 235, 0.1);
border: 1px solid rgba(37, 99, 235, 0.2);
border-radius: 14px;
flex-shrink: 0;
transition: background 0.3s;
}
.cert-card:hover .cert-icon {
background: rgba(37, 99, 235, 0.18);
}
.cert-info h3 {
font-family: 'Outfit', sans-serif;
font-size: 1rem;
font-weight: 700;
margin-bottom: 4px;
color: var(--text-main);
}
.issuer {
color: var(--accent-2);
font-size: 0.82rem;
font-weight: 600;
}
.date {
display: block;
font-size: 0.75rem;
color: var(--text-subtle);
margin-top: 4px;
}
/* =====================================================
BLOG CARDS
===================================================== */
.blog-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
gap: 24px;
}
.blog-card {
background: var(--card-bg);
border: 1px solid var(--border);
padding: 32px;
border-radius: 16px;
display: flex;
flex-direction: column;
transition: all 0.3s var(--ease);
backdrop-filter: blur(10px);
}
.blog-card:hover {
transform: translateY(-5px);
border-color: var(--border-hover);
box-shadow: var(--shadow-glow);
}
.blog-meta {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 0.75rem;
color: var(--text-subtle);
margin-bottom: 16px;
text-transform: uppercase;
letter-spacing: 0.08em;
font-weight: 600;
}
.blog-tag {
color: var(--accent-2);
background: rgba(59, 130, 246, 0.12);
border: 1px solid rgba(59, 130, 246, 0.25);
padding: 3px 10px;
border-radius: 50px;
}
.blog-title {
font-family: 'Outfit', sans-serif;
font-size: 1.15rem;
font-weight: 700;
margin-bottom: 12px;
line-height: 1.4;
color: var(--text-main);
}
.blog-excerpt {
color: var(--text-muted);
font-size: 0.9rem;
margin-bottom: 24px;
flex-grow: 1;
line-height: 1.7;
}
.read-more {
text-decoration: none;
color: var(--accent-2);
font-weight: 600;
font-size: 0.85rem;
display: inline-flex;
align-items: center;
gap: 6px;
transition: gap 0.2s var(--ease), opacity 0.2s;
}
.read-more:hover {
gap: 10px;
opacity: 0.8;
}
/* =====================================================
VIEW ALL BUTTON
===================================================== */
.view-all-container {
display: flex;
justify-content: center;
margin-top: 50px;
}