/* ===== SERVICES PAGE ===== */

/* --- Section 1: Header --- */
.services-page-header {
    background: var(--dark-section);
    border-top: 5px solid var(--primary);
    padding: 80px 0 40px;
}
.services-page-title {
    font-size: 40px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}
.services-page-subtitle {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}
.services-page-desc p {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 20px;
    max-width: 800px;
}

/* --- Section 2: Our Work --- */
.our-work-section {
    background: var(--dark-section);
    padding: 40px 0 60px;
}
.services-section-heading {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 16px;
}
.services-section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* Work Cards */
.work-card-link {
    display: block;
    text-decoration: none;
}
.work-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.work-card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    transition: transform 0.4s ease;
}
.work-card h4 {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    margin-top: 16px;
    margin-bottom: 0;
}
.work-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(108, 75, 216, 0.7);
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.work-card-link:hover .work-card {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(108, 75, 216, 0.3);
}
.work-card-link:hover .work-card img {
    transform: scale(1.05);
}
.work-card-link:hover .work-card::after {
    opacity: 1;
}

/* --- Section 3: Services Grid --- */
.services-grid-section {
    background: var(--dark-section);
    padding: 20px 0 60px;
}
.service-item {
    padding: 30px 0;
}
.service-item-icon {
    font-size: 45px;
    color: var(--primary);
    margin-bottom: 16px;
}
.service-item h4 {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}
.service-item p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 0;
}
.service-divider {
    width: 100%;
    height: 1px;
    background: #3A3A5A;
    margin-top: 24px;
}

/* --- Section 4: Featured Project --- */
.featured-project-section {
    background: var(--dark-section);
    padding: 40px 0 80px;
}

.featured-carousel {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.project-slide {
    display: block;
    outline: none;
}

.project-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.project-slide:hover img {
    transform: scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Hide leftover slick dots */
.featured-carousel .slick-dots {
    display: none !important;
}

/* --- SimpleLightbox Overrides --- */
.simple-lightbox .sl-image img {
    border-radius: 8px;
}
.simple-lightbox .sl-close {
    color: #fff;
    font-size: 30px;
}
.simple-lightbox .sl-navigation button {
    color: #fff;
    font-size: 24px;
}

/* === Project Grid Pages (Application / Website) === */
.project-grid-page {
    background: var(--dark-section);
    padding: 100px 0 80px;
    min-height: 60vh;
}
.project-grid-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(108, 75, 216, 0.1);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.project-grid-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(108, 75, 216, 0.15);
    border-color: rgba(108, 75, 216, 0.25);
}
.project-grid-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.project-placeholder {
    width: 100%;
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}
.project-info {
    padding: 20px;
}
.project-info h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}
.project-info p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 0;
}
@media (max-width: 767.98px) {
    .project-grid-page { padding: 70px 0 60px; }
    .project-grid-item img { height: 200px; }
    .project-placeholder { height: 200px; }
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .services-page-title { font-size: 32px; }
    .services-section-heading { font-size: 28px; }
}
@media (max-width: 767.98px) {
    .services-page-header { padding: 60px 0 30px; }
    .services-page-title { font-size: 28px; }
    .services-page-subtitle { font-size: 18px; }
    .work-card img { height: 220px; }
    .service-item { padding: 20px 0; }
    .featured-carousel { grid-template-columns: repeat(2, 1fr); }
    .project-slide img { height: 160px; }
}
