/* ============================================
   Problem Statement Section - Zencia.AI
   Matching Hero Section Theme
   ============================================ */

/* ===== PROBLEM SECTION CONTAINER ===== */
.problem-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-dark);
    overflow: hidden;
    padding: 120px 0;
}

/* Animated gradient overlay - matching hero */
.problem-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 217, 213, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(0, 139, 139, 0.15) 0%, transparent 50%);
    animation: gradientShift 15s ease-in-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes gradientShift {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(50px, 30px) scale(1.1);
        opacity: 0.8;
    }
}

/* Floating particles effect - matching hero */
.problem-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 217, 213, 0.5) 50%, 
        transparent 100%);
    z-index: 1;
}

.problem-section .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* ===== PROBLEM CONTENT LAYOUT ===== */
.problem-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    animation: fadeInUp 1s ease-out;
}

/* ===== LEFT SIDE - PROBLEM LIST ===== */
.problem-left {
    position: relative;
}

.problem-icon {
    width: 80px;
    height: 80px;
    background: rgba(0, 217, 213, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 213, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.2);
    animation: float 20s infinite ease-in-out;
    transition: all var(--transition-base);
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-10px) translateX(5px);
        opacity: 1;
    }
}

.problem-icon:hover {
    transform: translateY(-5px);
    background: rgba(0, 217, 213, 0.1);
    border-color: rgba(0, 217, 213, 0.3);
}

.problem-icon i {
    font-size: 2.5rem;
    color: var(--primary-teal);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 3rem;
    line-height: 1.2;
    letter-spacing: -2px;
}

.highlight-text {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 80px rgba(0, 217, 213, 0.5);
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

/* ===== PROBLEM LIST ===== */
.problem-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.problem-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    background: rgba(0, 217, 213, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 213, 0.1);
    border-radius: 15px;
    padding: 2rem;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.6s ease forwards;
}

.problem-item:nth-child(1) {
    animation-delay: 0.2s;
}

.problem-item:nth-child(2) {
    animation-delay: 0.4s;
}

.problem-item:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.problem-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 213, 0.2), transparent);
    transition: left 0.5s;
    pointer-events: none;
}

.problem-item:hover::before {
    left: 100%;
}

.problem-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 217, 213, 0.1);
    border-color: rgba(0, 217, 213, 0.3);
    box-shadow: 0 10px 30px rgba(0, 217, 213, 0.2);
}

.problem-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--accent-turquoise) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    min-width: 60px;
    position: relative;
    z-index: 2;
}

.problem-text {
    flex: 1;
    position: relative;
    z-index: 2;
}

.problem-text h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.problem-text p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin: 0;
    font-weight: 400;
}

/* ===== RIGHT SIDE - FRUSTRATED USER ===== */
.problem-right {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.frustrated-user {
    position: relative;
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.problem-image {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 217, 213, 0.2);
    filter: drop-shadow(0 10px 30px rgba(0, 217, 213, 0.2));
    transition: all var(--transition-base);
}

.problem-image:hover {
    transform: scale(1.02);
    border-color: rgba(0, 217, 213, 0.4);
}

/* ===== THOUGHT BUBBLE ===== */
.thought-bubble {
    position: absolute;
    top: -80px;
    right: -60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 213, 0.2);
    border-radius: 15px;
    padding: 1.5rem 2rem;
    max-width: 320px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 5px 15px rgba(0, 217, 213, 0.2);
    animation: bubbleFloat 3s ease-in-out infinite;
}

@keyframes bubbleFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Bubble tail - circular dots */
.thought-bubble::before,
.thought-bubble::after {
    content: '';
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 217, 213, 0.2);
    border-radius: 50%;
}

.thought-bubble::before {
    width: 30px;
    height: 30px;
    bottom: -30px;
    left: 60px;
}

.thought-bubble::after {
    width: 20px;
    height: 20px;
    bottom: -50px;
    left: 40px;
}

.thought-bubble p {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #0a0e13;
    line-height: 1.7;
    font-style: italic;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .problem-content {
        gap: 3rem;
    }

    .thought-bubble {
        right: -20px;
        max-width: 280px;
    }
}

@media (max-width: 968px) {
    .section-title {
        letter-spacing: -1px;
    }
}

@media (max-width: 768px) {
    .problem-section {
        padding: 80px 0;
    }

    .problem-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .problem-left {
        order: 2;
    }

    .problem-right {
        order: 1;
    }

    .thought-bubble {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 2rem;
        max-width: 100%;
    }

    .thought-bubble::before,
    .thought-bubble::after {
        display: none;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    .problem-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1.5rem;
    }

    .problem-icon i {
        font-size: 2rem;
    }

    .problem-item {
        padding: 1.5rem;
    }

    .problem-number {
        font-size: 2rem;
        min-width: 50px;
    }
}

@media (max-width: 480px) {
    .problem-section .container {
        padding: 0 1rem;
    }

    .problem-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .problem-number {
        font-size: 1.8rem;
    }

    .problem-text h4 {
        font-size: 1.1rem;
    }

    .problem-text p {
        font-size: 0.95rem;
    }

    .thought-bubble {
        padding: 1rem 1.25rem;
    }

    .thought-bubble p {
        font-size: 0.9rem;
    }

    .problem-icon {
        width: 50px;
        height: 50px;
    }

    .problem-icon i {
        font-size: 1.5rem;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.problem-item:focus-within {
    outline: 2px solid var(--primary-teal);
    outline-offset: 4px;
}

/* ===== FLOATING PARTICLES MATCHING HERO ===== */
.problem-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.problem-particles .particle {
    position: absolute;
    background: var(--primary-teal);
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.problem-particles .particle:nth-child(1) {
    width: 4px;
    height: 4px;
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.problem-particles .particle:nth-child(2) {
    width: 6px;
    height: 6px;
    top: 60%;
    left: 80%;
    animation-delay: 2s;
}

.problem-particles .particle:nth-child(3) {
    width: 3px;
    height: 3px;
    top: 80%;
    left: 30%;
    animation-delay: 4s;
}

.problem-particles .particle:nth-child(4) {
    width: 5px;
    height: 5px;
    top: 40%;
    left: 70%;
    animation-delay: 6s;
}