/* Custom Client Brand Color Palette Elements */

/* Optional Custom Serif Treatment Override for "modern" */
h1 span {
    font-family: 'Playfair Display', Georgia, Cambria, serif;
}

/* Navigation directional slide underline effect */
.nav-link-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 4px;
}

.nav-link-underline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: #e31e24;
    /* Client's exact brand color code */

    transform: scaleX(0);
    transform-origin: right center;

    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

/* ON HOVER: Switch origin point to the left and scale the line full width */
.nav-link-underline:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
}

/* FIXED ACTIVE STATE: Forces the line to remain fully scaled open without hover dependencies */
.nav-link-underline.active::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.text-theme-primary {
    color: #e31e24;
}

/* The signature dot next to VOLTEC logo */
.brand-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    background-color: #e31e24;
    border-radius: 50%;
    margin-bottom: 2px;
}

/* Custom Call to Action Button */
.btn-enquire {
    background-color: #e31e24;
}

.btn-enquire:hover {
    background-color: #c21419;
    /* Slightly darker shade for smooth hover interaction */
    transform: translateY(-1px);
}

/* Smooth active state transitions */
.btn-enquire:active {
    transform: translateY(1px);
}

/* Custom Hero Dynamic Rule Extensions */

.btn-primary {
    background-color: #e31e24;
}

.btn-primary:hover {
    background-color: #c21419;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Smooth, hardware-accelerated floating fix */
@keyframes strictFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
        /* Strictly limited to 10px up/down movement */
    }
}

.luxury-float {
    /* will-change tells the browser to run this on the GPU, preventing header breaking/jitter */
    will-change: transform;
    animation: strictFloat 4s ease-in-out infinite;
}

/* Swiper Linear Ticker Timing Engine Configuration Override */
.marquee-swiper .dynamic-linear-wrapper {
    -webkit-transition-timing-function: linear !important;
    -o-transition-timing-function: linear !important;
    transition-timing-function: linear !important;
}

.marquee-swiper .swiper-slide {
    width: auto !important;
    /* Forces slides to only take up text width instead of default grid spans */
}

.marquee-swiper .voltec-motion-target,
.marquee-swiper .voltec-motion-target.voltec-motion-show {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
}

/* Custom ambient spotlight hover effect */
.premium-hover-card {
    position: relative;
    background-color: rgba(18, 18, 18, 0.5);
    transition: background 0.5s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* On hover, we smoothly transition to a deep radial gradient focused in the top-right corner */
.premium-hover-card:hover {
    background: radial-gradient(800px circle at 90% 10%,
            rgba(227, 30, 36, 0.08) 0%,
            #ffffff 60%);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

/* Product item image card parent wrapper target */
.product-item .relative {
    position: relative;
    /* border: 1px solid rgba(17, 17, 17, 0.4); */
    /* Ensures the absolute child pseudo-element respects the rounded corners and doesn't bleed out */
    overflow: hidden !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

/* 1. DYNAMIC BORDER OVERRIDE ON HOVER */
.product-item:hover .relative {
    border-color: #e31e24 !important;
    /* Voltec brand red accent */
    box-shadow: 0 10px 30px -10px rgba(227, 30, 36, 0.15);
}

/* 2. FLASH REFLECTION SHINE ACCENT (Left to Right Sweep) */
.product-item .relative::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    /* Positioned completely out of view to the left */
    width: 60%;
    height: 100%;
    /* FIXED SYNTAX: Changed 100__ to 100%) */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.15) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    z-index: 20;
    pointer-events: none;
}

/* TRIGGER FLASH ON CARD HOVER */
.product-item:hover .relative::after {
    left: 150%;
    /* Smoothly sweeps across to the right side */
    transition: left 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================ */
/* LOADER COMPONENT STYLES */
/* ============================================ */

/* Main Loader Container */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Loader Container */
.loader-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Red Border Circle */
.loader-border {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 3px solid transparent;
    border-top-color: #e31e24;
    border-right-color: #e31e24;
    border-radius: 50%;
    animation: spinBorder 2s linear infinite;
    box-shadow: 0 0 30px rgba(227, 30, 36, 0.3);
}

/* Rotating Circle Animation */
@keyframes spinBorder {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Secondary Slower Border for Depth */
.loader-border::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -8px;
    right: -8px;
    bottom: -8px;
    border: 2px solid rgba(227, 30, 36, 0.2);
    border-radius: 50%;
    animation: spinBorderSlow 4s linear infinite reverse;
}

@keyframes spinBorderSlow {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Logo Image Center */
.loader-logo {
    position: relative;
    z-index: 10;
    width: 70px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    animation: logoFloat 3s ease-in-out infinite;
}

/* Subtle Logo Animation */
@keyframes logoFloat {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Loading Text (Optional) */
.loader-text {
    position: absolute;
    bottom: 60px;
    text-align: center;
    color: #e31e24;
    font-size: 14px;
    letter-spacing: 2px;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* Dots Animation */
.loader-dots {
    display: inline-block;
    margin-left: 5px;
}

.loader-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background-color: #e31e24;
    border-radius: 50%;
    margin: 0 2px;
    animation: dotAnimation 1.4s infinite;
}

.loader-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes dotAnimation {

    0%,
    80%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    40% {
        opacity: 1;
        transform: scale(1.2);
    }
}

.voltec-motion-target {
    opacity: 0;
    transition-property: transform, opacity, filter;
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    transition-duration: 900ms;
    transition-delay: var(--voltec-delay, 0ms);
    will-change: transform, opacity, filter;
    filter: blur(6px);
}

.voltec-motion-left {
    transform: translate3d(-44px, 0, 0) scale(0.985) rotate(-0.25deg);
}

.voltec-motion-right {
    transform: translate3d(44px, 0, 0) scale(0.985) rotate(0.25deg);
}

.voltec-motion-up {
    transform: translate3d(0, 36px, 0) scale(0.985);
}

.voltec-motion-zoom {
    transform: translate3d(0, 20px, 0) scale(0.92);
}

.voltec-motion-target.voltec-motion-show {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1) rotate(0);
    filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {

    .voltec-motion-target,
    .voltec-motion-target.voltec-motion-show {
        opacity: 1;
        transform: none;
        filter: none;
        transition: none;
    }
}

/* ============================================ */
/* HERO SLIDER PAGINATION STYLES */
/* ============================================ */

/* Hero Swiper Pagination Container */
.hero-swiper-pagination {
    position: relative !important;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 !important;
}

/* Pagination Dot Styling */
.hero-swiper-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background-color: rgba(227, 30, 36, 0.25);
    opacity: 1 !important;
    border-radius: 50%;
    margin: 0 !important;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Hover effect on inactive dots */
.hero-swiper-pagination .swiper-pagination-bullet:hover {
    background-color: rgba(227, 30, 36, 0.5);
    transform: scale(1.3);
    box-shadow: 0 4px 12px rgba(227, 30, 36, 0.3);
}

/* Active dot styling */
.hero-swiper-pagination .swiper-pagination-bullet-active {
    background-color: #e31e24 !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(227, 30, 36, 0.6), 0 0 0 3px rgba(227, 30, 36, 0.2);
    transform: scale(1.3);
}

/* ============================================ */
/* HERO SLIDER ANIMATIONS */
/* ============================================ */

/* Smooth slide transition */
.hero-swiper .swiper-slide {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-swiper .swiper-slide-active {
    opacity: 1;
}

/* Image zoom animation on slide change */
.hero-swiper .swiper-slide img {
    animation: heroImageZoom 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes heroImageZoom {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}