/* ===== CANVA SPLIT SHOWCASE (SUPPLIERS) ===== */

:root {
    --supplier-section-bg-dark: #0a0c10;
    --supplier-section-bg-light: #ffffff;
}

.canvas-showcase {
    width: 100%;
    min-height: 100vh; /* Same epic height as Petronas */
    background: var(--color-bg, #050508);
    overflow: hidden;
    position: relative;
    z-index: 1;
    clear: both;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.canvas-split {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

/* Base Panel Styles */
.canvas-panel {
    flex: 1;
    position: relative;
    overflow: hidden;
    transition: flex 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.canvas-panel:hover {
    flex: 1.4; /* Stronger expansion for more impact */
}

/* Background Systems for WOW Effect */
.canvas-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}

.canvas-glow {
    position: absolute;
    inset: -50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 50%);
    opacity: 0.2;
    transform: scale(0.8) translate(0, 0);
    transition: all 1.5s cubic-bezier(0.1, 0.8, 0.3, 1);
    mix-blend-mode: screen;
}

.canvas-panel:hover .canvas-glow {
    opacity: 0.8;
    transform: scale(1.2) translate(0, 5%);
}

.canvas-noise {
    position: absolute;
    inset: 0;
    /* Removed SVG fractal noise to fix CSS parser issues */
    background: radial-gradient(circle at center, rgba(255,255,255,0.03) 0%, transparent 100%);
    opacity: 0.1;
    mix-blend-mode: overlay;
    z-index: 1;
}

/* Individual Panel Identities */
.pirelli-panel .canvas-bg {
    background: url('../images/pirelli_bg.png') center/cover no-repeat;
    background-color: #171111;
}

.pirelli-panel .canvas-glow {
    background: radial-gradient(circle at center, rgba(255, 204, 0, 0.25) 0%, rgba(200, 25, 25, 0.05) 40%, transparent 60%);
}

.maggion-panel .canvas-bg {
    background: url('../images/maggion_bg.png') center/cover no-repeat;
    background-color: #0d1430;
}

.maggion-panel .canvas-glow {
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.25) 0%, rgba(0, 50, 150, 0.05) 40%, transparent 60%);
}

/* Panel Content Layout */
.canvas-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 80px 60px;
    height: 100%;
    width: 100%;
}

@media (min-width: 1024px) {
    .canvas-content {
        padding: 100px 80px;
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }
}

.canvas-text-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 520px;
    transform: translateY(20px);
    opacity: 0.9;
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.canvas-panel:hover .canvas-text-wrap {
    transform: translateY(0);
    opacity: 1;
}

/* Tags and Typography */
.canvas-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 30px;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.pirelli-panel:hover .canvas-tag { border-color: rgba(255,204,0,0.3); color: #ffcc00; }
.pirelli-panel:hover .pulse-dot { background: #ffcc00; box-shadow: 0 0 10px #ffcc00; }

.maggion-panel:hover .canvas-tag { border-color: rgba(102,179,255,0.3); color: #66b3ff; }
.maggion-panel:hover .pulse-dot { background: #66b3ff; box-shadow: 0 0 10px #66b3ff; }

/* The Massive Titles */
.canvas-title {
    font-family: var(--font-display, 'Inter', system-ui, sans-serif);
    font-size: clamp(2.5rem, 4.5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin: 0 0 24px 0;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.canvas-desc {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.75;
    margin-bottom: 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.canvas-desc p {
    margin: 0;
}

/* Discover Links */
.canvas-discover {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.canvas-discover svg {
    transition: transform 0.3s ease;
}

.canvas-panel:hover .canvas-discover {
    border-color: #fff;
}

.canvas-panel:hover .canvas-discover svg {
    transform: translateX(6px);
}

/* Visual Layers (Logos and Spotlights) */
.canvas-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    perspective: 1000px;
}

.logo-spotlight {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.08) 0%, transparent 70%);
    filter: blur(20px);
    opacity: 0;
    transition: all 0.8s ease;
}

.pirelli-panel .logo-spotlight { background: radial-gradient(circle at center, rgba(255, 204, 0, 0.15) 0%, transparent 70%); }
.maggion-panel .logo-spotlight { background: radial-gradient(circle at center, rgba(0, 102, 255, 0.15) 0%, transparent 70%); }

.canvas-panel:hover .logo-spotlight {
    opacity: 1;
    transform: scale(1.2);
}

.canvas-logo {
    position: relative;
    max-width: 250px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.5)) grayscale(20%) brightness(0.9);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.canvas-panel:hover .canvas-logo {
    transform: scale(1.15) translateZ(50px) rotateY(-5deg);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.6)) grayscale(0%) brightness(1.1);
}

/* ============================================================
   LIGHT THEME OVERRIDES
   ============================================================ */
:root.light-theme .canvas-showcase {
    background: #f8f9fa;
}

:root.light-theme .pirelli-panel .canvas-bg {
    background: url('../images/pirelli_bg.png') center/cover no-repeat;
    opacity: 0.2;
}

:root.light-theme .pirelli-panel .canvas-glow {
    background: radial-gradient(circle at center, rgba(255, 204, 0, 0.1) 0%, rgba(200, 25, 25, 0.02) 40%, transparent 60%);
    mix-blend-mode: multiply;
}

:root.light-theme .maggion-panel .canvas-bg {
    background: url('../images/maggion_bg.png') center/cover no-repeat;
    opacity: 0.2;
}

:root.light-theme .maggion-panel .canvas-glow {
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.1) 0%, rgba(0, 50, 150, 0.02) 40%, transparent 60%);
    mix-blend-mode: multiply;
}

:root.light-theme .canvas-title {
    background: linear-gradient(135deg, #111111 0%, #444444 100%);
    -webkit-background-clip: text;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

:root.light-theme .canvas-desc {
    color: rgba(0, 0, 0, 0.7);
    text-shadow: none;
}

:root.light-theme .canvas-tag {
    color: #333;
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.1);
}

:root.light-theme .pulse-dot {
    background: #333;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

:root.light-theme .canvas-discover {
    color: #111;
    border-color: rgba(0,0,0,0.2);
}

:root.light-theme .canvas-panel:hover .canvas-discover {
    border-color: #111;
}

:root.light-theme .canvas-logo {
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1)) grayscale(0%) brightness(1);
}

:root.light-theme .canvas-panel:hover .canvas-logo {
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.15)) grayscale(0%) brightness(1);
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */
@media (max-width: 1024px) {
    .canvas-split {
        flex-direction: column;
    }
    .canvas-panel {
        min-height: 60vh;
    }
    .canvas-content {
        padding: 60px 40px;
    }
    .canvas-logo {
        max-width: 200px;
    }
}

@media (max-width: 768px) {
    .canvas-content {
        padding: 60px 30px;
        flex-direction: column !important;
        align-items: center;
        text-align: center;
    }
    .canvas-text-wrap {
        align-items: center;
    }
    .canvas-title {
        font-size: 2.2rem;
    }
    .canvas-desc {
        font-size: 0.95rem;
    }
    .canvas-visual {
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .canvas-content {
        padding: 40px 20px;
    }
    .canvas-title {
        font-size: 1.8rem;
    }
    .canvas-tag {
        font-size: 10px;
        padding: 6px 12px;
    }
    .canvas-desc {
        font-size: 0.875rem;
    }
    .canvas-logo {
        max-width: 160px;
    }
}
