.tech-experience-container {
    width: 100%;
    height: 100vh;
    background-color: #000;
    overflow: hidden;
}

.tech-experience-grid {
    width: 100%;
    height: 100%;
}

.tech-experience-cards {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: 100%;
}

.tech-experience-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 50.5px 50px;
    flex-shrink: 0;
}

/* 윗줄 2개 */
.tech-card-1,
.tech-card-2 {
    width: 50%;
    height: 50%;
}

/* 아랫줄 3개 */
.tech-card-3,
.tech-card-4,
.tech-card-5 {
    width: 33.333%;
    height: 50%;
}

/* 각 카드 배경 이미지 */
.tech-card-1 {
    background-image: url('/assets/img/tech_experience/ai_wtp.png');
}

.tech-card-2 {
    background-image: url('/assets/img/tech_experience/wtp_dt.png');
}

.tech-card-3 {
    background-image: url('/assets/img/tech_experience/pipe_dt.png');
}

.tech-card-4 {
    background-image: url('/assets/img/tech_experience/water-NET.png');
}

.tech-card-5 {
    background-image: url('/assets/img/tech_experience/asset_mgmt.png');
}

.tech-experience-content {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.tech-experience-title {
    font-family: Pretendard, sans-serif;
    font-weight: 600;
    font-size: 56px;
    font-style: normal;
    line-height: normal;
    color: #FFFFFF;
}

.tech-experience-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #FFFFFF;
    font-family: Pretendard, sans-serif;
    font-weight: 400;
    font-size: 36px;
    font-style: normal;
    line-height: normal;
    transition: opacity 0.3s ease;
}

.tech-experience-link:hover {
    opacity: 0.8;
}

.tech-experience-arrow {
    width: 36px;
    height: 36px;
}

/* 반응형 */
@media (max-width: 1600px) {
    .tech-experience-title {
        font-size: 48px;
    }

    .tech-experience-link {
        font-size: 30px;
    }

    .tech-experience-arrow {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 1200px) {
    .tech-experience-card {
        padding: 30px 40px;
    }

    .tech-experience-title {
        font-size: 40px;
    }

    .tech-experience-link {
        font-size: 24px;
    }

    .tech-experience-arrow {
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 768px) {
    .tech-card-1,
    .tech-card-2,
    .tech-card-3,
    .tech-card-4,
    .tech-card-5 {
        width: 100%;
        height: 20%;
    }

    .tech-experience-card {
        padding: 20px 30px;
    }

    .tech-experience-title {
        font-size: 32px;
    }

    .tech-experience-link {
        font-size: 20px;
    }
}

/* 풀스크린 모달 */
.tech-experience-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 9999;
}

.tech-experience-modal.active {
    display: block;
}

.tech-experience-modal iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.tech-experience-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.tech-experience-modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* 하이라이트 효과 */
.tech-experience-card.highlighted {
    position: relative;
    box-shadow:
        0 0 60px rgba(148, 212, 255, 0.8),
        0 0 120px rgba(148, 212, 255, 0.4),
        inset 0 0 40px rgba(255, 255, 255, 0.5);
    animation: highlightPulse 2s ease-in-out infinite;
    z-index: 10;
}

.tech-experience-card.highlighted::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(148, 212, 255, 0.3) 0%,
        rgba(148, 212, 255, 0.1) 50%,
        rgba(148, 212, 255, 0.3) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.tech-experience-card.highlighted .tech-experience-content {
    position: relative;
    z-index: 2;
}

/* 딤처리 효과 */
.tech-experience-card.dimmed {
    opacity: 0.35;
    transition: opacity 0.5s ease;
}

/* 하이라이트 펄스 애니메이션 */
@keyframes highlightPulse {
    0%, 100% {
        box-shadow:
            0 0 60px rgba(148, 212, 255, 0.8),
            0 0 120px rgba(148, 212, 255, 0.4),
            inset 0 0 40px rgba(255, 255, 255, 0.5);
    }
    50% {
        box-shadow:
            0 0 80px rgba(148, 212, 255, 1),
            0 0 140px rgba(148, 212, 255, 0.6),
            inset 0 0 50px rgba(255, 255, 255, 0.6);
    }
}
