/* Tint Shade Chart Styles */
.tint-shade-chart {
    padding: 100px 5%;
    background: linear-gradient(135deg, #ffffff 0%, #f5f7fa 50%, #e8eef5 100%);
    position: relative;
    overflow: hidden;
}

.tint-shade-chart::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

.tint-shade-chart::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(26, 35, 126, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 15s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 50px) scale(1.1); }
}

.tint-shade-chart .section-header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
    z-index: 2;
}

.tint-shade-chart .section-header h2 {
    font-size: 1.5rem;
    color: #000000;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: 2px;
}

.tint-shade-chart .section-header p {
    font-size: 1.3rem;
    color: #000000;
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
}

.shade-chart-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 35px;
    max-width: 1500px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 2;
    perspective: 1000px;
}

.shade-item {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 25px;
    overflow: visible;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
}

.shade-item::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #ffd700, #1a237e, #0288d1);
    border-radius: 25px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.shade-item:hover::before {
    opacity: 1;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

.shade-item:hover {
    transform: translateY(-15px) rotateX(5deg) scale(1.03);
    box-shadow: 
        0 30px 70px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(255, 215, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.shade-item.popular {
    border: 3px solid #ffd700;
    transform: scale(1.08);
    box-shadow: 
        0 25px 60px rgba(255, 215, 0, 0.4),
        0 0 40px rgba(255, 215, 0, 0.2);
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        box-shadow: 
            0 25px 60px rgba(255, 215, 0, 0.4),
            0 0 40px rgba(255, 215, 0, 0.2);
    }
    50% { 
        box-shadow: 
            0 25px 60px rgba(255, 215, 0, 0.6),
            0 0 60px rgba(255, 215, 0, 0.4);
    }
}

.shade-item.popular:hover {
    transform: scale(1.12) translateY(-20px) rotateX(5deg);
    box-shadow: 
        0 35px 80px rgba(255, 215, 0, 0.5),
        0 0 50px rgba(255, 215, 0, 0.3);
}

.popular-badge {
    position: absolute;
    top: 12px;
    right: -30px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ff6b6b 100%);
    color: #000000;
    padding: 6px 35px;
    font-weight: 700;
    font-size: 0.7rem;
    transform: rotate(45deg);
    z-index: 1;
    box-shadow: 
        0 4px 15px rgba(255, 215, 0, 0.6),
        0 0 20px rgba(255, 215, 0, 0.4);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0%, 100% { 
        background: linear-gradient(135deg, #ffd700 0%, #ffed4e 50%, #ff6b6b 100%);
        box-shadow: 
            0 6px 20px rgba(255, 215, 0, 0.6),
            0 0 30px rgba(255, 215, 0, 0.4);
    }
    50% { 
        background: linear-gradient(135deg, #ffed4e 0%, #ffd700 50%, #ff8c8c 100%);
        box-shadow: 
            0 8px 30px rgba(255, 215, 0, 0.8),
            0 0 40px rgba(255, 215, 0, 0.6);
    }
}

.popular-badge i {
    margin-right: 6px;
    animation: starPulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

@keyframes starPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg); 
    }
    50% { 
        transform: scale(1.3) rotate(180deg); 
    }
}

.shade-visual {
    height: 240px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 23px 23px 0 0;
}

.shade-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(180deg, rgba(255,255,255,0.15) 0%, transparent 50%, rgba(0,0,0,0.2) 100%),
        radial-gradient(circle at 30% 30%, rgba(255,255,255,0.1) 0%, transparent 60%);
    z-index: 1;
}

.shade-visual::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shine 3s infinite;
    z-index: 3;
}

@keyframes shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

.car-silhouette {
    font-size: 90px;
    color: rgba(255, 255, 255, 0.4);
    z-index: 2;
    position: relative;
    filter: drop-shadow(0 8px 15px rgba(0,0,0,0.5));
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.shade-item:hover .car-silhouette {
    transform: scale(1.15) translateY(-5px);
    color: rgba(255, 255, 255, 0.6);
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.6));
    animation: carBounce 1s ease-in-out;
}

@keyframes carBounce {
    0%, 100% { transform: scale(1.15) translateY(-5px); }
    50% { transform: scale(1.2) translateY(-10px); }
}

/* Different shade backgrounds with enhanced gradients */
.shade-5 {
    background: 
        radial-gradient(circle at 20% 20%, rgba(50, 50, 50, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #0a0a0a 100%);
}

.shade-20 {
    background: 
        radial-gradient(circle at 80% 20%, rgba(80, 80, 80, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 50%, #2a2a2a 100%);
}

.shade-35 {
    background: 
        radial-gradient(circle at 50% 50%, rgba(120, 120, 120, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #3a3a3a 0%, #5a5a5a 50%, #4a4a4a 100%);
}

.shade-50 {
    background: 
        radial-gradient(circle at 30% 70%, rgba(150, 150, 150, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #5a5a5a 0%, #7a7a7a 50%, #6a6a6a 100%);
}

.shade-70 {
    background: 
        radial-gradient(circle at 70% 30%, rgba(180, 180, 180, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, #7a7a7a 0%, #9a9a9a 50%, #8a8a8a 100%);
}

.shade-info {
    padding: 30px 25px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.98) 100%);
    border-radius: 0 0 23px 23px;
}

.shade-percentage {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #1a237e 0%, #0288d1 50%, #00bcd4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    display: inline-block;
    filter: drop-shadow(0 2px 4px rgba(26, 35, 126, 0.2));
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% { filter: drop-shadow(0 2px 4px rgba(26, 35, 126, 0.2)); }
    50% { filter: drop-shadow(0 4px 8px rgba(26, 35, 126, 0.4)); }
}

.shade-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
}

.shade-name::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1a237e, transparent);
    border-radius: 2px;
}

.shade-description {
    font-size: 1rem;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.6;
    font-weight: 400;
}

.vlt-info {
    font-size: 0.9rem;
    color: white;
    font-weight: 700;
    background: linear-gradient(135deg, #1a237e 0%, #0288d1 100%);
    padding: 10px 20px;
    border-radius: 25px;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(26, 35, 126, 0.3);
    transition: all 0.3s ease;
}

.shade-item:hover .vlt-info {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.5);
}

/* Chart Legend */
.chart-legend {
    background: linear-gradient(145deg, #ffffff 0%, #fafbfc 100%);
    border-radius: 30px;
    padding: 50px 45px;
    max-width: 1100px;
    margin: 0 auto;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(26, 35, 126, 0.1) inset;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    z-index: 2;
    border: 3px solid rgba(26, 35, 126, 0.1);
}

.chart-legend::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 20%, rgba(26, 35, 126, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(2, 136, 209, 0.03) 0%, transparent 50%);
    border-radius: 30px;
    z-index: -1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 22px 30px;
    background: white;
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(26, 35, 126, 0.08);
    box-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5) inset;
    position: relative;
    overflow: hidden;
}

.legend-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(180deg, #1a237e 0%, #0288d1 100%);
    transform: scaleY(0);
    transition: transform 0.4s ease;
}

.legend-item:hover::before {
    transform: scaleY(1);
}

.legend-item:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transform: translateX(8px);
    border-color: #1a237e;
    box-shadow: 
        0 10px 30px rgba(26, 35, 126, 0.15),
        0 0 0 1px rgba(26, 35, 126, 0.1) inset;
}

.legend-item i {
    font-size: 2.2rem;
    color: #1a237e;
    min-width: 50px;
    text-align: center;
    transition: all 0.4s ease;
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.1) 0%, rgba(2, 136, 209, 0.1) 100%);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(26, 35, 126, 0.1);
}

.legend-item:hover i {
    transform: scale(1.15) rotate(-5deg);
    background: linear-gradient(135deg, #1a237e 0%, #0288d1 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(26, 35, 126, 0.3);
}

.legend-item span {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
    font-weight: 400;
    flex: 1;
}

.legend-item strong {
    color: #1a237e;
    font-weight: 700;
}

/* Special styling for phone number */
.legend-item:last-child strong {
    color: #0288d1;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .shade-chart-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .tint-shade-chart {
        padding: 60px 5%;
    }

    .tint-shade-chart .section-header h2 {
        font-size: 2rem;
    }

    .tint-shade-chart .section-header p {
        font-size: 1rem;
    }

    .shade-chart-container {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 20px;
    }

    .shade-visual {
        height: 180px;
    }

    .car-silhouette {
        font-size: 60px;
    }

    .shade-percentage {
        font-size: 2rem;
    }

    .shade-name {
        font-size: 1.1rem;
    }

    .shade-description {
        font-size: 0.85rem;
    }

    .shade-item.popular {
        transform: scale(1);
    }

    .shade-item.popular:hover {
        transform: scale(1.02) translateY(-5px);
    }

    .popular-badge {
        font-size: 0.7rem;
        padding: 6px 35px;
    }

    .chart-legend {
        padding: 20px;
    }

    .legend-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .legend-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .shade-chart-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .shade-visual {
        height: 200px;
    }

    .car-silhouette {
        font-size: 70px;
    }

    .shade-item {
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shade-item {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.shade-item:nth-child(1) { animation-delay: 0.1s; }
.shade-item:nth-child(2) { animation-delay: 0.2s; }
.shade-item:nth-child(3) { animation-delay: 0.3s; }
.shade-item:nth-child(4) { animation-delay: 0.4s; }
.shade-item:nth-child(5) { animation-delay: 0.5s; }
