.team-section {
    padding: 60px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header p {
    margin-top: 10px;
    color: var(--color-text);
    max-width: 70%;
    margin-inline: auto;
}

/* Cards */
.card-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.team-card {
    border: 1px solid transparent;
    background: linear-gradient(#fff, #fff) padding-box, linear-gradient(180deg, #FE5B154D 20%, #FE5B15 75.78%) border-box;
    box-shadow: 0px 16.95px 62.16px 0px #00000014;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Top */
.card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.card-step {
    color: #999;
    font-size: 13px;
}

.line {
    width: 30px;
    height: 1px;
    background: #616161;
}

.model {
    font-size: 14px;
    color: var(--color-text);
}

/* Content */
.team-card h3 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.desc {
    color: var(--color-text);
    margin-bottom: 20px;
}

.team-card h4 {
    margin-bottom: 10px;
    font-weight: 600;
}

/* List */
.team-card ul {
    list-style: none;
    margin-bottom: 25px;
    padding-left: 0;
}

.team-card ul li {
    position: relative;
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-card ul li span {
    border: 2px solid var(--color-primary);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Button */
.btn-knowmore {
    font-size: 14px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
    width: fit-content;
    margin-left: auto;
}

.btn-knowmore:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

/*--------------choose engagement modal---------------*/
.choose-engagement-modal-section {
    padding: 60px 0;
}

.section-header p {
    margin-top: 10px;
    max-width: 80%;
    margin-inline: auto;
}

/* Grid */
.choose-engagement-modal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Cards */
.choose-engagement-modal-section .card {
    padding: 25px;
    transition: 0.3s;
}

.border-gradient {
    height: auto;
    box-shadow: -11.05px 29.15px 17.86px 0px #6565651A;
}

.border-gradient .icon {
    margin-bottom: 10px;
}

.border-gradient .icon img {
    width: 34px;
}

.border-gradient:hover .icon {
    transform: translateY(0);
}

.border-gradient:hover h4 {
    transform: translateY(0);
}

.border-gradient p {
    margin: 5px 0 0 0;
}

.border-gradient:hover p {
    transform: translateY(0);
}


/* CTA Card */
.cta-card {
    grid-row: span 2;
    background: url('../images/ai-dev-card.png') center/cover no-repeat;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    color: #fff;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.cta-content h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1.8;
}

.btn-cta {
    border: 1px solid transparent;
    background: linear-gradient(#FE5B15, #FE5B15) padding-box, linear-gradient(180deg, #ffffff7a 0.03%, #ffffff 75.78%) border-box;
    inset: 0;
    border-radius: 6px;
    font-weight: 600;
    padding: 12px 20px;
    margin-top: 40px;
}

/*------------tech-category-grid------------*/
.tech-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 14px;
}

.tech-category-grid .card {
    margin-top: 1rem;

}

/*-------------comparision section--------------*/
.comparison-section {
    padding: 60px 0;
}

/* Table */
.table-wrapper {
    overflow-x: auto;
    background: var(--color-bg);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 900px;
}

.comparison-table tbody tr td:first-child {
    font-weight: 600;
    color: var(--color-text);
}

/* Head */
.comparison-table thead th {
    text-align: left;
    padding: 15px;
    font-size: 14px;
    font-weight: 600;
    background: #f0f0f0;
}

.comparison-table thead th.highlight {
    background: var(--color-primary);
    color: var(--color-white);
}

/* Body */
.comparison-table tbody td {
    padding: 14px 15px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: var(--color-text);
}

/* Highlight Column */
.comparison-table td.highlight {
    color: var(--color-primary);
    font-weight: 500;
}

/* Color helpers */
.green {
    color: #0EA700 !important;
}

.red {
    color: #E50000 !important;
}

.orange {
    color: var(--color-primary) !important;
}

/*-----------------modal-selection-section--------------*/
.form-box {
    width: 100%;
}

.modal-selection-section {
    padding: 60px 0;
}

.form-box h3 {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.form-box h4 {
    color: var(--color-primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.form-box p {
    margin-top: 2rem;
}

.form-box .step-label {
    margin: 20px 0;
}

.form-box #stepText {
    color: #777;
    font-size: 12px;
}

.form-box .step-name {
    color: #2e2e2e;
    font-size: 12px;
}

.form-box .options {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 15px;
}


.modal-selection-section .wpcf7-not-valid{
    margin-bottom: 0px !important;
}

.modal-selection-section .wpcf7-not-valid-tip{
    margin-bottom: 18px;
}


/*--------------team section---------------*/
.build-teams-section {
    padding: 60px 0;
}

h2 {
    margin-bottom: 40px;
}

.carousel-outer {
    position: relative;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Cards are all the same fixed DOM size — scale handles the visual difference */
 .bt-card {
    flex: 0 0 340px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: #f2f2f2;
    transform: scale(0.78);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .bt-card.active {
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(0,0,0,0.13);
  }


.bt-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Active dark overlay with title + desc */
.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 16px 16px;
    padding: 18px 20px;
    background: rgba(20, 20, 20, 0.68);
    opacity: 0;
    /* transition: opacity 0.4s ease 0.15s; */
}

.bt-card.active .card-overlay {
    opacity: 1;
}

.card-overlay .bt-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
}

.card-overlay .bt-desc {
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.55;
}

/* Inactive white label with title + desc */
.card-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 16px 16px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.93);
    opacity: 1;
    /* transition: opacity 0.3s ease; */
}

.bt-card.active .card-label {
    opacity: 0;
    pointer-events: none;
}

.card-label .bt-title {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-bottom: 4px;
}

.card-label .bt-desc {
    font-size: 11.5px;
    color: #666;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-label .bt-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #d94f1e;
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 5px;
    text-decoration: none;
}

.card-label .bt-read-more svg {
    width: 12px;
    height: 12px;
    stroke: #d94f1e;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Nav */
.nav-buttons {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    position: absolute;
    right: 50%;
    bottom: -14px;
    transform: translate(-179px, 10px);
}

.nav-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid #ccc;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.nav-btn:hover {
    border-color: var(--color-primary);
    background: #fff5f2;
}

.nav-btn svg {
    width: 17px;
    height: 17px;
    stroke: var(--color-primary);
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/*.swiper {
    padding: 5rem 0 0rem 0;
    overflow: visible;
}
*/
@media(min-width:992px) and (max-width:1499px) {
    .nav-buttons {
        right: unset;
        left: 45%;
        transform: translate(0, 10px);
    }
}

@media (max-width: 600px) {
    .bt-card {
        flex: 0 0 260px;
        height: 320px;
    }
}

/* Responsive */
@media(max-width:1200px) {
    .form-box .options {
        grid-template-columns: 1fr 1fr;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        grid-column: span 2;
        grid-row: auto;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .section-header h2 {
        font-size: 22px;
    }

    .form-box .options {
        grid-template-columns: 1fr;
    }
    
    .how-it-works .container-fluid {
        padding: 0 15px;
    }

}

@media (max-width: 576px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        grid-column: span 1;
    }

    .section-header h2 {
        font-size: 22px;
    }
}

/* Responsive */
@media (max-width: 991px) {
    .card-wrapper {
        grid-template-columns: 1fr;
    }

    .section-header p {
        max-width: 100%;
    }

    .nav-buttons {
        position: static;
        transform: none;
        justify-content: center;
    }
}

@media(max-width:768px) {
    .choose-engagement-modal-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .section-header h2 {
        font-size: 22px;
    }

    .team-card {
        padding: 20px;
    }

    .choose-engagement-modal-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}