/* ========================================
   3D FLIP CARD STYLES - UIverse Design
   ======================================== */

/* Mission Vision Section Styles */
.mission-vision-section {
    padding: 100px 0;
    background-image: url('../images/back_g.png');
    background-size: cover;
    background-position: center;
    background-color: #f8f9fa;
    position: relative;
    overflow: hidden;
}

/* 3D Flip Card Wrapper */
.flip-card-wrapper {
    perspective: 1000px;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Flip Card Container */
.flip {
    box-shadow: 0 0 10px rgba(128, 128, 128, 0.5);
    padding: 1em;
    width: 400px;
    height: 500px;
    transform-style: preserve-3d;
    transition: transform 1.5s ease;
    cursor: pointer;
    border-radius: 15px;
}

.flip:hover {
    transform: rotateY(180deg);
}

/* Content */
.flip .content {
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
    height: 100%;
}

.flip .back,
.flip .front {
    transform-style: preserve-3d;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 30px;
    text-align: center;
    border-radius: 15px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.flip .back {
    transform: rotateY(180deg);
}

/* Front Side Gradient - Vision Card (Violet to Orange) */
#vision .flip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(135deg, #8B5CF6, #F97316);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px;
    z-index: -1;
}

/* Back Side Gradient - Vision Card (Purple to Red) */
#vision .flip::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(135deg, #A855F7, #EF4444);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: rotateY(180deg) translateZ(1px);
    border-radius: 15px;
    z-index: -1;
}

/* Front Side Gradient - Mission Card (Blue to Teal) */
#mission .flip::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(135deg, #3B82F6, #14B8A6);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 15px;
    z-index: -1;
}

/* Back Side Gradient - Mission Card (Indigo to Green) */
#mission .flip::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(135deg, #6366F1, #10B981);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: rotateY(180deg) translateZ(1px);
    border-radius: 15px;
    z-index: -1;
}

/* Typography for Flip Cards */
.flip h2,
.flip p {
    transform: translateZ(90px);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    text-align: center;
    z-index: 1;
}

.flip h2 {
    font-size: 3em;
    color: #fff;
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.flip .front p {
    font-size: 1.3em;
    color: #eee;
    line-height: 1.6em;
    font-weight: 400;
    margin: 0;
}

.flip .back p {
    font-size: 1.1em;
    color: #eee;
    line-height: 1.8em;
    font-weight: 400;
    margin: 20px 0 0;
    padding: 0 10px;
}

/* Simple light overlay */
.mission-vision-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(248, 249, 250, 0.95);
    z-index: 1;
}

/* Subtle pattern overlay */
.mission-vision-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(0, 0, 0, 0.02) 50px,
            rgba(0, 0, 0, 0.02) 51px
        );
    z-index: 2;
    pointer-events: none;
}

/* Ensure content is above overlays */
.mission-vision-section .container {
    position: relative;
    z-index: 3;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 42px;
    font-weight: 700;
    color: var(--tp-common-black);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--tp-theme-1);
}

.section-title p {
    font-size: 18px;
    color: var(--tp-text-body);
    max-width: 700px;
    margin: 20px auto 0;
    font-weight: 400;
}

/* Mission Vision Cards - Simple & Clean Theme Design */
.mission-vision-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 40px 35px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.mission-vision-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--tp-theme-1), #ff0844);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.mission-vision-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 50px rgba(221, 7, 51, 0.2);
}

.mission-vision-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--tp-theme-1), #ff0844);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: white;
    position: relative;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(221, 7, 51, 0.3);
}

.mission-vision-card:hover .card-icon {
    transform: scale(1.1);
    box-shadow: 0 10px 30px rgba(221, 7, 51, 0.5);
}

.card-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--tp-common-black);
    margin-bottom: 20px;
    position: relative;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--tp-theme-1);
}

.card-description {
    font-size: 16px;
    line-height: 1.8;
    color: var(--tp-text-body);
    margin-bottom: 25px;
    text-align: center;
    font-weight: 400;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.card-list li {
    padding: 15px 20px;
    padding-left: 45px;
    position: relative;
    color: var(--tp-text-body);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.3s ease;
    transform-origin: left;
}

.card-list li:hover {
    background: #fff;
    border-left-color: var(--tp-theme-1);
    transform: translateX(5px);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

/* Simple icon */
.card-list li::after {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    background: var(--tp-theme-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.card-list li:hover::after {
    background: var(--tp-common-black);
    transform: translateY(-50%) scale(1.1);
}

/* 3D Image Hover Effect (Grayscale) */
.image-3d-wrapper {
    position: relative;
    perspective: 1000px;
    margin-bottom: 30px;
}

.image-3d {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.320, 1);
    transform-style: preserve-3d;
    /* filter: grayscale(100%); */
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.image-3d-wrapper:hover .image-3d {
    transform: rotateY(10deg) rotateX(5deg) scale(1.05);
    filter: grayscale(0%);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}

/* UIverse Style Social Media Cards */
.social-cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    /* justify-content: center;
    margin-top: 30px; */
}

.social-card {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background: linear-gradient(145deg, #ffffff, #e6e6e6);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.1),
                -5px -5px 15px rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    overflow: hidden;
}

.social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, transparent, rgba(255, 255, 255, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.social-card:hover::before {
    opacity: 1;
}

.social-card:hover {
    transform: translateY(-10px) scale(1.1) rotateZ(5deg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2),
                0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-card i {
    font-size: 20px;
    transition: all 0.4s ease;
    z-index: 1;
}

.social-card.whatsapp {
    background: linear-gradient(145deg, #25D366, #20BA5A);
}

.social-card.whatsapp:hover {
    background: linear-gradient(145deg, #20BA5A, #128C7E);
}

.social-card.whatsapp i {
    color: white;
}

.social-card.facebook {
    background: linear-gradient(145deg, #1877F2, #0D65D9);
}

.social-card.facebook:hover {
    background: linear-gradient(145deg, #0D65D9, #0952B3);
}

.social-card.facebook i {
    color: white;
}

.social-card.instagram {
    background: linear-gradient(145deg, #E4405F, #D62976, #962FBF, #4F5BD5);
}

.social-card.instagram:hover {
    background: linear-gradient(145deg, #D62976, #962FBF, #4F5BD5);
}

.social-card.instagram i {
    color: white;
}

.social-card.linkedin {
    background: linear-gradient(145deg, #0A66C2, #004182);
}

.social-card.linkedin:hover {
    background: linear-gradient(145deg, #004182, #003366);
}

.social-card.linkedin i {
    color: white;
}

.social-card.twitter {
    background: linear-gradient(145deg, #1DA1F2, #0C7ABF);
}

.social-card.twitter:hover {
    background: linear-gradient(145deg, #0C7ABF, #0A5C8F);
}

.social-card.twitter i {
    color: white;
}

/* Animated Icon Effect */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

.social-card:hover i {
    animation: bounce 0.6s ease infinite;
}

/* Values/Benefits List - Simple & Clean */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
    position: relative;
    z-index: 2;
}

.value-item {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
    position: relative;
}

.value-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--tp-theme-1), #ff0844);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.value-item:hover::before {
    opacity: 1;
}

.value-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 35px rgba(221, 7, 51, 0.15);
}

.value-item h5 {
    color: var(--tp-common-black);
    font-weight: 700;
    margin-bottom: 12px;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.value-item h5 i {
    margin-right: 10px;
    font-size: 20px;
    color: var(--tp-theme-1);
    transition: all 0.3s ease;
}

.value-item:hover h5 i {
    transform: scale(1.2);
}

.value-item p {
    color: var(--tp-text-body);
    font-size: 15px;
    margin: 0;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .mission-vision-section {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 36px;
        letter-spacing: 1px;
    }

    .section-title h2::after {
        display: none;
    }

    .section-title p {
        font-size: 16px;
    }

    /* Flip Card Responsive */
    .flip {
        width: 100%;
        max-width: 350px;
        height: 450px;
        padding: 0.8em;
    }

    .flip h2 {
        font-size: 2.5em;
    }

    .flip .front p {
        font-size: 1.1em;
    }

    .flip .back p {
        font-size: 1em;
        line-height: 1.6em;
    }
    
    .mission-vision-card {
        padding: 35px 25px;
        margin-bottom: 25px;
    }
    
    .card-icon {
        width: 80px;
        height: 80px;
        font-size: 32px;
    }
    
    .card-title {
        font-size: 28px;
    }

    .card-description {
        font-size: 15px;
    }

    .card-list li {
        font-size: 14px;
        padding: 12px 15px;
        padding-left: 45px;
    }

    .card-list li::after {
        font-size: 20px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-item {
        padding: 25px 20px;
    }
    
    .social-card {
        width: 65px;
        height: 65px;
    }
    
    .social-card i {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 28px;
    }

    /* Flip Card Mobile */
    .flip {
        max-width: 300px;
        height: 400px;
        padding: 0.6em;
    }

    .flip h2 {
        font-size: 2em;
        letter-spacing: 1px;
    }

    .flip .front p {
        font-size: 1em;
    }

    .flip .back p {
        font-size: 0.95em;
        padding: 0 5px;
    }

    .card-title {
        font-size: 24px;
    }

    .card-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }
}

/* Parallax Effect for Background */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Anchor Links Offset */
section[id] {
    scroll-margin-top: 100px;
}

/* Floating Shapes Background - Simplified */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.3;
}

.floating-shape {
    position: absolute;
    opacity: 0.5;
    animation: floatShape 25s ease-in-out infinite;
}

.floating-shape.shape-1 {
    width: 60px;
    height: 60px;
    background: var(--tp-theme-1);
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape.shape-2 {
    width: 80px;
    height: 80px;
    background: var(--tp-theme-1);
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-shape.shape-3 {
    width: 40px;
    height: 40px;
    background: var(--tp-theme-1);
    border-radius: 50%;
    bottom: 20%;
    left: 20%;
    animation-delay: 10s;
}

.floating-shape.shape-4 {
    width: 70px;
    height: 70px;
    background: var(--tp-theme-1);
    border-radius: 50%;
    top: 30%;
    right: 30%;
    animation-delay: 15s;
}

.floating-shape.shape-5 {
    width: 50px;
    height: 50px;
    background: var(--tp-theme-1);
    border-radius: 50%;
    bottom: 30%;
    right: 10%;
    animation-delay: 20s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(20px, -20px);
    }
    50% {
        transform: translate(0, -40px);
    }
    75% {
        transform: translate(-20px, -20px);
    }
}

/* Glow effect for cards */
.mission-vision-card.glow-effect {
    animation: cardGlow 3s ease-in-out infinite;
}

@keyframes cardGlow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
    50% {
        box-shadow: 0 20px 60px rgba(255, 0, 128, 0.4),
                    0 0 60px rgba(255, 140, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.4);
    }
}

/* Staggered animation for list items */
.card-list li {
    animation: slideInLeft 0.6s ease-out backwards;
}

.card-list li:nth-child(1) { animation-delay: 0.1s; }
.card-list li:nth-child(2) { animation-delay: 0.2s; }
.card-list li:nth-child(3) { animation-delay: 0.3s; }
.card-list li:nth-child(4) { animation-delay: 0.4s; }
.card-list li:nth-child(5) { animation-delay: 0.5s; }
.card-list li:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
