/* ==================================================
   SERVICES PAGE STYLES
   Controls the Services page hero, service cards,
   call-to-action area, responsive layout, and
   dark-theme readability.
================================================== */


/* ==================================================
   SERVICES HERO
================================================== */

.services-hero {
    position: relative;
    overflow: hidden;
    padding: 115px 0 95px;
    background:
        linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
}

.services-hero::before,
.services-hero::after {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    content: "";
}

.services-hero::before {
    top: -130px;
    left: -110px;
    width: 330px;
    height: 330px;
    background-color: #2563eb;
}

.services-hero::after {
    right: -100px;
    bottom: -150px;
    width: 310px;
    height: 310px;
    background-color: #14b8a6;
}

.services-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.services-hero-content h1 {
    margin-bottom: 22px;
    color: #0f172a;
    font-size: clamp(2.35rem, 5vw, 4rem);
    line-height: 1.16;
}

.services-hero-content h1 span {
    display: block;
    color: #2563eb;
}

.services-hero-content > p {
    max-width: 690px;
    margin: 0 auto 28px;
    color: #64748b;
    font-size: 1.05rem;
    line-height: 1.85;
}


/* ==================================================
   BREADCRUMB
================================================== */

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
    font-size: 0.95rem;
}

/* Home link in the light theme */
.breadcrumb a {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2563eb;
}

/* Arrow separator */
.breadcrumb i {
    color: #94a3b8;
    font-size: 0.75rem;
}

/* Current page: Services or Portfolio */
.breadcrumb-current {
    color: #2563eb;
    font-weight: 700;
    cursor: default;
}

/* ==================================================
   DARK THEME BREADCRUMB
================================================== */

/* Home link becomes white in dark mode */
body.dark-theme .breadcrumb a {
    color: #ffffff;
}

/* Home link becomes blue when hovered */
body.dark-theme .breadcrumb a:hover {
    color: #60a5fa;
}

/* Arrow remains a soft grey */
body.dark-theme .breadcrumb i {
    color: #94a3b8;
}

/* Current page stays blue in dark mode */
body.dark-theme .breadcrumb-current {
    color: #60a5fa;
}


/* ==================================================
   SERVICES OVERVIEW
================================================== */

.services-overview-page {
    padding: 105px 0;
    background-color: #ffffff;
}

.services-page-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}


/* ==================================================
   SERVICE PAGE CARD
================================================== */

.service-page-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 38px 32px;
    overflow: hidden;
    background-color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.09);
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.service-page-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 22px 45px rgba(15, 23, 42, 0.13);
}


/* ==================================================
   SERVICE ICON AND NUMBER
================================================== */

.service-page-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 28px;
    border-radius: 16px;
    background-color: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    font-size: 1.55rem;
    transition: transform 0.35s ease, background-color 0.35s ease, color 0.35s ease;
}

.service-page-card:hover .service-page-icon {
    transform: rotate(-6deg) scale(1.08);
    background-color: #2563eb;
    color: #ffffff;
}

.service-page-number {
    position: absolute;
    top: 34px;
    right: 30px;
    color: rgba(15, 23, 42, 0.12);
    font-size: 1.1rem;
    font-weight: 800;
}


/* ==================================================
   SERVICE CARD TEXT
================================================== */

.service-page-card h3 {
    margin-bottom: 16px;
    color: #0f172a;
    font-size: 1.35rem;
}

.service-page-card > p {
    margin-bottom: 26px;
    color: #64748b;
    line-height: 1.8;
}


/* ==================================================
   SERVICE FEATURE LIST
================================================== */

.service-feature-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0 0 32px;
    padding: 0;
}

.service-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.55;
}

.service-feature-list i {
    margin-top: 4px;
    color: #22c55e;
    font-size: 0.78rem;
}


/* ==================================================
   SERVICE CARD LINK
================================================== */

.service-page-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
    transition: gap 0.3s ease, color 0.3s ease;
}

.service-page-link:hover {
    gap: 15px;
    color: #0f172a;
}


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

.services-page-cta {
    padding: 105px 0;
    background-color: #0f172a;
}

.services-page-cta-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.services-page-cta-content h2 {
    margin-bottom: 22px;
    color: #ffffff;
    font-size: clamp(2.15rem, 4vw, 3rem);
    line-height: 1.2;
}

.services-page-cta-content h2 span {
    display: block;
    color: #60a5fa;
}

.services-page-cta-content > p {
    max-width: 680px;
    margin: 0 auto 34px;
    color: #cbd5e1;
    line-height: 1.8;
}


/* ==================================================
   DARK THEME
   These rules ensure every Services page text/card
   remains clearly visible after theme switching.
================================================== */

body.dark-theme .services-hero {
    background-color: #0f172a;
    background-image: none;
}

body.dark-theme .services-hero-content h1 {
    color: #f8fafc;
}

body.dark-theme .services-hero-content h1 span {
    color: #60a5fa;
}

body.dark-theme .services-hero-content > p {
    color: #cbd5e1;
}

body.dark-theme .services-overview-page {
    background-color: #0f172a;
}

body.dark-theme .service-page-card {
    background-color: #1e293b;
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

body.dark-theme .service-page-card:hover {
    border-color: rgba(96, 165, 250, 0.45);
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.35);
}

body.dark-theme .service-page-card h3 {
    color: #f8fafc;
}

body.dark-theme .service-page-card > p {
    color: #cbd5e1;
}

body.dark-theme .service-feature-list li {
    color: #cbd5e1;
}

body.dark-theme .service-page-number {
    color: rgba(226, 232, 240, 0.16);
}

body.dark-theme .service-page-icon {
    background-color: rgba(96, 165, 250, 0.15);
    color: #93c5fd;
}

body.dark-theme .service-page-card:hover .service-page-icon {
    background-color: #60a5fa;
    color: #0f172a;
}

body.dark-theme .service-page-link {
    color: #93c5fd;
}

body.dark-theme .service-page-link:hover {
    color: #ffffff;
}


/* ==================================================
   RESPONSIVE STYLES
================================================== */

/* Tablet: two cards, then the third card below. */
@media (max-width: 992px) {
    .services-page-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-page-card:last-child {
        grid-column: span 2;
    }
}


/* Mobile: exactly one card per row. */
@media (max-width: 768px) {
    .services-hero {
        padding: 95px 0 75px;
    }

    .services-overview-page,
    .services-page-cta {
        padding: 75px 0;
    }

    .services-page-grid {
        grid-template-columns: 1fr;
    }

    .service-page-card:last-child {
        grid-column: auto;
    }

    .service-page-card {
        padding: 32px 26px;
    }

    .services-page-cta-content .final-cta-buttons {
        flex-direction: column;
    }

    .services-page-cta-content .final-cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
}


/* Smaller phones. */
@media (max-width: 480px) {
    .services-hero {
        padding: 82px 0 65px;
    }

    .services-hero-content > p {
        font-size: 0.98rem;
    }

    .service-page-card {
        padding: 28px 22px;
    }

    .service-page-icon {
        width: 58px;
        height: 58px;
        margin-bottom: 24px;
        font-size: 1.35rem;
    }

    .service-page-number {
        top: 28px;
        right: 22px;
    }

    .breadcrumb {
        font-size: 0.86rem;
    }
}