/* IT services landing page, work list and case studies */

.it-hero,
.case-hero {
    /* main.js gives the element after the header a top margin equal to the header height.
       That margin collapses through <body> and pushes the header down too, so cancel it
       and make room for the header with padding instead. */
    margin-top: 0 !important;
}
.it-hero {
    padding: 240px 0 80px;
    background: radial-gradient(circle at 85% 20%, rgba(51, 85, 255, 0.35), transparent 45%), #031f42;
    color: #d6dcef;
}
.it-hero__eyebrow {
    color: #ffc221;
}
.it-hero__title {
    max-width: 860px;
    margin-bottom: 20px;
    font-size: 48px;
    line-height: 1.15;
    color: #FFFFFF;
}
.it-hero__title span {
    color: #ffc221;
}
.it-hero__lead {
    max-width: 680px;
    margin-bottom: 30px;
    font-size: 17px;
}
.it-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.it-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 28px;
    margin-top: 36px;
    padding: 0;
    list-style: none;
    font-size: 14px;
}
.it-hero__trust li i {
    margin-right: 8px;
    color: #ffc221;
}
.btn-whatsapp {
    background: #25D366;
    border-color: #25D366;
    color: #FFFFFF;
}
.btn-whatsapp:hover {
    background: #1ebe5b;
    border-color: #1ebe5b;
    color: #FFFFFF;
}

/* Client situation cards */
.it-path {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
    border: 1px solid #e7e9f2;
    border-top: 4px solid #3355ff;
    border-radius: 10px;
    background: #FFFFFF;
}
.it-path__icon {
    margin-bottom: 16px;
    font-size: 28px;
    color: #3355ff;
}
.it-path__title {
    margin-bottom: 10px;
    font-size: 20px;
}
.it-path p {
    flex: 1;
    color: #666666;
}
.it-path__link {
    margin-top: 12px;
    font-weight: 600;
    color: #3355ff;
}

/* Project cards */
.work-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 8px 30px rgba(3, 31, 66, 0.08);
    transition: transform 0.25s, box-shadow 0.25s;
}
.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(3, 31, 66, 0.14);
}
.work-card__image {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #031f42;
}
.work-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
.work-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px 24px 24px;
}
.work-card__tagline {
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #3355ff;
}
.work-card__title {
    margin-bottom: 10px;
    font-size: 20px;
}
.work-card__title a:hover {
    color: #3355ff;
}
.work-card__summary {
    flex: 1;
    margin-bottom: 16px;
    color: #555555;
}

.tech-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    margin: 0;
    list-style: none;
}
.tech-chips li {
    padding: 3px 10px;
    border-radius: 20px;
    background: #f0f3ff;
    color: #2a3a8f;
    font-size: 12px;
    font-weight: 500;
}

/* Offers */
.it-offer {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 30px;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 8px 30px rgba(3, 31, 66, 0.08);
}
.it-offer--highlight {
    background: #3355ff;
    color: #e8ecff;
}
.it-offer--highlight .it-offer__title,
.it-offer--highlight .it-offer__price {
    color: #FFFFFF;
}
.it-offer__title {
    margin-bottom: 12px;
    font-size: 19px;
}
.it-offer p {
    flex: 1;
}
.it-offer__price {
    margin-top: 16px;
    font-weight: 700;
    color: #031f42;
}

/* About the developer */
.it-about {
    padding: 40px;
    border-radius: 10px;
    background: #f8f8f8;
}
.it-about__name {
    margin-bottom: 4px;
    font-size: 26px;
}
.it-about__role {
    margin-bottom: 18px;
    font-weight: 600;
    color: #3355ff;
}

/* Enquiry form */
.it-form {
    position: relative;
    padding: 36px;
    border-radius: 10px;
    background: #FFFFFF;
    box-shadow: 0 8px 30px rgba(3, 31, 66, 0.1);
}
.it-form label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #252525;
}
.it-form .form-control,
.it-form .form-select {
    min-height: 48px;
    border-color: #dfe3ee;
}
.it-form textarea.form-control {
    min-height: 120px;
}
.it-form__hp {
    position: absolute;
    left: -9999px;
}

/* Case study */
.case-hero {
    padding: 210px 0 0;
    background: #031f42;
    color: #d6dcef;
}
.case-hero .breadcrumb-item,
.case-hero .breadcrumb-item a {
    color: #a9b6d6;
}
.case-hero .breadcrumb-item.active {
    color: #FFFFFF;
}
.case-hero__title {
    margin: 14px 0 12px;
    font-size: 42px;
    color: #FFFFFF;
}
.case-hero__headline {
    max-width: 780px;
    font-size: 20px;
    color: #d6dcef;
}
.case-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 32px;
    margin: 24px 0 36px;
    padding: 0;
    list-style: none;
    font-size: 14px;
}
.case-meta strong {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #ffc221;
}
.case-hero__cover {
    position: relative;
    bottom: -60px;
    display: block;
    width: 100%;
    margin-top: -20px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    background: #031f42;
    cursor: zoom-in;
}
.case-hero__cover img {
    display: block;
    width: 100%;
    transition: transform 0.4s;
}
.case-hero__cover:hover img {
    transform: scale(1.015);
}

/* "View full screen" label shown on hover / focus */
.case-zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(3, 31, 66, 0.85);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s;
    pointer-events: none;
}
.case-zoom-hint i {
    margin-right: 6px;
}
.case-hero__cover:hover .case-zoom-hint,
.case-hero__cover:focus-visible .case-zoom-hint,
.case-carousel__slide:hover .case-zoom-hint,
.case-carousel__slide:focus-visible .case-zoom-hint {
    opacity: 1;
    transform: translateY(0);
}
@media (hover: none) {
    .case-zoom-hint {
        opacity: 1;
        transform: none;
    }
}
.case-body {
    padding-top: 120px;
}
.case-section {
    margin-bottom: 40px;
}
.case-section h2 {
    margin-bottom: 14px;
    font-size: 24px;
}
.case-section p {
    font-size: 16px;
    color: #444444;
}
.case-result {
    padding: 28px 30px;
    border-left: 5px solid #3355ff;
    border-radius: 10px;
    background: #f0f3ff;
}
.case-result p {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: #031f42;
}
.case-aside {
    position: sticky;
    top: 180px;
    padding: 28px;
    border-radius: 10px;
    background: #f8f8f8;
}
.case-aside h4 {
    margin-bottom: 12px;
    font-size: 15px;
}
/* Screenshot carousel (Swiper) */
.case-carousel {
    position: relative;
    overflow: hidden;
    border: 1px solid #e7e9f2;
    border-radius: 12px;
    background: #eef1f8;
}
.case-carousel__slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 540px;
    padding: 24px;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}
.case-carousel__slide img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(3, 31, 66, 0.15);
    object-fit: contain;
}
.case-carousel__nav {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border: 0;
    border-radius: 50%;
    background: #FFFFFF;
    box-shadow: 0 6px 20px rgba(3, 31, 66, 0.18);
    color: #031f42;
    transition: background 0.2s, color 0.2s, opacity 0.2s;
}
.case-carousel__nav:hover {
    background: #3355ff;
    color: #FFFFFF;
}
.case-carousel__prev {
    left: 16px;
}
.case-carousel__next {
    right: 16px;
}
.case-carousel__nav.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
}
.case-carousel__progress.swiper-pagination-progressbar {
    top: auto;
    bottom: 0;
    height: 4px;
    background: rgba(3, 31, 66, 0.08);
}
.case-carousel__progress .swiper-pagination-progressbar-fill {
    background: #3355ff;
}
.case-carousel__counter {
    font-weight: 600;
    color: #666666;
}

/* Thumbnail strip */
.case-thumbs .swiper-slide {
    width: 130px;
    height: 80px;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #eef1f8;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s, border-color 0.2s;
}
.case-thumbs .swiper-slide:hover {
    opacity: 0.85;
}
.case-thumbs .swiper-slide-thumb-active {
    border-color: #3355ff;
    opacity: 1;
}
.case-thumbs img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

@media (max-width: 767px) {
    .case-carousel__slide {
        height: 280px;
        padding: 12px;
    }
    .case-carousel__nav {
        width: 36px;
        height: 36px;
        margin-top: -18px;
    }
    .case-thumbs .swiper-slide {
        width: 90px;
        height: 56px;
    }
}
.case-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-top: 30px;
    border-top: 1px solid #e7e9f2;
}
.case-nav a {
    font-weight: 600;
}
.case-nav small {
    display: block;
    font-weight: 400;
    color: #888888;
}

/* Home page band linking to IT services */
.it-band {
    padding: 50px;
    border-radius: 14px;
    background: radial-gradient(circle at 90% 10%, rgba(51, 85, 255, 0.45), transparent 50%), #031f42;
    color: #d6dcef;
}
.it-band h2 {
    margin-bottom: 12px;
    color: #FFFFFF;
}

@media (max-width: 991px) {
    .it-hero__title {
        font-size: 36px;
    }
    .case-aside {
        position: static;
    }
}
@media (max-width: 767px) {
    .it-hero {
        padding: 140px 0 50px;
    }
    .it-hero__title {
        font-size: 28px;
    }
    .case-hero {
        padding-top: 120px;
    }
    .case-hero__title {
        font-size: 30px;
    }
    .case-hero__headline {
        font-size: 17px;
    }
    .case-body {
        padding-top: 90px;
    }
    .it-about,
    .it-form,
    .it-band {
        padding: 24px;
    }
}

/* 576-767px: the header's top bar is visible again, so the header is taller. */
@media (min-width: 576px) and (max-width: 767px) {
    .it-hero {
        padding-top: 190px;
    }
    .case-hero {
        padding-top: 170px;
    }
}
