/* History Page Styles */

:root {
    --history-primary: #F97316;
    --history-secondary: #FB923C;
    --history-accent: #FBBF24;
    --history-text: #1F2937;
    --history-text-light: #6B7280;
    --history-bg: #FFFFFF;
    --history-bg-secondary: #F9FAFB;
    --history-border: #E5E7EB;
    --history-success: #10B981;
    --history-warning: #F59E0B;
    --history-info: #3B82F6;
}

[data-theme="dark"] {
    --history-primary: #F97316;
    --history-secondary: #FB923C;
    --history-accent: #FBBF24;
    --history-text: #F9FAFB;
    --history-text-light: #D1D5DB;
    --history-bg: #111827;
    --history-bg-secondary: #1F2937;
    --history-border: #374151;
    --history-success: #34D399;
    --history-warning: #FBBF24;
    --history-info: #60A5FA;
}

/* Hero Section */
.history-hero-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--history-primary) 0%, var(--history-secondary) 100%);
    position: relative;
    overflow: hidden;
    color: white;
}

.history-hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 30%, rgba(249, 115, 22, 0.3) 0%, transparent 50%);
}

.history-hero-section .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    margin-bottom: 30px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.text-gradient {
    background: linear-gradient(45deg, #ffffff, #f1f5f9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(255,255,255,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: #e2e8f0;
}

.hero-milestones {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 40px;
    flex-wrap: wrap;
}

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

.milestone-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: #FBBF24;
    margin-bottom: 8px;
}

.milestone-label {
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 500;
}

.milestone-divider {
    width: 40px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

/* Founder Story Section */
.founder-story-section {
    padding: 100px 0;
    background: var(--history-bg-secondary);
}

.founder-image {
    position: relative;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease;
}

.founder-image:hover {
    transform: translateY(-10px);
}

.founder-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 40px 30px 30px;
    color: white;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.founder-image:hover .image-overlay {
    transform: translateY(0);
}

.founder-image:hover img {
    transform: scale(1.05);
}

.founder-quote {
    text-align: center;
}

.founder-quote i {
    font-size: 2rem;
    color: var(--history-accent);
    margin-bottom: 15px;
}

.founder-quote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.6;
}

.founder-quote span {
    font-weight: 600;
    color: var(--history-accent);
}

.story-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--history-text);
    margin-bottom: 25px;
}

.story-intro {
    font-size: 1.2rem;
    color: var(--history-text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.story-details {
    margin-top: 40px;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
    padding: 25px;
    background: var(--history-bg);
    border-radius: 15px;
    border: 1px solid var(--history-border);
    transition: all 0.3s ease;
}

.detail-item:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.detail-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--history-primary), var(--history-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.detail-icon i {
    color: white;
    font-size: 1.5rem;
}

.detail-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--history-text);
    margin-bottom: 10px;
}

.detail-content p {
    color: var(--history-text-light);
    line-height: 1.6;
}

/* Interactive Timeline Section */
.interactive-timeline-section {
    padding: 100px 0;
    background: var(--history-bg);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--history-text);
    margin-bottom: 20px;
}

.section-description {
    font-size: 1.2rem;
    color: var(--history-text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--history-primary), var(--history-secondary));
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    width: 48%;
    transition: all 0.4s ease;
}

.timeline-item.left {
    left: 0;
    padding-right: 40px;
}

.timeline-item.right {
    left: 52%;
    padding-left: 40px;
}

.timeline-item:hover {
    transform: scale(1.02);
}

.timeline-item.highlight-active {
    transform: scale(1.05);
}

.timeline-marker {
    position: absolute;
    top: 30px;
    width: 80px;
    height: 80px;
    background: var(--history-bg);
    border: 4px solid var(--history-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.4s ease;
    cursor: pointer;
}

.timeline-item.left .timeline-marker {
    right: -40px;
}

.timeline-item.right .timeline-marker {
    left: -40px;
}

.timeline-marker:hover {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
}

.timeline-marker.milestone {
    border-color: var(--history-accent);
    background: linear-gradient(135deg, var(--history-accent), #F59E0B);
    color: white;
}

.marker-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--history-text);
    margin-bottom: 2px;
}

.timeline-marker.milestone .marker-year {
    color: white;
}

.marker-icon {
    font-size: 1.2rem;
    color: var(--history-text);
}

.timeline-marker.milestone .marker-icon {
    color: white;
}

.timeline-content {
    background: var(--history-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--history-border);
    transition: all 0.4s ease;
}

.timeline-content.highlight {
    border: 2px solid var(--history-accent);
    box-shadow: 0 25px 80px rgba(245, 158, 11, 0.2);
}

.timeline-content:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

.content-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.timeline-item:hover .content-image img {
    transform: scale(1.1);
}

.content-text {
    padding: 30px;
}

.content-text h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--history-text);
    margin-bottom: 15px;
}

.content-text p {
    color: var(--history-text-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.impact-stats {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--history-primary);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--history-text-light);
}

.achievement-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--history-success), #059669);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
}

.milestone-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 25px;
}

.milestone-stat {
    text-align: center;
    padding: 15px;
    background: var(--history-bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--history-border);
}

.milestone-stat .stat-number {
    font-size: 1.8rem;
    color: var(--history-accent);
}

/* Current Timeline Item */
.timeline-item.current .timeline-marker {
    background: linear-gradient(135deg, var(--history-primary), var(--history-secondary));
    border-color: var(--history-primary);
    animation: pulse 2s infinite;
}

.timeline-item.current .marker-year,
.timeline-item.current .marker-icon {
    color: white;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(249, 115, 22, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(249, 115, 22, 0);
    }
}

/* Impact Evolution Chart */
.impact-evolution-section {
    padding: 100px 0;
    background: var(--history-bg-secondary);
}

.evolution-chart {
    background: var(--history-bg);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--history-border);
    margin-top: 60px;
}

.chart-legend {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

.legend-color.children {
    background: linear-gradient(135deg, var(--history-primary), var(--history-secondary));
}

.legend-color.women {
    background: linear-gradient(135deg, var(--history-success), #059669);
}

.legend-color.programs {
    background: linear-gradient(135deg, var(--history-accent), #F59E0B);
}

.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 300px;
    padding: 20px;
    border-top: 2px solid var(--history-border);
    position: relative;
}

.chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: all 0.4s ease;
}

.chart-bar:hover {
    transform: scale(1.05);
}

.chart-bar.milestone .bar-group {
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
}

.chart-bar.current .bar-group {
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 10px 30px rgba(249, 115, 22, 0.3);
    }
    to {
        box-shadow: 0 15px 40px rgba(249, 115, 22, 0.5);
    }
}

.bar-group {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    align-items: flex-end;
}

.bar {
    width: 20px;
    border-radius: 10px 10px 0 0;
    transition: height 1.5s ease;
    position: relative;
    cursor: pointer;
}

.bar.children {
    background: linear-gradient(to top, var(--history-primary), var(--history-secondary));
}

.bar.women {
    background: linear-gradient(to top, var(--history-success), #059669);
}

.bar.programs {
    background: linear-gradient(to top, var(--history-accent), #F59E0B);
}

.bar:hover::after {
    content: attr(data-value);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--history-text);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 600;
    white-space: nowrap;
}

.bar-label {
    font-weight: 600;
    color: var(--history-text);
    font-size: 0.9rem;
}

/* Future Vision Section */
.future-vision-section {
    padding: 100px 0;
    background: var(--history-bg);
}

.vision-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--history-text);
    margin-bottom: 25px;
}

.vision-intro {
    font-size: 1.2rem;
    color: var(--history-text-light);
    line-height: 1.8;
    margin-bottom: 40px;
}

.future-goals {
    margin-top: 40px;
}

.goal-card {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: var(--history-bg-secondary);
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--history-border);
    transition: all 0.3s ease;
}

.goal-card:hover {
    transform: translateX(15px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.goal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--history-primary), var(--history-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.goal-icon i {
    color: white;
    font-size: 1.5rem;
}

.goal-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--history-text);
    margin-bottom: 8px;
}

.goal-content p {
    color: var(--history-text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

.goal-timeline {
    display: inline-block;
    background: var(--history-accent);
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.vision-visual {
    position: relative;
}

.vision-image {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    margin-bottom: 30px;
}

.vision-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.vision-stats {
    display: flex;
    justify-content: space-around;
    gap: 20px;
}

.vision-stat {
    text-align: center;
    padding: 20px;
    background: var(--history-bg-secondary);
    border-radius: 15px;
    border: 1px solid var(--history-border);
    flex: 1;
    transition: transform 0.3s ease;
}

.vision-stat:hover {
    transform: translateY(-10px);
}

.vision-stat .stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--history-primary);
    margin-bottom: 8px;
}

.vision-stat .stat-label {
    font-size: 0.9rem;
    color: var(--history-text-light);
    font-weight: 500;
}

/* Call to Action Section */
.history-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--history-primary), var(--history-secondary));
    color: white;
    text-align: center;
}

.cta-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    backdrop-filter: blur(10px);
}

.cta-icon i {
    font-size: 3rem;
    color: white;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-white {
    background: white;
    color: var(--history-primary);
    border-color: white;
}

.btn-white:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--history-primary);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline-line {
        left: 30px;
        transform: none;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 80px !important;
        padding-right: 0 !important;
    }
    
    .timeline-marker {
        left: 0 !important;
        right: auto !important;
    }
    
    .chart-container {
        padding: 10px;
    }
    
    .chart-legend {
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-milestones {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .milestone-divider {
        width: 2px;
        height: 20px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .timeline-item {
        padding-left: 60px !important;
    }
    
    .timeline-marker {
        width: 60px;
        height: 60px;
    }
    
    .content-text {
        padding: 20px;
    }
    
    .impact-stats {
        flex-direction: column;
        gap: 15px;
    }
    
    .milestone-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .chart-legend {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .chart-container {
        height: 250px;
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .vision-stats {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .detail-item,
    .goal-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .timeline-item {
        padding-left: 40px !important;
    }
    
    .timeline-marker {
        width: 50px;
        height: 50px;
        left: -25px !important;
    }
    
    .marker-year {
        font-size: 0.7rem;
    }
    
    .marker-icon {
        font-size: 1rem;
    }
    
    .content-text {
        padding: 15px;
    }
    
    .evolution-chart {
        padding: 20px;
    }
    
    .cta-content h2 {
        font-size: 2.5rem;
    }
    
    .hero-milestones .milestone-number {
        font-size: 2rem;
    }
}