/* ========================================
   Projects Section - Glass Morphism Design
   Apple/iOS Inspired Aesthetic
   ======================================== */

/* Section Background - Gradient with Animated Blobs */
.projects-section {
    position: relative;
    background: linear-gradient(135deg,
        #fafafa 0%,
        #ffffff 50%,
        #f5f5f5 100%);
    padding: 1rem 0 !important;
    overflow: hidden;
}

/* Project Card - Glass Morphism */
.project-card {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);

    box-shadow:
        0 8px 32px -8px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.5);

    overflow: hidden;

    /* 硬件加速和抗锯齿优化 */
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;

    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: scale(1.02) translateZ(0);
    background: rgba(255, 255, 255, 0.6);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow:
        0 16px 48px -12px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.6);
}

/* Project Image Container */
.project-card .col-sm-6.col-md-4 {
    overflow: hidden;
}

/* Project Image Styling */
.project-card .project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 240px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image {
    transform: scale(1.08);
}

/* Project Title */
.project-card .card-title {
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #1a202c;
    transition: color 0.3s ease;
}

.project-card .card-title a {
    color: inherit;
}

.project-card:hover .card-title {
    color: #2d3748;
}

/* Project Date */
.project-date {
    font-size: 0.875rem;
    color: #718096;
    font-weight: 500;
}

/* Project Summary */
.project-card .card-text {
    color: #4a5568;
    line-height: 1.6;
}

/* Labels/Tags - Glass Pills */
.project-label {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(0, 0, 0, 0.08);
    color: #4a5568 !important;
    font-weight: 500;
    font-size: 0.813rem;
    padding: 0.35rem 0.75rem;

    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
}

.project-label:hover {
    background: rgba(255, 255, 255, 0.7) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.12);
}

/* Section Title */
.projects-section .display-4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1a202c;
}

/* "See all" Link Styling */
.projects-section .text-center a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;

    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;

    color: #2d3748;
    text-decoration: none;
    font-weight: 500;

    box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-section .text-center a:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.05);
    box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.15);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .project-card .project-image {
        max-height: 200px;
    }
}

@media (max-width: 576px) {
    .project-card {
        border-radius: 16px;
    }

    .project-card .project-image {
        max-height: 180px;
    }
}
