/* ===========================================
   REDESIGNED FITPULSE LANDING PAGE STYLES
   Modern, Clean, Story-Driven Layout
   =========================================== */

/* Updated color variables to match hero theme */
:root {
    --problem-accent: #44C4A4;
    --problem-accent-light: rgba(68, 196, 164, 0.1);
    --solution-accent: #30A69A;
    --solution-accent-light: rgba(48, 166, 154, 0.1);
    --gradient-primary: linear-gradient(135deg, #44C4A4 0%, #30A69A 100%);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 12px 48px rgba(0, 0, 0, 0.15);
}

/* ===========================================
   1. PROBLEMS SECTION STYLES
   =========================================== */

.problems {
    background: linear-gradient(135deg, var(--problem-accent-light) 0%, rgba(68, 196, 164, 0.05) 100%);
    position: relative;
    overflow: hidden;
}

.problems::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(68, 196, 164, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(68, 196, 164, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.problem-card {
    background: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(68, 196, 164, 0.1);
    position: relative;
    overflow: hidden;
}

.problem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.problem-card:hover::before {
    transform: scaleX(1);
}

.problem-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(68, 196, 164, 0.2);
}

.problem-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--problem-accent-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.problem-icon i {
    font-size: 2rem;
    color: var(--problem-accent);
}

.problem-card:hover .problem-icon {
    background: var(--problem-accent);
    transform: scale(1.1);
}

.problem-card:hover .problem-icon i {
    color: var(--white);
}

.problem-card h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.problem-card p {
    color: var(--light-text);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.problem-stats {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--problem-accent);
    line-height: 1;
}

.stat-text {
    font-size: 0.9rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===========================================
   2. SOLUTIONS SECTION STYLES
   =========================================== */

.solutions {
    background: var(--white);
    position: relative;
}

.solutions-list {
    max-width: 1000px;
    margin: 0 auto;
}

.solution-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
    padding: 3rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(68, 196, 164, 0.1);
}

.solution-item:nth-child(even) {
    background: linear-gradient(135deg, rgba(68, 196, 164, 0.02) 0%, rgba(48, 166, 154, 0.01) 100%);
}

.solution-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(68, 196, 164, 0.2);
}

.solution-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 400px;
}

.solution-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.solution-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.solution-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.solution-text h3 {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.solution-problem {
    font-size: 0.9rem;
    color: var(--problem-accent);
    font-weight: 600;
    margin: 0;
}

.solution-problem span {
    font-weight: 700;
}

.solution-description p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: left;
}

.solution-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
}

.solution-benefits li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: var(--light-text);
    font-size: 0.95rem;
}

.solution-benefits i {
    color: var(--primary);
    font-size: 0.8rem;
}

.solution-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.solution-screenshot {
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.4s ease;
}

.solution-item:hover .solution-screenshot {
    transform: scale(1.05);
    box-shadow: 0 16px 56px rgba(0, 0, 0, 0.2);
}

/* ===========================================
   3. ASPIRATIONAL STORIES SECTION
   =========================================== */

.stories {
    background: linear-gradient(135deg, rgba(68, 196, 164, 0.03) 0%, rgba(48, 166, 154, 0.01) 100%);
    position: relative;
}

.stories::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 25% 75%, rgba(68, 196, 164, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 75% 25%, rgba(48, 166, 154, 0.03) 0%, transparent 50%);
    z-index: -1;
}

.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    overflow: hidden;
}

.story-card {
    background: var(--white);
    padding: 1.8rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    border: 1px solid rgba(68, 196, 164, 0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.story-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.story-card:hover::before {
    transform: scaleX(1);
}

.story-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(68, 196, 164, 0.2);
}

.story-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    flex-shrink: 0;
}

.story-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.story-card:hover .story-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 32px rgba(68, 196, 164, 0.3);
}

.story-card h3 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.story-card p {
    color: var(--light-text);
    line-height: 1.7;
    font-size: 1rem;
    flex: 1;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    min-height: 120px;
}

.story-metrics {
    padding-top: 1.5rem;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}

.metric {
    display: inline-block;
}

.metric-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.9rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ===========================================
   4. ENHANCED CTA SECTION
   =========================================== */

.cta-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(68, 196, 164, 0.2);
}

.cta-benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1rem;
}

.cta-benefit i {
    color: var(--primary);
    font-size: 1.2rem;
}

/* ===========================================
   5. RESPONSIVE DESIGN
   =========================================== */

@media (max-width: 1024px) {
    .solution-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .solution-content,
    .solution-visual {
        min-height: auto;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
    }
    
    .stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .story-card {
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .problems-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 100%;
    }
    
    .solution-item {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
        /* Change order on mobile: content first, then visual */
        display: flex;
        flex-direction: column;
    }
    
    .solution-content {
        order: 1; /* Content comes first */
    }
    
    .solution-visual {
        order: 2; /* Visual comes second */
    }
    
    .solution-screenshot {
        width: 70%; /* Make screenshot smaller on mobile */
        max-width: 70%;
    }
    
    .solution-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }
    
    .story-card {
        padding: 2.5rem 2rem;
        min-height: 320px;
    }
    
    .stories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .cta-benefits {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.25rem 1.5rem;
    }
    
    .problem-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .problem-card,
    .solution-item {
        padding: 1.5rem 1rem;
    }
    
    .problem-icon {
        width: 60px;
        height: 60px;
    }
    
    .problem-icon i {
        font-size: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .solution-header {
        gap: 0.75rem;
    }
    
    .solution-icon {
        width: 50px;
        height: 50px;
    }
    
    .solution-icon i {
        font-size: 1.25rem;
    }
    
    .story-icon {
        width: 80px;
        height: 80px;
    }
    
    .story-icon i {
        font-size: 2rem;
    }
    
    .story-card {
        padding: 2rem 1.5rem;
        min-height: 300px;
    }
    
    .metric-value {
        font-size: 2rem;
    }
    
    .cta-benefits {
        padding: 1rem;
    }
    
    .cta-benefit {
        font-size: 0.9rem;
    }
}

/* ===========================================
   6. ACCESSIBILITY IMPROVEMENTS
   =========================================== */

@media (prefers-reduced-motion: reduce) {
    .problem-card,
    .solution-item,
    .story-card {
        transition: none;
    }
    
    .problem-card:hover,
    .solution-item:hover,
    .story-card:hover {
        transform: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .problem-card,
    .solution-item,
    .story-card {
        border-width: 2px;
        border-color: var(--dark-text);
    }
    
    .problem-icon,
    .solution-icon,
    .story-icon {
        border: 2px solid var(--dark-text);
    }
}

/* ===========================================
   7. ANIMATION ENHANCEMENTS
   =========================================== */

.fade-in.visible .problem-card,
.fade-in.visible .solution-item,
.fade-in.visible .story-card {
    animation: slideInUp 0.8s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.problem-card:nth-child(1) { animation-delay: 0.1s; }
.problem-card:nth-child(2) { animation-delay: 0.2s; }
.problem-card:nth-child(3) { animation-delay: 0.3s; }
.problem-card:nth-child(4) { animation-delay: 0.4s; }

.story-card:nth-child(1) { animation-delay: 0.1s; }
.story-card:nth-child(2) { animation-delay: 0.2s; }
.story-card:nth-child(3) { animation-delay: 0.3s; } 