/* About Page Styles */
.about-header {
    padding: 160px 0 60px;
    background-color: var(--primary-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.about-header::before {
    content: none;
}

.about-content {
    padding: 80px 0;
    background-color: var(--secondary-bg);
}

/* Hero Section */
.page-hero.about-hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/chemistry-about/chemistry-lab-hero.jpg');
    background-size: cover;
    background-position: center;
    padding: 160px 0 60px;
    color: #fff;
    text-align: center;
}

.about-hero .hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.about-hero .hero-content p {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.2rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 1.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Company Overview */
.company-overview, .core-values, .vision-mission, .team-section, .company-history {
    padding: 60px 0;
}

.company-overview {
    background-color: var(--secondary-bg);
}

.core-values {
    background-color: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.about-text h3:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.about-image img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

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

/* Vision & Mission */
.vision-mission {
    background-color: var(--primary-bg);
}

.vision-mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.vision-card, .mission-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.vision-card:hover, .mission-card:hover {
    transform: translateY(-5px);
}

.card-icon {
    margin-bottom: 1.5rem;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon img {
    height: 100%;
}

.card-icon i {
    font-size: 2.5rem;
    color: var(--accent-color);
}

.vision-card h3, .mission-card h3 {
    font-size: 1.8rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-weight: 600;
}

.vision-card p, .mission-card p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.vision-points, .mission-points {
    padding-left: 1.5rem;
}

.vision-points li, .mission-points li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    position: relative;
    line-height: 1.6;
}

.vision-points li:before, .mission-points li:before {
    content: '•';
    position: absolute;
    left: -1rem;
    color: var(--accent-color);
}

/* Core Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.value-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background-color: rgba(0, 102, 204, 0.1);
    border-radius: 50%;
    color: var(--accent-color);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.value-icon i {
    font-size: 1.8rem;
}

.value-card:hover .value-icon {
    transform: scale(1.1);
    background-color: rgba(0, 102, 204, 0.2);
}

.value-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Team Section Styles */
.team-section {
    padding: 60px 0;
    background-color: var(--secondary-bg);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.team-member {
    background-color: #fff;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.member-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.member-initial {
    font-size: 48px;
    color: white;
    font-weight: 600;
}

.team-member h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.member-title {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.member-bio {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.member-email {
    color: var(--accent-color);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.member-email:hover {
    text-decoration: underline;
}

/* Company History */
.company-history {
    padding: 60px 0;
    background-color: #fff;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 30px 0;
}

.timeline:before {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--accent-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 15px 30px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-date {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.timeline-content {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.timeline-content h3 {
    color: var(--accent-color);
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.timeline-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Testimonials */
.testimonials {
    padding: 80px 0;
    background-color: var(--primary-bg);
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 0;
    position: relative;
}

.testimonial-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 30px;
    margin: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    position: relative;
    padding-left: 30px;
}

.testimonial-quote:before {
    content: '"';
    font-size: 60px;
    font-family: serif;
    color: var(--accent-color);
    opacity: 0.2;
    position: absolute;
    left: 0;
    top: -20px;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.author-name {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.author-company {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.testimonial-controls {
    text-align: center;
    margin-top: 30px;
}

.testimonial-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.testimonial-dot.active {
    background-color: var(--accent-color);
}

/* Call to Action */
.about-cta {
    padding: 80px 0;
    background-color: var(--accent-color);
    color: #fff;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background-color: #fff;
    color: var(--accent-color);
}

.btn-primary:hover {
    background-color: #f5f5f5;
}

.btn-secondary {
    background-color: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Footer */
.footer {
    background-color: #222;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.footer-col p {
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    display: flex;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.contact-info .icon {
    margin-right: 10px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.legal-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--accent-color);
}

/* Media Queries */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .vision-mission-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .about-hero .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .timeline:before {
        left: 40px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 80px;
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) {
        text-align: left;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-item {
        padding: 20px;
        margin: 10px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .legal-links {
        margin-top: 15px;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .about-grid,
    .vision-mission-grid,
    .team-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-hero.about-hero {
        padding: 140px 0 40px;
    }

    .about-hero .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .about-text h3,
    .vision-card h3,
    .mission-card h3 {
        font-size: 1.5rem;
    }

    .timeline-item {
        border-left: none;
        padding-left: 0;
    }

    .timeline-item::before {
        left: 10px;
    }

    .timeline-content {
        margin-left: 40px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation Styles */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotateY(-90deg);
    }
    to {
        opacity: 1;
        transform: rotateY(0);
    }
}

/* Apply animations to elements */
.animate-on-scroll {
    opacity: 0;
    animation-duration: 0.6s;
    animation-fill-mode: forwards;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
}

.section-header.animate-on-scroll {
    animation-name: fadeInUp;
}

.vision-card.animate-on-scroll {
    animation-name: fadeInLeft;
}

.mission-card.animate-on-scroll {
    animation-name: fadeInRight;
}

.value-card.animate-on-scroll {
    animation-name: scaleIn;
}

.team-member.animate-on-scroll {
    animation-name: fadeInUp;
}

.about-image.animate-on-scroll {
    animation-name: fadeIn;
}

.stat-item.animate-on-scroll {
    animation-name: fadeInUp;
}

/* Timeline animations */
.animate-timeline {
    opacity: 0;
    animation-duration: 0.8s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
}

.timeline-item:nth-child(odd).animate-timeline {
    animation-name: fadeInLeft;
}

.timeline-item:nth-child(even).animate-timeline {
    animation-name: fadeInRight;
}

/* Testimonial animation */
.testimonial-item {
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Additional hover animations */
.team-member {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.stats-grid .stat-item:hover .stat-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.call-to-action {
    position: relative;
    overflow: hidden;
}

.call-to-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0,105,92,0.8) 0%, rgba(0,86,179,0.8) 100%);
    z-index: -1;
    transition: transform 0.5s ease;
    transform: translateY(20%);
}

.call-to-action:hover::before {
    transform: translateY(0);
}
