/* History Section Styles */
.history-section {
    padding: 5rem 0;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="20" r="1" fill="rgba(0,123,255,0.015)"/><circle cx="90" cy="80" r="1.5" fill="rgba(0,123,255,0.02)"/><circle cx="30" cy="70" r="0.8" fill="rgba(0,123,255,0.018)"/><circle cx="70" cy="30" r="1.2" fill="rgba(0,123,255,0.012)"/></svg>') repeat;
    opacity: 0.3;
    animation: float-history 30s ease-in-out infinite;
}

@keyframes float-history {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(90deg); }
}

.history-content {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.history-intro {
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.05) 0%, rgba(var(--primary-rgb), 0.02) 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.history-intro::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(var(--primary-rgb), 0.03) 100%);
    opacity: 0.5;
}

.history-intro p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.history-intro p:last-child {
    margin-bottom: 0;
}

.history-timeline {
    position: relative;
}

.timeline-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 2rem;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    border: 3px solid var(--bg-white);
    box-shadow: 0 2px 8px rgba(var(--primary-rgb), 0.3);
}

.timeline-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    background: var(--bg-white);
}

.timeline-year {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: inline-block;
    background: rgba(var(--primary-rgb), 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    border: 1px solid rgba(var(--primary-rgb), 0.2);
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

.history-subtitle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin: 3rem 0 2rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-subtitle::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 2px;
    background: var(--primary-color);
    border-radius: 1px;
}

.history-image {
    text-align: center;
    margin: 2rem auto;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    max-width: 600px;
}

.history-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.history-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.history-image-caption {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .history-section {
        padding: 3rem 0;
    }
    
    .history-content {
        padding: 0 1rem;
    }
    
    .history-intro {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .history-intro p {
        font-size: 1rem;
        margin-bottom: 1.25rem;
    }
    
    .timeline-item {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .timeline-item:hover {
        transform: translateX(4px);
    }
    
    .timeline-year {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .timeline-content p {
        font-size: 0.95rem;
        margin-bottom: 0.8rem;
    }
    
    .history-subtitle {
        font-size: 1.3rem;
        margin: 2rem 0 1.5rem;
        letter-spacing: 0.5px;
    }
    
    .history-image {
        margin: 1.5rem auto;
        padding: 1rem;
        max-width: 500px;
    }
    
    .history-image img {
        max-width: 400px;
    }
}

@media (max-width: 480px) {
    .history-section {
        padding: 2rem 0;
    }
    
    .history-content {
        padding: 0 1.5rem;
    }
    
    .history-intro {
        padding: 1.5rem;
        border-left-width: 3px;
    }
    
    .history-intro p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }
    
    .timeline-item {
        padding: 1.25rem;
        border-left-width: 2px;
    }
    
    .timeline-item::before {
        left: -6px;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
    
    .timeline-year {
        font-size: 1rem;
        padding: 0.25rem 0.6rem;
    }
    
    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .history-subtitle {
        font-size: 1.2rem;
        letter-spacing: 0.3px;
    }
    
    .history-image {
        padding: 0.8rem;
        max-width: 400px;
    }
    
    .history-image img {
        max-width: 350px;
    }
    
    .history-image-caption {
        font-size: 0.85rem;
    }
} 