.VID {
    font-family: var(--font-family-primary);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}
:root {

    --nema-accent: #ff6b6b;
    --ez-accent: #4ecdc4;
    --subtext-color: rgb(75, 68, 68);

}
/* ===============================
    1. First Section CSS
================================== */

.VID-first-section {
    background-color: white;
    padding: 100px 20px 0px 20px;
}

.VID-first-section-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1170px;
    margin: 0 auto;
    flex-direction: row;
}

/* .VID-first-section-image {
    flex: 1 1 40%;
    text-align: center;
    order: 1;
} */

.VID-first-section-image img {
    max-width: 100%;
    height: auto;
}

.VID-first-section-text {
    flex: 1 1 50%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: url('/images/AboutUs/AboutUsBlurEffects.png') no-repeat center center;
    background-size: contain;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
    order: 2;
}

.VID-first-section-text h1 {
    font-size: 50px;
    background: linear-gradient(280.65deg, #5B388C 42.09%, #5B388C 43.11%, #7956A1 68.6%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    margin-bottom: 20px;
    white-space: nowrap;
}

.VID-first-section-text p {
    font-size: 20px;
    color: #575B66;
    max-width: 75%;
    text-align: center;
    font-weight: 400;
}

/******** Responsive adjustments for Visual Identity Design First Section ********/

@media (max-width: 1200px) {
    .VID-first-section {
        padding: 80px 90px 0px 90px;
    }
    .VID-first-section-image {
        flex: 1 1 40%;
    text-align: center;
    order: 1;
    display: flex;
    justify-content: center;

    }
}

@media (max-width: 992px) {
    .VID-first-section {
        padding: 50px 20px;
    }

    .VID-first-section-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .VID-first-section-container.rtl {
        flex-direction: column;
    }

    .VID-first-section-image,
    .VID-first-section-text {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 20px 10px;
    }
    .VID-first-section-image {
        flex: 1 1 40%;
    text-align: center;
    order: 1;
    display: flex;
    justify-content: center;

    }

    .VID-first-section-image img {
        max-width: 80%;
        height: auto;

    }

    .VID-first-section-text h1 {
        font-size: 40px;
    }

    .VID-first-section-text p {
        font-size: 18px;
        max-width: 90%;
    }
}

@media (max-width: 576px) {
    .VID-first-section {
        padding: 20px;
    }

    .VID-first-section-container {
        padding: 50px 20px 20px 20px;
    }

    .VID-first-section-image img {
        max-width: 80%;
        margin-bottom: 20px;
    }

    .VID-first-section-text h1 {
        font-size: 33px;
        word-wrap: break-word;
    }

    .VID-first-section-text p {
        font-size: 14px;
        max-width: 100%;
    }
}

@media (max-width: 450px) {
    .VID-first-section {
        padding: 20px;
    }

    .VID-first-section-container {
        text-align: center;
        padding: 40px 20px 0 20px;
    }
}

@media (max-width: 350px) {
    .VID-first-section-text h1 {
        font-size: 25px;
        word-wrap: break-word;
    }

    .VID-first-section-text p {
        font-size: 14px;
        max-width: 100%;
    }
}

/* ===============================
    VID Second Section CSS
================================== */

.VIS-second-section {
    position: relative;
    background-color: white;
    padding: 20px 50px;
    margin-bottom: 30px;
}

.VIS-second-section-header {
    text-align: center;
    margin-bottom: 20px;
}

.VIS-second-section-header h2 {
    font-size: 35px;
    color: var(--primary-color);
    font-weight: bold;
}

.VIS-second-section-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    max-width: 1170px;
    margin: 0 auto;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.VIS-second-section-text {
    flex: 1 1 60%;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    max-width: 60%;
    margin-right: 15px;
    margin-top: 15px;
    margin-left: 15px;
    margin-bottom: 15px;
}

.VIS-second-section-text p {
    font-size: 20px;
    color: #000;
    text-align: left;
    line-height: 1.5;
    font-family: var(--font-family-regular);
}

.rtl .VIS-second-section-text p {
    font-size: 20px;
    color: #000;
    text-align: right;
    line-height: 1.5;
    font-family: var(--font-family-regular);
}

.VIS-second-section-text p.short {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.VIS-second-section-text p.full {
    display: block;
}

.VIS-second-section-text .read-more {
    color: var(--secondary-color);
    cursor: pointer;
    display: block;
    margin-top: 10px;
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    font-size: 16px;
    line-height: 24px;
}

.VIS-second-section-image {
    flex: 1 1 35%;
    text-align: center;
}

.VIS-second-section-image img {
    max-width: 90%;
    height: auto;
    display: flex;
    justify-content: center;
}



.VIS-second-section-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: auto;
    z-index: -1;
}

/******** Responsive adjustments for VID Second Section ********/

@media (max-width: 1200px) {
    .VIS-second-section-container {
        flex-direction: column;
        text-align: center;
        padding: 20px;
        max-width: 90%;
    }

    .VIS-second-section-text,
    .VIS-second-section-image {
        flex: 1 1 100%;
        max-width: 90%;
        align-items: center;
        display: flex;
        justify-content: center;
    }

    .VIS-second-section-text {
        padding-left: 0;
        text-align: center;
        margin-right: 0;
        margin-bottom: 20px;
    }

    .VIS-second-section-header h2 {
        font-size: 30px;
    }

    .VIS-second-section-text p {
        font-size: 20px;
        max-width: 100%;
        text-align: center;
    }

    .rtl .VIS-second-section-text p {
        font-size: 20px;
        max-width: 100%;
        text-align: center;
    }

    .rtl .VIS-second-section-text p.short {
        text-align: center;
    }

    .rtl .VIS-second-section-text p.full {
        text-align: center;
    }

    .VIS-second-section-image {
        margin-left: 0;
    }

    .VIS-second-section-image img {
        max-width: 55%;
    }
    .ss-VID-third-section .video-container {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .VIS-second-section {
        padding: 20px 0;
    }

    .VIS-second-section-header h2 {
        font-size: 22px;
    }

    .VIS-second-section-container {
        padding: 10px;
        max-width: 90%;
    }

    .VIS-second-section-text p {
        font-size: 15px;
    }

    .VIS-second-section-image img {
        max-width: 70%;
    }

    .VIS-second-section-corner {
        width: 100px;
    }
}

/* ===============================
    VID Third Section CSS
================================== */

.ss-VID-third-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
    margin: 20px 0;
    border-radius: 8px;
    padding: 20px;
    max-width: 1170px;
    margin: 20px auto;
}

.ss-VID-third-section h2 {
    font-size: 35px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    margin-bottom: 20px;
}

.ss-VID-third-section .arrow-image {
    margin-top: -10px;
    margin-bottom: 20px;
    width: 150px;
    height: auto;
}

.ss-VID-third-section .video-container {
    position: relative;
    max-width: 100%;
    display: flex;
    justify-content: center;
}

.ss-VID-third-section .video-container .video-thumbnail {
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
}

.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    /* Stay in place */
    z-index: 1;
    /* Sit on top */
    left: 0;
    top: 0;
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    overflow: auto;
    /* Enable scroll if needed */
    background-color: rgba(0, 0, 0, 0.8);
    /* Black w/ opacity */
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 700px;
    padding: 0;
}

.modal-content video {
    width: 100%;
    height: auto;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    z-index: 999;
}

/******** Responsive adjustments for VID Third Section ********/

@media (max-width: 992px) {
    .ss-VID-third-section {
        padding: 15px;
    }

    .ss-VID-third-section h2 {
        font-size: 30px;
    }

    .ss-VID-third-section .arrow-image {
        width: 100px;
    }

    .ss-VID-third-section .video-container img {
        max-width: 60%;
    }
}

@media (max-width: 768px) {
    .ss-VID-third-section {
        padding: 15px;
    }

    .ss-VID-third-section h2 {
        font-size: 22px;
    }

    .ss-VID-third-section .arrow-image {
        width: 100px;
    }

    .ss-VID-third-section .video-container img {
        max-width: 50%;
    }
}

@media (max-width: 480px) {
    .ss-VID-third-section {
        padding: 10px;
    }

    .ss-VID-third-section h2 {
        font-size: 22px;
    }

    .ss-VID-third-section .arrow-image {
        width: 70px;
    }

    .ss-VID-third-section .video-container img {
        max-width: 80%;
    }

    .VIS-second-section-image img {
        max-width: 50%;
    }

    .VIS-second-section-text p {
        font-size: 12px;
        max-width: 100%;
        text-align: center;
    }

    .rtl .VIS-second-section-text p {
        font-size: 12px;
        max-width: 100%;
        text-align: center;
    }
}


/* Responsive adjustments for the modal content */
@media (max-width: 992px) {
    .modal-content {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
    }
}



/* section  */



.dual-portfolio-section {
    padding: 100px 0;
    background-color: var(--section-bg);
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-title {
    font-size: 35px;
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 10px;
    position: relative;
    margin-bottom: 20px;
}

.divider {
    position: relative;
    height: 4px;
    width: 100px;
    background: var(--gradient-color);
    margin: 0 auto 25px;
    border-radius: 4px;
}

.divider-circle {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 2s infinite;
}

.section-description {
    color: var(--subtext-color);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.dual-portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
}

.dual-portfolio-item {
    position: relative;
}

.portfolio-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(91, 56, 140, 0.15);
    transition: transform 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.dual-portfolio-item:hover .portfolio-card {
    transform: translateY(-10px);
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.dual-portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.color-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.nema-item .color-overlay {
    background: linear-gradient(45deg, rgba(91, 56, 140, 0.7) 0%, rgba(255, 107, 107, 0.5) 100%);
}

.ez-item .color-overlay {
    background: linear-gradient(45deg, rgba(91, 56, 140, 0.7) 0%, rgba(78, 205, 196, 0.5) 100%);
}

.dual-portfolio-item:hover .color-overlay {
    opacity: 1;
}

.portfolio-content {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-white);
    position: relative;
}
 .ltr .project-number {
    position: absolute;
    top: 40px;
    right: 40px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(91, 56, 140, 0.05);
    line-height: 1;
}
.rtl .project-number {
    position: absolute;
    top: 40px;
    left: 40px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(91, 56, 140, 0.05);
    line-height: 1;
}

/* .nema-item .project-number {
    color: rgba(255, 107, 107, 0.0);
}

.ez-item .project-number {
    color: rgba(78, 205, 196, 0.9);
} */
/* .nema-item .project-number {
    color: rgba(255, 107, 107, 0.4);
}

.ez-item .project-number {
    color: rgba(78, 205, 196, 0.4);
} */
.nema-item .project-number {
    color: #cc4444;
}

.ez-item .project-number {
    color: #329e96;
}

.portfolio-card h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.project-category {
    color: var(--secondary-color);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 30px;
}

.project-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(91, 56, 140, 0.05);
    padding: 8px 15px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
}

.nema-item .highlight-item {
    background: rgba(255, 107, 107, 0.1);
    color: var(--nema-accent);
}

.ez-item .highlight-item {
    background: rgba(78, 205, 196, 0.1);
    color: var(--ez-accent);
}

.highlight-item svg {
    flex-shrink: 0;
}

.project-description {
    color: var(--subtext-color);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 40px;
}

.explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.explore-btn svg {
    transition: transform 0.3s ease;
}

.explore-btn:hover {
    color: var(--secondary-color);
}

.explore-btn:hover svg {
    transform: translateX(5px);
}

.nema-item .explore-btn {
    color: var(--nema-accent);
}

.ez-item .explore-btn {
    color: var(--ez-accent);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .portfolio-card {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .portfolio-content {
        padding: 40px;
    }

    .portfolio-image {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }

    .section-description {
        font-size: 1.1rem;
    }

    .dual-portfolio-grid {
        gap: 40px;
    }

    .portfolio-card h3 {
        font-size: 1.8rem;
    }

    .project-description {
        font-size: 1rem;
    }
    .project-highlights{
        margin-bottom: 20px;
        gap: 10px;
    }

}

@media (max-width: 480px) {
    .dual-portfolio-section {
        padding: 60px 0;
    }

    .section-header {
        margin-bottom: 50px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .portfolio-content {
        padding: 30px;
    }
     .ltr .project-number {
        top: 20px;
        left: 20px;
        font-size: 2rem;
    }

    .rtl .project-number {
        top: 20px;
        left: 20px;
        font-size: 2rem;
    }
    .portfolio-card h3 {
        font-size: 24px;
    }
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
