/* About Page Specific Styles */

/* Animation Classes - Optimized for performance */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Section */
.about-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
                url('../css/images/about-header-bg.jpg') center/cover no-repeat;
    padding: clamp(100px, 15vh, 150px) 0 clamp(60px, 10vh, 80px);
    color: white;
    position: relative;
    margin-top: -76px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.about-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.breadcrumb {
    background: transparent;
    margin: 0;
    padding: 0;
}

.breadcrumb-item a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
    color: #ff8585;
}

.breadcrumb-item.active {
    color: #ffffff;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #ffffff;
    content: "›";
    font-size: 1.2rem;
    line-height: 1;
    padding: 0 10px;
}

/* History Content Section */
.history-content {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: clamp(40px, 5vh, 60px) 0;
}

.history-block {
    margin-bottom: clamp(40px, 8vh, 80px);
    padding: clamp(20px, 4vw, 40px);
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.history-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: clamp(1rem, 2vh, 1.5rem);
}

.title-separator {
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #ff6b6b, #ff8585);
    margin-bottom: 2rem;
    border-radius: 3px;
}

.content-box {
    padding: 20px 0;
}

.history-text {
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.history-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: justify;
}

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

/* Founding Members Section */
.founding-members {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    contain: content;
}

.member-card, .highlight-box, .award-card, .leader-card {
    background: #ffffff;
    border-radius: 15px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.member-card:hover, .highlight-box:hover, .leader-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.member-card i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(255,107,107,0.2);
}

.member-card h4 {
    color: #2c1810;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.member-card p {
    color: #666;
    margin: 0;
}

/* Fair Highlights Section */
.fair-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
    contain: content;
}

.highlight-box {
    text-align: center;
    padding: 25px;
    background: #ffffff;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,107,107,0.1);
}

.highlight-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #ff6b6b, #ff8585);
}

.highlight-box i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.highlight-box h4 {
    font-size: 2rem;
    color: #2c1810;
    margin-bottom: 5px;
}

.highlight-box p {
    color: #666;
    margin: 0;
}

/* Activities List */
.activities-list {
    background: linear-gradient(145deg, #ffffff, #f8f5f0);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255,107,107,0.1);
}

.activities-list h3 {
    color: #2c1810;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
}

.activities-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.activities-list li {
    color: #555;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 10px;
    background: rgba(255,255,255,0.5);
    border-radius: 8px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateZ(0);
}

.activities-list li:hover {
    transform: translateX(3px);
}

.activities-list li i {
    color: #ff6b6b;
    margin-right: 10px;
}

/* Timeline Section */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    transform: translateZ(0);
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.timeline-item .year {
    color: #ff6b6b;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-shadow: 1px 1px 2px rgba(255,107,107,0.1);
}

.timeline-item .description {
    color: #555;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Awards Section */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    contain: content;
}

.award-card {
    text-align: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,107,107,0.1);
}

.award-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #ff6b6b, #ff8585);
}

.award-card:hover i,
.award-card:hover h4,
.award-card:hover p {
    color: white;
}

.award-card i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.award-card h4 {
    color: #2c1810;
    font-size: 1.4rem;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.award-card p {
    color: #666;
    margin: 0;
    transition: all 0.3s ease;
}

/* Leadership Section */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    contain: content;
}

.leader-card {
    text-align: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,107,107,0.1);
}

.leader-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    background: linear-gradient(135deg, #ff6b6b, #ff8585);
}

.leader-card i {
    font-size: 2.5rem;
    color: #ff6b6b;
    margin-bottom: 20px;
}

.leader-card h4 {
    color: #2c1810;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.leader-card p {
    color: #666;
    margin: 0;
}

/* Footer Styles */
.footer-section {
    background: linear-gradient(to bottom, #2c1810, #1a0f09);
    color: #fff;
    padding: 60px 0 20px;
    position: relative;
}

.footer-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, #ff6b6b, #ff8585);
}

.footer-section h3 {
    color: #fff;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: #ff6b6b;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    color: #ff6b6b;
    margin-right: 10px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b6b;
    transform: translateX(5px);
}

.footer-links a:hover i {
    transform: translateX(3px);
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .history-block {
        margin-bottom: clamp(30px, 6vh, 60px);
    }
    
    .founding-members,
    .fair-highlights,
    .awards-grid,
    .leadership-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 992px) {
    .about-header {
        padding: clamp(80px, 12vh, 120px) 0 clamp(40px, 8vh, 60px);
    }

    .section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.2rem);
    }

    .activities-list ul {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .history-block {
        padding: clamp(15px, 3vw, 20px);
        margin-bottom: clamp(20px, 4vh, 40px);
    }

    .timeline-item {
        padding-left: clamp(15px, 3vw, 20px);
    }

    .footer-section {
        padding: clamp(40px, 6vh, 60px) 0 clamp(15px, 3vh, 20px);
    }

    .founding-members,
    .fair-highlights,
    .awards-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }

    .activities-list ul {
        grid-template-columns: 1fr;
    }

    .timeline-item:hover {
        transform: translateX(0);
    }

    .history-text {
        padding: 15px;
    }
    
    .history-text p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

@media (max-width: 576px) {
    .member-card,
    .highlight-box,
    .award-card,
    .leader-card {
        padding: clamp(15px, 3vw, 20px);
    }

    .activities-list {
        padding: clamp(15px, 3vw, 20px);
    }

    .footer-links a {
        font-size: 0.9rem;
    }
}

/* Print Styles */
@media print {
    .about-header {
        background: none;
        color: #000;
        margin-top: 0;
        min-height: auto;
        padding: 20px 0;
    }

    .history-block {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .footer-section {
        background: none;
        color: #000;
        padding: 20px 0;
    }

    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll,
    .history-block,
    .member-card,
    .highlight-box,
    .award-card,
    .leader-card,
    .timeline-item,
    .activities-list li {
        transition: none;
        transform: none;
    }
    
    .animate-on-scroll.visible {
        opacity: 1;
    }
} 