/* ===================================
   MAGPYEHUB LTD - ABOUT PAGE STYLES
   Heritage story and company culture
   =================================== */

/* ========== STORY HERO ========== */
.story-hero {
    position: relative;
    padding: 140px 0 100px;
    background: linear-gradient(135deg, var(--cream), var(--light-cream));
    overflow: hidden;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.story-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.story-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.85), 
        rgba(220, 20, 60, 0.75), 
        rgba(34, 139, 34, 0.85));
    opacity: 0.9;
}

.story-hero .hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
}

.story-hero .container {
    position: relative;
    z-index: 2;
}

.story-hero .breadcrumb {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    font-size: 0.9rem;
    color: white;
}

.story-hero .breadcrumb a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.story-hero .breadcrumb a:hover {
    opacity: 1;
}

.story-hero .breadcrumb i {
    opacity: 0.6;
    font-size: 0.8rem;
}

.story-hero .hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    color: white;
    margin-bottom: 32px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.story-hero .heritage-text {
    display: block;
    font-size: 0.6em;
    font-weight: 400;
    opacity: 0.9;
    margin-bottom: 8px;
}

.story-hero .main-text {
    display: block;
    font-weight: 700;
    background: linear-gradient(45deg, var(--ghana-gold), var(--warm-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.story-hero .hero-subtitle {
    font-size: 1.4rem;
    color: white;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 48px;
    line-height: 1.7;
    text-align: center;
}

.hero-timeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
}

.timeline-marker {
    text-align: center;
    color: white;
    position: relative;
}

.timeline-marker .year {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ghana-gold);
    margin-bottom: 8px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

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

.timeline-line {
    flex: 1;
    height: 3px;
    background: linear-gradient(90deg, var(--ghana-gold), var(--warm-gold));
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ========== FOUNDERS STORY ========== */
.founders-story {
    padding: var(--section-padding);
    background: var(--warm-white);
    position: relative;
    overflow: hidden;
}

.founders-story::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 Q50,25 100,0 L100,100 L0,100 Z" fill="%23FEF7E0" opacity="0.3"/></svg>');
    z-index: 1;
}

.story-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.story-image {
    position: relative;
}

.image-frame {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-large);
    background: white;
    padding: 20px;
}

.image-frame img {
    width: 100%;
    border-radius: var(--radius-lg);
    filter: sepia(10%) saturate(110%) brightness(102%);
}

.image-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 16px 20px;
    border-radius: var(--radius-md);
    text-align: center;
}

.caption-text {
    display: block;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 4px;
}

.caption-location {
    font-size: 0.9rem;
    color: var(--medium-gray);
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    opacity: 0.6;
}

.floating-element.palm-branch {
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    animation: float 6s ease-in-out infinite;
}

.floating-element.traditional-pot {
    bottom: -20px;
    left: -20px;
    width: 60px;
    height: 60px;
    animation: float 8s ease-in-out infinite reverse;
}

.floating-element img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.story-text {
    padding-left: 40px;
}

.story-quote {
    background: var(--light-cream);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin: 32px 0;
    border-left: 5px solid var(--ghana-gold);
    position: relative;
}

.story-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--ghana-gold);
    position: absolute;
    top: -10px;
    left: 20px;
    font-family: Georgia, serif;
    opacity: 0.3;
}

.story-quote blockquote {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--charcoal);
    font-style: italic;
    margin-bottom: 16px;
    border: none;
    padding: 0;
}

.story-quote cite {
    font-size: 0.9rem;
    color: var(--medium-gray);
    font-weight: 600;
    font-style: normal;
}

.story-paragraphs p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 24px;
}

.founding-principles {
    margin-top: 48px;
    padding: 40px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

.founding-principles h3 {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 32px;
    text-align: center;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.principle {
    text-align: center;
}

.principle-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--ghana-gold), var(--warm-gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--charcoal);
    font-size: 1.5rem;
    box-shadow: var(--shadow-soft);
}

.principle h4 {
    font-size: 1.1rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.principle p {
    font-size: 0.95rem;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* ========== HERITAGE TIMELINE ========== */

/* Heritage Timeline Banner */
.heritage-timeline-banner {
    width: 100%;
    text-align: center;
    margin-bottom: 4rem;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.timeline-banner-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.4s ease;
}

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

.heritage-timeline {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--cream), var(--light-cream));
    position: relative;
}

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

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

.timeline-item {
    position: relative;
    margin-bottom: 80px;
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item .timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: white;
    border: 4px solid var(--ghana-gold);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 2;
    box-shadow: var(--shadow-medium);
}

.timeline-item .timeline-marker.active {
    background: var(--ghana-gold);
    border-color: var(--ghana-red);
    animation: pulse 2s infinite;
}

.timeline-item .timeline-marker .marker-inner {
    width: 100%;
    height: 100%;
    background: var(--ghana-gold);
    border-radius: 50%;
    transform: scale(0);
    animation: expandMarker 0.6s ease forwards;
    animation-delay: 0.3s;
}

@keyframes expandMarker {
    to { transform: scale(1); }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    50% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
}

.timeline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.timeline-content.reverse .timeline-image {
    order: 2;
}

.timeline-content.reverse .timeline-details {
    order: 1;
    text-align: right;
}

.timeline-image {
    position: relative;
}

.timeline-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.timeline-item:hover .timeline-image img {
    transform: scale(1.03);
    box-shadow: var(--shadow-large);
}

.timeline-details {
    padding: 24px;
}

.timeline-title {
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-bottom: 16px;
    position: relative;
}

.timeline-title::before {
    content: attr(data-year);
    position: absolute;
    top: -40px;
    left: 0;
    font-size: 3rem;
    font-weight: 700;
    color: var(--ghana-gold);
    opacity: 0.3;
    font-family: var(--font-display);
}

.timeline-content.reverse .timeline-title::before {
    left: auto;
    right: 0;
}

.timeline-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--medium-gray);
    margin-bottom: 24px;
}

.timeline-achievements {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--charcoal);
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
}

.achievement::before {
    content: '✓';
    color: var(--ghana-green);
    font-weight: bold;
}

.timeline-content.reverse .achievement {
    justify-content: flex-end;
    text-align: right;
}

/* ========== TEAM SECTION ========== */
.team-section {
    padding: var(--section-padding);
    background: var(--warm-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.team-member {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    text-align: center;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.member-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

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

.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.team-member:hover .member-overlay {
    opacity: 1;
}

.social-links {
    display: flex;
    gap: 16px;
}

.member-overlay .social-link {
    width: 40px;
    height: 40px;
    background: white;
    color: var(--charcoal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.member-overlay .social-link:hover {
    background: var(--ghana-gold);
    transform: translateY(-2px);
}

.member-info {
    padding: 32px 24px;
}

.member-name {
    font-size: 1.3rem;
    color: var(--charcoal);
    margin-bottom: 8px;
}

.member-title {
    font-size: 1rem;
    color: var(--ghana-red);
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--medium-gray);
}

/* ========== VALUES SECTION ========== */
.values-section {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--ghana-green), var(--forest-green));
    color: white;
    position: relative;
    overflow: hidden;
}

.values-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
    animation: float 20s linear infinite;
}

.values-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.values-section .section-badge {
    background: rgba(255, 215, 0, 0.2);
    color: var(--ghana-gold);
    border: 1px solid var(--ghana-gold);
}

.values-section .section-title {
    color: white;
}

.values-section .section-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.value-item {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.value-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid var(--ghana-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ghana-gold);
    font-size: 1.5rem;
}

.value-content h3 {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.value-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.values-visual {
    position: relative;
}

.values-image {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-large);
}

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

.impact-stats {
    position: absolute;
    bottom: -40px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-large);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ghana-red);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--charcoal);
    font-weight: 500;
}

/* ========== SUSTAINABILITY SECTION ========== */
.sustainability-section {
    padding: var(--section-padding);
    background: var(--warm-white);
}

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.sustainability-card {
    background: white;
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.sustainability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--ghana-gold), var(--ghana-green));
}

.sustainability-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-large);
}

.sustainability-card .card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--ghana-green), var(--forest-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 2rem;
}

.sustainability-card .card-title {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin-bottom: 16px;
}

.sustainability-card .card-description {
    color: var(--medium-gray);
    line-height: 1.6;
    margin-bottom: 32px;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--ghana-green);
    margin-bottom: 4px;
}

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

/* ========== HERITAGE CTA ========== */
.heritage-cta {
    padding: var(--section-padding);
    background: linear-gradient(135deg, var(--ghana-red), var(--heritage-red));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.heritage-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><path d="M0,100 Q50,50 100,100 T200,100 L200,200 L0,200 Z" fill="rgba(255,215,0,0.1)"/></svg>');
    opacity: 0.3;
}

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

.cta-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 24px;
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 40px;
}

.cta-actions {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 48px;
}

.cta-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.social-text {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.cta-social .social-links {
    display: flex;
    gap: 16px;
}

.cta-social .social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 215, 0, 0.2);
    color: var(--ghana-gold);
    border: 1px solid var(--ghana-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.cta-social .social-link:hover {
    background: var(--ghana-gold);
    color: var(--charcoal);
    transform: translateY(-2px);
}

/* ========== RESPONSIVE DESIGN ========== */
@media (max-width: 768px) {
    .story-hero {
        padding: 120px 0 60px;
        min-height: 70vh;
    }
    
    .story-hero .hero-title {
        font-size: 2.5rem;
    }
    
    .story-hero .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 32px;
    }
    
    .hero-timeline {
        flex-direction: column;
        gap: 20px;
    }
    
    .timeline-line {
        display: none;
    }
    
    .story-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .story-text {
        padding-left: 0;
    }
    
    .principles-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .timeline-container .timeline-line {
        left: 20px;
    }
    
    .timeline-item .timeline-marker {
        left: 20px;
    }
    
    .timeline-content {
        grid-template-columns: 1fr;
        padding-left: 50px;
    }
    
    .timeline-content.reverse {
        grid-template-columns: 1fr;
    }
    
    .timeline-content.reverse .timeline-image,
    .timeline-content.reverse .timeline-details {
        order: initial;
        text-align: left;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .values-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .values-visual {
        order: -1;
    }
    
    .impact-stats {
        position: static;
        margin-top: 32px;
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sustainability-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .story-hero .hero-title {
        font-size: 2rem;
    }
    
    .founding-principles {
        padding: 24px;
    }
    
    .timeline-achievements {
        gap: 6px;
    }
    
    .achievement {
        font-size: 0.8rem;
        padding: 6px 12px;
    }
    
    .sustainability-card {
        padding: 24px;
    }
    
    .card-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .impact-stats {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease forwards;
}

/* ========== HOVER EFFECTS ========== */
@media (hover: hover) and (pointer: fine) {
    .floating-element:hover {
        opacity: 1;
        transform: scale(1.1);
    }
    
    .timeline-item:hover .timeline-marker {
        animation: pulse 1s infinite;
    }
    
    .value-item:hover .value-icon {
        transform: rotate(10deg) scale(1.1);
    }
    
    .sustainability-card:hover .card-icon {
        transform: scale(1.1) rotate(5deg);
    }
}