/* About Page Styles */
.about-hero {
    position: relative;
    background-color: #0A1128;
    background-image: url('../images/corporate_engineering_banner.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #ffffff;
    padding: 140px 0 100px;
    text-align: center;
    overflow: hidden;
}
.about-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10, 17, 40, 0.7); /* Dark overlay for text readability */
    z-index: 1;
}
.about-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, #f8f9fa, transparent);
    z-index: 2;
}
.about-hero .container {
    position: relative;
    z-index: 3;
}
.about-hero h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #ffffff; /* Explicitly set to white */
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.about-hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.about-intro-section {
    background: #f8f9fa;
    padding: 80px 0;
}
.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.intro-content h2 {
    font-size: 2.5rem;
    color: #0A1128;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}
.intro-content p {
    font-size: 1.05rem;
    color: #495057;
    line-height: 1.7;
    margin-bottom: 20px;
}
.intro-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.15);
}
.intro-image-wrapper img {
    width: 100%;
    display: block;
}
.intro-image-badge {
    position: absolute;
    bottom: 30px; left: -30px;
    background: #E63946;
    color: #fff;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(230,57,70,0.3);
    font-weight: 700;
    font-size: 1.2rem;
    text-align: center;
}
.intro-image-badge span {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 5px;
}

.vision-mission-section {
    padding: 100px 0;
    background: #ffffff;
}
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.vm-card {
    background: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 16px;
    padding: 50px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.vm-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: #E63946;
}
.vm-icon {
    font-size: 3rem;
    color: #0A1128;
    margin-bottom: 20px;
}
.vm-card h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: #0A1128;
    margin-bottom: 15px;
}
.vm-card p {
    color: #6c757d;
    line-height: 1.7;
    font-size: 1.05rem;
}

.timeline-section {
    background: #0A1128;
    padding: 100px 0;
    color: #ffffff;
}
.timeline-header {
    text-align: center;
    margin-bottom: 60px;
}
.timeline-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
}
.modern-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}
.modern-timeline::before {
    content: '';
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 2px;
    background: rgba(255,255,255,0.1);
    transform: translateX(-50%);
}
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
}
.timeline-item:last-child {
    margin-bottom: 0;
}
.timeline-item .year {
    width: calc(50% - 40px);
    text-align: right;
    font-size: 2rem;
    font-weight: 800;
    color: #E63946;
}
.timeline-item:nth-child(even) .year {
    text-align: left;
    order: 2;
}
.timeline-item .content {
    width: calc(50% - 40px);
    background: rgba(255,255,255,0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.05);
}
.timeline-item:nth-child(even) .content {
    text-align: right;
    order: 1;
}
.timeline-item .content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
}
.timeline-item .content p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}
.timeline-dot {
    position: absolute;
    left: 50%;
    width: 16px;
    height: 16px;
    background: #E63946;
    border-radius: 50%;
    transform: translateX(-50%);
    border: 4px solid #0A1128;
}

.pillars-section {
    padding: 100px 0;
    background: #f8f9fa;
}
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.pillar-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}
.pillar-card:hover {
    border-color: #0A1128;
    box-shadow: 0 15px 30px rgba(10,17,40,0.08);
}
.pillar-icon {
    width: 80px; height: 80px;
    background: rgba(10,17,40,0.05);
    color: #0A1128;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    transition: all 0.3s;
}
.pillar-card:hover .pillar-icon {
    background: #0A1128;
    color: #ffffff;
}
.pillar-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0A1128;
    margin-bottom: 15px;
}
.pillar-card p {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .intro-grid, .vm-grid {
        grid-template-columns: 1fr;
    }
    .intro-image-badge {
        left: 20px; bottom: -20px;
    }
    .modern-timeline::before { left: 20px; }
    .timeline-dot { left: 20px; }
    .timeline-item .year, .timeline-item .content,
    .timeline-item:nth-child(even) .year, .timeline-item:nth-child(even) .content {
        width: calc(100% - 50px);
        text-align: left;
        order: unset;
    }
    .timeline-item { justify-content: flex-end; }
    .timeline-item .year { position: absolute; left: 50px; top: -30px; font-size: 1.2rem; }
}

/* Animated Stats Section */
.stats-section {
    background: linear-gradient(135deg, #1a2752 0%, #0A1128 100%);
    padding: 80px 0;
    color: #fff;
    position: relative;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}
.stat-item h3 {
    font-size: 4rem;
    font-weight: 800;
    color: #E63946;
    margin-bottom: 10px;
    line-height: 1;
    font-family: var(--font-heading);
}
.stat-item p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Interactive Flip Cards (Competencies) */
.competencies-section {
    padding: 100px 0;
    background: #f8f9fa;
}
.flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
.flip-card {
    background-color: transparent;
    width: 100%;
    height: 380px;
    perspective: 1000px;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
}
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.flip-card-front {
    background-color: #ffffff;
    color: #0A1128;
    border: 1px solid #e9ecef;
}
.flip-card-front i {
    font-size: 4rem;
    color: #E63946;
    margin-bottom: 20px;
}
.flip-card-front h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}
.flip-card-back {
    background-color: #0A1128;
    color: white;
    transform: rotateY(180deg);
}
.flip-card-back p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.85);
    margin-bottom: 20px;
}
.flip-card-back .btn-outline {
    border: 1px solid #E63946;
    color: #E63946;
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}
.flip-card-back .btn-outline:hover {
    background: #E63946;
    color: #fff;
}

/* Redesigned Layout Classes */
@media (max-width: 991px) {
    .intro-grid-new {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .vm-row {
        grid-template-columns: 1fr !important;
        gap: 40px !important;
    }
    .vm-row:nth-child(even) .vm-text-content {
        order: 1;
    }
    .vm-row:nth-child(even) .vm-image-container {
        order: 2;
    }
}

@media (max-width: 575px) {
    .features-bullets-grid {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .about-intro-section {
        padding: 60px 0 !important;
    }
    .vision-mission-section {
        padding: 60px 0 !important;
    }
}
