/*
Theme Name: Mega Plast Premium
Theme URI: https://megaplast.de
Author: Antigravity
Description: Avant-Garde Industrial Machinery Theme with Intentional Minimalism.
Version: 1.3.0
Text Domain: megaplast-premium
*/

:root {
    --bg-light: #e9eff2;
    --primary-blue: #39598a;
    --primary-blue-muted: rgba(57, 89, 138, 0.05);
    --highlight: #f3b062;
    --text-main: #2c3e50;
    --text-muted: #5d6d7e;
    --glass-white: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.8);
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    --radius: 40px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
}

body {
    background-color: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* 1. LAYER: STATIONARY CIRCUIT LINES WITH FLOW-THROUGH */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Base Stationary Lines */
    background-image: url("data:image/svg+xml,%3Csvg width='1000' height='1000' viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba(57, 89, 138, 0.05)' stroke-width='1.5'%3E%3Cpath d='M0 200 L200 200 L300 300 L600 300 L700 400 L1000 400' /%3E%3Cpath d='M200 0 L200 400 L300 500 L300 1000' /%3E%3Cpath d='M600 0 L600 200 L500 300 L500 1000' /%3E%3Cpath d='M800 1000 L800 600 L700 500 L0 500' /%3E%3C/g%3E%3C/svg%3E");
    background-size: 1000px 1000px;
    z-index: -10;
}

/* 2. LAYER: FLOWING ENERGY THROUGH LINES */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        transparent 0%,
        transparent 45%,
        rgba(243, 176, 98, 0.15) 50%,
        transparent 55%,
        transparent 100%
    );
    background-size: 200% 200%;
    z-index: -9;
    pointer-events: none;
    animation: energy-flow 8s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    mix-blend-mode: overlay;
}

@keyframes energy-flow {
    0% { background-position: 200% 200%; }
    100% { background-position: -200% -200%; }
}

/* 3. LAYER: ANIMATED BLOBS */
html::after {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    z-index: -5;
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 0.95;
}

.container {
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Premium Glassmorphism */
.glass {
    background: var(--glass-white);
    backdrop-filter: blur(30px) saturate(150%);
    -webkit-backdrop-filter: blur(30px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

/* Navbar: Floating Glass */
.navbar {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1600px;
    z-index: 1000;
    padding: 20px 50px;
    border-radius: 24px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-weight: 700;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 10px;
}

/* Header Cart Button */
.header-cart-link {
    position: relative;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #f1f5f9;
    border: none;
    cursor: pointer;
    border-radius: 14px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.header-cart-link:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
}

.cart-count-bubble {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--highlight);
    color: var(--primary-blue);
    font-size: 0.65rem;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--primary-blue);
    opacity: 0.8;
}

.lang-active { font-weight: 800; opacity: 1; }
.lang-inactive { cursor: pointer; transition: opacity 0.3s; }
.lang-inactive:hover { opacity: 1; }
.lang-divider { opacity: 0.2; }

/* Prominent Contact Button */
.btn-nav-contact {
    background: var(--primary-blue);
    color: white !important;
    height: 50px;
    padding: 0 30px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 25px rgba(57, 89, 138, 0.15);
}

.btn-nav-contact:hover {
    background: var(--highlight);
    color: var(--primary-blue) !important;
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(243, 176, 98, 0.25);
}

/* Hero Section: Centered & Massive */
.hero-massive {
    min-height: 100vh;
    min-height: 850px; /* Ensure it stays tall on small laptops */
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    background: white; /* Clean background */
    gap: 0; /* No space between children */
}

/* Subtle fade-out gradient to ensure text readability over the image overlap */
.hero-massive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, white 40%, rgba(255,255,255,0.9) 60%, transparent 100%);
    z-index: 2; /* Between image and text */
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: stretch; /* Allow children to take full height */
    flex-grow: 1;
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 200px 60px 0; /* Adjusted for larger header */
}

.hero-text {
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    pointer-events: none; /* Let clicks pass through to background if needed */
}

.hero-text > * {
    pointer-events: auto; /* Re-enable clicks for buttons/links */
}

.hero-visual {
    position: absolute;
    bottom: 0; 
    right: 0;
    width: 100%; /* Full width container for the absolute image */
    height: 100%; 
    z-index: 1;
    pointer-events: none;
    overflow: visible;
}

.hero-massive-image {
    display: block !important;
    position: absolute;
    bottom: -2px;
    right: 0; /* Pin to right edge so it grows towards the left */
    width: 150vw; /* Massive width scale */
    height: auto; 
    max-width: none; 
    filter: none; /* Removed shadow to eliminate top artifacts */
    transition: none;
}

/* Floating Glass Stats */
.hero-stat-card {
    position: absolute;
    z-index: 50;
    padding: 20px 35px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(57, 89, 138, 0.15);
    animation: float-hero 8s ease-in-out infinite;
    pointer-events: none;
}

.stat-partners {
    top: 25%;
    right: 4vw; /* Minimal move right */
}

.stat-experience {
    top: 55%;
    right: 20vw; /* Moved slightly back to the left */
    animation-delay: -4s;
    border-color: rgba(243, 176, 98, 0.4); /* Orange glass border */
}

.stat-experience strong {
    color: var(--highlight) !important; /* Orange number */
}

.stat-experience span {
    color: var(--highlight) !important; /* Orange label */
    opacity: 0.8;
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-content strong {
    font-size: 2.2rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.stat-content span {
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--primary-blue);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0.6;
}

@keyframes float-hero {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(2deg); }
}

/* Section Spacing & Bleeding Slider */
.featured-machines {
    padding: 150px 0 150px 0 !important; /* Increased bottom padding for shadows */
    overflow: visible !important;
    position: relative;
    z-index: 10; /* Ensure shadows go OVER the next section */
}

.machine-slider-outer {
    width: 100%;
    overflow: visible;
    position: relative;
}

.machine-slider-container {
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    overflow: visible; /* Important for shadows and spacers */
}

.machine-slider {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding: 20px 10vw 120px 0; /* Increased bottom padding for shadows */
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* scroll-snap-type removed to prevent jumping at end of JS animation */
    scroll-behavior: smooth; 
}

.social-proof-bar {
    width: 100vw;
    background: var(--primary-blue);
    padding: 40px 0;
    display: flex;
    justify-content: center;
    gap: 80px;
    align-items: center;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 -20px 50px rgba(0,0,0,0.1);
    z-index: 100;
}

.logos-marquee-wrapper {
    width: auto; /* Allow centering alongside label on desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.trusted-label {
    color: rgba(255,255,255,0.4) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    margin-right: 20px;
}

.brand-logos-scroll {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.brand-logo {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1); /* Pure white logos for premium look */
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-only-logo {
    display: none !important; /* Hide duplicated set on desktop to maintain 1:1 look */
}

.brand-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* View All Machines Card Styles */
.view-all-machine-card {
    min-width: 380px;
    height: 520px; /* Match typical machine card height */
    background: var(--primary-blue);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 50px;
    position: relative;
    overflow: hidden;
    color: white;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.view-all-machine-card::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(243, 176, 98, 0.2) 0%, transparent 70%);
    z-index: 1;
}

.view-all-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.view-all-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--highlight);
    transition: all 0.4s ease;
}

.view-all-machine-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: none; /* Removed shadow to keep it clean and prevent clipping */
    border-color: rgba(243, 176, 98, 0.4);
}

.view-all-machine-card:hover .view-all-icon {
    transform: scale(1.1) rotate(10deg);
    background: var(--highlight);
    color: var(--primary-blue);
}

.view-all-machine-card h3 {
    font-size: 2.2rem;
    color: white;
    line-height: 1.1;
    margin: 0;
}

.view-all-machine-card p {
    font-size: 0.95rem;
    opacity: 0.7;
    line-height: 1.6;
    margin: 0;
}

.view-all-link {
    margin-top: 20px;
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.view-all-machine-card:hover .view-all-link {
    background: white;
    color: var(--primary-blue);
}

.hero-tag {
    color: var(--highlight);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 3.5vw; /* Smaller text for better proportion to image */
    color: var(--primary-blue);
    margin-bottom: 25px;
    line-height: 1.05;
}

.hero-subtitle {
    font-size: 1.0vw; /* Smaller subtitle */
    color: var(--text-muted);
    max-width: 30vw; /* Maintain relative text width */
    margin-bottom: 40px;
}


/* Product Cards */
.product-card {
    background: white;
    border-radius: var(--radius);
    padding: 12px;
    transition: all 0.5s ease;
}

.product-card:hover {
    transform: translateY(-15px);
    box-shadow: none;
}

.btn-primary {
    background: var(--primary-blue);
    color: white;
    padding: 24px 48px;
    border-radius: 100px;
    font-weight: 800;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--highlight);
    transform: translateY(-3px);
}



.machine-card-img-container {
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.machine-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.machine-card-content {
    padding: 30px;
    flex-grow: 1;
}

.machine-card-title {
    font-size: 1.6rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
    font-weight: 800;
}

.machine-status {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.machine-status.sold { color: #e74c3c; }
.machine-status.available { color: #2ecc71; }

.machine-info-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-top: 1px solid #f0f0f0;
    background: #fafbfc;
}

.info-item {
    padding: 20px 10px;
    text-align: center;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.info-item:last-child {
    border-right: none;
}

.info-item svg {
    width: 18px;
    height: 18px;
    color: #3498db;
}

/* Machine Slider */
.machine-slider-container {
    position: relative;
    width: 100%;
}

.machine-slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding: 10px 10vw 50px 0; /* Added 10vw padding on the right */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.machine-slider::-webkit-scrollbar {
    display: none;
}

.machine-slider .machine-card-premium {
    min-width: 380px;
    scroll-snap-align: start;
}

.slider-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.slider-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
    color: var(--primary-blue);
}

.slider-btn:hover {
    background: var(--primary-blue);
    color: white;
    transform: scale(1.1);
}

/* Services Bento Grid - High Density */
.services-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 30px;
}

.s-bento-item {
    border-radius: 40px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
}

.s-bento-item:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 40px 80px rgba(57, 89, 138, 0.12);
    background: rgba(255, 255, 255, 0.7);
}

.s-bento-1 { grid-column: span 2; grid-row: span 1; background: white; }
.s-bento-2 { grid-column: span 1; grid-row: span 1; background: var(--primary-blue); color: white; }
.s-bento-3 { grid-column: span 1; grid-row: span 2; background: white; } /* Spare Parts Vertical */
.s-bento-4 { grid-column: span 2; grid-row: span 1; background: white; }
.s-bento-5 { grid-column: span 2; grid-row: span 1; background: #0a0a0a; color: white; border: none; }

.s-bento-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    transition: opacity 0.6s ease, transform 1.2s ease;
    z-index: 0;
}

.s-bento-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,1) 0%, rgba(255,255,255,0.85) 45%, transparent 100%);
    z-index: 1;
}

.s-bento-2 .s-bento-overlay,
.s-bento-5 .s-bento-overlay {
    background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, transparent 100%);
}

.s-bento-item:hover .s-bento-img {
    opacity: 0.7;
    transform: scale(1.1);
}

.s-bento-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.s-bento-title {
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.s-bento-2 .s-bento-title, 
.s-bento-5 .s-bento-title { color: white; }

.s-bento-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 300px;
}

.s-bento-2 .s-bento-text, 
.s-bento-5 .s-bento-text { color: rgba(255,255,255,0.7); }

.s-bento-btn {
    width: fit-content;
    padding: 12px 25px;
    background: var(--primary-blue);
    color: white;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.s-bento-item:hover .s-bento-btn {
    background: var(--highlight);
    color: var(--primary-blue);
}

.s-bento-5 .s-bento-btn { background: var(--highlight); color: var(--primary-blue); }

/* Mega Menu - Premium Industrial */
.mega-dropdown {
    position: static; 
    display: flex;
    align-items: center;
}

.mega-trigger {
    position: relative;
    padding: 20px 0;
}

.mega-trigger::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 60px; /* Bridge the 15px gap + padding */
    z-index: 1;
    pointer-events: auto;
}

.mega-menu-content {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-top: 15px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(40px) saturate(200%);
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    padding: 60px 0;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.5);
    
    /* Animation States */
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

/* Hover Bridge: Connects navbar to menu so it doesn't close during the 15px gap */
.mega-menu-content::before {
    content: '';
    position: absolute;
    top: -25px; /* Cover the 15px margin + some safety overlap */
    left: 0;
    right: 0;
    height: 30px;
    background: transparent;
}

.mega-dropdown:hover .mega-menu-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-menu-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 60px;
    padding: 0 40px;
}

.mega-title {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--highlight);
    margin-bottom: 25px;
    display: block;
}

.mega-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-list li {
    margin-bottom: 12px;
}

.mega-list a {
    color: var(--primary-blue) !important;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    opacity: 0.7;
    display: block;
}

.mega-list a:hover {
    opacity: 1;
    transform: translateX(8px);
    color: var(--highlight) !important;
}

/* Featured Column */
.featured-column {
    background: #f8fafd;
    border-radius: 30px;
    padding: 30px;
}

.mega-featured-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 20px;
}

.mega-featured-card h5 {
    font-size: 1.1rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.mega-featured-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.5;
}

.mega-featured-link {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-blue) !important;
    text-decoration: none;
}

/* Compact Global Spacings */
:root {
    --spacing-xl: 100px;
    --spacing-lg: 60px;
}

/* Paper Packaging - Exciting Redesign */
.paper-packaging-section {
    padding: 60px 0;
    position: relative;
    background-image: radial-gradient(var(--primary-blue) 0.5px, transparent 0.5px);
    background-size: 30px 30px;
    background-position: center;
    opacity: 0.99; /* Fix for background overflow */
}

.paper-packaging-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, #e9eff2, transparent, #e9eff2);
    pointer-events: none;
}

.paper-project-card {
    background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
    border-radius: 40px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    box-shadow: 0 40px 100px rgba(57, 89, 138, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    overflow: hidden;
}

.paper-project-card::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    z-index: 1;
}

.paper-project-visual {
    position: relative;
    z-index: 2;
}

.paper-machine-img {
    width: 100%;
    border-radius: 25px;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.15));
    transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.paper-project-card:hover .paper-machine-img {
    transform: scale(1.05) translateY(-10px);
}

/* Technical Details Overlay */
.tech-spec {
    position: absolute;
    padding: 10px 15px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.05);
    z-index: 10;
}

.spec-1 { top: 20px; right: 20px; }
.spec-2 { bottom: 40px; left: -20px; }

.paper-project-content {
    position: relative;
    z-index: 2;
}

.paper-project-title {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.paper-feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.paper-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-blue);
}

.feature-dot {
    width: 8px;
    height: 8px;
    background: var(--highlight);
    border-radius: 50%;
}

.paper-actions {
    margin-top: 40px;
    display: flex;
    gap: 20px;
}

.btn-paper-primary {
    background: var(--primary-blue);
    color: white;
    padding: 18px 35px;
    border-radius: 15px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(57, 89, 138, 0.2);
}

.btn-paper-secondary {
    background: transparent;
    color: var(--primary-blue);
    padding: 18px 35px;
    border-radius: 15px;
    font-weight: 800;
    text-decoration: none;
    border: 2px solid rgba(57, 89, 138, 0.1);
    transition: all 0.4s ease;
}

.btn-paper-primary:hover {
    background: var(--highlight);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(243, 176, 98, 0.3);
}

.btn-paper-secondary:hover {
    background: rgba(57, 89, 138, 0.05);
    border-color: var(--primary-blue);
    transform: translateY(-5px);
}

/* About Us Page Styles - Compact & Professional */
.about-hero {
    padding: 80px 0;
    background: var(--primary-blue);
    color: white;
    text-align: center;
    border-radius: 0 0 50px 50px;
}

.about-hero h1 {
    font-size: 3.5rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.04em;
    margin-bottom: 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 60px 0;
    align-items: center;
}

/* Process Steps - Compact */
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.step-card {
    background: white;
    padding: 35px;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.04);
}

.step-number {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    color: var(--primary-blue);
    opacity: 0.1;
    font-weight: 900;
    line-height: 1;
}

.step-title {
    font-size: 1.25rem;
    color: var(--primary-blue);
    font-weight: 800;
    margin: 10px 0;
}

/* Trusted Logos - Compact */
.trusted-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;
    padding: 40px 0;
    opacity: 0.6;
}

.logo-item {
    font-family: 'Outfit', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary-blue);
    letter-spacing: 0.05em;
}

/* History Sections - Compact */
.history-block {
    margin-bottom: 80px;
}

.history-img-container {
    border-radius: 30px;
    overflow: hidden;
}

.history-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
}

/* Teaser on Homepage - Compact */
.about-teaser {
    background: var(--primary-blue);
    border-radius: 40px;
    padding: 60px 80px;
    color: white;
    margin: 80px 0;
    position: relative;
    overflow: hidden;
}

.about-teaser::before {
    content: 'ABOUT';
    position: absolute;
    right: -20px;
    bottom: -20px;
    font-size: 15rem;
    font-weight: 900;
    font-family: 'Outfit';
    opacity: 0.02;
    pointer-events: none;
}
/* Bento Grid - Premium Industrial */
/* Direct Spare Parts Catalog - High Utility */
.parts-catalog-section {
    padding: 80px 0;
}

.catalog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

.catalog-title {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: var(--primary-blue);
}

.parts-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.part-card {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.part-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(57, 89, 138, 0.12);
}

.part-image {
    height: 220px;
    position: relative;
    overflow: hidden;
    background: #f8fafd;
}

.part-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.part-card:hover .part-image img {
    transform: scale(1.1);
}

.part-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--primary-blue);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.part-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.part-category {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--highlight);
    margin-bottom: 8px;
    display: block;
}

.part-name {
    font-size: 1.1rem;
    line-height: 1.3;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
    flex-grow: 1;
}

.part-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.part-price {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--primary-blue);
}

.part-link {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.part-link:hover {
    color: var(--highlight);
}

/* Footer - aligned with Navbar */
.footer {
    width: calc(100% - 80px);
    max-width: 1400px;
    margin: var(--spacing-xl) auto 40px;
    padding: var(--spacing-lg) var(--spacing-md);
    border-radius: var(--radius);
    z-index: 10;
    position: relative;
}

/* Responsive Catalog */
@media (max-width: 1200px) {
    .parts-product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Catalog Search & Filters */
.catalog-search {
    background: #f8fafd;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 100px;
    padding: 5px;
    display: flex;
    min-width: 400px;
}

.catalog-search input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 10px 25px;
    font-size: 0.95rem;
    outline: none;
}

.catalog-search button {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 10px 30px;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.catalog-search button:hover {
    background: var(--highlight);
}

.catalog-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-chip {
    padding: 10px 25px;
    background: #f0f4f8;
    color: var(--primary-blue);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 1px solid transparent;
}

.filter-chip:hover {
    background: #e1e8f0;
}

.filter-chip.active {
    background: var(--primary-blue);
    color: white;
    box-shadow: 0 10px 20px rgba(23, 42, 70, 0.15);
}

/* Responsive Catalog Adjustments */
@media (max-width: 768px) {
    .catalog-search { min-width: 100%; }
}

.bento-item {
    border-radius: 40px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bento-item:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 40px 80px rgba(57, 89, 138, 0.12);
}

.bento-1 {
    grid-row: span 2;
    background: white;
    flex-direction: row !important;
    align-items: center;
    gap: 40px;
}

.bento-2 {
    background: var(--primary-blue);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bento-3 {
    background: white;
    border: 1px solid rgba(57, 89, 138, 0.1);
}

.bento-tag {
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--highlight);
    margin-bottom: 15px;
    display: block;
}

.bento-title {
    font-size: 2.2rem;
    color: var(--primary-blue);
    margin-bottom: 10px;
}

.bento-2 .bento-title { color: white; }

.bento-number {
    font-size: 3.5rem;
    font-weight: 900;
    font-family: 'Outfit';
    line-height: 1;
}

.bento-label {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.7;
}

.bento-img-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bento-machine-preview {
    width: 110%;
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.15));
    transition: transform 0.8s ease;
}

.bento-1:hover .bento-machine-preview {
    transform: scale(1.08) rotate(-2deg);
}

/* --- Global Part Card System --- */
.part-card {
    background: white;
    border-radius: 35px;
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.part-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.06);
    border-color: rgba(0,84,159,0.1);
}

.part-image {
    width: 100%;
    height: 280px;
    border-radius: 25px;
    overflow: hidden;
    position: relative;
    margin-bottom: 20px;
}

.part-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.part-card:hover .part-image img {
    transform: scale(1.08);
}

.part-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.part-category {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary-blue);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    display: block;
    opacity: 0.6;
}

.part-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1.2;
    margin-bottom: 15px;
    flex-grow: 1;
}

.part-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.part-price {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-dark);
}

.part-btn {
    width: 45px;
    height: 45px;
    border-radius: 15px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    transition: all 0.3s ease;
}

.part-card:hover .part-btn {
    background: var(--primary-blue);
    color: white;
}

/* Card Specs Grid (Shared) */
.card-spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px solid rgba(0,0,0,0.04);
}

.mini-spec {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-spec span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    font-weight: 800;
}

.mini-spec strong {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* --- SERVICE PAGE SPECIFIC --- */
.service-page {
    padding-top: 180px;
}

.service-grid-section {
    padding: 100px 0;
    display: flex;
    flex-direction: column;
    gap: 120px;
}

.service-split-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-split-card.reverse {
    direction: rtl;
}

.service-split-card.reverse .service-content {
    direction: ltr;
}

.service-content h2 {
    font-size: 3.5rem;
    margin: 20px 0 30px;
    color: var(--primary-blue);
}

.service-tag {
    color: var(--highlight);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

.service-image img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
}

.check-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.check-list li {
    padding-left: 30px;
    position: relative;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--primary-blue);
}

.check-list li::before {
    content: 'âœ“';
    position: absolute;
    left: 0;
    color: var(--highlight);
    font-weight: 900;
}

/* Process Section */
.process-section {
    background: #f0f4f8;
    padding: 120px 0;
    border-radius: 80px;
    margin: 100px 40px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 80px;
}

.process-step {
    background: white;
    padding: 50px;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.03);
    transition: transform 0.4s ease;
}

.process-step:hover {
    transform: translateY(-10px);
}

.step-num {
    font-size: 4rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: var(--primary-blue);
    opacity: 0.1;
    display: block;
    margin-bottom: -20px;
}

.process-step h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

/* Trust Wall */
.trust-section {
    padding: 80px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.trust-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-wall {
    display: flex;
    gap: 60px;
    opacity: 0.3;
    filter: grayscale(1);
}

.logo-item {
    font-weight: 900;
    font-size: 1.2rem;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

/* Final CTA */
.cta-section-final {
    padding: 120px 0;
}

.cta-glass {
    background: var(--primary-blue);
    color: white;
    padding: 100px;
    border-radius: 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(243, 176, 98, 0.2) 0%, transparent 70%);
}

.cta-glass h2 {
    font-size: 4rem;
    color: white;
    margin-bottom: 30px;
}

.cta-glass p {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .service-split-card { grid-template-columns: 1fr; gap: 40px; }
    .process-grid { grid-template-columns: 1fr; }
    .trust-grid { flex-direction: column; gap: 40px; text-align: center; }
    .logo-wall { flex-wrap: wrap; justify-content: center; }
    .cta-glass { padding: 60px 20px; }
    .cta-glass h2 { font-size: 2.5rem; }
}

/* Mastery Section: Glass Hero Style */
.human-element-section {
    position: relative;
    padding: 100px 0; /* Reduced section height */
    max-width: 1500px; /* Match global container width */
    margin: 80px auto; /* Center it */
    width: calc(100% - 80px); /* Margin for mobile */
    border-radius: 60px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Explicitly align to left */
    padding-left: 80px; /* Standard distance from edge */
}

.human-element-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 14, 33, 0.4) 0%, rgba(5, 14, 33, 0.1) 100%);
    z-index: 1;
}

.human-glass-card {
    position: relative;
    z-index: 10;
    max-width: 450px; /* Even smaller width */
    padding: 35px 25px !important; /* Adjusted for mobile view base */
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .human-element-section {
        margin: 60px 20px;
        padding: 100px 0;
    }
    .human-glass-card {
        padding: 40px;
        border-radius: 40px;
    }
    .human-glass-card h2 {
        font-size: 2.5rem !important;
    }
}
    background: linear-gradient(to top, rgba(5, 14, 33, 0.9), transparent);
    color: white;
}

.mastery-overlay h3 {
    font-size: 2.5rem;
    color: white;
    margin-top: 10px;
}

.team-badge-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.mini-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--highlight);
}

.mini-caption {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin: 0;
}

@media (max-width: 992px) {
    .mastery-grid { grid-template-columns: 1fr; }
    .mastery-card { min-height: 400px; }
}

/* Warmth & Personality Layer */
.bg-warm-blob {
    position: fixed;
    top: 20%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(243, 176, 98, 0.1) 0%, transparent 70%);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--highlight) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.visual-badge.warm {
    background: var(--highlight) !important;
    color: var(--primary-blue) !important;
}

/* Mastery Quote */
.quote-section {
    padding: 100px 0;
    text-align: center;
}

.mastery-quote {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding: 60px;
}

.quote-icon {
    font-family: serif;
    font-size: 8rem;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.1;
    color: var(--highlight);
}

.mastery-quote h3 {
    font-size: 2.5rem;
    font-style: italic;
    color: var(--primary-blue);
    margin-bottom: 30px;
    line-height: 1.3;
}

.quote-author {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    color: var(--highlight);
}

/* Refined Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(243, 176, 98, 0.1) !important;
    padding: 60px;
    border-radius: 60px;
    transition: all 0.5s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: rgba(243, 176, 98, 0.3) !important;
    box-shadow: 0 40px 80px rgba(243, 176, 98, 0.1);
}

/* Fixed Background System */
.fixed-bg-section {
    position: relative;
    padding: 160px 0;
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.fixed-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(5, 14, 33, 0.4), rgba(5, 14, 33, 0.7));
    z-index: 1;
}

.fixed-overlay.dark {
    background: rgba(5, 14, 33, 0.85);
}

.relative {
    position: relative;
    z-index: 2;
}

.fixed-content {
    max-width: 800px;
}

.tall-bg {
    padding: 240px 0;
}

.fixed-overlay.light {
    background: rgba(5, 14, 33, 0.3);
}

.fixed-overlay.semi-light {
    background: rgba(5, 14, 33, 0.55);
}

@media (max-width: 992px) {
    .fixed-bg-section {
        background-attachment: scroll;
        padding: 100px 0;
    }
}

/* --- AVANT-GARDE REDESIGN (v9.0) --- */
.service-page-avantgarde {
    background: #fbfbfd;
    overflow-x: hidden;
}

.hero-visual {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-massive-image {
    width: 140%;
    height: auto;
    object-fit: contain;
}

.statement-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-parallax {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: grayscale(0.5);
}

.overlay-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--primary-blue), transparent);
}

.statement-title {
    font-size: clamp(5rem, 15vw, 12rem);
    line-height: 0.85;
    color: white;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    margin-bottom: 40px;
}

.outline-text {
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.4);
}

.statement-subtitle {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
    max-width: 600px;
}

.cta-circle {
    width: 180px;
    height: 180px;
    background: var(--highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 30px 60px rgba(243, 176, 98, 0.3);
}

.cta-circle:hover {
    transform: scale(1.1) rotate(10deg);
    background: white;
}

/* Pulse Section */
.pulse-section {
    padding: 160px 0;
}

.pulse-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 100px;
    align-items: center;
}

.image-frame {
    position: relative;
    padding: 40px;
}

.image-frame img {
    width: 100%;
    border-radius: 20px;
    z-index: 2;
    position: relative;
}

.frame-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 80%;
    height: 80%;
    background: var(--highlight);
    border-radius: 40px;
    z-index: 1;
    opacity: 0.1;
}

.pulse-text h2 {
    font-size: 4rem;
    color: var(--primary-blue);
    margin: 20px 0 40px;
}

/* Evolution Steps */
.process-evolution {
    padding: 160px 0;
    background: #050E21;
    color: white;
}

.massive-title {
    font-size: clamp(4rem, 10vw, 8rem);
    text-transform: uppercase;
    font-weight: 900;
    opacity: 0.1;
    margin-bottom: 80px;
}

.evolution-steps {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.evolution-item {
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.step-count {
    font-size: 3rem;
    font-weight: 900;
    color: var(--highlight);
    opacity: 0.3;
}

.evolution-content h4 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Editorial Services */
.editorial-services {
    padding: 160px 0;
    display: flex;
    flex-direction: column;
    gap: 160px;
}

.editorial-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.editorial-item.reverse {
    direction: rtl;
}

.editorial-item.reverse .editorial-info {
    direction: ltr;
}

.step-num-bespoke {
    font-size: 1rem;
    font-weight: 900;
    color: var(--highlight);
    display: block;
    margin-bottom: 20px;
}

.editorial-visual img {
    width: 100%;
    border-radius: 40px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
}

/* Bespoke CTA */
.call-banner {
    background: white;
    padding: 100px;
    border-radius: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 60px 120px rgba(0,0,0,0.05);
    margin: 120px 0;
}

.btn-ultra {
    background: var(--primary-blue);
    color: white;
    padding: 30px 60px;
    border-radius: 100px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: all 0.4s ease;
}

.btn-ultra:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(5, 14, 33, 0.2);
}

@media (max-width: 992px) {
    .pulse-grid { grid-template-columns: 1fr; gap: 60px; }
    .call-banner { flex-direction: column; text-align: center; gap: 40px; padding: 60px 20px; }
    .statement-title { font-size: 4rem; }
    .editorial-item { grid-template-columns: 1fr; gap: 40px; }
}

/* Elite Bento Grid (v9.1) */
.bento-service-section {
    padding: 120px 0;
}

.bento-grid-bespoke {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 300px;
    gap: 30px;
}

.bento-item {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(5, 14, 33, 0.15);
}

.bento-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.8s ease;
}

.bento-item:hover img {
    transform: scale(1.05);
}

.bento-overlay {
    position: relative;
    z-index: 2;
    padding: 50px;
    background: linear-gradient(to top, rgba(5, 14, 33, 0.9), transparent);
    color: white;
    width: 100%;
}

.bento-overlay h3 { font-size: 2.2rem; color: white; margin: 10px 0; }
.bento-overlay p { color: rgba(255,255,255,0.7); }

.bento-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    height: 100%;
}

/* Bento Spans */
.main-story {
    grid-column: span 2;
    grid-row: span 2;
}

.installation {
    grid-column: span 2;
    background: white !important;
    display: flex;
    flex-direction: row !important;
}

.installation .bento-content { width: 60%; }
.installation img { position: relative; width: 40%; height: 100%; object-fit: contain; z-index: 2; }

.overhaul {
    grid-column: span 1;
    background: var(--primary-blue) !important;
    color: white;
}

.overhaul .bento-content { padding: 40px; }
.overhaul h4 { color: white; margin-top: 10px; font-size: 1.5rem; }
.overhaul p { color: rgba(255,255,255,0.6); }
.overhaul img { opacity: 0.3; }

.dedication {
    grid-column: span 1;
}

.dedication .bento-overlay.mini {
    padding: 30px;
}

.dedication .bento-overlay.mini h4 { color: white; font-size: 1.2rem; margin: 0; }

.mini-check {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.mini-check li {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    color: var(--primary-blue);
}

.mini-check li::before {
    content: 'âœ“';
    position: absolute;
    left: 0;
    color: var(--highlight);
}

@media (max-width: 1200px) {
    .bento-grid-bespoke { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
    .bento-item { min-height: 400px; }
    .installation { flex-direction: column !important; }
    .installation .bento-content, .installation img { width: 100%; }
}

@media (max-width: 768px) {
    .bento-grid-bespoke { grid-template-columns: 1fr; }
    .main-story, .installation, .overhaul, .dedication { grid-column: span 1; }
}

/* Liquid Glass Minimalism (v9.5) */
.glass-card {
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 60px !important;
    box-shadow: 0 20px 40px rgba(5, 14, 33, 0.03) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.5) !important;
    border-color: var(--highlight) !important;
    transform: translateY(-10px);
}

/* ==========================================================================
   MACHINE CARD - STACKED BLOCK DESIGN (v2.0)
   ========================================================================== */

.machine-card-stacked {
    background: white;
    border-radius: 35px;
    border: 1px solid rgba(0,0,0,0.05);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    height: 100%;
}

.machine-card-stacked:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0,0,0,0.1);
}

.m-card-image {
    height: 240px;
    margin: 15px;
    border-radius: 25px;
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

.m-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.machine-card-stacked:hover .m-card-image img {
    transform: scale(1.08);
}

.m-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.m-card-content {
    padding: 0 30px 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.m-card-brand {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--primary-blue);
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
}

.m-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    color: #0a1628;
    margin: 0 0 20px;
    line-height: 1.2;
}

.m-card-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.04);
    margin-top: auto;
}

.m-spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.m-spec-item span {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

.m-spec-item strong {
    font-size: 0.85rem;
    color: #1e293b;
    font-weight: 700;
}

.m-card-footer {
    margin-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.m-status {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 6px;
}

.m-status.is-available {
    color: #10b981;
}

.m-status.is-available::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
}

.m-status.is-sold {
    color: #ef4444;
}

.m-status.is-sold::before {
    content: "";
    width: 6px;
    height: 6px;
    background: #ef4444;
    border-radius: 50%;
}

.m-view-link {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-blue);
    transition: transform 0.3s ease;
}

.machine-card-stacked:hover .m-view-link {
    transform: translateX(5px);
}

/* Enforce Consistent Width in Homepage Slider */
.machine-slider .machine-card-stacked,
.machine-slider .view-all-machine-card {
    width: 420px !important;
    min-width: 420px !important;
    max-width: 420px !important;
    flex: 0 0 420px !important;
    margin-right: 30px !important;
    flex-shrink: 0 !important;
}

.view-all-machine-card {
    background: #f8fafc;
    border: 1px dashed var(--primary-blue);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    text-decoration: none;
    transition: all 0.4s ease;
    margin-right: 100px;
    flex-direction: column;
}

.view-all-machine-card:hover {
    background: white;
    box-shadow: 0 30px 60px rgba(0,0,0,0.05);
    border-style: solid;
}

.view-all-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 30px;
    color: var(--primary-blue);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.view-all-machine-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.view-all-machine-card p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

.view-all-link {
    font-weight: 800;
    color: var(--primary-blue);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   WOOCOMMERCE PREMIUM OVERDRIVE (v15.16)
   ========================================================================== */

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
    margin: 80px 0 !important;
    padding: 0 !important;
}

.woocommerce ul.products::before, 
.woocommerce ul.products::after {
    display: none !important;
}

.woocommerce ul.products li.product {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    height: 520px !important;
    border-radius: 40px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-12px) !important;
}

/* Image Full Bleed */
.woocommerce ul.products li.product a img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    margin: 0 !important;
    display: block !important;
}

/* Bottom Glass Panel Simulation */
.woocommerce ul.products li.product::after {
    content: "" !important;
    position: absolute !important;
    bottom: 20px !important;
    left: 20px !important;
    right: 20px !important;
    height: 140px !important;
    background: rgba(255,255,255,0.96) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    border-radius: 35px !important;
    border: 1px solid white !important;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
    z-index: 5 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    position: absolute !important;
    bottom: 90px !important;
    left: 20px !important;
    right: 20px !important;
    font-family: 'Outfit', sans-serif !important;
    font-size: 1.5rem !important;
    color: var(--primary-blue) !important;
    font-weight: 800 !important;
    margin: 0 !important;
    padding: 0 25px !important;
    line-height: 1.2 !important;
    z-index: 20 !important;
}

.woocommerce ul.products li.product .price {
    position: absolute !important;
    bottom: 55px !important;
    left: 20px !important;
    right: 20px !important;
    font-size: 1.1rem !important;
    color: #2ecc71 !important;
    font-weight: 700 !important;
    padding: 0 25px !important;
    z-index: 20 !important;
}

/* 4 Columns for Spare Parts Categories (Technical Parts) */
.archive.tax-product_cat.term-electric ul.products,
.archive.tax-product_cat.term-mechanic ul.products,
.archive.tax-product_cat.term-pneumatic ul.products,
.archive.tax-product_cat.term-electronic ul.products,
.archive.tax-product_cat.term-spare-parts ul.products {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 25px !important;
}

.archive.tax-product_cat.term-electric ul.products li.product,
.archive.tax-product_cat.term-mechanic ul.products li.product,
.archive.tax-product_cat.term-pneumatic ul.products li.product,
.archive.tax-product_cat.term-electronic ul.products li.product,
.archive.tax-product_cat.term-spare-parts ul.products li.product {
    height: 420px !important;
}

.archive.tax-product_cat.term-electric ul.products li.product::after,
.archive.tax-product_cat.term-mechanic ul.products li.product::after,
.archive.tax-product_cat.term-pneumatic ul.products li.product::after,
.archive.tax-product_cat.term-electronic ul.products li.product::after,
.archive.tax-product_cat.term-spare-parts ul.products li.product::after {
    height: 120px !important;
}

.archive.tax-product_cat.term-electric ul.products li.product .woocommerce-loop-product__title,
.archive.tax-product_cat.term-mechanic ul.products li.product .woocommerce-loop-product__title,
.archive.tax-product_cat.term-pneumatic ul.products li.product .woocommerce-loop-product__title,
.archive.tax-product_cat.term-electronic ul.products li.product .woocommerce-loop-product__title,
.archive.tax-product_cat.term-spare-parts ul.products li.product .woocommerce-loop-product__title {
    bottom: 75px !important;
    font-size: 1.2rem !important;
}

/* 3 Columns for Machine Categories (Imposing Scale) */
.archive.tax-product_cat.term-thermoforming ul.products,
.archive.tax-product_cat.term-extruder ul.products,
.archive.tax-product_cat.term-printing ul.products,
.archive.tax-product_cat.term-recycling ul.products,
.archive.tax-product_cat.term-paper ul.products,
.archive.tax-product_cat.term-cnc-machines ul.products,
.archive.tax-product_cat.term-packaging ul.products,
.archive.tax-product_cat.term-additional ul.products {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 40px !important;
}

.archive.tax-product_cat.term-thermoforming ul.products li.product,
.archive.tax-product_cat.term-extruder ul.products li.product,
.archive.tax-product_cat.term-printing ul.products li.product,
.archive.tax-product_cat.term-recycling ul.products li.product,
.archive.tax-product_cat.term-paper ul.products li.product,
.archive.tax-product_cat.term-cnc-machines ul.products li.product,
.archive.tax-product_cat.term-packaging ul.products li.product,
.archive.tax-product_cat.term-additional ul.products li.product {
    height: 520px !important;
}

/* ==========================================================================
   SINGLE PRODUCT PREMIUM REDESIGN (v15.22)
   ========================================================================== */

.single-product .product {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 60px !important;
    margin-top: 150px !important;
    margin-bottom: 100px !important;
}

/* Gallery Styling */
.single-product .woocommerce-product-gallery {
    flex: 1 1 500px !important;
    width: 50% !important;
    border-radius: 40px !important;
    overflow: hidden !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.08) !important;
}

.single-product .woocommerce-product-gallery img {
    border-radius: 0 !important;
    transition: transform 0.5s ease !important;
}

/* Summary Panel (Glassmorphism) */
.single-product .summary {
    flex: 1 1 400px !important;
    width: 40% !important;
    padding: 50px !important;
    background: rgba(255,255,255,0.92) !important;
    backdrop-filter: blur(40px) !important;
    -webkit-backdrop-filter: blur(40px) !important;
    border-radius: 45px !important;
    border: 1px solid white !important;
    box-shadow: 0 25px 50px rgba(0,0,0,0.05) !important;
    position: relative !important;
}

.single-product .product_title {
    font-family: 'Outfit', sans-serif !important;
    font-size: 3.2rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.04em !important;
    color: var(--primary-blue) !important;
    line-height: 1.1 !important;
    margin-bottom: 25px !important;
}

.single-product .price {
    font-size: 2rem !important;
    color: #2ecc71 !important;
    font-weight: 700 !important;
    margin-bottom: 30px !important;
}

.single-product .woocommerce-product-details__short-description {
    font-size: 1.1rem !important;
    line-height: 1.7 !important;
    color: #555 !important;
    margin-bottom: 40px !important;
}

/* Add to Cart Premium Button */
.single-product .single_add_to_cart_button {
    background: var(--primary-blue) !important;
    color: white !important;
    padding: 20px 45px !important;
    border-radius: 20px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    border: none !important;
    box-shadow: 0 15px 35px rgba(0,102,255,0.2) !important;
    transition: all 0.3s ease !important;
}

.single-product .single_add_to_cart_button:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 20px 45px rgba(0,102,255,0.3) !important;
}

/* Bento Spec Grid (Tabs transformation) */
.single-product .woocommerce-tabs {
    width: 100% !important;
    margin-top: 80px !important;
    border: none !important;
}

.single-product .wc-tabs {
    display: none !important; /* Hide standard tabs */
}

.single-product .woocommerce-Tabs-panel {
    display: block !important;
    padding: 0 !important;
}

.single-product .woocommerce-product-attributes {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 25px !important;
    border: none !important;
}

.single-product .woocommerce-product-attributes-item {
    background: white !important;
    padding: 25px !important;
    border-radius: 30px !important;
    border: 1px solid rgba(0,0,0,0.05) !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
}

.single-product .woocommerce-product-attributes-item__label {
    font-size: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    color: #999 !important;
    margin-bottom: 8px !important;
    background: none !important;
    width: auto !important;
    padding: 0 !important;
}

.single-product .woocommerce-product-attributes-item__value {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: var(--primary-blue) !important;
    padding: 0 !important;
}

/* Machine Specific Tags */
.single-product .product_meta {
    margin-top: 40px !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(0,0,0,0.05) !important;
    display: flex !important;
    gap: 20px !important;
    font-size: 0.9rem !important;
    color: #888 !important;
}

/* ==========================================================================
   MACHINE SINGLE PAGE - AVANT-GARDE DESIGN (v1.0)
   ========================================================================== */

.machine-container {
    max-width: 1400px;
    margin: 180px auto 100px;
    padding: 0 40px;
}

.machine-hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: start;
}

/* Gallery & Main Image */
.machine-gallery {
    position: sticky;
    top: 150px;
}

.main-image {
    width: 100%;
    border-radius: 45px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.12);
    border: 1px solid white;
    background: white;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.main-image:hover {
    transform: scale(1.02);
}

/* Machine Info Panel */
.machine-info {
    padding: 20px 0;
}

.machine-header {
    margin-bottom: 40px;
}

.machine-header span {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--primary-blue);
    opacity: 0.6;
}

.machine-title {
    font-size: 5rem;
    line-height: 0.9;
    margin-top: 10px;
    color: var(--primary-blue);
    word-break: break-word;
}

.machine-badges {
    display: flex;
    gap: 15px;
    margin: 30px 0 50px;
}

.badge {
    padding: 12px 25px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 800;
    background: white;
    border: 1px solid rgba(0,0,0,0.05);
}

.badge-blue { background: #f0f7ff; color: #3b82f6; }
.badge-green { background: #f0fdf4; color: #22c55e; }

/* Specs Grid */
.specs-card {
    background: white;
    border-radius: 40px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.specs-card h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-blue);
}

.specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.spec-item {
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 20px;
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-item .label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #99aab5;
    margin-bottom: 8px;
}

.spec-item .value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-blue);
}

/* Call to Action */
.machine-cta {
    margin-top: 60px;
}

.btn-contact-main {
    display: block;
    width: 100%;
    background: var(--primary-blue);
    color: white !important;
    text-align: center;
    padding: 25px;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 20px 40px rgba(57, 89, 138, 0.2);
    transition: all 0.4s ease;
}

.btn-contact-main:hover {
    background: var(--highlight);
    color: var(--primary-blue) !important;
    transform: translateY(-5px);
}

/* Gallery Thumbs */
.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 25px;
}

.thumb-item {
    aspect-ratio: 1;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    background: white;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumb-item:hover img {
    opacity: 1;
}

.thumb-item.active {
    border-color: var(--primary-blue);
}

.thumb-item.active img {
    opacity: 1;
}

.main-image {
    transition: opacity 0.3s ease;
}

/* --- PREMIUM MACHINE CARDS --- */
.machine-card-premium {
    min-width: 380px;
    height: 500px;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-radius: 35px;
    border: 1px solid rgba(0,0,0,0.05);
    background: white;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: block;
}

.machine-card-premium:hover {
    transform: translateY(-10px) scale(1.02);
}

.card-image-outer {
    width: 100%;
    height: 100%;
}

.card-full-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.95;
    transition: transform 0.6s ease;
}

.machine-card-premium:hover .card-full-img {
    transform: scale(1.1);
}

.card-pills-top {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.pill-glass {
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.pill-glass span {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.status-pill.is-sold {
    background: rgba(239, 68, 68, 0.4);
}

.card-panel-bottom {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 5;
}

.panel-glass-content {
    padding: 18px 20px;
    border-radius: 25px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background: rgba(255,255,255,0.95);
    border: 1px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: left;
}

.panel-brand {
    font-size: 0.65rem;
    color: var(--highlight);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 6px;
}

.panel-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.panel-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.panel-spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.panel-spec-item span {
    font-size: 0.55rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

.panel-spec-item strong {
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 800;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-link {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.panel-link:hover {
    transform: translateX(5px);
}

/* ==========================================================================
   MOBILE & RESPONSIVE ARCHITECTURE
   ========================================================================== */

/* 1. Mobile Navigation & Burger */
.mobile-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    display: flex;
    flex-direction: column;
    padding: 40px;
}

.mobile-overlay.active {
    right: 0;
}

.mobile-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.mobile-close {
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    line-height: 1;
}

.mobile-acc { list-style: none; padding: 0; margin: 0; }
.mobile-acc__item { border-bottom: 1px solid #f1f5f9; }
.mobile-acc__trigger { 
    width: 100%; display: flex; justify-content: space-between; align-items: center; 
    padding: 22px 0; background: none; border: none; 
    font-family: 'Outfit', sans-serif; font-size: 1.7rem; font-weight: 800; color: var(--primary-blue); 
    cursor: pointer; text-align: left;
}
.mobile-acc__trigger svg { transition: transform 0.3s ease; opacity: 0.4; }
.mobile-acc__item.active .mobile-acc__trigger { color: var(--highlight); }
.mobile-acc__item.active .mobile-acc__trigger svg { transform: rotate(180deg); opacity: 1; color: var(--highlight); }

.mobile-acc__panel { max-height: 0; overflow: hidden; transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1); opacity: 0; }
.mobile-acc__item.active .mobile-acc__panel { max-height: 600px; opacity: 1; padding-bottom: 25px; }

.mobile-sub { list-style: none; padding: 5px 0 0 15px; margin: 0; border-left: 2px solid #f1f5f9; }
.mobile-sub li { margin-bottom: 15px; }
.mobile-sub a { font-family: 'Inter', sans-serif; font-size: 1.15rem; font-weight: 600; color: #64748b; text-decoration: none; display: block; transition: color 0.3s; }
.mobile-sub a:hover { color: var(--primary-blue); }


}

.card-pills-top {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.pill-glass {
    padding: 6px 14px;
    border-radius: 100px;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.pill-glass span {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
}

.status-pill.is-sold {
    background: rgba(239, 68, 68, 0.4);
}

.card-panel-bottom {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    z-index: 5;
}

.panel-glass-content {
    padding: 18px 20px;
    border-radius: 25px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background: rgba(255,255,255,0.95);
    border: 1px solid white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: left;
}

.panel-brand {
    font-size: 0.65rem;
    color: var(--highlight);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 6px;
}

.panel-title {
    font-size: 1.3rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.panel-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.panel-spec-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.panel-spec-item span {
    font-size: 0.55rem;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 700;
}

.panel-spec-item strong {
    font-size: 0.75rem;
    color: var(--primary-blue);
    font-weight: 800;
}

.panel-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-link {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s ease;
}

.panel-link:hover {
    transform: translateX(5px);
}

/* ==========================================================================
   MOBILE & RESPONSIVE ARCHITECTURE
   ========================================================================== */

/* 1. Mobile Navigation & Burger */
.mobile-burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-nav-actions {
    display: none;
}

.mobile-burger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transition: right 0.5s cubic-bezier(0.85, 0, 0.15, 1);
    display: flex;
    flex-direction: column;
    padding: 35px 25px !important;
    width: 88% !important;
    margin: 0 auto !important;
}

.mobile-overlay.active {
    right: 0;
}

.mobile-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.mobile-close {
    font-size: 3rem;
    background: none;
    border: none;
    color: var(--primary-blue);
    cursor: pointer;
    line-height: 1;
}

.mobile-main-list {
    list-style: none;
    padding: 0;
}

.mobile-main-list li {
    margin-bottom: 25px;
}

.mobile-main-list a {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.mobile-cta-box {
    margin-top: auto;
    padding-bottom: 40px;
}

/* ==========================================================================
   MOBILE & RESPONSIVE ARCHITECTURE (v15.18)
   ========================================================================== */
@media (max-width: 1024px) {
    .navbar {
        top: 20px !important;
        width: calc(100% - 30px) !important;
        padding: 8px 20px !important;
        border-radius: 20px !important;
    }
    .logo img { height: 45px !important; }
    .nav-links { display: none !important; }
    .mobile-nav-actions { display: flex !important; align-items: center; gap: 10px; }
    .mobile-burger { display: flex !important; }
    .container { padding: 0 20px !important; }
    .footer-main { width: 100% !important; margin: 0 !important; border-radius: 0 !important; } 
    .footer-grid { grid-template-columns: 1fr 1fr !important; } 
}


@keyframes float-mobile-final {
    0%, 100% { transform: translateY(0) scale(0.85); }
    50% { transform: translateY(-20px) scale(0.85); }
}

@media (max-width: 1024px) {





    /* --- Block 1: Hero Massive (ULTRA-FIX) --- */
    .hero-massive {
        display: flex !important;
        flex-direction: column !important;
        padding: 80px 0 0 !important;
        min-height: auto !important;
        background: white !important;
        overflow: visible !important;
    }
    
    .hero-container {
        display: contents !important;
    }

    /* 1. IMAGE & STATS */
    .hero-visual {
        order: 1 !important;
        display: block !important;
        width: 100% !important;
        position: relative !important;
        padding: 40px 0 0 !important;
        margin: 0 !important;
        z-index: 5 !important;
    }

    .hero-massive-image {
        width: 160% !important;
        max-width: none !important;
        height: auto !important;
        position: relative !important;
        margin-left: -55% !important; /* Even more left */
        margin-bottom: -5px !important;
        display: block !important;
        filter: drop-shadow(0 30px 60px rgba(0,0,0,0.12)) !important;
    }

    .hero-stat-card {
        position: absolute !important;
        width: 175px !important;
        padding: 18px 10px !important;
        text-align: center !important;
        border-radius: 24px !important;
        background: rgba(255, 255, 255, 0.4) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        z-index: 20 !important;
        box-shadow: 0 20px 40px rgba(0,0,0,0.08) !important;
        will-change: transform !important;
        animation: float-hero-mobile 12s ease-in-out infinite !important; /* Even slower and more premium */
        white-space: nowrap !important;
    }

    .stat-partners { top: 150px !important; left: 10px !important; }
    .stat-experience { top: 320px !important; right: 30px !important; animation-delay: -6s !important; }

    @keyframes float-hero-mobile {
        0%, 100% { transform: translateY(0) rotate(0deg) scale(0.85); }
        50% { transform: translateY(-30px) rotate(2deg) scale(0.85); }
    }

    /* 2. SOCIAL PROOF BAR (LOGOS + LABEL) */
    .social-proof-bar {
        order: 2 !important;
        width: 100vw !important;
        background: transparent !important;
        padding: 0 0 30px !important; /* Space for absolute label */
        margin: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        position: relative !important;
        z-index: 10 !important;
    }

    .logos-marquee-wrapper {
        background: var(--primary-blue) !important;
        padding: 35px 0 !important;
        width: 100% !important;
        overflow: hidden !important;
        box-shadow: 0 10px 30px rgba(57, 89, 138, 0.2) !important;
    }

    .brand-logos-scroll {
        display: flex !important;
        gap: 60px !important; /* Slightly more space for clarity */
        animation: marquee-ultra 30s linear infinite !important; /* Slow and smooth */
        width: max-content !important;
        padding: 0 !important; /* Crucial for seamless loop */
        margin: 0 !important;
    }

    @keyframes marquee-ultra {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }

    .trusted-label {
        position: absolute !important;
        left: 24px !important;
        bottom: 5px !important; /* Fixed at the bottom of the proof bar container */
        margin: 0 !important;
        font-size: 0.65rem !important;
        font-weight: 800 !important;
        color: #94a3b8 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.1em !important;
    }

    /* 3. TEXT BLOCK */
    .hero-text {
        order: 3 !important;
        padding: 50px 30px 80px !important;
        text-align: left !important; /* Left aligned as requested */
        z-index: 5 !important;
    }

    .hero-text h1 {
        font-size: 2.7rem !important;
        line-height: 1.0 !important;
        color: var(--primary-blue) !important;
        margin-bottom: 25px !important;
        font-weight: 800 !important;
        text-align: left !important;
    }

    .hero-subtitle {
        font-size: 1.05rem !important;
        line-height: 1.6 !important;
        margin-bottom: 40px !important;
        color: var(--text-muted) !important;
        max-width: 100% !important; /* Use full width */
        text-align: left !important;
    }

    .hero-text div[style*="flex"] {
        flex-direction: column !important;
        gap: 15px !important;
        align-items: flex-start !important; /* Align buttons left */
    }

    .hero-text .btn-primary {
        width: 100% !important;
        max-width: 320px !important; /* Don't make it too wide, keep it elegant */
        padding: 22px !important;
        border-radius: 100px !important;
        background: var(--primary-blue) !important;
        text-align: center !important;
    }

    .hero-text a[style*="border-bottom"] {
        font-size: 1.1rem !important;
        margin-top: 5px !important;
        display: inline-block !important;
    }

    /* --- Block 2: Featured Machines Slider --- */
    .featured-machines { padding: 60px 0 !important; }
    .machine-slider {
        gap: 15px !important;
        padding: 0 20px 40px !important; 
        margin: 0 !important;
        display: flex !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .machine-slider .machine-card-stacked { min-width: 85vw !important; flex: 0 0 85vw !important; border-radius: 20px !important; }

    /* --- Block 3: Services Super-Bento MOBILE --- */
    body .services-bento { 
        display: flex !important; 
        flex-direction: column !important; 
        gap: 25px !important; 
        padding: 0 10px !important; /* Reduced from 20px to make blocks wider */
        width: 100% !important;
        align-items: stretch !important;
    }
    body .s-bento-item { 
        width: 100% !important; 
        min-width: 100% !important; /* Force full width */
        min-height: 480px !important; 
        height: auto !important; 
        border-radius: 40px !important; 
        position: relative !important; 
        overflow: hidden !important; 
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        margin: 0 !important;
    }
    
    /* Shift background for Machine Sales - Fine-tuned */
    body .s-bento-1 .s-bento-img {
        transform: translateX(-30%) scale(1.0) !important;
        width: 150% !important;
        max-width: none !important;
        left: 0 !important;
    }
    
    /* Tighten glass blocks for mobile */
    body .s-bento-content {
        top: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: auto !important;
        position: absolute !important;
        padding: 10px !important; /* Restored original premium gap */
    }
    body .s-bento-item .glass {
        padding: 15px 18px !important; /* Restored original premium gap */
        width: 100% !important; 
        border-radius: 25px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    body .s-bento-text-content { 
        padding: 15px 18px 20px !important; /* Default for glass blocks */
        position: relative !important; 
        z-index: 10 !important; 
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
    }
    body .s-bento-title { font-size: 1.4rem !important; margin-bottom: 5px !important; line-height: 1.1 !important; }
    body .s-bento-text { font-size: 0.85rem !important; margin-bottom: 12px !important; max-width: 100% !important; }
    body .s-bento-btn { 
        width: 100% !important; 
        padding: 14px !important; 
        border-radius: 12px !important; 
        background: white !important; 
        color: var(--primary-blue) !important; 
        font-weight: 800 !important;
        text-align: center !important;
        display: block !important;
    }

    /* Blue Blocks: Maximum specificity to force tight padding */
    html body .s-bento-2, 
    html body .s-bento-5 { 
        background: var(--primary-blue) !important; 
        display: flex !important; 
        flex-direction: column !important; 
    }
    html body .s-bento-2 .s-bento-text-content, 
    html body .s-bento-5 .s-bento-text-content {
        padding: 0 0 20px !important; /* Minimized padding */
        width: 100% !important;
        margin: -35px 0 0 0 !important; /* Pulls text UP into the machine area */
        z-index: 10 !important;
    }
    html body .s-bento-2 .s-bento-text, 
    html body .s-bento-5 .s-bento-text {
        max-width: 100% !important;
        margin-left: 0 !important;
        padding-left: 0 !important;
    }
    body .s-bento-2 .s-bento-machine-img, 
    body .s-bento-5 .s-bento-machine-img {
        display: block !important;
        position: relative !important;
        height: 300px !important; /* Base size */
        width: 130% !important;
        margin: -10px -15% 0 !important; 
        object-fit: contain !important;
        top: 0 !important;
        right: 0 !important;
        transform: none !important;
    }
    /* Acquisition machine even larger & higher */
    body .s-bento-2 .s-bento-machine-img {
        height: 340px !important; 
        width: 140% !important;
        margin-top: -30px !important; /* Pulls image higher up */
    }
    body .s-bento-2 .s-bento-text, body .s-bento-5 .s-bento-text { max-width: 100% !important; }

    /* --- Block 4: Spare Parts Catalog MOBILE --- */
    .parts-catalog-section { 
        padding: 60px 20px !important; /* Restored side margins */
    }
    .catalog-header { 
        flex-direction: column !important; 
        align-items: flex-start !important; 
        gap: 20px !important; 
        margin-bottom: 35px !important;
    }
    .catalog-title { font-size: 2.2rem !important; }
    .catalog-search { 
        min-width: 100% !important; 
        width: 100% !important;
        margin-top: 5px !important;
    }
    .catalog-filters {
        margin-bottom: 30px !important;
        gap: 10px !important;
    }
    .parts-product-grid { 
        grid-template-columns: 1fr !important; /* 1x1 Layout as requested */
        gap: 25px !important; 
        margin-top: 20px !important;
    }
    .part-card { border-radius: 25px !important; }
    .part-image { height: 260px !important; } /* Slightly taller for 1x1 view */

    .footer-grid { grid-template-columns: 1fr !important; gap: 40px !important; } 
    .footer-bottom { flex-direction: column !important; gap: 20px !important; text-align: center !important; }
}

/* DESKTOP RESTORATION (ONLY FOR DESKTOP) */
@media (min-width: 1025px) {
    .s-bento-2 { background: #f8f9fa; border: 1px solid #39598a !important; }
    .s-bento-5 { background: #ffffff; border: 1px solid #39598a !important; }
    
    /* Dark text & numbers for light blocks */
    .s-bento-2 .s-bento-title, .s-bento-2 .s-bento-text, .s-bento-2 .s-bento-number,
    .s-bento-5 .s-bento-title, .s-bento-5 .s-bento-text, .s-bento-5 .s-bento-number { 
        color: var(--primary-blue) !important; 
    }

    /* Block 02: Acquisition - Text EXTREME HIGH, Original Internal Spacing */
    .s-bento-2 .s-bento-text-content {
        padding: 15px 40px 40px !important; /* Minimized top padding */
        justify-content: flex-start !important;
    }
    .s-bento-2 .s-bento-text {
        margin-bottom: auto !important; /* Pushes button down, keeps title/text together */
    }
    .s-bento-2 .s-bento-title, .s-bento-2 .s-bento-text {
        max-width: 65% !important;
    }
    .s-bento-2 .s-bento-machine-img {
        top: auto !important;
        bottom: -25% !important;
        transform: none !important;
        right: -150px !important; /* Further right */
        height: 120% !important;
    }

    /* Block 05: Partnerships - Compact High-Positioned */
    .s-bento-5 {
        align-self: stretch !important; /* Stretch to grid height but don't force it larger */
        max-height: 100% !important;
    }
    .s-bento-5 .s-bento-text-content {
        justify-content: flex-start !important;
        padding: 15px 40px 25px !important; /* Very tight vertical padding */
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
    }
    .s-bento-5 .s-bento-number {
        margin: 0 0 5px 0 !important;
        font-size: 1rem !important;
    }
    .s-bento-5 .s-bento-title { 
        margin: 0 0 10px 0 !important; 
        max-width: 50% !important;
        line-height: 1.0 !important;
    }
    .s-bento-5 .s-bento-text { 
        margin: 0 0 15px 0 !important; /* Tight gap to button */
        max-width: 48% !important;
        line-height: 1.5 !important;
        font-size: 0.95rem !important;
    }
    .s-bento-5 .s-bento-btn {
        margin-top: auto !important;
        width: fit-content !important;
        padding: 12px 35px !important; /* Smaller button for compactness */
        background: var(--highlight) !important;
        color: var(--primary-blue) !important;
        border-radius: 10px !important;
        font-weight: 800 !important;
    }
    .s-bento-5 .s-bento-machine-img {
        height: 105% !important; /* Scaled down to prevent expansion */
        right: -40px !important;
        top: 50% !important;
    }

    .s-bento-machine-img {
        position: absolute; right: -100px; top: 50%; transform: translateY(-50%);
        height: 110%; width: auto; object-fit: contain; z-index: 1; pointer-events: none; opacity: 1;
    }
    .s-bento-text-content { position: relative; z-index: 2; padding: 40px; height: 100%; display: flex; flex-direction: column; justify-content: space-between; }
}

/* ==========================================================================
   FOOTER RESTORATION (EXACT ORIGINAL MATCH)
   ========================================================================== */
.footer-main { background: #0f172a !important; color: #f8fafc !important; padding: 100px 0 40px !important; width: 95% !important; max-width: 1700px !important; margin: auto auto 0 !important; border-radius: 50px 50px 0 0 !important; position: relative !important; }
.footer-container { width: 88% !important; margin: 0 auto !important; }
.footer-grid { display: grid !important; grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr !important; gap: 60px !important; margin-bottom: 60px !important; }
.footer-col__title { font-size: 1.1rem !important; font-weight: 800 !important; margin-bottom: 30px !important; color: white !important; text-transform: uppercase !important; }
.footer-brand__logo { height: 60px !important; margin-bottom: 30px !important; filter: none !important; }
.footer-brand__text { font-size: 0.95rem !important; line-height: 1.7 !important; color: #94a3b8 !important; margin-bottom: 25px !important; }
.footer-contact { display: flex !important; flex-direction: column !important; gap: 12px !important; }
.footer-contact__item { color: #94a3b8 !important; text-decoration: none !important; font-size: 0.95rem !important; display: flex !important; align-items: center !important; gap: 10px !important; }
.footer-links { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.footer-links li { list-style: none !important; margin-bottom: 12px !important; }
.footer-links a { color: #94a3b8 !important; text-decoration: none !important; font-size: 0.95rem !important; transition: color 0.3s ease !important; }
.footer-links a:hover { color: #00c2ff !important; }
.footer-loc__title { display: block !important; font-weight: 800 !important; color: #00c2ff !important; margin-bottom: 5px !important; font-size: 0.85rem !important; text-transform: uppercase !important; }
.footer-loc__text { color: #cbd5e1 !important; line-height: 1.6 !important; font-size: 0.95rem !important; }
.news-form { display: flex !important; flex-direction: column !important; gap: 15px !important; margin-top: 10px !important; }
.news-form__row { display: grid !important; gap: 15px !important; margin-bottom: 0 !important; }
.news-form input[type="text"], .news-form input[type="email"] { background: rgba(255,255,255,0.03) !important; border: 1px solid rgba(255,255,255,0.08) !important; padding: 18px !important; border-radius: 14px !important; color: white !important; width: 100% !important; }
.news-form__consent { display: flex !important; flex-direction: row !important; align-items: flex-start !important; gap: 12px !important; color: #64748b !important; font-size: 0.85rem !important; cursor: pointer !important; line-height: 1.4 !important; }
.news-form__consent input { margin-top: 3px !important; width: auto !important; flex-shrink: 0 !important; }
.news-form__btn { background: var(--primary-blue) !important; color: white !important; border: none !important; padding: 18px !important; border-radius: 14px !important; font-weight: 800 !important; cursor: pointer !important; }
.footer-bottom { padding-top: 30px !important; border-top: 1px solid rgba(255,255,255,0.05) !important; display: flex !important; justify-content: space-between !important; align-items: center !important; }
.footer-bottom__left { display: flex !important; align-items: center !important; gap: 25px !important; }
.footer-bottom__left p { color: #64748b !important; margin: 0 !important; font-size: 0.9rem !important; }
.footer-legal-mini { display: flex !important; gap: 20px !important; }
.footer-legal-mini a { color: #64748b !important; font-size: 0.85rem !important; text-decoration: none !important; }
.footer-bottom__socials { display: flex !important; gap: 15px !important; }
.social-mini { color: #475569 !important; transition: color 0.3s !important; }
@media (max-width: 1024px) { .footer-main { width: 100% !important; margin: 0 !important; border-radius: 0 !important; } .footer-grid { grid-template-columns: 1fr 1fr !important; } .footer-bottom__left { flex-direction: column !important; align-items: flex-start !important; gap: 10px !important; } }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr !important; gap: 40px !important; } .footer-bottom { flex-direction: column !important; gap: 20px !important; text-align: center !important; } .footer-bottom__left { align-items: center !important; } }


/* --- REPAIRED & FINAL REFINEMENTS --- */
@media (max-width: 1024px) {
    html body .human-element-section {
        width: 96% !important;
        margin: 40px auto !important;
        border-radius: 40px !important;
        padding: 240px 0 40px !important;
        min-height: 650px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-end !important;
        align-items: center !important;
    }
    html body .human-glass-card {
        width: 88% !important;
        max-width: none !important;
        margin: 0 auto !important;
        padding: 30px 20px !important;
        border-radius: 30px !important;
    }
    html body .human-glass-card h2 { font-size: 1.6rem !important; }
    html body .human-glass-card p { font-size: 0.95rem !important; }
}

@media (min-width: 1025px) and (max-width: 1500px) {
    html body .hero-massive-image {
        transform: scale(1.3) !important;
        transform-origin: center right !important;
        margin-bottom: -120px !important;
    }
    html body .hero-stat-card {
        padding: 20px 35px !important;
        animation: float-hero 8s ease-in-out infinite !important;
        right: 12% !important;
    }
    html body .hero-stat-card strong { font-size: 1.8rem !important; }
}

/* REFINING WIDTH TO BE SLIGHTLY NARROWER */
@media (max-width: 1024px) {
    html body .human-element-section {
        width: 92% !important;
    }
}

/* MATCHING WIDTH TO SPARE PARTS (20px margins) */
@media (max-width: 1024px) {
    html body .human-element-section {
        width: calc(100% - 40px) !important;
        margin: 40px 20px !important;
        border-radius: 40px !important;
    }
}

/* FINAL DESKTOP HERO TUNING (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .hero-massive-image {
        transform: scale(1.45) !important;
        transform-origin: center right !important;
        margin-bottom: -150px !important;
    }
    html body .hero-stat-card {
        padding: 15px 28px !important;
        animation: float-hero 8s ease-in-out infinite !important;
    }
    html body .hero-stat-card strong {
        font-size: 1.5rem !important;
    }
    html body .hero-stat-card span {
        font-size: 0.85rem !important;
    }
}

/* RECTIFYING HERO LAYOUT (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .hero-massive-image {
        transform: scale(1.2) !important;
        transform-origin: center right !important;
        margin-bottom: -40px !important;
    }
    html body .stat-partners {
        top: 15% !important;
        right: 22% !important; /* Moved significantly more left */
    }
    html body .stat-experience {
        top: 48% !important; /* Vertically separated from partners */
        right: 8% !important;
    }
}

/* FINAL HERO UPLIFT FIX (1025px - 1440px) */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .hero-massive {
        overflow: visible !important;
    }
    html body .hero-visual {
        margin-top: -120px !important; /* Pulls image and cards UP */
    }
    html body .hero-massive-image {
        transform: scale(1.15) !important;
        transform-origin: center right !important;
        margin-bottom: 0 !important;
    }
}

/* RE-ALIGNING HERO TO BLUE BAR */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .hero-visual {
        margin-top: -30px !important; /* Lowered it back down */
        margin-bottom: -5px !important; /* Ensures contact with the blue section */
    }
    html body .stat-partners {
        right: 38% !important; /* Massively moved left */
        top: 12% !important;
    }
    html body .stat-experience {
        right: 10% !important;
        top: 52% !important;
    }
}

/* FINAL REFINEMENTS: LARGER IMAGE & LOWER PARTNERS */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .hero-massive-image {
        transform: scale(1.25) !important;
    }
    html body .stat-partners {
        right: 44% !important; /* Even more left */
        top: 28% !important;  /* Further down */
    }
    html body .stat-experience {
        top: 58% !important;  /* Adjusting experience too for balance */
    }
}

/* EVEN MORE MASSIVE HERO & OFFSET CARDS */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .hero-massive-image {
        transform: scale(1.35) !important;
        margin-bottom: -15px !important;
    }
    html body .stat-partners {
        right: 52% !important; /* Almost centered horizontally */
        top: 35% !important;  /* Lowered into the visual flow */
    }
    html body .stat-experience {
        top: 65% !important;
        right: 5% !important;
    }
}

/* FIXING IMAGE ANCHOR TO BOTTOM BAR */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .hero-massive-image {
        transform: scale(1.35) !important;
        transform-origin: bottom right !important; /* Forces bottom edge to stay on the bar */
        margin-bottom: -2px !important;
    }
}

/* ELIMINATING GAP TO BLUE BAR */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .hero-massive-image {
        margin-bottom: -25px !important; /* Pulls the image down into the blue section */
    }
}

/* RADICAL GAP ELIMINATION */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .hero-massive, 
    html body .hero-visual,
    html body .hero-container {
        padding-bottom: 0 !important;
        margin-bottom: 0 !important;
    }
    html body .hero-massive-image {
        display: block !important;
        margin-bottom: -60px !important;
    }
}

/* FINAL PARTNERS OFFSET REFINEMENT */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .stat-partners {
        right: 58% !important;
        top: 45% !important;
    }
}

/* AGGRESSIVE PARTNERS POSITIONING */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .stat-partners {
        right: 65% !important;
        top: 55% !important;
    }
    html body .stat-experience {
        top: 75% !important; /* Moving experience down to avoid crowding */
    }
}

/* SWAPPING STAT POSITIONS */
@media (min-width: 1025px) and (max-width: 1440px) {
    html body .stat-experience {
        right: 65% !important;
        top: 55% !important;
    }
    html body .stat-partners {
        right: 12% !important;
        top: 78% !important;
    }
}

/* MOBILE LOGO MARQUEE REFINEMENT */
@media (max-width: 1024px) {
    .mobile-only-logo {
        display: block !important;
    }
    .brand-logos-scroll {
        gap: 0 !important; /* Switch from gap to margin-right for perfect loop math */
    }
    .brand-logos-scroll .brand-logo {
        margin-right: 60px !important;
        flex-shrink: 0 !important;
    }
    @keyframes marquee-ultra {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
    }
}

/* QUAD-LOOP REFINEMENT FOR SEAMLESS SCROLL */
@media (max-width: 1024px) {
    .brand-logos-scroll {
        animation: marquee-ultra 15s linear infinite !important; /* Slightly faster for more energy */
    }
    @keyframes marquee-ultra {
        0% { transform: translateX(0); }
        100% { transform: translateX(-25%); } /* Loops after 1 set out of 4 */
    }
}

/* ==========================================================================
   CHECKOUT MODERNIZATION (v16.2)
   ========================================================================== */
.woocommerce-checkout {
    padding-bottom: 100px;
}

.woocommerce-checkout .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 1. Checkout Cards & Sections */
.woocommerce-checkout h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-weight: 800;
}

.checkout-review-order-table, 
.woocommerce-checkout #customer_details,
.woocommerce-additional-fields {
    background: white;
    padding: 40px;
    border-radius: 35px;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.03);
    margin-bottom: 40px;
}

/* 2. Order Review Table Refinement */
.checkout-item-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
}

.checkout-item-thumbnail img {
    width: 60px !important;
    height: 60px !important;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    padding: 5px;
}

.checkout-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.checkout-item-name {
    font-weight: 800;
    color: var(--primary-blue);
    font-size: 1rem;
    line-height: 1.2;
}

.product-quantity {
    display: inline-block;
    background: var(--highlight);
    color: var(--primary-blue);
    padding: 2px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 900;
    margin-top: 5px;
}

/* 3. Table Structure & Totals */
.shop_table.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.shop_table.woocommerce-checkout-review-order-table th,
.shop_table.woocommerce-checkout-review-order-table td {
    padding: 20px !important;
    border: none !important;
    vertical-align: middle;
}

.shop_table.woocommerce-checkout-review-order-table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    border-bottom: 1px solid #f1f5f9 !important;
    padding-bottom: 15px !important;
}

.cart_item td.product-total,
.cart-subtotal td,
.order-total td {
    text-align: right !important;
    font-weight: 800;
    color: var(--primary-blue);
}

.order-total th, .order-total td {
    background: #f8fafc;
    border-radius: 15px;
    padding: 25px !important;
}

.order-total strong .woocommerce-Price-amount {
    font-size: 1.8rem;
    color: var(--highlight);
}

/* 4. Payment Box Modernization */
#payment {
    background: #f8fafc !important;
    border-radius: 30px !important;
    padding: 30px !important;
}

#payment ul.payment_methods {
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
    padding-bottom: 20px !important;
}

.wc_payment_method label {
    font-weight: 800 !important;
    color: var(--primary-blue) !important;
}

.place-order .button {
    width: 100% !important;
    padding: 25px !important;
    border-radius: 100px !important;
    background: var(--primary-blue) !important;
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    font-size: 1.2rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    margin-top: 20px !important;
}

.place-order .button:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,84,159,0.2);
}

/* 5. Mobile Checkout Adjustments */
@media (max-width: 768px) {
    .woocommerce-checkout { padding-top: 120px; }
    .checkout-review-order-table, 
    .woocommerce-checkout #customer_details,
    .woocommerce-additional-fields {
        padding: 25px 20px;
        border-radius: 25px;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box;
    }
    
    .shop_table.woocommerce-checkout-review-order-table th { width: 40%; text-align: left !important; }
    
    .checkout-item-row { flex-direction: row; align-items: flex-start; text-align: left; }
    .checkout-item-name { font-size: 0.95rem; }
    
    .order-total strong .woocommerce-Price-amount { font-size: 1.4rem; }
    
    .col-1, .col-2 { width: 100% !important; float: none !important; margin-bottom: 30px; }
    
    .woocommerce-additional-fields h3 { text-align: left !important; }
    .woocommerce-additional-fields .notes { text-align: left !important; }
}

@media (max-width: 480px) {
    .shop_table.woocommerce-checkout-review-order-table th,
    .shop_table.woocommerce-checkout-review-order-table td {
        padding: 15px 10px !important;
    }
    .checkout-item-row { gap: 12px; }
    .checkout-item-thumbnail img { width: 50px !important; height: 50px !important; }
}

/* Checkout Tax & Checkbox Enhancements */
.includes_tax {
    display: none !important;
}

.woocommerce-form__label-for-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    font-size: 0.95rem !important;
    color: #475569 !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    text-align: left !important;
}

.woocommerce-form__label-for-checkbox input[type="checkbox"] {
    margin-top: 3px !important;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
    accent-color: var(--primary-blue) !important;
}

/* Align numbers in Checkout totals with a right padding */
.shop_table.woocommerce-checkout-review-order-table td,
.checkout-wrapper-premium .woocommerce-checkout-review-order-table td {
    padding-right: 30px !important;
    text-align: right !important;
}

.shop_table.woocommerce-checkout-review-order-table th,
.checkout-wrapper-premium .woocommerce-checkout-review-order-table th {
    padding-left: 30px !important;
}

/* Ensure subtotal and tax rows have identical styling */
.cart-subtotal th, .cart-subtotal td,
.tax-total-inclusive-row th, .tax-total-inclusive-row td,
.tax-rate th, .tax-rate td {
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: var(--primary-blue) !important;
    vertical-align: middle !important;
}

/* Total row right padding */
.order-total th, .order-total td {
    padding-right: 30px !important;
}
