/* ===== Services Section ===== */
.services-section {
    padding: 5rem 0 3rem;
}

.services-intro {
    margin-bottom: 3rem;
}

.services-intro h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.4rem);
    color: var(--white-color);
    line-height: 1.3;
    font-family: var(--poppins);
    font-weight: 600;
    text-align: center;
}

/* ===== Service Groups (NLP / CV / HITL) ===== */
.services-groups {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.services-group {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.services-group-title {
    color: var(--white-color);
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-family: var(--poppins);
    font-weight: 600;
}

/* ===== 2-card grid per group ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.nlp-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem;
}

@media (min-width: 768px) {
    .nlp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 360px;
}

.service-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: block;
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to top, rgba(0, 0, 0, 0.97) 50%, rgba(0, 0, 0, 0.4) 80%, transparent); */
    background-color: rgba(0, 0, 0, 0.65);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-card-overlay h3 {
    color: var(--white-color);
    font-size: 1.35rem;
    font-family: var(--poppins);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ===== Clickable Items inside service card ===== */
.service-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.service-item-btn {
    all: unset;
    color: var(--white-color);
    font-family: var(--roboto);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 0.2s;
    line-height: 1.4;
}

.service-item-btn .item-icon {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.6rem;
    transition: background-color 0.2s, border-color 0.2s;
}

.service-item-btn:hover {
    color: #ff9933;
}

.service-item-btn:hover .item-icon {
    border-color: #ff9933;
}

.service-item-btn.active {
    color: #ff9933;
}

.service-item-btn.active .item-icon {
    background-color: #ff9933;
    border-color: #ff9933;
}

/* ===== Use Cases Panel (hidden by default) ===== */
.use-cases-panel {
    display: none;
    margin-top: 3rem;
    animation: fadeSlideIn 0.3s ease;
}

.use-cases-panel.visible {
    display: block;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.use-cases-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.use-cases-panel-header h3 {
    color: var(--white-color);
    font-size: 1.2rem;
    font-family: var(--poppins);
    font-weight: 600;
}

.hide-panel-btn {
    all: unset;
    cursor: pointer;
    color: var(--white-color);
    font-family: var(--roboto);
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.45rem 1.1rem;
    border-radius: 6px;
    transition: 0.2s;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hide-panel-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ===== 6 Use-Case Sub-Cards ===== */
.use-cases-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 600px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .use-cases-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.use-case-card {
    background-color: var(--shade-of-black);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgb(55, 55, 55);
    display: flex;
    flex-direction: column;
}

.use-case-card figure {
    width: 100%;
    height: 155px;
    overflow: hidden;
    margin: 0;
}

.use-case-card figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.use-case-card-body {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.use-case-card-body h4 {
    color: var(--white-color);
    font-size: 0.95rem;
    font-family: var(--poppins);
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
}

.use-case-card-body p {
    color: rgba(246, 246, 246, 0.65);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}

.read-use-case-btn {
    all: unset;
    cursor: pointer;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--white-color);
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-family: var(--roboto);
    transition: 0.2s;
    align-self: flex-start;
    margin-top: 0.3rem;
}

.read-use-case-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ===== Prompt Example Cards ===== */
.prompt-cards-grid {
    grid-template-columns: 1fr;
}

@media (min-width: 600px) {
    .prompt-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .prompt-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.prompt-card {
    background-color: var(--shade-of-black);
    border-radius: 10px;
    border: 1px solid rgb(55, 55, 55);
    padding: 1.5rem 1.4rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.prompt-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.prompt-label {
    display: inline-block;
    font-family: var(--roboto);
    font-size: 0.75rem;
    font-weight: 600;
    color: #ff9933;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.8rem;
}

.prompt-section-title {
    color: rgba(246, 246, 246, 0.6);
    font-family: var(--poppins);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

.prompt-card-body p {
    color: rgba(246, 246, 246, 0.85);
    font-family: var(--roboto);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
    font-style: italic;
    flex: 1;
}

.prompt-translation {
    display: none;
    color: rgba(246, 246, 246, 0.65);
    font-family: var(--roboto);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
    font-style: normal;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.8rem;
    margin-top: 0.5rem;
}

.prompt-translation.visible {
    display: block;
}

.show-translation-btn {
    all: unset;
    cursor: pointer;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: var(--white-color);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.78rem;
    font-family: var(--roboto);
    transition: 0.2s;
    align-self: flex-start;
    margin-top: 0.8rem;
}

.show-translation-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

/* ===== Media Panel (Vibe Coding / Vibe Engineering) ===== */
.media-panel {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .media-panel {
        flex-direction: row;
        align-items: center;
        gap: 3rem;
    }
}

.media-panel-img {
    width: 100%;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .media-panel-img {
        width: 50%;
    }
}

.media-panel-img img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.media-panel-text {
    flex: 1;
}

.media-panel-text h4 {
    color: var(--white-color);
    font-family: var(--poppins);
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    font-weight: 600;
    margin: 0 0 1rem;
}

.media-panel-text p {
    color: rgba(246, 246, 246, 0.7);
    font-family: var(--roboto);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}
