/* ==========================================================================
   Section — Materialen (Maximaal Gepimpt)
   ========================================================================== */

.materialen-sectie {
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: #f8f9fa; /* Zeer lichte grijze/off-white achtergrond voor contrast */
}

.materialen__header {
    max-width: 640px;
    margin-bottom: 4.5rem;
}

.materialen__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
}

/* --- De Gepimpte Kaart --- */
.materiaal-card {
    background: var(--color-white, #fff);
    border-radius: var(--radius-lg, 16px);
    padding: 2.5rem 2rem;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    z-index: 1;
}

/* Dik Hover Effect */
.materiaal-card:hover {
    border-color: transparent;
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08), 0 0 0 2px var(--color-secondary, #F5A800);
    z-index: 2;
}

/* Glow en patroon dat in-fadet rechtsonder */
.materiaal-card__bg-texture {
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(245,168,0,0.12) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    transition: all 0.6s ease;
    z-index: -1;
    opacity: 0;
    transform: scale(0.5);
}

.materiaal-card:hover .materiaal-card__bg-texture {
    opacity: 1;
    transform: scale(2);
}

.materiaal-card__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.materiaal-card__top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
}

/* --- Icoon --- */
.materiaal-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(162, 26, 40, 0.06); /* Subtiel rood op de achtergrond */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.materiaal-card__icon i {
    font-size: 1.4rem;
    color: var(--color-primary, #A21A28);
    transition: all 0.4s ease;
}

/* Icoon komt tot leven op hover */
.materiaal-card:hover .materiaal-card__icon {
    background: var(--color-primary, #A21A28);
    transform: rotate(-8deg) scale(1.1);
    box-shadow: 0 10px 20px rgba(162, 26, 40, 0.25);
}

.materiaal-card:hover .materiaal-card__icon i {
    color: #fff;
    transform: scale(1.05);
}

/* --- Visuele Levensduur Meter --- */
.materiaal-card__durability-wrap {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.materiaal-card__levensduur {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--color-dark, #1a1a1a);
    background: rgba(245, 168, 0, 0.15);
    padding: 0.35rem 0.85rem;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.materiaal-card:hover .materiaal-card__levensduur {
    background: rgba(245, 168, 0, 0.3);
}

.durability-meter {
    width: 70px;
    height: 6px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.durability-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--color-secondary, #F5A800);
    width: 0; /* Wordt getekend door Javascript als het in beeld scrolt */
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Content --- */
.materiaal-card__title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    font-weight: 800;
}

.materiaal-card__text {
    font-size: 0.95rem;
    color: var(--color-text-light, #666);
    line-height: 1.65;
    margin-bottom: 0;
    flex-grow: 1; /* Duwt layout mooi strak als teksten verschillen in lengte */
}

/* --- Vertraging voor de Intrede (Staggered Load) --- */
.delay-0 { animation-delay: 0.1s; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.4s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .materialen__grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

@media (max-width: 600px) {
    .materialen__grid { grid-template-columns: 1fr; }
    .materiaal-card { padding: 2rem 1.5rem; }
}