/* ==========================================================================
   LifeSmart: "Experience the Difference" & "Product Gallery" Styles
   Pixel-perfect match to mockup with smooth animations and mobile responsiveness
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared Section Header & Decorative Green Lines
   -------------------------------------------------------------------------- */
.ls-section-header {
    text-align: center;
    margin-bottom: 34px;
}

.ls-title-with-lines {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 6px;
}

.ls-accent-line {
    display: inline-block;
    width: 36px;
    height: 2px;
    background-color: #689f38;
    border-radius: 2px;
}

.ls-section-title {
    font-family: 'Playfair Display', Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 700;
    color: #0c2b48;
    margin: 0;
    letter-spacing: -0.2px;
}

.ls-section-subtitle {
    font-size: 14.5px;
    color: #556877;
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.2px;
}

/* ==========================================================================
   Section 1: Experience the Difference
   ========================================================================== */
.ls-diff-section {
    padding: 60px 20px 70px 20px;
    background: #ffffff;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
}

.ls-diff-container {
    max-width: 1320px;
    margin: 0 auto;
}

.ls-diff-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

/* Card */
.ls-diff-card {
    background: #ffffff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.ls-diff-card:hover {
    transform: translateY(-6px);
}

/* Media Box & Image */
.ls-diff-media {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 175px;
    background: #f1f5f9;
    box-shadow: 0 4px 18px rgba(12, 43, 72, 0.08);
}

.ls-diff-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ls-diff-card:hover .ls-diff-img {
    transform: scale(1.08);
}

/* Overlapping Badge Icon */
.ls-diff-icon-badge {
    position: absolute;
    bottom: 12px;
    left: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid #e5a93b;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
    z-index: 4;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.ls-diff-card:hover .ls-diff-icon-badge {
    transform: scale(1.12) rotate(6deg);
    background-color: #fffbeb;
    border-color: #d49a2a;
}

.ls-diff-svg {
    width: 22px;
    height: 22px;
    stroke: #b47d1e;
    transition: stroke 0.25s ease;
}

.ls-diff-card:hover .ls-diff-svg {
    stroke: #926010;
}

/* Card Content */
.ls-diff-content {
    padding: 16px 4px 4px 4px;
}

.ls-diff-title {
    font-size: 17px;
    font-weight: 700;
    color: #0c2b48;
    margin: 0 0 6px 0;
    letter-spacing: -0.1px;
}

.ls-diff-desc {
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.45;
    margin: 0;
}

/* ==========================================================================
   Section 2: Product Gallery
   ========================================================================== */
.ls-gallery-section {
    padding: 40px 20px 80px 20px;
    background: #fafbfc;
    font-family: 'Jost', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    position: relative;
    border-top: 1px solid #f1f5f9;
}

.ls-gallery-container {
    max-width: 1320px;
    margin: 0 auto;
}

.ls-gallery-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
}

/* Navigation Arrow Buttons */
.ls-gallery-nav {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0c2b48;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(12, 43, 72, 0.08);
    z-index: 10;
    flex-shrink: 0;
    transition: all 0.25s ease;
    padding: 0;
}

.ls-gallery-nav svg {
    width: 20px;
    height: 20px;
}

.ls-gallery-nav:hover {
    background: #0c2b48;
    color: #ffffff;
    border-color: #0c2b48;
    transform: scale(1.08);
    box-shadow: 0 6px 18px rgba(12, 43, 72, 0.2);
}

.ls-gallery-nav:active {
    transform: scale(0.96);
}

/* Viewport & Track */
.ls-gallery-viewport {
    flex-grow: 1;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-radius: 12px;
    padding: 6px 0;
}

.ls-gallery-viewport::-webkit-scrollbar {
    display: none;
}

.ls-gallery-track {
    display: flex;
    gap: 14px;
    align-items: center;
    width: max-content;
}

/* Gallery Items */
.ls-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(12, 43, 72, 0.06);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    background: #000000;
}

.ls-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(12, 43, 72, 0.16);
}

.ls-gallery-img-box {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ls-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.ls-gallery-item:hover .ls-gallery-img {
    transform: scale(1.06);
}

/* Item Dimensions */
.ls-gallery-item.ls-item-video {
    width: 270px;
    height: 165px;
}

.ls-gallery-item:not(.ls-item-video) {
    width: 165px;
    height: 165px;
}

/* Play Overlay Button on Video Item */
.ls-play-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0c2b48;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
    z-index: 5;
    padding: 0;
}

.ls-play-overlay-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background: #ffffff;
    color: #e5a93b;
    box-shadow: 0 8px 25px rgba(229, 169, 59, 0.4);
}

.ls-play-svg {
    width: 22px;
    height: 22px;
    margin-left: 3px;
}

/* Hover Overlay for Still Images */
.ls-gallery-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 43, 72, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 3;
}

.ls-gallery-item:hover .ls-gallery-hover-overlay {
    opacity: 1;
}

.ls-zoom-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: #0c2b48;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0.8);
    transition: transform 0.25s ease;
}

.ls-zoom-icon svg {
    width: 18px;
    height: 18px;
}

.ls-gallery-item:hover .ls-zoom-icon {
    transform: scale(1);
}

/* ==========================================================================
   Modals (Image Lightbox & Video Player)
   ========================================================================== */
.ls-gallery-modal, .ls-video-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.ls-gallery-modal.show, .ls-video-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.ls-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 25, 45, 0.85);
    backdrop-filter: blur(6px);
}

.ls-modal-dialog, .ls-video-dialog {
    position: relative;
    z-index: 10;
    max-width: 900px;
    width: 90%;
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ls-gallery-modal.show .ls-modal-dialog,
.ls-video-modal.show .ls-video-dialog {
    transform: scale(1);
}

.ls-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 32px;
    color: #ffffff;
    background: transparent;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 20;
    transition: transform 0.2s ease, color 0.2s ease;
}

.ls-modal-close:hover {
    color: #e5a93b;
    transform: scale(1.15);
}

.ls-modal-body {
    padding: 24px;
    text-align: center;
}

.ls-modal-image {
    max-width: 100%;
    max-height: 75vh;
    border-radius: 8px;
    object-fit: contain;
}

.ls-modal-caption {
    color: #cbd5e1;
    font-size: 15px;
    margin-top: 14px;
    font-weight: 500;
}

/* Video Mockup Screen Inside Video Modal */
.ls-video-mockup-screen {
    position: relative;
    width: 100%;
    min-height: 440px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ls-video-backdrop-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.45) blur(1px);
}

.ls-video-overlay-badge {
    position: absolute;
    top: 18px;
    left: 20px;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 12px;
    padding: 6px 14px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.15);
}

.ls-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.ls-video-content-center {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 20px;
    max-width: 600px;
}

.ls-video-circle-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #e5a93b;
    color: #0c2b48;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    box-shadow: 0 0 30px rgba(229, 169, 59, 0.5);
}

.ls-video-circle-icon svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
}

.ls-video-content-center h4 {
    font-size: 24px;
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.ls-video-content-center p {
    font-size: 14px;
    color: #cbd5e1;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.ls-video-cta-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #e5a93b;
    color: #0c2b48;
    font-weight: 700;
    font-size: 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ls-video-cta-btn:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablet (768px - 1023px) */
@media screen and (max-width: 1023px) {
    .ls-diff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .ls-diff-media {
        height: 190px;
    }
    .ls-gallery-item.ls-item-video {
        width: 240px;
        height: 155px;
    }
    .ls-gallery-item:not(.ls-item-video) {
        width: 155px;
        height: 155px;
    }
}

/* Mobile Screens (< 768px) */
@media screen and (max-width: 767px) {
    .ls-diff-section {
        padding: 45px 16px 50px 16px;
    }
    .ls-gallery-section {
        padding: 35px 16px 60px 16px;
    }

    .ls-section-title {
        font-size: 24px;
    }
    .ls-section-subtitle {
        font-size: 13px;
    }
    .ls-accent-line {
        width: 24px;
    }

    /* 2 columns on mobile so cards fit nicely */
    .ls-diff-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .ls-diff-media {
        height: 125px;
    }

    .ls-diff-icon-badge {
        width: 34px;
        height: 34px;
        bottom: 8px;
        left: 8px;
    }

    .ls-diff-svg {
        width: 17px;
        height: 17px;
    }

    .ls-diff-title {
        font-size: 14px;
    }

    .ls-diff-desc {
        font-size: 11.5px;
        line-height: 1.35;
    }

    /* Gallery on mobile */
    .ls-gallery-nav {
        display: none; /* Smooth native touch-swipe on mobile */
    }

    .ls-gallery-item.ls-item-video {
        width: 210px;
        height: 135px;
    }

    .ls-gallery-item:not(.ls-item-video) {
        width: 135px;
        height: 135px;
    }

    .ls-video-mockup-screen {
        min-height: 340px;
    }
    .ls-video-content-center h4 {
        font-size: 19px;
    }
    .ls-video-content-center p {
        font-size: 12.5px;
    }
}

/* Small mobile (< 420px) */
@media screen and (max-width: 420px) {
    .ls-diff-grid {
        grid-template-columns: 1fr;
    }
    .ls-diff-media {
        height: 160px;
    }
}
