/* ==========================================================================
   SERVICES PAGE — Custom Styles
   ========================================================================== */

/* Custom hero style */
.services-hero {
    background: linear-gradient(135deg, #001f3f 0%, #0d2847 50%, #001f3f 100%);
}

/* Image Carousel */
.image-carousel-container {
    width: 100%;
    overflow: hidden;
    background: #001222;
    padding: 30px 0;
    white-space: nowrap;
    position: relative;
    box-shadow: inset 0 5px 20px rgba(0, 0, 0, 0.5);
}

.image-carousel-track {
    display: inline-block;
    animation: scrollCarousel 30s linear infinite;
}

.image-carousel-track img {
    height: 350px;
    width: auto;
    border-radius: 12px;
    margin: 0 15px;
    object-fit: cover;
    display: inline-block;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

@keyframes scrollCarousel {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Service / Project Cards Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.project-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom: 3px solid var(--primary-color);
}

.project-details {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-details h3 {
    margin-top: 0;
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.project-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.project-cost-box {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid var(--secondary-color);
}

.cost-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.btn-book {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e67e22 100%);
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 12px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    width: 100%;
    display: block;
}

.btn-book:hover {
    background: linear-gradient(135deg, #e67e22 0%, var(--primary-color) 100%);
    color: #fff;
}

/* Courses Grid (for software solutions & website sections) */
.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.course-card {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.course-card h3 {
    color: var(--secondary-color);
    margin-top: 0;
    font-size: 1.25rem;
}

.course-card .desc {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 10px;
}

/* Process Steps */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding: 2rem 0;
}

.process-steps .step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    position: relative;
    padding-bottom: 2.5rem;
}

.process-steps .step:last-child {
    padding-bottom: 0;
}

.process-steps .step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #e67e22 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 122, 0, 0.3);
}

.process-steps .step-content h4 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.process-steps .step-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Vertical connector for mobile */
.process-steps .step::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 50px;
    width: 2px;
    height: calc(100% - 50px);
    background: linear-gradient(180deg, var(--primary-color) 0%, rgba(255,122,0,0.2) 100%);
}

.process-steps .step:last-child::before {
    display: none;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #001f3f 100%);
    color: #fff;
    text-align: center;
    padding: 60px 15px;
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.cta-section .btn-book {
    max-width: 300px;
    margin: 0 auto;
    padding: 15px 30px;
    font-size: 1.05rem;
}

/* Responsive */
@media (min-width: 768px) {
    .process-steps {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 2rem;
    }

    .process-steps .step {
        flex: 1;
        min-width: 200px;
        max-width: 30%;
        flex-direction: column;
        text-align: center;
        padding-bottom: 0;
        align-items: center;
    }

    .process-steps .step::before {
        display: none;
    }

    .process-steps .step-number {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .courses-grid {
        grid-template-columns: 1fr;
    }

    .image-carousel-track img {
        height: 220px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section p {
        font-size: 1rem;
    }
}
