/*==================== LIGHT GLASS PROJECTS ====================*/

.projects__section {
    padding: 2rem 0 6rem;
    position: relative;
    overflow: hidden;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

@media screen and (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .bento-card:nth-child(1) {
        grid-column: span 2;
    }

    .bento-card:nth-child(6) {
        grid-column: span 2;
    }
}

/* Light Glass Card */
.bento-card {
    /* Crystal clear white glass */
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Crisp white border */
    border-radius: 1.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Stronger shadow as requested */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.9);
    position: relative;
    overflow: hidden;
}

/* Hover Effect: "Lift" */
.bento-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 20px 40px rgba(var(--hue-color), 69%, 61%, 0.15);
    /* Colored shadow on hover */
    border-color: #fff;
    z-index: 20;
}

/* Abstract Visual Header - Fresh & Airy */
.bento-visual {
    height: 120px;
    width: 100%;
    border-radius: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    overflow: hidden;
    /* Very subtle, barely-there gradient */
    background: linear-gradient(135deg,
            hsl(var(--hue-color), 20%, 97%) 0%,
            hsl(var(--hue-color), 30%, 94%) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Soft Light Orbs */
.bento-visual::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle at 30% 30%,
            hsl(var(--hue-color), 40%, 90%),
            transparent 60%);
    top: -10%;
    left: -10%;
    filter: blur(15px);
    transition: all 0.5s ease;
    opacity: 0.6;
}

.bento-card:hover .bento-visual::before {
    transform: scale(1.1);
    opacity: 0.8;
}

/* The Icon inside the header */
.bento-icon-visual {
    font-size: 3.5rem;
    color: var(--first-color);
    /* Dark brand color for contrast */
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
    opacity: 0.8;
    /* Slightly muted initially */
}

.bento-card:hover .bento-icon-visual {
    transform: scale(1.1) rotate(-5deg);
    opacity: 1;
    color: var(--first-color-second);
    /* Pop color on hover */
    filter: drop-shadow(0 5px 15px rgba(var(--hue-color), 69%, 61%, 0.2));
}

/* Content Styling */
.bento-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.bento-title {
    font-size: var(--h2-font-size);
    margin-bottom: 0.5rem;
    color: var(--title-color);
    /* Dark text */
    font-weight: 600;
    letter-spacing: -0.5px;
}

.bento-title:hover {
    color: var(--first-color);
}

.bento-description {
    font-size: var(--small-font-size);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Tech Stack Tags */
.bento-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.bento-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.8rem;
    border-radius: 2rem;
    background: #fff;
    /* Clean white tag */
    color: var(--first-color);
    border: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle border */
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.bento-card:hover .bento-tag {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    color: var(--first-color-second);
}

/* Footer / Link */
.bento-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 1rem;
    margin-top: auto;
}

.bento-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--small-font-size);
    color: var(--title-color);
    font-weight: 600;
    transition: all 0.3s ease;
}

.bento-link:hover {
    gap: 0.8rem;
    color: var(--first-color);
}

.bento-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.bento-link:hover .bento-icon {
    transform: translateX(3px);
}