/* Enhanced Styles for Applications Stories Page */

/* Story Sections */
.story-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    margin: 40px 0;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.story-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.story-header {
    text-align: center;
    margin-bottom: 60px;
}

.story-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-intro {
    font-size: 1.3rem;
    color: #6c757d;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Comic Panel Styles */
.story-comic {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 3px solid #667eea;
}

.comic-panel {
    margin-bottom: 40px;
    background: #fefefe;
    border-radius: 10px;
    padding: 25px;
    border: 2px solid #dee2e6;
    position: relative;
}

.comic-panel::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 10px;
    z-index: -1;
}

.panel-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-weight: 600;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.panel-description {
    line-height: 1.7;
    color: #495057;
}

.panel-description strong {
    color: #667eea;
}

/* User Profile Cards */
.user-profile {
    margin: 40px 0;
}

.profile-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-left: 5px solid #667eea;
}

.profile-card h4 {
    color: #667eea;
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.profile-card p {
    margin-bottom: 15px;
    line-height: 1.6;
}

.profile-card strong {
    color: #495057;
}

/* Breakthrough Section */
.breakthrough-moment {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 50px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
}

.breakthrough-moment h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
}

.breakthrough-moment p {
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Process Steps */
.matching-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.process-step {
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.process-step h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #fff;
}

/* Results Stats */
.results {
    margin: 50px 0;
}

.result-stats {
    text-align: center;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.result-stats h4 {
    color: #667eea;
    font-size: 1.8rem;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 10px;
}

.stat .label {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Team Collaboration Styles */
.team-analysis {
    margin: 50px 0;
}

.conflict-visualization {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.personality-clash {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 40px;
    align-items: center;
    margin: 30px 0;
}

.clash-side {
    text-align: center;
}

.clash-side h4 {
    color: #667eea;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.trait-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.badge {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge.high {
    background: #d4edda;
    color: #155724;
    border: 2px solid #28a745;
}

.badge.low {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #dc3545;
}

.badge.medium {
    background: #d1ecf1;
    color: #0c5460;
    border: 2px solid #17a2b8;
}

.vs-divider {
    font-size: 2rem;
    font-weight: 700;
    color: #667eea;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-quote {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 15px;
    font-style: italic;
    color: #495057;
    margin: 20px 0;
    border-left: 4px solid #667eea;
}

/* Solution Approach */
.solution-approach {
    margin: 40px 0;
}

.new-configuration {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 40px;
    border-radius: 20px;
    margin: 30px 0;
}

.new-configuration h4 {
    color: #155724;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.harmony-traits {
    display: grid;
    gap: 20px;
}

.trait-explanation {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.8);
    padding: 20px;
    border-radius: 15px;
}

.success-metrics {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.success-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.success-item {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
}

.success-item h5 {
    color: #667eea;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

/* Medical Crisis Styles */
.medical-analysis {
    margin: 50px 0;
}

.crisis-breakdown {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.crisis-moment {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    border-left: 5px solid #ffc107;
}

.crisis-moment h4 {
    color: #856404;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.ai-thought-bubble {
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin: 20px 0;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.ai-thought-bubble::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid white;
}

.doctor-reaction {
    color: #dc3545;
    font-weight: 600;
    font-style: italic;
    margin-top: 15px;
}

.personality-analysis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.problem-traits, .ideal-traits {
    padding: 30px;
    border-radius: 15px;
}

.problem-traits {
    background: #f8d7da;
    border: 2px solid #dc3545;
}

.ideal-traits {
    background: #d4edda;
    border: 2px solid #28a745;
}

.problem-traits h4, .ideal-traits h4 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.problem-traits h4 {
    color: #721c24;
}

.ideal-traits h4 {
    color: #155724;
}

/* Table Styles */
.comparison-table {
    overflow-x: auto;
    margin: 30px 0;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #dee2e6;
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

/* Life-Saving Results */
.life-saving-results {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
}

.life-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.life-stat {
    text-align: center;
    background: rgba(255,255,255,0.9);
    padding: 30px;
    border-radius: 15px;
}

.life-stat .number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 10px;
}

.doctor-testimonial {
    margin: 40px 0;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.doctor-testimonial blockquote {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #495057;
    font-style: italic;
    margin-bottom: 20px;
}

.doctor-testimonial cite {
    color: #667eea;
    font-weight: 600;
    font-style: normal;
}

/* Education Styles */
.education-transformation {
    margin: 50px 0;
}

.learning-analysis {
    display: grid;
    gap: 40px;
}

.jake-profile {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.jake-profile h4 {
    color: #667eea;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.learning-traits {
    display: grid;
    gap: 20px;
}

.trait {
    background: rgba(102, 126, 234, 0.1);
    padding: 20px;
    border-radius: 15px;
    border-left: 4px solid #667eea;
}

.trait-name {
    display: block;
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.ai-customization {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
}

.custom-features {
    display: grid;
    gap: 25px;
    margin-top: 30px;
}

.feature {
    background: rgba(255,255,255,0.1);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.transformation-results {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.results-timeline {
    position: relative;
    padding-left: 30px;
    margin: 40px 0;
}

.results-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
}

.timeline-item {
    position: relative;
    margin-bottom: 30px;
    padding-left: 40px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -42px;
    top: 5px;
    width: 15px;
    height: 15px;
    background: #667eea;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 3px #667eea;
}

.timeline-item .time {
    font-weight: 600;
    color: #667eea;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.final-stats {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
}

.stats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 10px;
}

.mother-testimonial {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 40px;
    border-radius: 20px;
    margin: 40px 0;
    text-align: center;
}

.mother-testimonial blockquote {
    font-size: 1.3rem;
    line-height: 1.7;
    color: #495057;
    font-style: italic;
    margin-bottom: 20px;
}

.mother-testimonial cite {
    color: #667eea;
    font-weight: 600;
    font-style: normal;
}

/* Applications Summary */
.applications-summary {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.summary-header h2 {
    font-size: 2.8rem;
    margin-bottom: 25px;
}

.summary-header p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 50px;
}

.industry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.industry-card {
    background: rgba(255,255,255,0.1);
    padding: 40px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    text-align: center;
    transition: transform 0.3s ease;
}

.industry-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.industry-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.industry-card p {
    opacity: 0.9;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
}

.card-stats span {
    background: rgba(255,255,255,0.2);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .story-header h2 {
        font-size: 2.2rem;
    }
    
    .personality-clash {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .vs-divider {
        order: -1;
        margin: 20px auto;
    }
    
    .personality-analysis {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .stats-showcase {
        grid-template-columns: 1fr;
    }
    
    .industry-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Scroll animations */
.story-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.story-card.visible {
    opacity: 1;
    transform: translateY(0);
}