/* 새로운 문제 섹션 레이아웃 */
.problems-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    margin-top: 3rem;
    position: relative;
}

/* 좌측 비주얼 영역 */
.problems-visual {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.problems-video {
    width: 100%;
    max-width: 380px;
    height: 500px;
    object-fit: cover;
    border-radius: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.12);
    animation: float 6s ease-in-out infinite;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(2deg); }
    75% { transform: translateY(20px) rotate(-2deg); }
}

/* 플로팅 이모지 요소들 */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-element {
    position: absolute;
    font-size: 2rem;
    animation: floatRandom 10s ease-in-out infinite;
    opacity: 0.7;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.float-element.el1 {
    top: 5%;
    left: 15%;
    animation-delay: 0s;
    font-size: 2.2rem;
}

.float-element.el2 {
    top: 15%;
    right: 10%;
    font-size: 2.5rem;
    animation-delay: 2s;
}

.float-element.el3 {
    bottom: 25%;
    left: 8%;
    animation-delay: 4s;
    font-size: 2.3rem;
}

.float-element.el4 {
    bottom: 15%;
    right: 15%;
    font-size: 1.8rem;
    animation-delay: 6s;
}

.float-element.el5 {
    top: 40%;
    left: 5%;
    font-size: 2rem;
    animation-delay: 8s;
}

@keyframes floatRandom {
    0%, 100% { transform: translate(0, 0) scale(1) rotate(0deg); }
    25% { transform: translate(20px, -30px) scale(1.1) rotate(10deg); }
    50% { transform: translate(-15px, 15px) scale(0.95) rotate(-5deg); }
    75% { transform: translate(25px, 20px) scale(1.05) rotate(5deg); }
}

/* 우측 콘텐츠 영역 */
.problems-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.problem-card {
    background: var(--focus-surface);
    border-radius: 24px;
    padding: 30px;
    position: relative;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--focus-border);
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(130deg, rgba(45, 42, 109, 0.08) 0%, rgba(95, 61, 196, 0.12) 100%);
    transition: width 0.4s ease;
}

.problem-card:hover::before {
    width: 100%;
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px var(--focus-glow);
    border-color: rgba(95, 61, 196, 0.28);
}

.problem-card.active {
    background: linear-gradient(140deg, var(--focus-gradient-start) 0%, var(--focus-gradient-end) 100%);
    color: white;
    transform: translateY(-10px);
    box-shadow: 0 35px 80px var(--focus-glow);
    border-color: transparent;
}

.card-number {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(45, 42, 109, 0.12);
    z-index: 1;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.problem-card.active .card-number {
    color: rgba(255, 255, 255, 0.28);
    opacity: 1;
}

.card-content {
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: rgba(30, 33, 48, 0.92);
    transition: color 0.3s ease;
}

.problem-card:hover h3 {
    color: rgba(30, 33, 48, 1);
}

.problem-card.active h3 {
    color: white;
}

.card-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(30, 33, 48, 0.64);
    margin: 0;
    transition: color 0.3s ease;
}

.problem-card.active p {
    color: rgba(255, 255, 255, 0.82);
}

.card-accent {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--focus-accent);
    transition: width 0.4s ease, background 0.3s ease;
}

.problem-card:hover .card-accent {
    width: 100%;
}

.problem-card.active .card-accent {
    background: rgba(241, 194, 125, 0.8);
    width: 100%;
}

/*

/* 반응형 문제 섹션 */
@media (max-width: 1024px) {
    .problems-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .problems-visual {
        height: 400px;
    }
    
    .problems-video {
        max-width: 300px;
        height: 350px;
    }
}

@media (max-width: 640px) {
    .problems-visual {
        height: 300px;
    }
    
    .problems-video {
        max-width: 200px;
        height: 250px;
    }
    
    .float-element {
        font-size: 1.5rem;
    }
    
    .problem-card {
        padding: 20px;
    }
    
    .card-number {
        font-size: 2rem;
        top: 20px;
        right: 20px;
    }
    
    .card-content h3 {
        font-size: 1.1rem;
    }
}