.card-wrapper {
    transform: scale(0.9);
    transform-origin: center;
    margin: 0 auto;
    max-width: 100%;
}

.team-header {
    padding: 4rem 1rem;
}

.about-card-container {
    position: relative;
    overflow: hidden;
    height: 400px;
    display: flex;
    align-items: flex-end;
    border-radius: 12px;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    border: 1px solid transparent;
    background-color: #1e0e5322;
    transition: transform 0.5s ease;
    transform: skewX(-15deg);
    z-index: 0;
}

.about-card-container:hover {
    transform: skewX(-15deg) translateY(-5px);
}

.about-card-container::before,
.about-card-container::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 1px solid transparent;
    border-radius: 12px;
    transition: all 0.5s ease;
    z-index: 1;
}

.about-card-container::before {
    top: 0;
    left: 0;
    border-top-color: #4da6ff;
    border-left-color: #4da6ff;
}

.about-card-container::after {
    bottom: 0;
    right: 0;
    border-bottom-color: #4da6ff;
    border-right-color: #4da6ff;
}

.about-card-container:hover::before,
.about-card-container:hover::after {
    width: 100%;
    height: 100%;
}

.about-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: skewX(15deg) scale(1);
    z-index: 2;
}

.overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top,
            rgba(0, 8, 80, 0.8) 0%,
            rgba(0, 8, 80, 0.4) 40%,
            rgba(0, 0, 0, 0) 100%);
    z-index: 3;
}

.about-content {
    font-family: 'Montserrat', sans-serif;
    transform: skewX(25deg);
    z-index: 4;
    text-align: left;
    padding: 1.5rem;
    width: 100%;
    position: relative;
}

.about-name {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
    color: #e0e0e0;
    margin-left: 0.7rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.about-desc {
    font-size: 0.95rem;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    transform: skewX(-15deg);
}   

.about-role {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    margin-left: 0.5rem;
    transform: skewX(-15deg);
}

.section-wrapper {
    max-width: 1200px;
    margin: 10px auto;
    padding: 0 1rem;
}

.our-learnings,
.who-we-are {
    padding: 80px 50px 20px;
}

.our-learnings {
    border-bottom: 1px solid #4cc9f0;
    border-radius: 0 0 75px 0;
}

.who-we-are {
    justify-content: center;
    text-align: right;
    border-bottom: 1px solid #4cc9f0;
    border-radius: 0 0 0 75px;
    margin-top: -1px;
}

.new-title h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4cc9f0;
}

.title h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #4cc9f0;
}

.section-desc {
    font-size: 1rem;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .about-card-container {
        transform: none;
        height: auto;
        display: block;
    }

    .about-card {
        position: relative;
        transform: none;
        height: 200px;
    }

    .about-card-container:hover {
        transform: none;
    }

    .about-card-container:hover::before,
    .about-card-container:hover::after {
        width: 0;
        height: 0;
    }

    .about-content {
        transform: none;
        margin-left: 0;
        height: auto;
        padding: 0.5rem;
        overflow: hidden;
    }

    .about-name {
        transform: none;
        font-size: 1rem;
        margin-left: 0;
    }

    .about-desc {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        transition: all 0.3s ease;
        cursor: pointer;
        transform: none;
    }

    .about-desc.collapsed {
        -webkit-line-clamp: 3;
        line-clamp: 3;
        max-height: 4.5em;
    }

    /* Expanded = show full content */
    .about-desc.expanded {
        -webkit-line-clamp: unset;
        line-clamp: unset;
        max-height: none;
    }

    .overlay {
        height: 50%;
    }

    .our-learnings,
    .who-we-are {
        padding: 50px 25px 20px;
    }

    .our-learnings {
        border-radius: 0 0 50px 0;
    }

    .who-we-are {
        border-radius: 0 0 0 50px;
    }

    .new-title h1 {
        border-bottom: 1px dashed #4cc9f0;
        padding: 1rem 0 0.7rem;
        font-size: 1.5rem;
    }

    .team-header {
        padding: 2rem 1rem;
    }

    .section-wrapper {
        padding: 0 1rem;
    }
}