/* ==========================================================================
   CINEMATIC GSAP SCROLL & BLUR ANIMATIONS STYLING
   ========================================================================== */

/* Word clipping container for smooth kinetic reveals */
.gsap-word-clip {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    margin-right: 0.28em;
    padding-bottom: 2px;
}

.gsap-blur-word {
    display: inline-block;
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
}

/* Hardware accelerated elements */
.service-box-style1,
.service-box-style2,
.service-box-style3,
.project-box-style1,
.counter-outer,
.wt-icon-box-wraper,
.about-max-two-left,
.about-media,
.site-button {
    will-change: transform, opacity, filter;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* Smooth card hover lift */
.service-box-style1,
.service-box-style2,
.service-box-style3,
.project-box-style1,
.wt-icon-box-wraper {
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.service-box-style1:hover,
.service-box-style2:hover,
.project-box-style1:hover {
    transform: translateY(-8px) scale(1.01) !important;
}

/* Explicit Footer protection: ensure address and contacts are never stuck in blur */
.site-footer,
.site-footer *,
.footer-top,
.footer-bottom,
.footer_blocks,
.widget_about,
.widget_services,
.widget_newsletter {
    filter: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* Brand Logo Styling */
.logo-header {
    width: 260px !important;
    height: 70px !important;
    display: flex !important;
    align-items: center !important;
}
.logo-header .logo-header-inner {
    display: flex !important;
    align-items: center !important;
    height: 100% !important;
}
.logo-header img {
    max-height: 56px !important;
    max-width: 100% !important;
    height: auto !important;
    width: auto !important;
    object-fit: contain !important;
}

@media (max-width: 768px) {
    .logo-header {
        width: 180px !important;
    }
    .logo-header img {
        max-height: 44px !important;
    }
}

/* Prevent horizontal overflow during animations */
html, body {
    overflow-x: hidden;
}

/* ==========================================================================
   TRHS Custom Leather Branding & Components
   ========================================================================== */

/* Brand Color Variables */
:root {
    --trhs-green: #006a4e;
    --trhs-green-dark: #004d38;
    --trhs-green-light: #008c66;
    --trhs-gold: #c5a059;
}

/* Service Card Leather Icons */
.leather-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(0, 106, 78, 0.08);
    border-radius: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    color: var(--trhs-green);
}
.service-icon-box-two:hover .leather-icon-box {
    background: var(--trhs-green);
    color: #fff !important;
    transform: translateY(-5px);
}
.leather-icon-box svg {
    width: 44px;
    height: 44px;
    fill: currentColor;
}

/* Global Export Countries Grid */
.export-section {
    background: #0d1b16;
    color: #fff;
    position: relative;
    overflow: hidden;
}
.export-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 106, 78, 0.3);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.35s ease;
    backdrop-filter: blur(5px);
    margin-bottom: 25px;
}
.export-card:hover {
    background: rgba(0, 106, 78, 0.2);
    border-color: var(--trhs-green);
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 106, 78, 0.25);
}
.export-card .flag-badge {
    font-size: 38px;
    margin-bottom: 12px;
    display: inline-block;
}
.export-card h4 {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.export-card .export-hub {
    color: #88c7b3;
    font-size: 13px;
    margin-bottom: 8px;
    font-weight: 500;
}
.export-card .export-goods {
    color: #bbb;
    font-size: 12px;
    line-height: 1.4;
}

/* Mobile-Optimized Bottom Quick Quote Form */
.quick-quote-section {
    background: #f7faf8;
    border-top: 1px solid #e1ebe5;
    position: relative;
}
.quick-quote-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: 0 15px 40px rgba(0, 106, 78, 0.08);
    border: 1px solid rgba(0, 106, 78, 0.15);
}
.quick-quote-box .form-control {
    height: 46px;
    border-radius: 8px;
    border: 1px solid #cedcd5;
    background: #fdfdfd;
    font-size: 14px;
    padding: 10px 16px;
}
.quick-quote-box .form-control:focus {
    border-color: var(--trhs-green);
    box-shadow: 0 0 0 3px rgba(0, 106, 78, 0.15);
}
.quick-quote-box textarea.form-control {
    height: 80px;
}

@media (max-width: 768px) {
    .quick-quote-box {
        padding: 20px 15px;
    }
    .quick-quote-box .form-group {
        margin-bottom: 10px;
    }
    .quick-quote-box .form-control {
        height: 42px;
        font-size: 13px;
    }
    .quick-quote-box textarea.form-control {
        height: 60px;
    }
}

/* 10-Second Lead Popup Modal */
.trhs-popup-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    backdrop-filter: blur(4px);
}
.trhs-popup-backdrop.active {
    display: flex;
    opacity: 1;
}
.trhs-popup-modal {
    background: #ffffff;
    border-radius: 20px;
    max-width: 520px;
    width: 92%;
    padding: 35px 30px;
    position: relative;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    border-top: 6px solid var(--trhs-green);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.trhs-popup-backdrop.active .trhs-popup-modal {
    transform: scale(1);
}
.trhs-popup-close {
    position: absolute;
    top: 15px;
    right: 18px;
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    border-radius: 50%;
    border: none;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.trhs-popup-close:hover {
    background: var(--trhs-green);
    color: #fff;
}

/* ==========================================================================
   New Layout Enhancements: Floating WhatsApp, Left Scrolltop, Mobile Sticky Bar
   ========================================================================== */

/* 1. Move Scroll-To-Top Button to Bottom LEFT */
.scroltop {
    left: 25px !important;
    right: auto !important;
    bottom: 25px !important;
    z-index: 9999 !important;
    border-radius: 50% !important;
    width: 46px !important;
    height: 46px !important;
    background: #006a4e !important;
    box-shadow: 0 4px 15px rgba(0, 106, 78, 0.4) !important;
}
.scroltop:hover {
    background: #004d38 !important;
    transform: translateY(-4px) !important;
}

/* 2. Floating WhatsApp Button on Bottom RIGHT */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 99999;
    background: #25D366;
    color: #ffffff !important;
    border-radius: 50px;
    padding: 12px 22px 12px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none !important;
}
.floating-whatsapp-btn i {
    font-size: 24px;
}
.floating-whatsapp-btn:hover {
    background: #1eb954;
    transform: translateY(-5px) scale(1.04);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
    color: #ffffff !important;
}

/* Pulse ring animation around WhatsApp button */
.floating-whatsapp-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    border: 2px solid #25D366;
    animation: whatsappPulse 2s infinite ease-in-out;
    pointer-events: none;
}
@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.3, 1.4); opacity: 0; }
}

/* 3. Animated Developer Credit for SKY DIGI AI TECH */
.sky-digi-credit {
    font-weight: 700;
    background: linear-gradient(90deg, #006a4e, #00c988, #d4af37, #006a4e);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shineDev 3s linear infinite;
    text-decoration: none;
    letter-spacing: 0.5px;
    display: inline-block;
    padding: 2px 4px;
}
.sky-digi-credit:hover {
    text-decoration: underline;
    filter: drop-shadow(0 0 6px rgba(0, 201, 136, 0.6));
}
@keyframes shineDev {
    to {
        background-position: 300% center;
    }
}

/* 4. Country Flag Icon SVG in Export Cards */
.flag-badge .flag-icon {
    transition: transform 0.3s ease;
}
.export-card:hover .flag-badge .flag-icon {
    transform: scale(1.15) rotate(2deg);
}

/* 5. Mobile Header & Sticky Action Bar */
.mobile-sticky-quote-bar {
    display: none;
}

@media (max-width: 991px) {
    /* Hide clumsy header quote button on mobile */
    .desktop-only-quote {
        display: none !important;
    }

    /* Floating WhatsApp on mobile shows as icon only */
    .floating-whatsapp-btn {
        padding: 12px !important;
        border-radius: 50% !important;
        width: 50px;
        height: 50px;
        justify-content: center;
        bottom: 75px;
        right: 18px;
    }
    .floating-whatsapp-btn .whatsapp-label {
        display: none !important;
    }
    .scroltop {
        bottom: 75px !important;
        left: 18px !important;
    }

    /* Mobile Sticky Bottom Action Bar */
    .mobile-sticky-quote-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #ffffff;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
        z-index: 99998;
        display: flex;
        align-items: center;
        padding: 10px 15px;
        gap: 10px;
        border-top: 2px solid #006a4e;
    }
    .mobile-quote-btn {
        flex: 1;
        background: #006a4e;
        color: #ffffff !important;
        text-align: center;
        padding: 12px;
        border-radius: 8px;
        font-weight: 700;
        font-size: 14px;
        text-decoration: none !important;
        box-shadow: 0 4px 10px rgba(0, 106, 78, 0.3);
    }
    .mobile-wa-btn {
        width: 44px;
        height: 44px;
        background: #25D366;
        color: #ffffff !important;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        font-size: 22px;
        text-decoration: none !important;
    }
}

/* Category Image Thumbnails */
.category-image-wrap {
    width: 100%;
    height: 190px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    background: #f0f4f2;
}
.category-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease, filter 0.3s ease;
}
.service-icon-box-two:hover .category-image-wrap img {
    transform: scale(1.08);
}

/* Ensure Scroll-To-Top button is completely hidden */
.scroltop {
    display: none !important;
}

/* Mobile Sticky Bar Single Button Style */
.mobile-sticky-quote-bar .mobile-quote-btn {
    width: 100%;
    display: block;
}

/* ==========================================================================
   TRHS Cinematic Interactive Splash Screen
   ========================================================================== */

.trhs-splash-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 99999999;
    background: #060e0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.trhs-splash-overlay.fade-out {
    opacity: 0;
    transform: scale(1.06);
    pointer-events: none;
}

.trhs-splash-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    filter: blur(12px) brightness(0.35);
    transition: filter 0.8s ease;
}

.trhs-splash-video.playing {
    filter: blur(0px) brightness(1);
}

.trhs-splash-prompt {
    position: relative;
    z-index: 10;
    text-align: center;
    color: #ffffff;
    max-width: 600px;
    padding: 30px 20px;
    background: rgba(0, 0, 0, 0.45);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.trhs-splash-prompt:hover {
    transform: scale(1.02);
    border-color: rgba(0, 106, 78, 0.6);
}

.trhs-splash-prompt.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.95);
}

.trhs-splash-logo-wrap {
    margin-bottom: 18px;
}

.trhs-splash-logo {
    max-height: 65px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
}

.trhs-splash-title {
    font-size: 28px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 1px;
    margin-bottom: 8px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.trhs-splash-subtitle {
    font-size: 14px;
    color: #88c7b3;
    margin-bottom: 25px;
    line-height: 1.5;
    font-weight: 500;
}

.trhs-enter-btn {
    background: linear-gradient(135deg, #006a4e, #009e74);
    color: #ffffff !important;
    border: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 30px rgba(0, 106, 78, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: splashPulse 2s infinite ease-in-out;
}

.trhs-enter-btn:hover {
    background: linear-gradient(135deg, #008764, #00c792);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 35px rgba(0, 106, 78, 0.8);
}

@keyframes splashPulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 106, 78, 0.7); }
    70% { box-shadow: 0 0 0 18px rgba(0, 106, 78, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 106, 78, 0); }
}

.trhs-skip-btn {
    position: absolute;
    top: 25px;
    right: 25px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.6);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.trhs-skip-btn:hover {
    background: #006a4e;
    border-color: #006a4e;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .trhs-splash-prompt {
        width: 90%;
        padding: 25px 18px;
    }
    .trhs-splash-title {
        font-size: 22px;
    }
    .trhs-splash-subtitle {
        font-size: 13px;
    }
    .trhs-enter-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    .trhs-skip-btn {
        top: 15px;
        right: 15px;
        padding: 8px 16px;
        font-size: 12px;
    }
}
