.home-page {
    color: #1f2d3d;
}

.home-hero-shell {
    border: 1px solid #d9e5f2;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 30px rgba(6, 31, 58, 0.14);
    margin-bottom: 18px;
    background: #ffffff;
}

.home-hero-shell .carousel-control {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.home-hero-shell:hover .carousel-control {
    opacity: 0.9;
}

.home-intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
    border: 1px solid #d7e5f3;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbff 0%, #eef4fb 100%);
    box-shadow: 0 8px 16px rgba(6, 31, 58, 0.08);
    padding: 16px 18px;
    margin-bottom: 18px;
}

.home-intro-title {
    margin: 0;
    color: #123f6b;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.home-intro-sub {
    margin: 4px 0 0;
    color: #4f6478;
    font-size: 14px;
}

.home-intro-brand {
    max-width: 150px;
}

.home-services {
    margin-left: -8px;
    margin-right: -8px;
}

.home-services > [class*='col-'] {
    padding-left: 8px;
    padding-right: 8px;
}

.home-service-card {
    border: 1px solid #d7e4f3;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(6, 31, 58, 0.09);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(6, 31, 58, 0.15);
}

.home-service-head {
    padding: 12px 14px;
    background: linear-gradient(130deg, #0f355e 0%, #2f7fca 100%);
    color: #ffffff;
}

.home-service-head h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.home-service-head .glyphicon {
    margin-right: 6px;
}

.home-service-body {
    padding: 14px;
    color: #29425a;
    line-height: 1.7;
    font-size: 14px;
    flex: 1;
}

.home-service-media {
    border-top: 1px solid #dbe7f5;
    background: #f8fbff;
    padding: 8px;
}

.home-service-media img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.32s ease;
}

.home-service-card:hover .home-service-media img {
    transform: scale(1.03);
}

.home-soft {
    background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
}

.home-yellow {
    background: linear-gradient(180deg, #fffef5 0%, #fff8d7 100%);
}

.home-green {
    background: linear-gradient(180deg, #f5fff9 0%, #dff5e8 100%);
}

.home-note {
    margin-top: 8px;
    display: inline-block;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #2a5a87;
    background: #e7f1fc;
}

/* Subtle entrance and motion */
.home-hero-shell {
    animation: homeFadeUp 0.55s ease both;
}

.home-intro {
    animation: homeFadeUp 0.6s 0.08s ease both;
}

.home-intro-brand {
    animation: homeSoftFloat 4.2s ease-in-out infinite;
}

.home-services > .col-sm-4:nth-child(1) .home-service-card {
    animation: homeFadeUp 0.55s 0.14s ease both;
}

.home-services > .col-sm-4:nth-child(2) .home-service-card {
    animation: homeFadeUp 0.55s 0.22s ease both;
}

.home-services > .col-sm-4:nth-child(3) .home-service-card {
    animation: homeFadeUp 0.55s 0.3s ease both;
}

.home-hero-shell .carousel-inner > .item.active img {
    animation: homeHeroZoom 7s ease both;
}

@keyframes homeFadeUp {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeSoftFloat {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes homeHeroZoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.04);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-shell,
    .home-intro,
    .home-intro-brand,
    .home-services > .col-sm-4 .home-service-card,
    .home-hero-shell .carousel-inner > .item.active img {
        animation: none !important;
    }

    .home-service-card,
    .home-service-media img {
        transition: none !important;
    }
}

@media (max-width: 767px) {
    .home-intro {
        padding: 12px;
    }

    .home-intro-title {
        font-size: 24px;
    }

    .home-intro-brand {
        max-width: 110px;
    }
}
