/* Home page-only styles. */

.home-page .methodology-area {
    isolation: isolate;
}

.home-page .methodology-area .about-style-two-info {
    position: relative;
    z-index: 2;
}

.home-page .methodology-timeline {
    position: relative;
    margin-top: 38px;
    padding-left: 78px;
}

.home-page .methodology-track {
    position: absolute;
    top: 25px;
    bottom: 25px;
    left: 24px;
    width: 2px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(0, 98, 255, 0.18);
}

.home-page .methodology-track::before {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, var(--color-primary), #53d4ff);
}

.home-page .methodology-particle {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 8px;
    height: 28px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 0 14px 5px rgba(83, 212, 255, 0.8);
    transform: translateX(-50%);
    animation: methodology-flow 3s ease-in-out infinite;
}

.home-page .methodology-step {
    position: relative;
    display: flex;
    min-height: 96px;
    margin-bottom: 24px;
    padding: 22px 25px;
    border: 1px solid rgba(0, 98, 255, 0.1);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 12px 35px rgba(15, 42, 80, 0.07);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.home-page .methodology-step:last-child {
    margin-bottom: 0;
}

.home-page .methodology-step:hover {
    border-color: rgba(0, 98, 255, 0.28);
    box-shadow: 0 16px 40px rgba(15, 42, 80, 0.12);
    transform: translateX(5px);
}

.home-page .methodology-step .number {
    position: absolute;
    top: 22px;
    left: -78px;
    z-index: 2;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border: 5px solid var(--white);
    border-radius: 50%;
    background: var(--bg-gradient);
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(0, 98, 255, 0.25);
}

.home-page .methodology-step .info h4 {
    margin-bottom: 8px;
    font-size: 22px;
    font-weight: 700;
}

.home-page .methodology-step .info p {
    margin: 0;
}

@keyframes methodology-flow {
    0% {
        top: -28px;
        opacity: 0;
    }

    15%, 85% {
        opacity: 1;
    }

    100% {
        top: calc(100% + 2px);
        opacity: 0;
    }
}

@media (max-width: 767px) {
    .home-page .feature-style-one {
        text-align: center;
    }

    .home-page .feature-style-one .icon {
        margin-right: auto;
        margin-bottom: 30px;
        margin-left: auto;
    }

    .home-page .methodology-timeline {
        margin-top: 28px;
        padding-left: 58px;
    }

    .home-page .methodology-track {
        left: 19px;
    }

    .home-page .methodology-step {
        min-height: 0;
        margin-bottom: 18px;
        padding: 20px;
    }

    .home-page .methodology-step .number {
        top: 20px;
        left: -58px;
        width: 40px;
        height: 40px;
        border-width: 4px;
        font-size: 12px;
    }

    .home-page .methodology-step .info h4 {
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .methodology-particle {
        animation: none;
    }

    .home-page .methodology-step {
        transition: none;
    }
}

/* Home services: keep the CTA comfortably separated from the feature list. */
.home-page .services-style-five .item ul {
    margin-bottom: 32px;
}

.home-page .services-style-five .service-explore-btn {
    margin-top: auto !important;
}

.home-page .services-carousel-controls {
    display: none;
}

/* Swiper classes are added by JS only on desktop, leaving the mobile grid intact. */
@media (min-width: 992px) {
    .home-page .services-carousel-viewport.swiper {
        padding: 20px 18px 60px;
        margin: -20px -18px -30px;
    }

    .home-page .services-carousel-viewport.swiper .services-carousel-track {
        flex-wrap: nowrap;
        align-items: stretch;
        margin-right: 0;
        margin-left: 0;
    }

    .home-page .services-carousel-viewport.swiper .services-style-five {
        height: auto;
        margin-bottom: 0 !important;
        padding-right: 0;
        padding-left: 0;
    }

    .home-page .services-carousel-controls {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 32px;
    }

    .home-page .services-carousel-controls button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 50px;
        height: 50px;
        padding: 0;
        border: 1px solid rgba(45, 101, 242, 0.2);
        border-radius: 50%;
        color: var(--color-primary);
        background: var(--white);
        box-shadow: 0 8px 22px rgba(30, 71, 145, 0.14);
        transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    }

    .home-page .services-carousel-controls button:hover,
    .home-page .services-carousel-controls button:focus-visible {
        color: var(--white);
        background: var(--color-primary);
        box-shadow: 0 12px 28px rgba(45, 101, 242, 0.28);
        transform: translateY(-2px);
    }

    .home-page .services-carousel-controls button:focus-visible {
        outline: 3px solid rgba(45, 101, 242, 0.25);
        outline-offset: 3px;
    }
}

/* Home team carousel */
.home-page .home-team-carousel {
    margin-top: -28px;
    padding: 28px 16px 48px;
}

.home-page .home-team-carousel .team-style-three-item {
    --team-glow: 37, 99, 235;
    height: auto;
    margin-top: 0;
}

.home-page .home-team-carousel .team-style-three-item:nth-child(4n + 2) {
    --team-glow: 20, 184, 166;
}

.home-page .home-team-carousel .team-style-three-item:nth-child(4n + 3) {
    --team-glow: 124, 58, 237;
}

.home-page .home-team-carousel .team-style-three-item:nth-child(4n + 4) {
    --team-glow: 236, 72, 153;
}

.home-page .home-team-carousel .item {
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: 365px;
    height: 100%;
    margin-right: auto;
    margin-left: auto;
    padding: 20px 18px 21px;
    overflow: hidden;
    border: 1px solid rgba(var(--team-glow), 0.16);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 18%, rgba(var(--team-glow), 0.13), transparent 42%),
        #ffffff;
    box-shadow:
        0 18px 40px rgba(15, 35, 70, 0.09),
        0 0 26px rgba(var(--team-glow), 0.11);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.home-page .home-team-carousel .item::before {
    position: absolute;
    top: 0;
    left: 14%;
    z-index: 2;
    width: 72%;
    height: 4px;
    content: "";
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, transparent, rgba(var(--team-glow), 1), transparent);
    box-shadow: 0 4px 20px rgba(var(--team-glow), 0.5);
    opacity: 0.65;
    transform: scaleX(0.55);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.home-page .home-team-carousel .item:hover {
    border-color: rgba(var(--team-glow), 0.5);
    box-shadow:
        0 28px 55px rgba(15, 35, 70, 0.16),
        0 0 38px rgba(var(--team-glow), 0.25),
        0 0 70px rgba(var(--team-glow), 0.1);
    transform: translateY(-9px);
}

.home-page .home-team-carousel .item:hover::before {
    opacity: 1;
    transform: scaleX(1);
}

.home-page .home-team-carousel .thumb {
    max-width: 305px;
    margin-bottom: 24px;
    transition: filter 0.35s ease, transform 0.35s ease;
}

.home-page .home-team-carousel .thumb > img {
    border: 4px solid rgba(255, 255, 255, 0.92);
    box-shadow:
        0 14px 30px rgba(15, 35, 70, 0.16),
        0 0 24px rgba(var(--team-glow), 0.28);
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.home-page .home-team-carousel .item:hover .thumb {
    transform: translateY(-3px);
}

.home-page .home-team-carousel .item:hover .thumb > img {
    box-shadow:
        0 18px 36px rgba(15, 35, 70, 0.2),
        0 0 38px rgba(var(--team-glow), 0.5);
    transform: scale(1.025);
}

.home-page .home-team-carousel .item h4,
.home-page .home-team-carousel .item > span {
    position: relative;
    z-index: 2;
}

.home-page .home-team-carousel .social-overlay ul {
    margin: 0;
}

.home-page .home-team-carousel .social-overlay ul li {
    margin: 0;
}

.home-page .home-team-carousel .social-overlay ul li a i {
    width: 46px;
    height: 46px;
    line-height: 46px;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: 0 10px 24px rgba(0, 119, 181, 0.28);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.home-page .home-team-carousel .social-overlay ul li a:hover i,
.home-page .home-team-carousel .social-overlay ul li a:focus-visible i {
    box-shadow: 0 0 25px rgba(0, 119, 181, 0.62);
    transform: translateY(-3px) scale(1.08);
}

@media (prefers-reduced-motion: reduce) {
    .home-page .home-team-carousel .item,
    .home-page .home-team-carousel .item::before,
    .home-page .home-team-carousel .thumb,
    .home-page .home-team-carousel .thumb > img,
    .home-page .home-team-carousel .social-overlay ul li a i {
        transition: none;
    }
}

/* Compact contact card */
.home-page .home-contact-section {
    padding-top: 90px;
}

.home-page .home-contact-row {
    align-items: stretch;
}

.home-page .home-contact-column {
    display: flex;
    padding-top: 0 !important;
}

.home-page .home-contact-info-panel,
.home-page .home-contact-form {
    width: 100%;
    height: 100%;
    min-height: 570px;
    border-radius: 18px;
}

.home-page .home-contact-info-panel {
    position: relative;
    z-index: 2;
    padding: 48px 42px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.78);
    background:
        radial-gradient(circle at 10% 0, rgba(40, 179, 255, 0.34), transparent 33%),
        linear-gradient(145deg, #10295f 0%, #071837 60%, #06122a 100%);
    box-shadow: 0 18px 45px rgba(7, 24, 55, 0.2);
}

.home-page .home-contact-info-panel::before,
.home-page .home-contact-info-panel::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    pointer-events: none;
}

.home-page .home-contact-info-panel::before {
    top: -90px;
    right: -75px;
    width: 230px;
    height: 230px;
}

.home-page .home-contact-info-panel::after {
    right: 28px;
    bottom: -65px;
    width: 150px;
    height: 150px;
}

.home-page .home-contact-info-panel h2,
.home-page .home-contact-info-panel h5,
.home-page .home-contact-info-panel a {
    color: var(--white);
}

.home-page .home-contact-info-panel h2 {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 18px;
    font-size: 36px;
    line-height: 1.15;
}

.home-page .home-contact-info-panel h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 54px;
    height: 3px;
    content: "";
    border-radius: 5px;
    background: linear-gradient(90deg, #2f6df6, #24d3e6);
}

.home-page .home-contact-info-panel > p {
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.75;
}

.home-page .home-contact-info-panel ul {
    margin-top: 38px;
}

.home-page .home-contact-info-panel li {
    position: relative;
    z-index: 1;
    align-items: center;
    margin-top: 16px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.home-page .home-contact-info-panel li:hover {
    border-color: rgba(76, 194, 255, 0.35);
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.home-page .home-contact-info-panel li i {
    width: 50px;
    min-width: 50px;
    height: 50px;
    margin-right: 16px;
    line-height: 50px;
    font-size: 19px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

.home-page .home-contact-info-panel li h5 {
    margin-bottom: 3px;
    font-size: 17px;
}

.home-page .home-contact-info-panel li p,
.home-page .home-contact-info-panel li a {
    color: rgba(255, 255, 255, 0.74);
    font-size: 15px;
    overflow-wrap: anywhere;
}

.home-page .home-contact-form {
    max-width: none;
    margin-left: 0;
    padding: 42px 48px 44px;
    overflow: hidden;
    border: 1px solid rgba(23, 100, 255, 0.1);
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(34, 197, 246, 0.1), transparent 30%),
        var(--white);
    box-shadow: 0 18px 45px rgba(28, 57, 100, 0.13);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-page .home-contact-form::before {
    position: absolute;
    top: 0;
    left: 8%;
    width: 84%;
    height: 4px;
    content: "";
    border-radius: 0 0 10px 10px;
    background: linear-gradient(90deg, #2d65f2, #12b8c8, #22c55e);
}

.home-page .home-contact-form:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 55px rgba(28, 57, 100, 0.18);
}

.home-page .home-contact-form .sub-title {
    margin-bottom: 14px;
    padding: 8px 17px;
    border-color: rgba(45, 101, 242, 0.24);
    background: rgba(255, 255, 255, 0.75);
}

.home-page .home-contact-form > .title {
    margin-bottom: 24px;
    font-size: 42px;
    line-height: 1.15;
}

.home-page .home-contact-form input,
.home-page .home-contact-form textarea {
    margin-bottom: 12px;
    padding: 13px 15px;
    border: 1px solid #e4eaf3;
    border-radius: 9px;
    font-size: 16px;
    background: #f8faff;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.home-page .home-contact-form input:focus,
.home-page .home-contact-form textarea:focus {
    border-color: var(--color-primary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(45, 101, 242, 0.1);
    transform: translateY(-1px);
}

.home-page .home-contact-form textarea {
    min-height: 105px;
    resize: vertical;
}

.home-page .home-contact-form button {
    margin-top: 4px;
    padding: 13px 34px;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(45, 101, 242, 0.24);
}

.home-page .home-contact-form button:hover {
    box-shadow: 0 14px 30px rgba(10, 25, 55, 0.22);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .home-page .home-contact-section {
        padding-top: 70px;
    }

    .home-page .home-contact-column {
        display: block;
    }

    .home-page .home-contact-column + .home-contact-column {
        margin-top: 28px !important;
    }

    .home-page .home-contact-info-panel,
    .home-page .home-contact-form {
        height: auto;
        min-height: 0;
        margin-right: auto;
    }
}

@media (max-width: 767px) {
    .home-page .home-contact-section {
        padding-top: 50px;
    }

    .home-page .home-contact-info-panel,
    .home-page .home-contact-form {
        padding: 34px 24px 36px;
        border-radius: 14px;
    }

    .home-page .home-contact-info-panel h2 {
        font-size: 30px;
    }

    .home-page .home-contact-info-panel li {
        padding: 12px;
    }

    .home-page .home-contact-form > .title {
        margin-bottom: 18px;
        font-size: 32px;
    }

    .home-page .home-contact-form textarea {
        min-height: 90px;
    }

    .home-page .home-contact-form button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .home-contact-info-panel li,
    .home-page .home-contact-form,
    .home-page .home-contact-form input,
    .home-page .home-contact-form textarea,
    .home-page .home-contact-form button {
        transition: none;
    }
}
