/* About Page Specific Styles */

/* About Hero Section */
.about-hero {
    position: relative;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.about-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.about-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 100%;
}

.about-hero-title {
    font-family: 'Oswald', sans-serif;
    font-size: 120px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: 8px;
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.8);
    animation: fadeInDown 1s ease-out;
}

.about-hero-tagline {
    font-family: 'Oswald', sans-serif;
    font-size: 48px;
    font-weight: 400;
    color: #C3081F;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.tagline-word {
    letter-spacing: 4px;
}

.tagline-separator {
    font-weight: 700;
    color: #ffffff;
}


/* Mission Section */
.mission-section {
    background-color: #000000;
    padding: 100px 0;
    position: relative;
}

.mission-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.mission-text {
    background: linear-gradient(135deg, #C3081F 0%, #8B0615 100%);
    padding: 80px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.mission-text.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.mission-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.8s ease;
}

.mission-text:hover::before {
    left: 100%;
}

.mission-title {
    font-family: 'Oswald', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 40px;
    letter-spacing: 6px;
}

.mission-description p {
    font-size: 24px;
    line-height: 1.8;
    color: #ffffff;
    margin-bottom: 20px;
}

.mission-description p:last-child {
    margin-bottom: 0;
}

.mission-description strong {
    font-weight: 700;
    color: #ffffff;
}


/* Excellence Section */
.excellence-section {
    background-color: #000000;
    padding: 100px 0;
}

.excellence-header {
    font-family: 'Oswald', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 80px;
    letter-spacing: 6px;
}

.excellence-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    overflow: visible;
}

/* Interactive Card Styles */
.excellence-card {
    perspective: 1000px;
    height: 400px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    overflow: visible;
    position: relative;
    isolation: isolate;
}

.excellence-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.excellence-card[data-card="1"] {
    transition-delay: 0.1s;
}

.excellence-card[data-card="2"] {
    transition-delay: 0.2s;
}

.excellence-card[data-card="3"] {
    transition-delay: 0.3s;
}

.excellence-card[data-card="4"] {
    transition-delay: 0.4s;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
}

.excellence-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(195, 8, 31, 0.3);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform-style: preserve-3d;
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 0;
}

.card-front {
    border: 2px solid #C3081F;
}

.card-front > *,
.card-back > * {
    position: relative;
    z-index: 1;
}

/* Card 1 - Accredited Excellence */
.excellence-card[data-card="1"] .card-front {
    background-image: url('../assets/imgs/Accredited.jpg');
}

/* Card 2 - Real-World Fidelity */
.excellence-card[data-card="2"] .card-front {
    background-image: url('../assets/imgs/Fidelity.jpg');
}

/* Card 3 - Tailored Delivery */
.excellence-card[data-card="3"] .card-front {
    background-image: url('../assets/imgs/Delivery.jpg');
}

/* Card 4 - Beyond Training */
.excellence-card[data-card="4"] .card-front {
    background-image: url('../assets/imgs/Beyond.jpg');
}

.card-back {
    background: linear-gradient(135deg, #C3081F 0%, #8B0615 100%);
    transform: rotateY(180deg);
}

.card-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    color: #C3081F;
}

.card-icon svg {
    width: 100%;
    height: 100%;
}

.card-title {
    font-family: 'Oswald', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: 3px;
}

.card-hint {
    font-size: 14px;
    color: #999999;
    font-style: italic;
}

.card-back p {
    font-size: 20px;
    line-height: 1.8;
    color: #ffffff;
    text-align: center;
}

.card-back strong {
    font-weight: 700;
}


/* Closing Section */
.closing-section {
    background-color: #000000;
    padding: 100px 0;
    position: relative;
}

.closing-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.closing-text {
    background-color: #0d0d0d;
    padding: 60px 80px;
    border-left: 8px solid #C3081F;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease-out;
}

.closing-text.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.closing-statement {
    font-size: 28px;
    line-height: 1.8;
    color: #ffffff;
    font-style: italic;
}

.closing-statement strong {
    font-weight: 700;
    color: #C3081F;
}


/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Responsive Design */
@media (max-width: 1024px) {
    .excellence-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .excellence-card {
        height: 350px;
    }

    /* Disable hover flip on mobile - use scroll-based flip instead */
    .excellence-card:hover .card-inner {
        transform: none;
    }

    /* Hide hint text on mobile */
    .card-hint {
        display: none;
    }
}

@media (max-width: 768px) {
    .about-hero {
        height: 60vh;
    }

    .about-hero-title {
        font-size: 80px;
    }

    .about-hero-tagline {
        font-size: 32px;
        gap: 15px;
    }

    .mission-text {
        padding: 60px 40px;
        text-align: center;
    }

    .mission-title {
        font-size: 48px;
    }

    .mission-description p {
        font-size: 20px;
    }

    .excellence-header {
        font-size: 48px;
        margin-bottom: 60px;
    }

    .excellence-grid {
        padding: 0 20px;
        gap: 60px;
    }

    .excellence-card {
        height: 320px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-back p {
        font-size: 18px;
    }

    .closing-text {
        padding: 40px;
    }

    .closing-statement {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .about-hero {
        height: 50vh;
    }

    .about-hero-title {
        font-size: 56px;
        letter-spacing: 4px;
    }

    .about-hero-tagline {
        font-size: 20px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .mission-section {
        padding: 60px 0;
    }

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

    .mission-text {
        padding: 40px 30px;
        text-align: center;
    }

    .mission-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .mission-description p {
        font-size: 16px;
    }

    .excellence-section {
        padding: 60px 0;
    }

    .excellence-header {
        font-size: 36px;
        margin-bottom: 40px;
    }

    .excellence-card {
        height: 280px;
    }

    .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }

    .card-title {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .card-front,
    .card-back {
        padding: 30px 20px;
    }

    .card-back p {
        font-size: 16px;
    }

    .closing-section {
        padding: 60px 0;
    }

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

    .closing-text {
        padding: 30px 20px;
        border-left-width: 4px;
    }

    .closing-statement {
        font-size: 18px;
    }

    /* Touch devices - show back on tap */
    .excellence-card {
        cursor: pointer;
    }
}


