/* Variables */
:root {
    --primary-color: #f8b400; /* Primary color */
    --white-color: #ffffff; /* White color */
    --light-color: #f9f9f9; /* Light background color */
}

/* Intro Section */
.intro-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60vh;
    background-size: cover;
    background-position: center;
}

.intro-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-content {
    color: var(--white-color);
    text-align: center;
    padding: 2rem;
}

.intro-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.intro-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.5;
    padding: 0 1rem;
    color: #fff; /* Set text color to white */
}

/* About Section */
.about-section {
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
}

/* Mission and Vision Section */
.mv-section {
    padding: 3rem 2rem;
    background-color: var(--light-color);
    display: flex;
    justify-content: center;
}

/* Mission and Vision Container */
.mv-container {
    display: flex;
    gap: 50px;
    max-width: 1000px;
    flex-wrap: wrap;
}

/* Mission and Vision Cards */
.mv-card {
    flex: 1;
    min-width: 280px;
    height: 200px;
    background: linear-gradient(135deg, #f8b400, #ff6347);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s;
}

.mv-card:hover {
    transform: translateY(-10px);
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

/* Flip effect on hover */
.mv-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-front {
    z-index: 2;
}

.card-back {
    transform: rotateY(180deg);
    z-index: 1;
}

/* Card Text */
.card-front h3, .card-back p {
    font-size: 1rem;
    color: var(--white-color);
    text-align: center;
    padding: 1rem;
}


/* Static Mobile Mission and Vision Cards */
.mv-section-mobile {
    display: none;
}

.mv-container-mobile {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.mv-card-mobile {
    background: var(--primary-color);
    color: var(--white-color);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.mv-card-mobile h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.mv-card-mobile p {
    font-size: 1rem;
    line-height: 1.5;
}

/* Buttons */
button, .button {
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover, .button:hover {
    background-color: #e09b00;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

[data-animate="fade-in"] {
    opacity: 0;
    transition: opacity 0.5s ease-out;
}
[data-animate="fade-in"].in-view {
    opacity: 1;
    animation: fadeInUp 1s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide desktop mission and vision cards on mobile */
    .mv-section-desktop {
        display: none;
    }

    /* Show mobile static mission and vision cards */
    .mv-section-mobile {
        display: block;
        padding: 2rem 1rem;
        background-color: var(--light-color);
    }

    .intro-content h2 {
        font-size: 2rem;
    }

    .mv-container {
        flex-direction: column;
        align-items: center;
    }
    
    .mv-card .card-inner {
        transform: none !important;
    }

    .card-front, .card-back {
        display: flex;
    }

    .card-front h3, .card-back p {
        text-align: center;
        padding: 1rem;
    }
}

