/* Services Page Styles */

.services-listing {
    padding: 4rem 0;
}

/* Service Cards - Blog Card Style */
.services-card {
    background: #121212;
    border-radius: 31px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    cursor: pointer;
    border: solid 1px #6b728026;
    position: relative;
    transform: translateY(20px);
    opacity: 0;
}

.services-card[data-animate="fade-up"] {
    animation: slideUp 0.8s ease-out forwards;
}

.services-card:hover {
    border-color: rgba(226, 226, 226, 0.3);
}

/* Image as background for services */
.services-card .services-image-container,
.services-card .content-image-container {
    position: relative;
    height: 270px;
    overflow: hidden;
    border-radius: 30px 30px 0 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.services-card .services-image,
.services-card .content-image {
    display: none; /* Hide the img tag, use background instead */
}

.services-card .services-image-overlay,
.services-card .content-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(124, 58, 237, 0.1));
    opacity: 0.6;
    transition: opacity 0.6s ease;
}

.services-card:hover .services-image-overlay,
.services-card:hover .content-image-overlay {
    opacity: 0.8;
}

/* Category badge - top right corner */
.services-card .services-category,
.services-card .content-category {
    font-size: 0.75rem;
    color: var(--color-text-primary);
    background: rgb(0 0 0 / 70%);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px 0 0 20px;
    display: inline-block;
    position: absolute;
    top: 1rem;
    right: 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    z-index: 2;
    margin-bottom: 0;
}

.services-card .services-meta,
.services-card .content-meta {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
}

.services-card .services-date,
.services-card .content-date {
    font-size: 0.775rem;
    color: #848484ba;
    letter-spacing: 0.3px;
    font-weight: 400;
    background: var(--color-bg);
    padding: 10px 24px 3px;
    border-radius: 25px 25px 0 0;
}

/* Service Content */
.services-card .services-content,
.services-card .content-body {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.services-card .services-title,
.services-card .content-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.4;
    position: relative;
    display: inline;
    text-decoration: none;
    background-image: linear-gradient(90deg, currentColor, currentColor);
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: 0 100%;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    margin-bottom: 1rem;
}

.services-card .services-content p,
.services-card .content-body p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Service Icon (for services without images) */
.services-icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
}

.services-icon-container i {
    font-size: 4rem;
    color: #667eea;
}

/* Service Detail Page */
.service-detail {
    padding: 3rem 0;
}

.service-meta {
    padding: 1rem 0;
    border-bottom: solid 1px #eeeeee0f;
}

.service-meta .meta-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.service-meta .meta-info > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-introduction {
    padding: 3rem 0 2rem;
}

.service-features {
    padding: 2rem 0;
}

.service-features ul {
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0 0.5rem 2rem;
    position: relative;
    color: rgba(255, 255, 255, 0.85);
}

.service-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.service-technologies {
    padding: 2rem 0;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tech-tag {
    background: rgba(102, 126, 234, 0.15);
    border: 1px solid rgba(102, 126, 234, 0.3);
    color: #667eea;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.service-cta {
    background: linear-gradient(135deg, #1f293754 0%, #2fc8d217 100%);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(102, 126, 234, 0.2);
    margin-top: 3rem;
}

.service-cta h3 {
    margin-bottom: 1rem;
    color: #ffffff;
}

.service-cta p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Price Display */
.services-price,
.content-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #667eea;
    margin-top: 1rem;
}

/* Client Display (for case studies) */
.services-client,
.content-client {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .services-title,
    .content-title {
        font-size: 1.125rem;
    }
    
    .services-icon-container i {
        font-size: 3rem;
    }
}

