/* Ensure all styles are scoped under .about-page */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    height: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.about-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.about-page {
    font-family: 'Roboto', sans-serif;
    background-color: #f8fafc;
    color: #011f39;
    line-height: 1.7;
}

/* Hero Section */
.about-page .hero {
    position: relative;
    height: 800px;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Light blur background image */
.about-page .hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-image: url('../images/about/group-people-working-out-business-plan-office.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px);
    transform: scale(1.05);
    z-index: 0;
    animation: hero-image-zoom 30s linear infinite alternate;
}

/* Hero content (text) */
.about-page .hero-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    padding: 30px;
    margin-bottom: 5px;
    color: #fff;
}

.about-page .hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 64px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #ffcc00;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.6);
    animation: about-FadeInUp 1.2s ease-out forwards;
}

.about-page .hero p {
    font-size: 22px;
    font-weight: 800;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    color: #ecebf1;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
    animation: about-FadeInUp 1.6s ease-out forwards;
}

/* Text Animation */
@keyframes about-FadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Background Zoom Animation */
@keyframes hero-image-zoom {
    0% { transform: scale(1.05); }
    100% { transform: scale(1.1); }
}

/* Section General Styling */
.about-page section {
    padding: 100px 20px;
}

.about-page h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 600;
    text-align: center;
    color: #011f39;
    margin-bottom: 40px;
    position: relative;
    animation: about-FadeInUp 1s ease-out forwards;
}

/* Ensure all section headings are centered */
.about-page .mission h2.section-heading-underline,
.about-page .history h2.section-heading-underline,
.about-page .team h2.section-heading-underline,
.about-page .values h2.section-heading-underline,
.about-page .achievements h2.section-heading-underline {
    display: block;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

/* Mission Section */
.about-page .mission {
    background: #fff;
    text-align: center;
}

.about-page .mission p {
    max-width: 1000px;
    margin: 20px auto;
    font-size: 18px;
    color: #4a5568;
    line-height: 1.9;
}

.about-page .mission img {
    max-width: 100%;
    width: 450px;
    margin: 30px auto;
    display: block;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(1, 31, 57, 0.2);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-page .mission img:hover,
.about-page .mission img:active {
    transform: scale(1.08) rotate(2deg);
    box-shadow: 0 12px 30px rgba(1, 31, 57, 0.3);
}

/* History Section */
.about-page .history {
    background: linear-gradient(135deg, #ffffff, #e2e8f0);
    text-align: center;
}

.about-page .history p {
    max-width: 1000px;
    margin: 20px auto;
    font-size: 18px;
    color: #4a5568;
    line-height: 1.9;
}

.about-page .history-timeline {
    max-width: 1100px;
    margin: 50px auto;
    display: grid;
    gap: 35px;
    position: relative;
}

.about-page .timeline-item {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 6px 20px rgba(1, 31, 57, 0.15);
    display: flex;
    align-items: center;
    gap: 25px;
    opacity: 0;
    animation: about-slideIn 0.7s ease-out forwards;
    animation-delay: calc(0.3s * var(--index));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-page .timeline-item:hover,
.about-page .timeline-item:active {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(1, 31, 57, 0.25);
}

.about-page .timeline-item:nth-child(1) { --index: 1; }
.about-page .timeline-item:nth-child(2) { --index: 2; }
.about-page .timeline-item:nth-child(3) { --index: 3; }

@keyframes about-slideIn {
    0% { opacity: 0; transform: translateX(-60px); }
    100% { opacity: 1; transform: translateX(0); }
}

.about-page .timeline-item img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #ff000e;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.about-page .timeline-item:hover img,
.about-page .timeline-item:active img {
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(1, 31, 57, 0.3);
}

.about-page .timeline-content {
    text-align: left;
}

.about-page .timeline-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #011f39;
    margin-bottom: 15px;
    position: relative;
}

.about-page .timeline-content h3::before {
    content: '•';
    color: #ff000e;
    font-size: 35px;
    position: absolute;
    left: -25px;
    top: 5px;
}

.about-page .timeline-content p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
}

/* Team Section */
.about-page .team {
    background: #fff;
}

.about-page .team-grid {
    max-width: 1200px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-page .team-card {
    background: #f7fafc;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(1, 31, 57, 0.15);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    position: relative;
}

.about-page .team-card:hover,
.about-page .team-card:active {
    transform: translateY(-12px);
    box-shadow: 0 12px 30px rgba(1, 31, 57, 0.25);
}

.about-page .team-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-page .team-card:hover img,
.about-page .team-card:active img {
    transform: scale(1.2) rotate(3deg);
}

.about-page .team-card-content {
    padding: 25px;
    text-align: center;
}

.about-page .team-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #011f39;
    margin-bottom: 12px;
}

.about-page .team-card p.role {
    font-size: 18px;
    color: #ff000e;
    margin-bottom: 12px;
    font-weight: 500;
}

.about-page .team-card p.description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
}

/* Values Section */
.about-page .values {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

.about-page .values-grid {
    max-width: 1200px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.about-page .value-card {
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
    position: relative;
    overflow: hidden;
}

.about-page .value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 0, 14, 0.1), rgba(229, 209, 24, 0.1));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.about-page .value-card:hover::before,
.about-page .value-card:active::before {
    opacity: 1;
}

.about-page .value-card:hover,
.about-page .value-card:active {
    background: #edf2f7;
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(1, 31, 57, 0.2);
}

.about-page .value-card img {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    display: block;
    border-radius: 50%;
    transition: transform 0.6s ease;
}

.about-page .value-card:hover img,
.about-page .value-card:active img {
    transform: rotate(360deg) scale(1.1);
}

.about-page .value-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 600;
    color: #ff000e;
    margin-bottom: 15px;
}

.about-page .value-card p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
}

/* Achievements Section */
.about-page .achievements {
    background: #fff;
    text-align: center;
}

.about-page .achievements-grid {
    max-width: 1200px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

.about-page .achievement-card {
    padding: 25px;
    background: #f7fafc;
    border-radius: 15px;
    box-shadow: 0 6px 20px rgba(1, 31, 57, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.about-page .achievement-card:hover,
.about-page .achievement-card:active {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(1, 31, 57, 0.2);
}

.about-page .achievement-card img {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: block;
}

.about-page .achievement-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: #011f39;
    margin-bottom: 12px;
}

.about-page .achievement-card p {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.8;
}

/* Section Heading Underline Style */
.section-heading-underline,
.section-heading-underline1 {
    display: inline-block;
    position: relative;
    padding-bottom: 8px;
    margin-bottom: 18px;
    width: fit-content;
}

.section-heading-underline::after,
.section-heading-underline1::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 7px;
    background: linear-gradient(to right, #ff000e, #e5d118);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.section-heading-underline:hover::after,
.section-heading-underline1:hover::after {
    width: 100%;
}

/* Paragraphs for Team and Values */
.team-para {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #4a5568;
}

.values-para {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto 40px;
    font-size: 18px;
    color: #4a5568;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .about-page .hero {
        height: 600px;
    }
    .about-page .hero h1 {
        font-size: 40px;
    }
    .about-page .hero p {
        font-size: 18px;
        max-width: 90%;
    }
    .about-page section {
        padding: 70px 15px;
    }
    .about-page h2 {
        font-size: 36px;
    }
    .about-page h2::after {
        width: 113px;
    }
    .about-page .mission img {
        width: 100%;
        max-width: 350px;
    }
    .about-page .timeline-item {
        flex-direction: column;
        align-items: center;
        margin-bottom: 30px;
    }
    .about-page .timeline-item img {
        width: 90px;
        height: 90px;
        margin: 0 auto 15px;
    }
    .about-page .timeline-content {
        text-align: center;
    }
    .about-page .timeline-content h3::before {
        display: none;
    }
    .about-page .team-card img {
        height: 220px;
    }
    .about-page .team-card h3 {
        font-size: 22px;
    }
    .about-page .team-card p.role {
        font-size: 16px;
    }
    .about-page .value-card img {
        width: 60px;
        height: 60px;
    }
    .about-page .value-card h3 {
        font-size: 22px;
    }
    .about-page .achievement-card img {
        width: 50px;
        height: 50px;
    }
    .about-page .achievement-card h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .about-page .hero h1 {
        font-size: 32px;
    }
    .about-page .hero p {
        font-size: 16px;
    }
    .about-page h2 {
        font-size: 30px;
        margin-left: 0;
    }
    .about-page .mission h2,
    .about-page .history h2,
    .about-page .team h2,
    .about-page .values h2,
    .about-page .achievements h2 {
        margin-left: 0;
        text-align: center;
    }
    .about-page .mission p,
    .about-page .history p,
    .about-page .timeline-content p,
    .about-page .value-card p,
    .about-page .achievement-card p {
        font-size: 15px;
    }
    .about-page .team-card img {
        height: 200px;
    }
    .about-page .team-card h3 {
        font-size: 20px;
    }
    .about-page .team-card p.role {
        font-size: 14px;
    }
}

@media (max-width: 900px) {
    .about-page,
    .mission,
    .history,
    .team,
    .values,
    .achievements {
        width: 100vw;
        overflow-x: hidden;
        box-sizing: border-box;
        padding-left: 0;
        padding-right: 0;
    }
}

/* Hover Underline for Links */
.hover-underline {
    position: relative;
    display: inline-block;
    cursor: pointer;
    color: #ff000e;
    transition: color 0.4s ease;
}

.hover-underline::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0%;
    height: 4px;
    background: linear-gradient(to right, #ff000e, #e5d118);
    transition: width 0.4s ease-in-out;
    border-radius: 3px;
}

.hover-underline:hover::after {
    width: 100%;
}