/* UPCOATING - Custom Styles */
/* Executive Light Theme — Industrial Corporate */

/* Smooth scrolling & base */
html {
    scroll-behavior: smooth;
}

/* Premium font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Selection colour */
::selection {
    background-color: rgba(12, 132, 243, 0.2);
    color: #1e293b;
}

/* Scrollbar - light theme */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Focus styles */
*:focus-visible {
    outline: 2px solid #0c84f3;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Card hover lifts */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Gradient text utility */
.gradient-text {
    background: linear-gradient(135deg, #0c84f3, #0068d1, #003b73);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Gold gradient text */
.gradient-text-gold {
    background: linear-gradient(135deg, #d97706, #b45309, #92400e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism — light */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Executive glass — premium light */
.glass-executive {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* Animations */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.shimmer {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.02), transparent);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

/* Form input autofill override */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus {
    -webkit-text-fill-color: #1e293b;
    -webkit-box-shadow: 0 0 0px 1000px #f1f5f9 inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* ===== Scroll-Reveal Animations ===== */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
    0% { opacity: 0; transform: translateY(-10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.7s ease-out forwards !important;
}

.animate-slide-down {
    animation: slideDown 0.4s ease-out forwards;
}

/* Staggered animation delays for grid children */
.grid > *:nth-child(1) { animation-delay: 0ms; }
.grid > *:nth-child(2) { animation-delay: 100ms; }
.grid > *:nth-child(3) { animation-delay: 200ms; }
.grid > *:nth-child(4) { animation-delay: 300ms; }
.grid > *:nth-child(5) { animation-delay: 400ms; }
.grid > *:nth-child(6) { animation-delay: 500ms; }

/* Smooth anchor scrolling offset for sticky header */
html {
    scroll-padding-top: 80px;
}

/* Hero slide transition fix */
.hero-slide,
.hero-preview {
    will-change: opacity, transform;
}

/* Grayscale map hover effect */
.grayscale {
    filter: grayscale(100%);
}
.hover\\:grayscale-0:hover {
    filter: grayscale(0%);
}

/* Backdrop blur for Safari support */
@supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
    .backdrop-blur-md {
        -webkit-backdrop-filter: blur(12px);
        backdrop-filter: blur(12px);
    }
}

/* Loading image placeholder — merged with blur-up below */

/* Responsive iframe containers */
iframe {
    max-width: 100%;
}

/* Hero section min-height mobile fix */
@media (max-width: 1023px) {
    #hero-slider {
        min-height: 100vh;
        min-height: 100dvh;
    }
}

/* Subtle image loading transition */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.4s ease-in, filter 0.4s ease-in;
    filter: blur(6px);
}
img[loading="lazy"].loaded,
img[loading="lazy"][src] {
    opacity: 1;
    filter: blur(0);
}

/* Smooth blur-up loading for images — uses onload JS to add .loaded */
img {
    transition: opacity 0.4s ease-in, filter 0.4s ease-in, transform 0.4s ease-in;
}
img.loading-placeholder {
    opacity: 0;
    filter: blur(10px);
}
img.loaded {
    opacity: 1;
    filter: blur(0);
}

/* ── Bento card accent bar ── */
.bento-accent {
    position: relative;
}
.bento-accent::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #f59e0b);
    border-radius: 12px 12px 0 0;
}

/* ── Premium divider with gradient ── */
.premium-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #1d4ed8, #f59e0b, #1d4ed8, transparent);
    opacity: 0.3;
}

/* ── Smooth stat counter entrance ── */
.stat-count {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ── Enhanced reveal animation ── */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── Pulse glow for premium accents ── */
@keyframes glowPulse {
    0%, 100% { box-shadow: 0 0 20px -5px rgba(29, 78, 216, 0.1); }
    50% { box-shadow: 0 0 30px -3px rgba(29, 78, 216, 0.2); }
}
.glow-pulse {
    animation: glowPulse 3s ease-in-out infinite;
}

/* ===== Product Card Border Glow (Blue) ===== */
@keyframes borderGlowBlue {
    0%, 100% { box-shadow: 0 0 15px -5px rgba(12, 132, 243, 0.15); }
    50% { box-shadow: 0 0 25px -3px rgba(12, 132, 243, 0.3); }
}
.product-card-glow:hover {
    animation: borderGlowBlue 2s ease-in-out infinite;
}

/* ===== Gold border glow ===== */
@keyframes borderGlowGold {
    0%, 100% { box-shadow: 0 0 15px -5px rgba(245, 158, 11, 0.1); }
    50% { box-shadow: 0 0 25px -3px rgba(245, 158, 11, 0.2); }
}
.product-card-glow-gold:hover {
    animation: borderGlowGold 2s ease-in-out infinite;
}

/* ===== Smooth Pulse for CTA shapes ===== */
@keyframes gentlePulse {
    0%, 100% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.15); opacity: 0.4; }
}

/* ===== WhatsApp Button entrance ===== */
@keyframes whatsappEntrance {
    0% { transform: scale(0) translateY(50px); opacity: 0; }
    60% { transform: scale(1.1) translateY(-5px); }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}
.whatsapp-button {
    animation: whatsappEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ===== Executive line accent ===== */
.executive-accent {
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #153ea8, #f59e0b);
    border-radius: 2px;
}
.executive-accent-blue {
    height: 3px;
    background: linear-gradient(90deg, #1d4ed8, #153ea8, #102e82);
    border-radius: 2px;
}

/* ===== Subtle shine overlay for premium cards ===== */
.shine-overlay {
    position: relative;
    overflow: hidden;
}
.shine-overlay::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.3) 50%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s;
}
.shine-overlay:hover::after {
    opacity: 1;
}

/* ===== Nav link underline animation (blue) ===== */
.nav-underline {
    position: relative;
}
.nav-underline::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #1d4ed8;
    transition: width 0.3s ease;
    border-radius: 1px;
}
.nav-underline:hover::after {
    width: 100%;
}

/* ===== Industrial card style ===== */
.industrial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}
.industrial-card:hover {
    border-color: #1d4ed8;
    box-shadow: 0 4px 20px rgba(29, 78, 216, 0.15);
}

/* ===== Section divider ===== */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
}

/* ===== Hero stat pill light ===== */
.stat-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    background: rgba(12, 132, 243, 0.08);
    border: 1px solid rgba(12, 132, 243, 0.15);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #0c84f3;
}

/* ===== Paint Defect Cards ===== */
.defect-card {
    position: relative;
    overflow: hidden;
}
.defect-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.2), transparent 40%, transparent 60%, rgba(251, 191, 36, 0.2));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.defect-card:hover::before {
    opacity: 1;
}

/* Staggered card entrance animation */
@keyframes cardEntrance {
    0% { opacity: 0; transform: translateY(20px) scale(0.97); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}
.defect-card {
    animation: cardEntrance 0.5s ease-out both;
}
.defect-card:nth-child(1) { animation-delay: 0ms; }
.defect-card:nth-child(2) { animation-delay: 60ms; }
.defect-card:nth-child(3) { animation-delay: 120ms; }
.defect-card:nth-child(4) { animation-delay: 180ms; }
.defect-card:nth-child(5) { animation-delay: 240ms; }
.defect-card:nth-child(6) { animation-delay: 300ms; }
.defect-card:nth-child(7) { animation-delay: 360ms; }
.defect-card:nth-child(8) { animation-delay: 420ms; }
.defect-card:nth-child(9) { animation-delay: 480ms; }
.defect-card:nth-child(10) { animation-delay: 540ms; }
.defect-card:nth-child(11) { animation-delay: 600ms; }
.defect-card:nth-child(12) { animation-delay: 660ms; }
.defect-card:nth-child(13) { animation-delay: 720ms; }
.defect-card:nth-child(14) { animation-delay: 780ms; }
.defect-card:nth-child(15) { animation-delay: 840ms; }