/* RJN Chemicals Production Animation Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.animation-showcase {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    margin-bottom: 60px;
}

header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #1e3c72;
    margin-bottom: 16px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

header p {
    font-size: 1.2rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

.demo-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.demo-section:hover {
    transform: translateY(-5px);
}

.demo-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.demo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

/* Just Add Water Animation */
.just-add-water-animation {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-radius: 15px;
    min-height: 200px;
    position: relative;
}

.powder-container {
    text-align: center;
}

.powder-packet {
    width: 80px;
    height: 100px;
    background: linear-gradient(45deg, #ff6b35, #e55a2b);
    border-radius: 8px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
    animation: packetShimmer 3s infinite alternate;
}

.rjn-logo-small {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.powder-name {
    font-size: 0.7rem;
    font-weight: 600;
}

@keyframes packetShimmer {
    0% { transform: rotate(-2deg) scale(1); }
    100% { transform: rotate(2deg) scale(1.05); }
}

.powder-pour {
    position: relative;
    width: 20px;
    height: 80px;
    margin: 20px auto;
}

.powder-particles {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 3px;
    background: #ff6b35;
    border-radius: 50%;
    animation: pourParticles 2s infinite;
}

.powder-particles::before,
.powder-particles::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ff8c42;
    border-radius: 50%;
    animation: pourParticles 2s infinite;
}

.powder-particles::before {
    left: -5px;
    animation-delay: -0.5s;
}

.powder-particles::after {
    right: -5px;
    animation-delay: -1s;
}

@keyframes pourParticles {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: 80px;
        opacity: 0;
    }
}

.water-container {
    text-align: center;
}

.water-drop {
    width: 24px;
    height: 32px;
    background: linear-gradient(45deg, #42a5f5, #1e88e5);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    margin: 0 auto 10px;
    position: relative;
    animation: dropFloat 2s infinite ease-in-out;
}

@keyframes dropFloat {
    0%, 100% { transform: translateY(-5px); }
    50% { transform: translateY(5px); }
}

.water-level {
    width: 100px;
    height: 80px;
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 100%);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.water-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: linear-gradient(135deg, #42a5f5 0%, #1e88e5 100%);
    border-radius: 0 0 8px 8px;
    animation: waterRise 4s infinite ease-in-out;
}

@keyframes waterRise {
    0% { height: 20%; }
    50% { height: 95%; }
    100% { height: 60%; }
}

.mix-effect {
    position: relative;
    text-align: center;
}

.bubbles {
    position: absolute;
    top: -30px;
    left: -10px;
    right: -10px;
    height: 60px;
}

.bubble {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(66, 165, 245, 0.6);
    border-radius: 50%;
    animation: bubbleUp 2s infinite ease-in-out;
}

.bubble.b1 { animation-delay: 0s; left: 20px; }
.bubble.b2 { animation-delay: -0.3s; left: 40px; }
.bubble.b3 { animation-delay: -0.6s; left: 60px; }
.bubble.b4 { animation-delay: -0.9s; left: 80px; }

@keyframes bubbleUp {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-30px) scale(0.5);
        opacity: 0;
    }
}

.mix-arrow {
    font-size: 2rem;
    color: #27ae60;
    font-weight: bold;
    animation: arrowPulse 1.5s infinite;
}

@keyframes arrowPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.final-product {
    text-align: center;
}

.bottle {
    width: 60px;
    height: 120px;
    background: linear-gradient(135deg, #81c784, #4caf50);
    border-radius: 20px 20px 8px 8px;
    position: relative;
    animation: bottleShimmer 3s infinite alternate;
}

.bottle::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 20px;
    width: 20px;
    height: 15px;
    background: #2e7d32;
    border-radius: 4px 4px 0 0;
}

@keyframes bottleShimmer {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); box-shadow: 0 10px 25px rgba(129, 199, 132, 0.4); }
}

.bottle-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    opacity: 0;
    animation: contentAppear 3s infinite 2s;
}

@keyframes contentAppear {
    0% { opacity: 0; }
    50%, 100% { opacity: 1; }
}

.check {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #fff;
}

.demo-description {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

/* Product Showcase */
.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    width: 100%;
}

.product-card-animated {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card-animated:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.product-card-animated.sanitiserplus:hover {
    border-color: #27ae60;
}

.product-card-animated.freshclean:hover {
    border-color: #ff6b35;
}

.product-visual {
    text-align: center;
    height: 120px;
    position: relative;
}

.product-powder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 20px auto;
    animation: powderFloat 3s infinite ease-in-out;
}

.product-card-animated.sanitiserplus .product-powder {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.product-card-animated.freshclean .product-powder {
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
}

@keyframes powderFloat {
    0%, 100% { transform: translateY(-5px); }
    50% { transform: translateY(-15px); }
}

.certification-badges {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.badge {
    background: #ffd54f;
    color: #f57f17;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    animation: badgeBounce 2s infinite ease-in-out;
}

.badge:nth-child(2) {
    animation-delay: -1s;
}

@keyframes badgeBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-3px) scale(1.05); }
}

.product-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.product-content p {
    color: #6c757d;
    margin-bottom: 20px;
}

.effect-showcase {
    height: 40px;
    position: relative;
    margin-top: 20px;
}

.germ-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.germ {
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50% 30% 50% 30%;
    position: absolute;
    animation: germDisappear 5s infinite ease-in-out;
}

.germ-1 { left: -20px; animation-delay: -1s; }
.germ-2 { left: -5px; animation-delay: -2s; }
.germ-3 { left: 10px; animation-delay: -3s; }

@keyframes germDisappear {
    0%, 70% { 
        opacity: 1; 
        transform: scale(1) rotate(0deg);
    }
    80%, 100% { 
        opacity: 0; 
        transform: scale(0.3) rotate(180deg);
    }
}

.surface-effects {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.surface {
    width: 30px;
    height: 15px;
    border-radius: 3px;
    animation: surfaceShine 2s infinite ease-in-out;
}

.surface.glass { background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(173,216,230,0.8)); animation-delay: 0s; }
.surface.steel { background: linear-gradient(135deg, #95a5a6, #7f8c8d); animation-delay: -0.5s; }
.surface.floor { background: linear-gradient(135deg, #bdc3c7, #95a5a6); animation-delay: -1s; }

@keyframes surfaceShine {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }
}

/* Environmental Impact */
.environmental-comparison {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.traditional-method,
.concentrated-method {
    text-align: center;
    padding: 30px;
    border-radius: 15px;
    position: relative;
}

.traditional-method {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
}

.concentrated-method {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
}

.traditional-method h3,
.concentrated-method h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.water-transport .truck {
    display: inline-block;
    position: relative;
    animation: truckMove 3s infinite ease-in-out;
}

.water-transport .container {
    background: linear-gradient(135deg, #64b5f6, #1976d2);
    border-radius: 5px;
    position: relative;
}

.water-transport .container.large {
    width: 90px;
    height: 40px;
    margin-bottom: 5px;
}

.wheels {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.wheel {
    width: 15px;
    height: 15px;
    background: #2c3e50;
    border-radius: 50%;
    animation: wheelRotate 1s infinite linear;
}

@keyframes truckMove {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(0); }
    75% { transform: translateX(-5px); }
}

@keyframes wheelRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.waste-indicators {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0;
}

.waste {
    animation: wastePulse 2s infinite ease-in-out;
}

.waste1 { animation-delay: 0s; }
.waste2 { animation-delay: -1s; }

.bottle.empty {
    width: 12px;
    height: 25px;
    background: transparent;
    border: 2px solid #e74c3c;
    border-radius: 3px 3px 8px 8px;
}

.trash {
    width: 15px;
    height: 15px;
    background: #e74c3c;
    clip-path: path('M2,2 L15,2 L14,4 L13,15 L3,15 L2,4 Z');
}

@keyframes wastePulse {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    50% { 
        opacity: 0.7; 
        transform: scale(1.1);
    }
}

.impact-badges,
.eco-indicators {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.impact-badge {
    background: #ffcdd2;
    color: #d32f2f;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: impactWarning 2s infinite alternate;
}

@keyframes impactWarning {
    0% { background: #ffcdd2; }
    100% { background: #ff8a80; }
}

.eco-badge {
    background: #c8e6c9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
    animation: ecoGlow 2s infinite alternate;
}

.eco-icon {
    margin-right: 5px;
}

@keyframes ecoGlow {
    0% { background: #c8e6c9; }
    100% { background: #a5d6a7; box-shadow: 0 0 10px rgba(76, 175, 80, 0.3); }
}

.light-transport .truck {
    display: inline-block;
    position: relative;
    animation: modernTruck 3s infinite ease-in-out;
}

.light-transport .container.small {
    width: 40px;
    height: 25px;
    background: linear-gradient(135deg, #66bb6a, #4caf50);
    border-radius: 5px;
    margin-bottom: 5px;
    animation: ecoContainer 3s infinite ease-in-out;
}

.light-transport .wheel {
    background: #27ae60;
    animation: ecoWheel 1s infinite linear;
}

@keyframes modernTruck {
    0%, 100% { transform: translateX(0) rotate(-1deg); }
    25% { transform: translateX(3px) rotate(0deg); }
    50% { transform: translateX(0) rotate(1deg); }
    75% { transform: translateX(-3px) rotate(0deg); }
}

@keyframes ecoContainer {
    0%, 100% { box-shadow: 0 0 5px rgba(76, 175, 80, 0.3); }
    50% { box-shadow: 0 0 15px rgba(76, 175, 80, 0.6); }
}

@keyframes ecoWheel {
    0% { transform: rotate(0deg); background: #27ae60; }
    100% { transform: rotate(360deg); background: #4caf50; }
}

.environmental-logo {
    margin-top: 20px;
    text-align: center;
}

.planet.earth {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4fc3f7, #29b6f6);
    border-radius: 50%;
    position: relative;
    animation: planetRotate 10s infinite linear;
    margin: 0 auto;
}

.planet.earth::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 30%;
    width: 15px;
    height: 8px;
    background: #66bb6a;
    border-radius: 50% 60% 40% 70%;
    animation: continentMove 5s infinite ease-in-out;
}

.planet.earth::after {
    content: '';
    position: absolute;
    top: 60%;
    right: 25%;
    width: 20px;
    height: 12px;
    background: #66bb6a;
    border-radius: 40% 70% 50% 60%;
    animation: continentMove 5s infinite ease-in-out 2.5s;
}

@keyframes planetRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes continentMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-3px, -2px) scale(1.1); }
}

.vs-divider {
    font-size: 2rem;
    font-weight: 800;
    color: #2c3e50;
    background: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: vsPulse 2s infinite ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@keyframes vsPulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    50% { 
        transform: scale(1.1);
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }
}

/* Logo Animation */
.rjn-logo-animation {
    text-align: center;
    padding: 60px 0;
}

.logo-container {
    position: relative;
    display: inline-block;
    animation: logoEntrance 2s ease-out;
}

@keyframes logoEntrance {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(0.5) rotate(-90deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.rjn-text {
    font-size: 3rem;
    font-weight: 800;
    color: #1e3c72;
    position: relative;
}

.rjn-text .r,
.rjn-text .j,
.rjn-text .n {
    display: inline-block;
    animation: letterReveal 0.6s ease-out forwards;
    opacity: 0;
}

.rjn-text .r {
    animation-delay: 0.2s;
}

.rjn-text .j {
    animation-delay: 0.4s;
}

.rjn-text .n {
    animation-delay: 0.6s;
}

@keyframes letterReveal {
    0% {
        transform: translateY(-20px) scale(0.8);
        opacity: 0;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.chemicals {
    font-size: 1rem;
    font-weight: 600;
    color: #ff6b35;
    letter-spacing: 2px;
    margin-top: 5px;
    animation: chemicalsFadeIn 0.8s ease-out 0.8s forwards;
    opacity: 0;
}

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

.logo-accent {
    position: absolute;
    top: -10px;
    right: -15px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff6b35, #e55a2b);
    border-radius: 50%;
    animation: accentSparkle 2s infinite ease-in-out;
}

@keyframes accentSparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        box-shadow: 0 0 5px rgba(255, 107, 53, 0.5);
    }
    50% {
        transform: scale(1.3) rotate(180deg);
        box-shadow: 0 0 15px rgba(255, 107, 53, 0.8);
    }
}

.tagline {
    font-size: 1rem;
    color: #6c757d;
    margin-top: 20px;
    animation: taglineSlideIn 1s ease-out 1.2s both;
    opacity: 0;
}

@keyframes taglineSlideIn {
    0% {
        transform: translateX(-20px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

footer {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

footer p {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.capabilities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.cap {
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    animation: capGlow 3s infinite ease-in-out;
}

.cap:nth-child(2) { animation-delay: -0.5s; }
.cap:nth-child(3) { animation-delay: -1s; }
.cap:nth-child(4) { animation-delay: -1.5s; }
.cap:nth-child(5) { animation-delay: -2s; }
.cap:nth-child(6) { animation-delay: -2.5s; }

@keyframes capGlow {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(30, 60, 114, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(30, 60, 114, 0.5);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .just-add-water-animation {
        flex-direction: column;
        gap: 30px;
    }
    
    .product-showcase {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .environmental-comparison {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .vs-divider {
        order: 2;
        margin: 0 auto;
    }
    
    .traditional-method {
        order: 1;
    }
    
    .concentrated-method {
        order: 3;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .demo-section {
        padding: 20px;
    }
}