/* --- Design System Extensions --- */

:root {
    --industrial-gradient: linear-gradient(135deg, #1e3a8a 0%, #dc2626 100%);
    --premium-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem; /* Prevent sticky header from covering anchor links */
}

/* --- Scroll Reveal Animation --- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.9s cubic-bezier(0.17, 0.55, 0.55, 1), transform 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
}

/* JS adds .reveal-init to enable the hidden-before-scroll state */
.reveal-init {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-init.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Back to Top Button --- */
#back-to-top {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

/* --- Modal Styles --- */
#specs-modal {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#specs-modal.active {
    opacity: 1;
    visibility: visible;
}

#specs-modal .modal-content {
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#specs-modal.active .modal-content {
    transform: scale(1) translateY(0);
}

/* --- Custom Utilities --- */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.dark .glass-panel {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.editorial-shadow {
    box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
}

.industrial-gradient {
    background: var(--industrial-gradient);
}

/* --- Fixed: Missing gradient classes used in HTML --- */
.editorial-gradient {
    background: var(--industrial-gradient);
    color: white;
}

.bg-gradient-primary {
    background: var(--industrial-gradient);
}

/* --- Product Filter --- */
.product-card.hidden-by-filter {
    display: none;
}

/* --- WhatsApp Floating Button --- */
#whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 40;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

#whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.65);
}

#whatsapp-btn svg {
    width: 28px;
    height: 28px;
    fill: white;
}

/* --- Back to Top: sit above WhatsApp button --- */
#back-to-top {
    bottom: 88px !important;
    right: 24px !important;
}


/* --- Professional Preloader --- */
#page-preloader {
    position: fixed;
    inset: 0;
    background-color: #f8fafc;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.dark #page-preloader {
    background-color: #020617;
}

#page-preloader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-ring-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 6rem;
    height: 6rem;
    margin-bottom: 1rem;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #dc2626;
    border-right-color: #1e3a8a;
    animation: loader-spin 1s linear infinite;
}

@keyframes loader-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-logo {
    height: 2.5rem;
    width: auto;
    animation: loader-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes loader-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.95); }
}

.loader-text {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: 0.875rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #1e3a8a;
    animation: loader-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.dark .loader-text {
    color: #93c5fd;
}

/* --- Missing Tailwind Utilities for Modal --- */
.opacity-0 { opacity: 0; }
.opacity-100 { opacity: 1; }
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
.right-4 { right: 1rem; }
.scale-100 { transform: scale(1); }

/* --- Missing Tailwind Utilities for Dropdown --- */
.group:hover .group-hover\:opacity-100 { opacity: 1 !important; }
.group:hover .group-hover\:visible { visibility: visible !important; }
.group:hover .group-hover\:rotate-180 { transform: rotate(180deg) !important; }

/* --- Hero Carousel Animations --- */
.hero-carousel-container .slide-content {
    /* Initially hide elements for animation */
}

.hero-carousel-container .slide-el-1,
.hero-carousel-container .slide-el-2,
.hero-carousel-container .slide-el-3,
.hero-carousel-container .slide-el-4,
.hero-carousel-container .slide-image-group {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Stagger delays */
.hero-carousel-container .active-slide .slide-el-1 { transition-delay: 0.3s; }
.hero-carousel-container .active-slide .slide-el-2 { transition-delay: 0.4s; }
.hero-carousel-container .active-slide .slide-el-3 { transition-delay: 0.5s; }
.hero-carousel-container .active-slide .slide-el-4 { transition-delay: 0.6s; }
.hero-carousel-container .active-slide .slide-image-group { 
    transition-delay: 0.7s; 
    transform: translateX(30px); /* Slide image from the right instead of bottom */
}

.hero-carousel-container .active-slide .slide-el-1,
.hero-carousel-container .active-slide .slide-el-2,
.hero-carousel-container .active-slide .slide-el-3,
.hero-carousel-container .active-slide .slide-el-4,
.hero-carousel-container .active-slide .slide-image-group {
    opacity: 1;
    transform: translate(0, 0);
}

.hero-carousel-container .hero-slide:not(.active-slide) img {
    transform: scale(1.1);
}

.hero-carousel-container .hero-slide.active-slide img {
    transform: scale(1);
}

.hero-carousel-container .indicator.active {
    background-color: #ffffff;
    width: 3rem; /* visually stretch active indicator */
}

/* ============================================================
   INDUSTRIAL HERO SECTION AESTHETICS (ROBUST & B2B)
   ============================================================ */
.hero-highlight-text {
    color: #dc2626; /* Industrial Red */
}
.hero-highlight-text-alt {
    color: #60a5fa; /* Industrial Blue */
}
.hero-highlight-text-accent {
    color: #2dd4bf; /* Industrial Teal */
}

.hero-btn {
    padding: 14px 32px;
    border-radius: 6px;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    color: white;
    text-transform: uppercase;
}
.hero-btn:hover {
    transform: translateY(-2px);
}
.hero-btn-1 {
    background: var(--industrial-gradient);
    box-shadow: 0 8px 20px -5px rgba(220, 38, 38, 0.5);
}
.hero-btn-1:hover { box-shadow: 0 12px 25px -5px rgba(220, 38, 38, 0.7); }

.hero-btn-2 {
    background: #1e3a8a;
    box-shadow: 0 8px 20px -5px rgba(30, 58, 138, 0.5);
}
.hero-btn-2:hover { background: #172554; box-shadow: 0 12px 25px -5px rgba(30, 58, 138, 0.7); }

.hero-btn-3 {
    background: #0f766e;
    box-shadow: 0 8px 20px -5px rgba(15, 118, 110, 0.5);
}
.hero-btn-3:hover { background: #115e59; box-shadow: 0 12px 25px -5px rgba(15, 118, 110, 0.7); }

.hero-badge {
    padding: 6px 16px;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-size: 0.75rem;
    display: inline-block;
    border-radius: 4px;
    text-transform: uppercase;
    font-weight: 800;
    background: rgba(30, 58, 138, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
.hero-badge-2 { background: rgba(15, 23, 42, 0.9); }
.hero-badge-3 { background: rgba(15, 118, 110, 0.9); }

.hero-image-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 550px;
    aspect-ratio: 4/3;
    border-radius: 8px; /* Industrial sharp edges */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}
.hero-image-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, #ffffff 0%, #f1f5f9 100%);
    z-index: 0;
}
.hero-image-card img {
    position: relative;
    z-index: 10;
}
/* Removed glows for a professional, clean B2B look */
.hero-image-glow-1, .hero-image-glow-2, .hero-image-glow-3 {
    display: none;
}

/* ============================================================
   PREMIUM INDUSTRIAL-LUXURY DESIGN UPGRADES
   ============================================================ */

/* --- Premium Industrial-Luxury Cards --- */
/* --- Premium Industrial-Luxury Cards --- */
.premium-card, .product-card {
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    border-radius: 1.25rem !important; /* rounded-2xl look */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow: hidden !important;
    padding: 1rem !important; /* p-4 equivalent */
}

@media (min-width: 768px) {
    .premium-card, .product-card {
        padding: 1.5rem !important; /* md:p-6 equivalent */
    }
}

.dark .premium-card, .dark .product-card {
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3) !important;
}

.premium-card:hover, .product-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(30, 58, 138, 0.25) !important;
    box-shadow: 0 20px 40px -15px rgba(30, 58, 138, 0.12), 0 0 0 1px rgba(30, 58, 138, 0.05) !important;
}

.dark .premium-card:hover, .dark .product-card:hover {
    border-color: rgba(147, 197, 253, 0.25) !important;
    box-shadow: 0 20px 40px -15px rgba(147, 197, 253, 0.12) !important;
}

/* Automatic global upgrades for badges inside product cards */
.product-card .absolute.top-4.left-4 {
    font-family: 'Manrope', sans-serif !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
    padding: 0.35rem 0.75rem !important;
    border-radius: 0.5rem !important;
    backdrop-filter: blur(4px) !important;
    -webkit-backdrop-filter: blur(4px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
    background: rgba(30, 58, 138, 0.08) !important;
    color: #1e3a8a !important;
    border: 1px solid rgba(30, 58, 138, 0.15) !important;
}

.dark .product-card .absolute.top-4.left-4 {
    background: rgba(147, 197, 253, 0.15) !important;
    color: #93c5fd !important;
    border: 1px solid rgba(147, 197, 253, 0.2) !important;
}

/* Automatic global upgrades for view-specs buttons inside product cards */
.product-card .view-specs-btn {
    border-radius: 0.75rem !important; /* rounded-xl */
    padding-top: 0.625rem !important; /* py-2.5 equivalent */
    padding-bottom: 0.625rem !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@media (min-width: 768px) {
    .product-card .view-specs-btn {
        padding-top: 1rem !important; /* md:py-4 equivalent */
        padding-bottom: 1rem !important;
    }
}

.product-card .view-specs-btn:hover {
    background-color: #1e3a8a !important;
    color: #ffffff !important;
    border-color: #1e3a8a !important;
    box-shadow: 0 10px 20px -10px rgba(30, 58, 138, 0.3) !important;
}

.dark .product-card .view-specs-btn:hover {
    background-color: #3b82f6 !important;
    color: #ffffff !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.4) !important;
}

.product-card .view-specs-btn span {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.product-card .view-specs-btn:hover span {
    transform: translateX(4px) !important;
}

/* Premium Tags/Badges */
.premium-badge {
    font-family: 'Manrope', sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.premium-badge-tij {
    background: rgba(30, 58, 138, 0.08);
    color: #1e3a8a;
    border: 1px solid rgba(30, 58, 138, 0.15);
}

.dark .premium-badge-tij {
    background: rgba(147, 197, 253, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(147, 197, 253, 0.2);
}

.premium-badge-cij {
    background: rgba(3, 105, 161, 0.08);
    color: #0369a1;
    border: 1px solid rgba(3, 105, 161, 0.15);
}

.dark .premium-badge-cij {
    background: rgba(125, 211, 252, 0.15);
    color: #7dd3fc;
    border: 1px solid rgba(125, 211, 252, 0.2);
}

.premium-badge-laser {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border: 1px solid rgba(220, 38, 38, 0.15);
}

.dark .premium-badge-laser {
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.2);
}

.premium-badge-specialty {
    background: rgba(13, 148, 136, 0.08);
    color: #0d9488;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

.dark .premium-badge-specialty {
    background: rgba(45, 212, 191, 0.15);
    color: #2dd4bf;
    border: 1px solid rgba(45, 212, 191, 0.2);
}

.premium-badge-handheld {
    background: rgba(124, 58, 237, 0.08);
    color: #7c3aed;
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.dark .premium-badge-handheld {
    background: rgba(196, 181, 253, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(196, 181, 253, 0.2);
}

/* --- Premium Banner Overlay --- */
.premium-banner {
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.06) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(220, 38, 38, 0.04) 0%, transparent 60%),
                #f8fafc;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

.dark .premium-banner {
    background: radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.15) 0%, transparent 60%),
                radial-gradient(circle at 10% 80%, rgba(220, 38, 38, 0.08) 0%, transparent 60%),
                #020617;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tech-Grid Pattern overlay */
.premium-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black, transparent 80%);
    pointer-events: none;
}

.dark .premium-banner::before {
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
}

/* Dynamic breadcrumb styling */
.premium-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.825rem;
    font-weight: 500;
    color: #64748b;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dark .premium-breadcrumb {
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Micro-animations and tactile enhancements */
.specs-btn-dynamic {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.specs-btn-dynamic:hover {
    background-color: #1e3a8a;
    color: #ffffff !important;
    border-color: #1e3a8a;
    box-shadow: 0 10px 20px -10px rgba(30, 58, 138, 0.3);
}

.dark .specs-btn-dynamic:hover {
    background-color: #3b82f6;
    color: #ffffff !important;
    border-color: #3b82f6;
    box-shadow: 0 10px 20px -10px rgba(59, 130, 246, 0.4);
}

.specs-btn-dynamic span {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.specs-btn-dynamic:hover span {
    transform: translateX(4px);
}

/* --- Sleek Nav Link Hover Underline Animation --- */
header nav a:not(.get-quote-btn):not(.flex):not([class*="border-b-2"]) {
    position: relative;
    padding-bottom: 2px;
}

header nav a:not(.get-quote-btn):not(.flex):not([class*="border-b-2"])::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--industrial-gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

header nav a:not(.get-quote-btn):not(.flex):not([class*="border-b-2"]):hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Timeline Alignment Styles (Fixes Desktop Shifting) --- */
.timeline-line {
    position: absolute;
    left: 1rem; /* Equivalent to left-4 */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e2e8f0; /* slate-200 */
    transform: translateX(-50%);
}

.dark .timeline-line {
    background-color: #1e293b; /* slate-800 */
}

.timeline-badge {
    position: absolute;
    left: 1rem; /* Equivalent to left-4 */
    transform: translateX(-50%);
    z-index: 10;
    width: 2.5rem; /* Equivalent to w-10 */
    height: 2.5rem; /* Equivalent to h-10 */
}

@media (min-width: 768px) {
    .timeline-line {
        left: 50% !important;
    }
    .timeline-badge {
        left: 50% !important;
    }
}


