/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */

/* =========================
   BEFORE / AFTER SECTION
========================= */

.before-after .elementor-image-box-wrapper{
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #0b1f3a;
    transition: all 0.35s ease;
}

.before-after .elementor-image-box-img{
    margin-bottom: 0 !important;
    overflow: hidden;
}

.before-after .elementor-image-box-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Overlay */
.before-after .elementor-image-box-content{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(
        to top,
        rgba(11,31,58,0.88) 0%,
        rgba(11,31,58,0.45) 45%,
        rgba(11,31,58,0.05) 100%
    );
}

/* Badge Style */
.before-after .elementor-image-box-title{
    display: inline-block;
    width: fit-content;
    padding: 7px 16px;
    margin-bottom: 14px !important;
    background: #6BBF3E;
    color: #ffffff !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 2px;
    font-family: 'DM Sans', sans-serif;
}

/* Description */
.before-after .elementor-image-box-description{
    color: rgba(255,255,255,0.88) !important;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
    max-width: 85%;
    font-family: 'DM Sans', sans-serif;
}

/* Hover Effects */
.before-after .elementor-image-box-wrapper:hover img{
    transform: scale(1.05);
}

.before-after .elementor-image-box-wrapper:hover{
    transform: translateY(-4px);
}

/* Optional AFTER badge color */
.before-after.after-card .elementor-image-box-title{
    background: #8ED44F;
}

/* Mobile */
@media (max-width: 767px){

    .before-after .elementor-image-box-img img{
        height: 100%;
    }

    .before-after .elementor-image-box-content{
        padding: 22px;
    }

    .before-after .elementor-image-box-description{
        max-width: 100%;
        font-size: 14px;
    }
}


/* =========================
   SEE IT BEFORE WE BUILD IT
========================= */

.build .elementor-image-box-wrapper{
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    background: #142947;
    transition: all 0.4s ease;
}

.build .elementor-image-box-img{
    margin-bottom: 0 !important;
    overflow: hidden;
}

.build .elementor-image-box-img img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

/* Overlay Content */
.build .elementor-image-box-content{
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    background: linear-gradient(
        to top,
        rgba(11,31,58,0.92) 0%,
        rgba(11,31,58,0.45) 45%,
        rgba(11,31,58,0.08) 100%
    );
}

/* Title */
.build .elementor-image-box-title{
    color: #ffffff !important;
    font-size: 28px !important;
    line-height: 1.2;
    margin-bottom: 10px !important;
    font-weight: 500 !important;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.3px;
}

/* Description */
.build .elementor-image-box-description{
    color: rgba(255,255,255,0.82) !important;
    font-size: 15px;
    line-height: 1.7;
    font-weight: 300;
    font-family: 'DM Sans', sans-serif;
    max-width: 90%;
}

/* Premium Hover */
.build .elementor-image-box-wrapper:hover img{
    transform: scale(1.06);
}

.build .elementor-image-box-wrapper:hover{
    transform: translateY(-6px);
}

/* Glow Border Effect */
.build .elementor-image-box-wrapper::after{
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(142,212,79,0.18);
    pointer-events: none;
    transition: all 0.35s ease;
}

.build .elementor-image-box-wrapper:hover::after{
    border-color: rgba(142,212,79,0.45);
}

/* Optional Small Label */
.build .elementor-image-box-title::before{
    content: "RENDERING";
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8ED44F;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 12px;
    font-weight: 500;
}

/* Mobile */
@media (max-width: 767px){

    .build .elementor-image-box-img img{
        height: 100%;
    }

    .build .elementor-image-box-content{
        padding: 22px;
    }

    .build .elementor-image-box-title{
        font-size: 22px !important;
    }

    .build .elementor-image-box-description{
        font-size: 14px;
        max-width: 100%;
    }
}

/* =========================
   RECENT PROJECTS SCROLLER
========================= */

.auto-scroll{
    overflow: hidden;
    position: relative;
    width: 100%;
}

/* Fade Edges */
.auto-scroll::before,
.auto-scroll::after{
    content: "";
    position: absolute;
    top: 0;
    width: 140px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.auto-scroll::before{
    left: 0;
    background: linear-gradient(
        to right,
        #0B1F3A 0%,
        rgba(11,31,58,0) 100%
    );
}

.auto-scroll::after{
    right: 0;
    background: linear-gradient(
        to left,
        #0B1F3A 0%,
        rgba(11,31,58,0) 100%
    );
}

/* Main Track */
.auto-scroll .gallery{
    display: flex;
    align-items: center;
    gap: 14px;
    width: max-content;
    animation: olliScroll 45s linear infinite;
}

/* Pause on Hover */
.auto-scroll:hover .gallery{
    animation-play-state: paused;
}

/* Remove Elementor Default Width */
.auto-scroll .gallery-item{
    width: auto !important;
    margin: 0 !important;
    flex-shrink: 0;
}

/* Image Card */
.auto-scroll .gallery-icon{
    overflow: hidden;
    border-radius: 6px;
    position: relative;
    background: #142947;
}

/* Images */
.auto-scroll .gallery-icon img{
    width: 340px;
    height: 240px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

/* Hover Zoom */
.auto-scroll .gallery-item:hover img{
    transform: scale(1.06);
}

/* Premium Border */
.auto-scroll .gallery-icon::after{
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(142,212,79,0.15);
    pointer-events: none;
    transition: all 0.3s ease;
}

.auto-scroll .gallery-item:hover .gallery-icon::after{
    border-color: rgba(142,212,79,0.45);
}

/* Hide Captions */
.auto-scroll .gallery-caption{
    display: none;
}

/* Smooth Infinite Scroll */
@keyframes olliScroll{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-50%);
    }
}

/* Mobile */
@media (max-width: 767px){

    .auto-scroll .gallery{
        gap: 10px;
    }

    .auto-scroll .gallery-icon img{
        width: 260px;
        height: 180px;
    }

    .auto-scroll::before,
    .auto-scroll::after{
        width: 60px;
    }
}
