﻿
.xp-about {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #041D2E, #0A3A52);
    padding: 0 50px;
    color: #fff;
}

/* Panels */
.xp-panel {
    flex: 1 1 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.5s ease;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
}
.xp-tx-left{
    margin-bottom:100px;
}
/* Left Panel */
.xp-left {
    background: linear-gradient(135deg, #002B43, #004F6E);
    color: #EAFBFF;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
    padding-left: 20px;
}

/* Right Panel */
.xp-right {
    background: #f9fbfd;
    color: #041D2E;
   
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.1);
}

    .xp-right .xp-content p {
        color: #333;
    }
/* Content */
.xp-content {
    max-width: 600px;
    text-align: left;
    z-index: 1;
    position: relative;
    top:20px;
}

    .xp-content h1 {
        font-size: clamp(3rem, 6vw, 3.5rem) !important ;
        font-weight: 700;
        margin-bottom: 20px;
        text-transform: uppercase;
        letter-spacing: 3px;
        line-height: 1.2;
        color: #00E5FF;
    }

    .xp-content h2 {
        font-size: clamp(1.5rem, 5vw, 2rem);
        font-weight: 600;
        color: #0077B6;
        margin-bottom: 10px;
    }

    .xp-content p {
        font-size: clamp(0.95rem, 5vw, 1.2rem);
        line-height: 1.8;
        margin-bottom: 30px;
        font-weight: 400;
        color: rgba(240, 250, 255, 0.9);
    }



/* Hover effect for panels */
.xp-panel:hover {
    transform: translateY(-15px);
    box-shadow: rgba(0, 0, 0, 0.25) 0px 30px 70px;
}

/* Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.xp-content {
    animation: fadeInLeft 1s ease-out;
}

    .xp-content h1, .xp-content p {
        animation: fadeInLeft 1.2s ease-out;
    }

.xp-ontent h2 {
    animation: fadeInRight 1.4s ease-out;
}


/* === Responsive === */
@media (max-width: 992px) {
    .xp-about {
        grid-template-columns: 1fr;
        padding: 20px;
        min-height: auto;
    }

    .xp-panel {
        padding: 60px 20px;
        height: auto;
    }

    .xp-right {
        margin-top:30px;
        clip-path: none;
    }
    .xp-left {
     
        clip-path: none;
    }
    .xp-tx-left {
        margin-bottom:20px;
   
    }
    /*.xp-tx-right {
        margin-top: 20px;
    }*/
}

@media (max-width: 480px) {
    .xp-content h1 {
        font-size: clamp(2rem, 8vw, 2rem) !important ;
    }

    .xp-content h2 {
        font-size: clamp(1.2rem, 6vw, 3.6rem);
    }

    .xp-content p {
        font-size: clamp(0.95rem, 5vw, 3.6rem);
        line-height: 1.6;
    }

  
}
@media (max-width: 380px) {
    .xp-content h1 {
        font-size: clamp(1.8rem, 8vw, 1.8rem) !important;
    }

  

}
@media (max-width: 310px) {
 
    
    .xp-tx-left {
        margin-bottom:0;
      
    }

    .xp-tx-right {
        margin-top: 0;
    }
}