/* .mcs-section {
    border-radius: 20px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/17.jpg');
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-top: 90px;
}

@media (max-width: 1199px) {
    .mcs-section {
        margin-top: 100px;
    }
} */

:root {
    --brand-teal: #008080;
    --brand-orange: #FFA500;
    --brand-dark: #333333;
}

.mcms-section {
    position: relative;
    border-radius: 20px;
    min-height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    margin-bottom: 2rem;
    margin-top:120px;
    overflow: hidden;
    text-align: center;
    padding: 20px;
    /* box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); */
    background:linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),url('../images/mcms.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: backgroundFade 1.5s ease-in-out forwards;
}
.mcms-content {
    position: relative;
    z-index: 2;
    max-width: 90%;
}

.mcms-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.mcms-background img {
    width: 100%;
    height: 70%;
    object-fit: cover;
    opacity: 0.5;
}

.mcms-content h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    animation: splitText 1.5s ease-out forwards;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.mcms-content p {
    font-size: 1.5rem;
    line-height: 1.75;
    margin: 0 auto;
    max-width: 600px;
    opacity: 0;
    animation: slideUpFade 1s ease-out 0.5s forwards;
}
/* Split Text Effect */
@keyframes splitText {
    0% {
        clip-path: polygon(0 50%, 100% 50%, 100% 50%, 0 50%);
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
        transform: scale(1);
        opacity: 1;
    }
}


@media (min-width: 769px) and (max-width: 1024px) {
    .content-desktop { display: none; }
    .content-tablet { display: block; }
}

@media (max-width: 768px), (min-width: 1025px) {
    .content-tablet { display: none; }
    .content-desktop { display: block; }
}


/* Fade-In Slide-Up Effect for Text */
@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Fade-In */
@keyframes backgroundFade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 456px) {
    .mcms-section {
        margin-top: 145px;
    }
}

/* Responsive Fix */
@media (max-width: 768px) {
    .mcms-section {
        min-height: 60vh;
        padding: 10%;
    }
    
    .mcms-content {
        max-width: 95%;
    }
}
@keyframes fadeZoomIn {
    0% {
        opacity: 0;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes splitText {
    0% {
        clip-path: inset(0 100% 0 0);
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        clip-path: inset(0 0 0 0);
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.spec-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.spec-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.spec-header {
    background: var(--brand-teal);
    padding: 20px;
    color: white;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-header h4 {
    font-size: 1.3rem;
    font-weight: bold;
}

.spec-body {
    padding: 20px;
    text-align: center;
}

.spec-body p {
    font-size: 1rem;
    color: #333;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* .interface-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg,#1B75BC,  #39B54A);
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
} */

.interface-icon:hover {
    transform: scale(1.1);
}

.key-features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px; /* Adjust spacing between cards */
}

.feature-card {
    flex: 1 1 calc(33.33% - 30px); /* Ensures 3 cards per row with spacing */
    max-width: calc(33.33% - 30px); /* Prevents overflow */
    background: #f4f4f4;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card i {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .feature-card {
        flex: 1 1 calc(50% - 30px); /* 2 cards per row */
        max-width: calc(50% - 30px);
    }
}

@media (max-width: 768px) {
    .feature-card {
        flex: 1 1 100%; /* 1 card per row */
        max-width: 100%;
    }
}


.interface-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px; /* Adjusts space between cards */
}

.interface-card {
    background: #f4f4f4;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px; /* Ensures cards align well and are responsive */
    max-width: 350px;
    text-align: center;
}

.interface-icon i {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background: linear-gradient(45deg,#1B75BC,  #39B54A);
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .interface-grid {
        flex-direction: column;
        align-items: center;
    }
}


         .mcms-projects {
            background-color: #1a4a6e;
            padding: 2rem 0;
            
        }

        .mcms-projects-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1rem;
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 1rem;
        }

        .mcms-project-card {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            aspect-ratio: 16/9;
            background-color: #f4f4f4;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            margin: 1rem;
            cursor: pointer;
        }

        .mcms-project-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }

        .mcms-project-card img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            transition: transform 0.3s ease;
            display: block;
            background-color: #e0e0e0;
        }

        /* Image loading fallback */
        .mcms-project-card img {
            background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23e0e0e0"/><text x="50" y="45" text-anchor="middle" fill="%23666" font-size="12">Loading</text><text x="50" y="60" text-anchor="middle" fill="%23666" font-size="12">Image...</text></svg>');
            background-repeat: no-repeat;
            background-position: center;
            background-size: 100px 100px;
        }

        .mcms-project-overlay {
            position: absolute;
            bottom: -100%;
            left: 0;
            width: 100%;
            padding: 1.5rem;
            background: rgba(0, 0, 0, 0.8);
            color: white;
            text-align: center;
            transition: bottom 0.3s ease;
            box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
            box-sizing: border-box;
        }

        .mcms-project-overlay h3 {
            margin: 0 0 0.5rem 0;
            font-size: 1.2rem;
            font-weight: bold;
            color: #fff;
        }

        .mcms-project-overlay p {
            margin: 0;
            font-size: 0.9rem;
            opacity: 0.9;
            line-height: 1.4;
            color: #fff;
        }

        .mcms-project-card:hover img {
            transform: scale(1.05);
        }

        /* IMPORTANT: Fixed hover selector */
        .mcms-project-card:hover .mcms-project-overlay {
            bottom: 0;
        }

        .text-center {
            text-align: center;
        }

        .mt-1 {
            margin-top: 0.25rem;
        }

        /* Debug styles */
        .debug-info {
            position: absolute;
            top: 5px;
            left: 5px;
            background: rgba(255, 0, 0, 0.8);
            color: white;
            padding: 2px 5px;
            font-size: 10px;
            border-radius: 3px;
            z-index: 10;
        }

        @media screen and (max-width: 768px) {
            .mcms-projects-container {
                grid-template-columns: 1fr;
                padding: 0 0.5rem;
            }

            .mcms-project-overlay {
                padding: 1rem;
            }

            .mcms-project-overlay h3 {
                font-size: 1rem;
            }

            .mcms-project-overlay p {
                font-size: 0.8rem;
            }
        }

        @media screen and (min-width: 768px) and (max-width: 1024px) {
            .mcms-projects-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Test overlay visible by default for debugging */
        .debug-overlay-visible .mcms-project-overlay {
            bottom: 0;
            background: rgba(255, 0, 0, 0.7);
        }