/* ══════════════════════════════════════════════════════════
   PROJECTS PAGE - PREMIUM ENHANCEMENTS
   ═══════════════════════════════════════════════════════════ */

/* Archive Link Hover Effect */
.archive-link {
    position: relative;
    transition: all 0.3s var(--ease-elegant);
}

.archive-link:hover {
    gap: 12px !important;
    transform: translateX(4px);
}

.archive-link i {
    transition: transform 0.3s var(--ease-elegant);
}

.archive-link:hover i {
    transform: translateX(4px);
}

/* Tier 1 Card Enhancements */
.tier-1-card {
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s var(--ease-premium);
}

.tier-1-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.05),
        rgba(147, 51, 234, 0.05));
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
    pointer-events: none;
}

.tier-1-card:hover::before {
    opacity: 1;
}

.tier-1-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7),
                0 0 60px rgba(212, 175, 55, 0.12);
}

/* Deep Case Study Badge Animation */
.deep-case-study-badge {
    transition: all 0.4s var(--ease-elegant);
    position: relative;
}

.tier-1-card:hover .deep-case-study-badge {
    transform: scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Tier 2 Card Enhancements */
.tier-2-card {
    position: relative;
    transition: all 0.5s var(--ease-premium);
    cursor: pointer;
}

.tier-2-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.2),
        rgba(147, 51, 234, 0.2));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.tier-2-card:hover::after {
    opacity: 1;
}

.tier-2-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(212, 175, 55, 0.08);
}

.tier-2-card img {
    transition: all 0.6s var(--ease-premium);
}

.tier-2-card:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* What It Proves Section Enhancement */
.what-it-proves {
    position: relative;
    transition: all 0.4s ease;
}

.tier-2-card:hover .what-it-proves {
    background: rgba(212, 175, 55, 0.05);
    padding: 15px;
    margin: 20px -15px 0 -15px;
    border-radius: 6px;
}

/* Tier 3 Card Enhancements */
.tier-3-card {
    position: relative;
    transition: all 0.4s var(--ease-smooth);
    cursor: pointer;
}

.tier-3-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 0;
    background: var(--accent-nebula);
    transition: height 0.4s var(--ease-smooth);
}

.tier-3-card:hover::before {
    height: 100%;
}

.tier-3-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.03);
    padding-left: 25px;
}

.tier-3-card h3 {
    transition: color 0.3s ease;
}

.tier-3-card:hover h3 {
    color: var(--accent-nebula);
}

/* Archive Tag Enhancements */
.archive-tag {
    position: relative;
    transition: all 0.3s ease;
    cursor: default;
}

.archive-tag:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Filter Button Enhancements */
.filter-btn {
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(212, 175, 55, 0.2),
        transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before,
.filter-btn.active::before {
    left: 100%;
}

.filter-btn.active {
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Stagger Animation for Cards */
.tier-1-card:nth-child(1) { animation-delay: 0ms; }
.tier-1-card:nth-child(2) { animation-delay: 150ms; }
.tier-1-card:nth-child(3) { animation-delay: 300ms; }

.tier-2-card:nth-child(1) { animation-delay: 0ms; }
.tier-2-card:nth-child(2) { animation-delay: 100ms; }
.tier-2-card:nth-child(3) { animation-delay: 200ms; }
.tier-2-card:nth-child(4) { animation-delay: 300ms; }
.tier-2-card:nth-child(5) { animation-delay: 400ms; }
.tier-2-card:nth-child(6) { animation-delay: 500ms; }
.tier-2-card:nth-child(7) { animation-delay: 600ms; }

/* Smooth Filter Transitions */
[data-category].hidden {
    opacity: 0 !important;
    transform: scale(0.95) !important;
    pointer-events: none;
    transition: all 0.4s var(--ease-smooth);
}

[data-category]:not(.hidden) {
    opacity: 1;
    transform: scale(1);
    transition: all 0.5s var(--ease-premium);
}

/* Hero Stats Enhancement */
.archive-hero > div > div {
    transition: all 0.4s var(--ease-smooth);
}

.archive-hero > div > div:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.15);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .tier-1-card:hover,
    .tier-2-card:hover,
    .tier-3-card:hover {
        transform: none;
    }

    .archive-link:hover {
        gap: 8px !important;
        transform: none;
    }

    .tier-2-card:hover .what-it-proves {
        margin: 20px 0 0 0;
        padding: 15px 0;
    }
}

/* Print Optimizations */
@media print {
    .tier-1-card,
    .tier-2-card,
    .tier-3-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
}
