/* Company History Page Specific Styles */

/* History Hero */
.history-hero {
     background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                url('../assets/Caspy-pix/CaspyTechGASF.png');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
 padding: clamp(80px, 12vh, 140px) 20px;

}

.history-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}



.history-hero h1 {
     color: white;
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
}

.history-hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
}

.history-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
}

.history-stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(255, 107, 0, 0.3);
}

.stat-label {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Timeline Section */
.timeline-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 100px 0;
}

.timeline {
    max-width: 1200px;
    margin: 60px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 50%;
    position: relative;
    margin-bottom: 60px;
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: 50%;
}

.timeline-year {
    position: absolute;
    top: 20px;
    width: 80px;
    height: 80px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 2;
    right: calc(50% - 40px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.timeline-item:nth-child(even) .timeline-year {
    right: auto;
    left: calc(50% - 40px);
}

.timeline-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 500px;
    position: relative;
    border-left: 5px solid var(--primary-color);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 5px solid var(--accent-color);
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.timeline-icon i {
    font-size: 1.8rem;
    color: white;
}

.timeline-content h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.timeline-highlights {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.timeline-highlights span {
    background: var(--light-gray);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.timeline-highlights i {
    color: var(--accent-color);
}

/* Corporate Profile */
.corporate-profile {
    padding: 100px 0;
}

.profile-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-top: 50px;
}

.profile-text h3 {
    color: var(--primary-color);
    margin-bottom: 25px;
    font-size: 2rem;
}

.profile-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 30px;
}

.profile-features {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.profile-feature {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.profile-feature i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.profile-feature h4 {
    color: var(--primary-color);
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.profile-feature p {
    margin: 0;
    font-size: 0.95rem;
}

.profile-image {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
}

.profile-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.image-caption i {
    color: var(--accent-color);
}

/* KPI Section */
.kpi-section {
    margin-top: 80px;
    text-align: center;
}

.kpi-section h3 {
    color: var(--primary-color);
    margin-bottom: 50px;
    font-size: 2rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.kpi-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.kpi-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.kpi-value {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

.kpi-label {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Leadership Section */
.leadership-section {
    padding: 100px 0;
}

.leadership-timeline {
    max-width: 1000px;
    margin: 60px auto 0;
    display: grid;
    gap: 40px;
}

.leadership-era {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.era-header {
    background: var(--primary-color);
    color: white;
    padding: 25px 30px;
}

.era-header h3 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    color: white;
}

.era-header h4 {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.era-content {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.era-leader {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.leader-avatar {
    width: 80px;
    height: 80px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.leader-avatar i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.leader-info h5 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.leader-info p {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.era-achievements h6 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.era-achievements ul {
    list-style: none;
    padding: 0;
}

.era-achievements li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.era-achievements i {
    color: var(--accent-color);
}

/* Values Section */
.values-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.value-card {
    background: white;
    padding: 40px 35px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.value-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.value-icon i {
    font-size: 2.5rem;
    color: white;
}

.value-card h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.value-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 25px;
}

.value-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
}

.value-stats span {
    background: var(--light-gray);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.value-stats i {
    color: var(--accent-color);
}

/* Future CTA Section */
.future-cta-section {
    position: relative;
    padding: 120px 0;
    color: white;
    overflow: hidden;
}
.future-cta-bg {
    position: absolute;
    inset: 0;

    background-image: url("/assets/Caspy-pix/CaspyTechGASF.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 0;              /* 🔥 KEY FIX */
    filter: brightness(0.4);
}


.future-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.4);
}

.future-cta-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.future-cta-text h2 {
    color: white;
    font-size: 3rem;
    margin-bottom: 30px;
}

.future-cta-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.95);
}

.future-initiatives {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.initiative {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.initiative i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.initiative h4 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.3rem;
}

.initiative p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.future-cta-actions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.future-cta-actions h3 {
    color: white;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2rem;
}

.cta-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.cta-buttons-group .btn {
    width: 100%;
    justify-content: center;
}

.cta-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

.contact-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.contact-item h5 {
    color: white;
    margin-bottom: 5px;
    font-size: 1.1rem;
}

.contact-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .profile-content {
        grid-template-columns: 1fr;
    }
    
    .future-cta-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 992px) {
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        justify-content: flex-start;
        padding-right: 0;
        padding-left: 80px;
    }
    
    .timeline-year {
        left: 0;
        right: auto;
    }
    
    .timeline-item:nth-child(even) .timeline-year {
        left: 0;
    }
    
    .era-content {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .history-stats {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .history-hero h1 {
        font-size: 2.5rem;
    }
    
    .history-hero p {
        font-size: 1.1rem;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .future-cta-text h2 {
        font-size: 2.2rem;
    }
    
    .future-cta-text p {
        font-size: 1.1rem;
    }
    
    .timeline-content {
        padding: 25px;
    }
    
    .timeline-highlights {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 576px) {
    .history-hero {
        height: 70vh;
    }
    
    .history-hero h1 {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .kpi-value {
        font-size: 2.8rem;
    }
    
    .future-cta-actions {
        padding: 30px 20px;
    }
}