/* Stack Section Styles */
#stack {
    background-color: var(--white-color);
    padding: 2rem 0;
}

#stack h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.stack-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.stack-category h3 {
    font-size: 1.5rem;
    color: var(--ffth-color);
    margin-bottom: 1.5rem;
    border-left: 5px solid var(--sd-color);
    padding-left: 1rem;
    text-align: left;
}

.stack-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.stack-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-alt);
    /* Variables handled in style.css */
    width: 220px;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

/* Dark mode adjustments done via variables, but let's ensure borders are subtle */
body.dark .stack-card {
    border: 1px solid #333;
}

.stack-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--sd-color);
}

.stack-card img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.stack-card span {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--sxth-color);
}

/* Response: Stack full width on very small screens? No, wrap is better */
@media screen and (max-width: 600px) {
    .stack-cards {
        justify-content: center;
    }

    .stack-category h3 {
        text-align: center;
        border-left: none;
        border-bottom: 3px solid var(--sd-color);
        display: inline-block;
        padding-left: 0;
        padding-bottom: 5px;
        margin-left: 50%;
        transform: translateX(-50%);
    }
}