/* Problems Section Enhanced Styles */
.problems-prb {
    padding: 120px 0;
    background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 50%, #fdbb2d 100%);
    position: relative;
    overflow: hidden;
    color: #fff;
    z-index: 1;
}

/* Background Elements */
.problems-prb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    animation: float 20s infinite linear;
    opacity: 0.3;
    z-index: -1;
}

/* Decorative Elements */
.problems-prb .decorative-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    z-index: -1;
}

.problems-prb .circle-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    animation: rotate 30s linear infinite;
}

.problems-prb .circle-2 {
    width: 200px;
    height: 200px;
    bottom: -100px;
    right: -100px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
    animation: rotate 20s linear infinite reverse;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Section Header */
.problems-prb .section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.problems-prb .section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.problems-prb .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #fdbb2d, #b21f1f);
    border-radius: 3px;
}

.problems-prb .section-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
}

/* Problems Grid */
.problems-prb .problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Problem Card */
.problems-prb .problem-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    z-index: 1;
}

.problems-prb .problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: -1;
}

.problems-prb .problem-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.problems-prb .problem-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fdbb2d;
    text-align: center;
    position: relative;
    display: flex;
    justify-content: center;
}

.problems-prb .problem-icon::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(253, 187, 45, 0.1);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.5); opacity: 0; }
}

.problems-prb .problem-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 600;
}

.problems-prb .problem-stats {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.problems-prb .stat {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    position: relative;
    padding-left: 15px;
}

.problems-prb .stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #fdbb2d;
    border-radius: 50%;
}

.problems-prb .problem-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin-top: auto;
}

/* Illustration Placeholders */
.problems-prb .illustration-container {
    position: absolute;
    z-index: -1;
    opacity: 0.1;
}

.problems-prb .illustration-energy-problem {
    width: 300px;
    height: 300px;
    top: 50px;
    right: -100px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffffff" d="M7,2V13H10V22L17,10H13L17,2H7Z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
    transform: rotate(15deg);
}

.problems-prb .illustration-map {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="%23ffffff" d="M15,19L9,16.89V5L15,7.11V19M20.5,3C20.44,3 20.39,3 20.34,3L15,5.1L9,3L3.36,4.9C3.15,4.97 3,5.15 3,5.38V20.5A0.5,0.5 0 0,0 3.5,21C3.55,21 3.61,21 3.66,20.97L9,18.9L15,21L20.64,19.1C20.85,19 21,18.85 21,18.62V3.5A0.5,0.5 0 0,0 20.5,3Z"/></svg>');
    background-repeat: no-repeat;
    background-size: contain;
}

/* Problem Detail Panel */
.problems-prb .problem-detail-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.problems-prb .problem-detail-panel.active {
    opacity: 1;
    visibility: visible;
}

.problems-prb .problem-detail-content {
    background: linear-gradient(135deg, #1a2a6c 0%, #b21f1f 100%);
    border-radius: 20px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: translateY(50px);
    opacity: 0;
    transition: all 0.5s ease;
}

.problems-prb .problem-detail-panel.active .problem-detail-content {
    transform: translateY(0);
    opacity: 1;
}

.problems-prb .close-detail {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
}

.problems-prb .close-detail:hover {
    color: #fff;
    transform: rotate(90deg);
}

.problems-prb .problem-detail-header {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}

.problems-prb .problem-detail-icon {
    font-size: 3rem;
    margin-right: 20px;
    color: #fdbb2d;
}

.problems-prb .problem-detail-title {
    font-size: 2rem;
    font-weight: 700;
}

.problems-prb .problem-detail-description {
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.problems-prb .problem-detail-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.problems-prb .detail-stat-item {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 15px;
    text-align: center;
}

.problems-prb .detail-stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: #fdbb2d;
    margin-bottom: 5px;
}

.problems-prb .detail-stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.problems-prb .problem-detail-chart {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    height: 200px;
    margin-bottom: 30px;
    position: relative;
}

.problems-prb .chart-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-align: center;
}

/* Call-to-action Button */
.problems-prb .problems-cta {
    text-align: center;
    margin-top: 60px;
    position: relative;
    z-index: 2;
}

.problems-prb .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.problems-prb .primary-button {
    background: linear-gradient(45deg, #fdbb2d, #b21f1f);
    color: #fff;
    border: none;
}

.problems-prb .primary-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.problems-prb .primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transition: all 0.6s ease;
}

.problems-prb .primary-button:hover::before {
    left: 100%;
}

.problems-prb .cta-button span {
    margin-right: 10px;
}

.problems-prb .cta-button i {
    font-size: 1.2rem;
}

/* Particle Animation */
.problem-particle {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    animation: float-particle 15s infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Animation for Problem Cards */
.problems-prb .problem-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.problems-prb .problem-card.animated {
    opacity: 1;
    transform: translateY(0);
}

.problems-prb .problem-card:nth-child(1) {
    transition-delay: 0.1s;
}

.problems-prb .problem-card:nth-child(2) {
    transition-delay: 0.3s;
}

.problems-prb .problem-card:nth-child(3) {
    transition-delay: 0.5s;
}

.problems-prb .problem-card:nth-child(4) {
    transition-delay: 0.7s;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .problems-prb {
        padding: 80px 0;
    }
    
    .problems-prb .section-title {
        font-size: 2rem;
    }
    
    .problems-prb .problem-detail-content {
        padding: 30px;
    }
    
    .problems-prb .problem-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .problems-prb .problem-detail-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .problems-prb .problem-detail-title {
        font-size: 1.5rem;
    }
}