/* Font Awesome font-display:swap overrides moved to deferred CSS (fa-swap.css)
   to avoid creating a critical request chain from style.css → webfont downloads */

/* Adjusted fallback fonts to prevent CLS when Inter/Noto Sans Thai load via deferred CSS.
   These override system font metrics to match the web fonts, avoiding text reflow on swap. */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial');
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
}

@font-face {
    font-family: 'Noto Sans Thai Fallback';
    src: local('Tahoma');
    size-adjust: 105%;
    ascent-override: 100%;
    descent-override: 30%;
    line-gap-override: 0%;
}

:root {
    --main-color: #00275B;
    --sub-color: #7CB3FF;
    --sub-2-color: #014AAD;
    --sub-3-color: #36BFFA;
    --sub-4-color: #1567D6;
    --sub-5-color: #F9FAFB;
    --sub-6-color: #A0C8FF;
    --sub-7-color: #53B1FD;
    --section-padding: 4rem;
}

* {
    font-family: "Inter", "Inter Fallback", "Noto Sans Thai", "Noto Sans Thai Fallback", sans-serif;
    font-weight: 300;
    color: var(--color-text-main);
}

/* Form elements don't inherit font-family by default */
input,
select,
textarea,
button {
    font-family: inherit;
    font-weight: inherit;
}

a {
    color: #344054;
}

p.intro {
    font-size: 18px;
}

.section {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    background-size: cover;
    background-position: center;
}

header {
    transition: ease 0.2s;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.rounded-classy {
    border-radius: 0.5rem;
}

.text-main {
    color: var(--main-color);
}

.text-sub {
    color: var(--sub-color);
}

.text-sub-2 {
    color: var(--sub-2-color);
}

.text-sub-3 {
    color: var(--sub-3-color);
}

.text-sub-4 {
    color: var(--sub-4-color);
}

.text-sub-5 {
    color: var(--sub-5-color);
}

.text-sub-6 {
    color: var(--sub-6-color) !important;
}

.text-sub-7 {
    color: var(--sub-7-color);
}

.bg-main {
    background-color: var(--main-color);
    color: white;
}

.bg-sub {
    background-color: var(--sub-color);
    color: white;
}

.bg-sub-2 {
    background-color: var(--sub-2-color);
    color: white;
}

.bg-sub-3 {
    background-color: var(--sub-3-color);
    color: white;
}

.bg-sub-4 {
    background-color: var(--sub-4-color);
    color: white;
}

.bg-sub-5 {
    background-color: var(--sub-5-color);
    color: white;
}

.bg-sub-6 {
    background-color: var(--sub-6-color);
    color: white;
}

.bg-sub-7 {
    background-color: var(--sub-7-color);
    color: white;
}

.btn-main {
    background-color: var(--main-color);
    color: white;
}

.btn-main:hover {
    background-color: var(--sub-2-color);
    color: white;
    opacity: 0.8;
}

.btn-sub {
    background-color: var(--sub-2-color);
    color: white;
}

.btn-sub:hover {
    background-color: var(--main-color);
    color: white;
    opacity: 0.8;
}

#HeaderMenuNav .nav-item .nav-link {
    color: var(--main-color);
    font-weight: 600;
}

#HeaderDropdownMenu>i {
    transform: rotate(0deg);
    transition: ease 0.3s;
}

#HeaderDropdownMenu.active>i {
    transform: rotate(180deg);
    transition: ease 0.3s;
}

.header-sub-menu {
    min-height: calc(100vh - 88px);
    position: fixed;
    top: -100vh;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: ease 0.3s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.header-sub-menu.active {
    top: 88px;
}

.header-sub-menu #ProductMenu {
    height: auto;
}

.header-sub-menu .header-sub-menu-item {
    color: var(--sub-4-color);
    font-weight: 600;
}

.header-sub-menu .header-bottom {
    background-color: var(--sub-5-color);
}

.about-talk-icon {
    height: 60px;
    padding: 15px;
    /* background-color: var(--main-color); */
    border-radius: 15px;
}

/* Utility container for vector icons to match about-talk-icon sizing */
.about-talk-icon-box {
    height: 60px;
    width: 60px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
}

/* Standardized icon font size for contact vector icons */
.icon-30 {
    font-size: 30px;
}

/* Image preview modal */
.image-preview-modal .modal-content {
    background: transparent;
    border: 0;
    box-shadow: none;
}

.image-preview-modal .modal-body {
    padding: 0;
    background-color: rgba(0, 0, 0, 0.9);
}

.image-preview-img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}

/* Hero Banner Section */
.home-hero-banner {
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
}

.home-hero-banner .hero-banner-wrapper {
    width: 100%;
    line-height: 0;
}

.home-hero-banner .hero-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Hero Swiper Carousel */
.swiper-hero {
    width: 100%;
    line-height: 0;
    position: relative;
}

.swiper-hero .swiper-slide img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* Navigation arrows */
.swiper-hero .swiper-button-prev-hero,
.swiper-hero .swiper-button-next-hero {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.swiper-hero:hover .swiper-button-prev-hero,
.swiper-hero:hover .swiper-button-next-hero {
    opacity: 1;
}

.swiper-hero .swiper-button-prev-hero:hover,
.swiper-hero .swiper-button-next-hero:hover {
    background: rgba(255, 255, 255, 0.95);
}

.swiper-hero .swiper-button-prev-hero::after,
.swiper-hero .swiper-button-next-hero::after {
    font-size: 18px;
    font-weight: bold;
    color: var(--main-color);
}

/* Pagination dots */
.swiper-hero .swiper-pagination-hero {
    bottom: 16px !important;
}

.swiper-hero .swiper-pagination-hero .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.6);
    opacity: 1;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.swiper-hero .swiper-pagination-hero .swiper-pagination-bullet-active {
    background: #fff;
    transform: scale(1.3);
}

@media (max-width: 768px) {

    .swiper-hero .swiper-button-prev-hero,
    .swiper-hero .swiper-button-next-hero {
        display: none;
    }

    .swiper-hero .swiper-pagination-hero {
        bottom: 8px !important;
    }

    .swiper-hero .swiper-pagination-hero .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
    }
}

.home-header>.container {
    background: linear-gradient(114.14deg, #00275B 33.02%, #00275B 97.61%);
    border-radius: 24px;
}

.home-header>.container h1,
.home-header>.container h1 span {
    font-size: 60px;
    font-weight: 600;
    color: white;
    background: linear-gradient(90deg, #FFFFFF 47%, #999999 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-header>.container p {
    font-size: 22px;
    font-weight: 300;
    color: white;
}

.home-header>.container b.text-sticker,
.home-header>.container h1 span.header-sticker {
    background: linear-gradient(0deg, #A0C8FF, #A0C8FF),
        linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0) 19.93%, rgba(0, 0, 0, 0.2) 40.68%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-header>.container b.text-sticker {
    font-weight: 800;
    font-size: 23px;
}

.home-clients .client-logo {
    width: auto;
    height: 100px;
    object-fit: contain;
    object-position: center;
}

.home-header>.container img {
    transform: scale(1.7);
}

.home-products {
    background-color: #EAF3FF;
}

.home-blogs {
    background-color: #EAF3FF;
}

.card-products {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background-color: var(--main-color);
    color: white;
    height: 100%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-products:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.card-products .card-products-image {
    overflow: hidden;
    aspect-ratio: 9 / 10;
}

.card-products .card-products-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card-products:hover .card-products-image img {
    transform: scale(1.05);
}

.card-products .card-content {
    flex: none;
    min-height: 170px;
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    text-align: left;
}

.card-products .card-content h5 {
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-products .card-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-products .card-content .card-arrow {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 60px;
    height: 60px;
    border-radius: 50% 50% 16px 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.card-products .card-content .card-arrow i {
    font-size: 1.25rem;
    color: var(--sub-2-color);
    transition: transform 0.3s ease;
}

.card-products:hover .card-content .card-arrow {
    background-color: #f0f4ff;
}

.card-products:hover .card-content .card-arrow i {
    transform: translateX(2px);
}

.home-promotion.owl-theme .owl-nav>button.owl-prev,
.home-promotion.owl-theme .owl-nav>button.owl-next {
    width: 46px;
    height: 46px;
    background-color: #F5F5F5;
    border: none;
    border-radius: 50%;
    transition: ease 0.3s;
}

.home-promotion.owl-theme .owl-nav {
    margin: 0;
    position: absolute;
    right: 0;
    top: -170px;
}

.home-promotion.owl-theme .owl-nav>button.owl-prev>i,
.home-promotion.owl-theme .owl-nav>button.owl-next>i {
    color: black;
}

.home-promotion.owl-theme .owl-nav>button.owl-prev:hover,
.home-promotion.owl-theme .owl-nav>button.owl-next:hover {
    background-color: var(--main-color);
}

.home-promotion.owl-theme .owl-nav>button.owl-prev:hover>i,
.home-promotion.owl-theme .owl-nav>button.owl-next:hover>i {
    color: white;
}

.arrow-up-right {
    transform: rotate(45deg);
}

.header-about {
    color: white;
}

.home-our-services-icon {
    height: 60px;
}

.header-product-icon {
    height: 50px;
    width: 50px;
    object-fit: contain;
    object-position: center;
}

.badge-contact {
    color: var(--sub-2-color);
    background-color: var(--sub-5-color);
    border: solid var(--sub-6-color) 1px;
    font-weight: 500;
    padding: 5px 10px;
}

.products-header .container {
    padding-top: var(--section-padding);
    padding-bottom: var(--section-padding);
    color: white;
    background-size: 100% 100%, cover;
    background-position: center;
    border-radius: 1.5rem;
}

.products-header-title {
    border-left: solid var(--sub-4-color) 5px;
    padding-left: 2rem;
}

a.btn-products-list {
    border: solid #D0D5DD 1px;
    border-radius: 8px;
    background-color: white;
    color: #344054;
}

a.btn-products-list:hover {
    background-color: var(--sub-2-color) !important;
    color: white;
}

#carouselProductGalleryIndicators .carousel-indicators {
    margin-top: 2rem;
    position: static;
}

#carouselProductGalleryIndicators .carousel-indicators>button {
    width: 60px;
    height: 60px;
    padding: 0;
    overflow: hidden
}

#carouselProductGalleryIndicators .carousel-indicators>button>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-product-options {
    border: solid #D0D5DD 1px;
    transition: ease 0.3s;
}

.btn-product-options.active,
.btn-product-options:hover {
    border: solid var(--sub-2-color) 1px;
    background-color: #EAF3FF;
    color: var(--sub-4-color);
}

.highlight-review-link {
    position: relative;
    display: block;
}

.highlight-review-link .bg-cover {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(1, 74, 173, 0.4) 100%);
    position: absolute;
    z-index: 1;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.testimonial-header-title {
    border-left: solid var(--sub-4-color) 5px;
    padding-left: 2rem;
}

.testimonial-link {
    display: block;
    background-color: var(--main-color);
    color: white;
}

#carouselTestimonialIndicators .carousel-indicators {
    left: 3rem;
    bottom: 3rem;
    margin: 0;
    justify-content: start;
}

#carouselTestimonialIndicators .carousel-indicators [data-bs-target] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D0D5DD;
    border: none;
}

#accordionFAQ .accordion-button {
    border-radius: 0;
}

#accordionFAQ .accordion-button:focus {
    outline: none;
    box-shadow: none;
}

#accordionFAQ .accordion-button:not(.collapsed) {
    background-color: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* Custom icon when the accordion is expanded */
#accordionFAQ .accordion-button:not(.collapsed)::after {
    content: "";
    background-image: url('../../media/faq-close.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    display: inline-block;
    transform: rotate(0deg);
    border-radius: 0;
}

/* Custom icon when the accordion is collapsed */
#accordionFAQ .accordion-button.collapsed::after {
    content: "";
    background-image: url('../../media/faq-open.svg');
    background-size: contain;
    background-repeat: no-repeat;
    width: 30px;
    height: 30px;
    display: inline-block;
    transform: rotate(0deg);
    border-radius: 0;
}

#accordionFAQ .accordion-item {
    border-radius: 0;
}

#accordionFAQ .accordion-item {
    border: none;
    border-bottom: solid #EAECF0 1px;
}

section.cta {
    color: white;
    background-color: var(--main-color);
    background-image: linear-gradient(0deg, #00275bee, #00275bee), url('../../media/cta-bg.png'), url('../../media/cta-bg.png');
    background-repeat: no-repeat;
    background-position: -55%, 155%;
    background-size: auto 200%;
}

footer.section {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.footer-logo {
    max-width: 100%;
    height: 100px;
}

/* Video Thumbnail Play Icon */
.video-thumbnail-wrapper {
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-thumbnail-wrapper:hover {
    transform: scale(1.01);
}

.video-thumbnail-wrapper:hover .play-icon-circle {
    transform: scale(1.1);
    background-color: #b91c1c !important;
}

.play-icon-overlay {
    pointer-events: none;
    z-index: 2;
}

.play-icon-circle {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.iframe-map {
    height: 50dvh;
}

.contact-header-logo {
    height: 120px;
}

ul.fa-ul {
    margin-left: 25px;
}

.our-businesses-bg {
    background-color: #EAF3FF;
}

.our-standards-bg {
    background: linear-gradient(to bottom, rgba(0, 39, 91, 0.95) 0%, rgba(0, 39, 91, 0.95) 100%), url('../../media/about-standard-bg.png');
}

/* About - Why Choose Us Section */
.about-why-choose-us {
    background: linear-gradient(to bottom, #EAF3FF 0%, #FFFFFF 100%);
}

.about-why-icon-box {
    width: 70px;
    height: 70px;
    background-color: #00275B;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-why-icon {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.about-why-choose-us h5 {
    font-size: 1.25rem;
}

.about-why-choose-us p {
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .about-why-icon-box {
        width: 60px;
        height: 60px;
        border-radius: 12px;
    }

    .about-why-icon {
        width: 28px;
        height: 28px;
    }

    .about-why-choose-us h5 {
        font-size: 1.1rem;
    }
}

#carouselAboutWhyIndicators {
    width: 435px;
    max-width: 100%;
}

#carouselAboutWhyIndicators .carousel-inner {
    overflow: hidden;
}

#carouselAboutWhyIndicators .carousel-item img {
    width: 100%;
    height: auto;
}

#carouselAboutWhyIndicators .carousel-indicators {
    margin-top: 5px;
    position: static;
}

#carouselAboutWhyIndicators .carousel-indicators>button {
    width: 8px;
    height: 8px;
    aspect-ratio: 1/1;
    border-radius: 50%;
    padding: 0;
    overflow: hidden;
}

/* About Page Stat Boxes */
.about-stat-box {
    background-color: #1a2d4d;
    border-radius: 16px;
    padding: 2rem 1.5rem;
    height: 100%;
}

.about-stat-number {
    background-image: linear-gradient(to right, white, #00275B00);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 48px;
    font-weight: 600;
    color: #d1d5db;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.about-stat-title {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.75rem;
    font-size: 18px;
}

.about-stat-text {
    font-size: 0.9rem;
    color: var(--sub-6-color);
    line-height: 1.5;
}

@media (max-width: 768px) {
    .about-stat-number {
        font-size: 2.5rem;
    }

    .about-stat-box {
        padding: 1.5rem 1.25rem;
    }
}

@media (max-width: 768px) {
    .play-icon-circle {
        width: 60px;
        height: 60px;
    }

    .play-icon-circle i {
        font-size: 1.25rem !important;
    }
}

.bg-about-gallery {
    background-color: #EAF3FF;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    padding-bottom: 0.5rem;
}

.image-hover-preview {
    cursor: pointer;
    overflow: hidden;
    position: relative;
    display: block;
}

.image-hover-preview img {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.image-hover-preview:hover img {
    transform: scale(1.05);
    filter: brightness(0.85);
}

.image-hover-preview::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.image-hover-preview:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

.carousel .image-hover-preview {
    border-radius: 0;
}

/* ============================
   Scroll Reveal Animations
   ============================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
    contain: content;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for grid children */
.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

.reveal-delay-4 {
    transition-delay: 0.32s;
}

.reveal-delay-5 {
    transition-delay: 0.40s;
}

.reveal-delay-6 {
    transition-delay: 0.48s;
}

/* Fade-in from left variant */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Scale-up variant */
.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* ============================
   Shine Sweep Effect (shared)
   ============================ */
.shine-sweep {
    position: relative;
    overflow: hidden;
}

.shine-sweep::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.35) 50%,
            rgba(255, 255, 255, 0) 70%,
            transparent 100%);
    z-index: 2;
    pointer-events: none;
    transition: none;
}

.shine-sweep:hover::before {
    animation: shineSweep 0.7s ease forwards;
}

@keyframes shineSweep {
    0% {
        left: -100%;
    }

    100% {
        left: 130%;
    }
}

/* ============================
   Product Highlight Banners - Hover Effects
   ============================ */
.product-highlight-item {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.product-highlight-item picture {
    display: block;
    overflow: hidden;
    border-radius: 12px;
    position: relative;
}

.product-highlight-item picture::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 70%,
            transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.product-highlight-item:hover picture::before {
    animation: shineSweep 0.65s ease forwards;
}

.product-highlight-item img {
    transition: filter 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.product-highlight-item:hover img {
    filter: brightness(1.08);
    transform: scale(1.06);
}

.product-highlight-item p {
    transition: color 0.3s ease;
}

.product-highlight-item:hover p {
    color: var(--sub-4-color);
}

/* ============================
   Product Category Cards - Clean Hover
   ============================ */
.card-products .card-products-image {
    position: relative;
}

.card-products .card-products-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 30%,
            rgba(255, 255, 255, 0.2) 50%,
            rgba(255, 255, 255, 0) 70%,
            transparent 100%);
    z-index: 3;
    pointer-events: none;
}

.card-products:hover .card-products-image::before {
    animation: shineSweep 0.8s ease forwards;
}

/* ============================
   Our Works Gallery - Hover Effects
   ============================ */
.work-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    display: block;
}

.work-item img {
    transition: filter 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: block;
}

.work-item:hover img {
    filter: brightness(1.06);
    transform: scale(1.05);
}

/* Soft gradient overlay on hover */
.work-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            transparent 40%,
            rgba(0, 39, 91, 0.35) 100%);
    opacity: 0;
    transition: opacity 0.45s ease;
    pointer-events: none;
    border-radius: 1rem;
    z-index: 1;
}

.work-item:hover::after {
    opacity: 1;
}

/* Small eye icon on hover */
.work-item::before {
    content: '\f06e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 400;
    position: absolute;
    bottom: 12px;
    right: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    z-index: 2;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
}

.work-item:hover::before {
    opacity: 1;
    transform: translateY(0);
}

/* ============================
   Blog Cards - Hover Effects
   ============================ */
.home-blogs .card {
    border-radius: 1rem;
    overflow: hidden;
}

.home-blogs .card a img {
    display: block;
    overflow: hidden;
    transition: filter 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-blogs .card:hover a img {
    filter: brightness(1.06);
    transform: scale(1.05);
}

/* Animated underline on blog title */
.home-blogs .card h5 a {
    position: relative;
    display: inline;
    background-image: linear-gradient(var(--sub-4-color), var(--sub-4-color));
    background-size: 0% 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-blogs .card:hover h5 a {
    background-size: 100% 2px;
}

.home-blogs .card .arrow-up-right {
    transition: transform 0.35s ease, color 0.35s ease;
}

.home-blogs .card:hover .arrow-up-right {
    transform: rotate(45deg) translate(2px, -2px);
    color: var(--sub-4-color);
}



/* ============================
   Prefers Reduced Motion
   ============================ */
@media (prefers-reduced-motion: reduce) {

    .reveal,
    .reveal-left,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .product-highlight-item img,
    .work-item img,
    .home-blogs .card a img,
    .home-clients .client-logo {
        transition: none;
    }

    .shine-sweep:hover::before,
    .product-highlight-item:hover picture::before,
    .card-products:hover .card-products-image::before {
        animation: none;
    }
}