/* Portfolio Sticky Cards Section */
.portfolio-tm {
    padding: 60px 0;
    overflow: visible !important;
    position: relative;
}
.card-tm-wrap {
    margin-top: 40px;
    position: relative;
}
.card-tm {
    position: relative;
    height: 450vh;
}

.card-tm:nth-child(1) {
    height: 450vh;
}

.card-tm:nth-child(2) {
    margin-top: -360vh;
    height: 360vh;
}

.card-tm:nth-child(3) {
    margin-top: -270vh;
    height: 270vh;
}

.card-tm:nth-child(4) {
    margin-top: -180vh;
    height: 180vh;
}

.card-tm:nth-child(5) {
    margin-top: -90vh;
    height: 90vh;
}

/* Add more cards following the same pattern */
.card-tm:nth-child(6) {
    margin-top: 0vh;
    height: 0vh;
}

.card-tm_wrap__card-stick {
    top: 2rem;
    position: -webkit-sticky !important;
    position: sticky !important;
    display: grid;
    grid-template-areas: "img text";
    grid-template-columns: 1fr 1fr;
    align-items: center;
    border-radius: 200px;
    background: #fffaf2;
    height: 80vh;
    margin: 0 80px;
    overflow: hidden;
    z-index: 1;
}

.tp-about-thumb {
    grid-area: img;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 60px; */
}

.tp-about-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    margin-right: -150px;
}

.tp-about-content {
    grid-area: text;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tp-section-subtitle {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.tp-section-subtitle i {
    display: inline-block;
    width: 30px;
    height: 2px;
    background: #666;
    vertical-align: middle;
    margin-right: 8px;
}

.tp-section-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.2;
}

.tp-about-content p {
    font-size: 15px;
    line-height: 1.8;
    color: #111;
    margin-bottom: 25px;
}

.tp-about-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-about-content ul li {
    font-size: 15px;
    color: #111;
}

.tp-about-content ul li i {
    color: #4CAF50;
    margin-right: 10px;
}

.tp-about-btn {
    margin-top: 30px;
}

.tp-btn {
    display: inline-block;
    padding: 15px 40px;
    background: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.tp-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Color variations for cards */
.color2 {
    background: #f0f8ff;
}

.color3 {
    background: #fff5e6;
}

.color4 {
    background: #f0fff4;
}

.color5 {
    background: #fef3f3;
}

/* Empty section styling */
.empty-section {
    height: 100vh;
    background: grey;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 2rem;
}

/* Responsive styles */
@media (max-width: 991px) {
    .card-tm_wrap__card-stick {
        margin: 0 30px;
        grid-template-areas: 
            "img"
            "text";
        grid-template-columns: 1fr;
        height: auto;
        min-height: 70vh;
        border-radius: 30px;
    }

    .tp-about-thumb {
        padding: 40px;
    }

    .tp-about-content {
        padding: 40px;
    }

    .tp-section-title {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .card-tm_wrap__card-stick {
        margin: 0 15px;
        border-radius: 20px;
    }

    .tp-about-thumb {
        padding: 30px;
    }

    .tp-about-content {
        padding: 30px;
    }

    .tp-section-title {
        font-size: 1.75rem;
    }
    
    .card-tm {
        height: 350vh;
    }

    .card-tm:nth-child(1) {
        height: 350vh;
    }

    .card-tm:nth-child(2) {
        margin-top: -280vh;
        height: 280vh;
    }

    .card-tm:nth-child(3) {
        margin-top: -210vh;
        height: 210vh;
    }

    .card-tm:nth-child(4) {
        margin-top: -140vh;
        height: 140vh;
    }

    .card-tm:nth-child(5) {
        margin-top: -70vh;
        height: 70vh;
    }
    .tp-about-thumb img{
        margin-right: 0px;
    }
    .portfolio-tm {
        padding: 60px 0 160px;
    }
}