/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: white;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.rainbow-loader {
    width: 300px;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.rainbow-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, 
        #ffb3d9, #ffccb3, #ffffb3, #ccffb3, 
        #b3ffcc, #b3ffff, #b3ccff, #ccb3ff);
    border-radius: 4px;
    animation: rainbowFill 3s ease-in-out forwards;
}

@keyframes rainbowFill {
    0% { width: 0%; }
    100% { width: 100%; }
}

/* Main Content */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation */
.navigation {
    margin-bottom: 30px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #0056b3;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 50px;
}

/* Animated Title */
.animated-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
    display: inline-block;
}

.animated-title span {
    display: inline-block;
    animation: colorWave 3s ease-in-out infinite;
}

.animated-title span:nth-child(1) { animation-delay: 0s; }
.animated-title span:nth-child(2) { animation-delay: 0.1s; }
.animated-title span:nth-child(3) { animation-delay: 0.2s; }
.animated-title span:nth-child(4) { animation-delay: 0.3s; }
.animated-title span:nth-child(5) { animation-delay: 0.4s; }
.animated-title span:nth-child(6) { animation-delay: 0.5s; }
.animated-title span:nth-child(7) { animation-delay: 0.6s; }
.animated-title span:nth-child(8) { animation-delay: 0.7s; }
.animated-title span:nth-child(9) { animation-delay: 0.8s; }
.animated-title span:nth-child(10) { animation-delay: 0.9s; }
.animated-title span:nth-child(11) { animation-delay: 1s; }
.animated-title span:nth-child(12) { animation-delay: 1.1s; }
.animated-title span:nth-child(13) { animation-delay: 1.2s; }
.animated-title span:nth-child(14) { animation-delay: 1.3s; }
.animated-title span:nth-child(15) { animation-delay: 1.4s; }

@keyframes colorWave {
    0%, 100% { 
        color: #2c3e50; 
        transform: scale(1);
    }
    25% { 
        color: #e74c3c; 
        transform: scale(1.1);
    }
    50% { 
        color: #3498db; 
        transform: scale(1.2);
    }
    75% { 
        color: #f39c12; 
        transform: scale(1.1);
    }
}

.description {
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    color: #555;
}

/* Sections */
.preloader-section {
    margin-bottom: 60px;
}

.preloader-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

/* Preloader Grid */
.preloader-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.preloader-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.preloader-item:hover {
    transform: translateY(-5px);
}

.preloader-item h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.2rem;
}

/* Circular Preloaders */
.circular-preloader {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Classic Spinner */
.spinner-border {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Pizza Chomping */
.pizza-chomping {
    width: 80px;
    height: 80px;
    position: relative;
}

.pizza-slice {
    font-size: 60px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pizzaRotate 4s linear infinite;
}

.bite-marks {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.bite {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation: biteAppear 4s linear infinite;
}

.bite1 {
    top: 20%;
    right: 10%;
    width: 15px;
    height: 15px;
    animation-delay: 0.5s;
}

.bite2 {
    top: 40%;
    right: 5%;
    width: 25px;
    height: 25px;
    animation-delay: 1s;
}

.bite3 {
    top: 60%;
    right: 15%;
    width: 12px;
    height: 12px;
    animation-delay: 1.5s;
}

.bite4 {
    top: 80%;
    right: 25%;
    width: 18px;
    height: 18px;
    animation-delay: 2s;
}

@keyframes pizzaRotate {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(5deg); }
    50% { transform: translate(-50%, -50%) rotate(-5deg); }
    75% { transform: translate(-50%, -50%) rotate(3deg); }
}

@keyframes biteAppear {
    0%, 12% { opacity: 0; transform: scale(0); }
    15%, 85% { opacity: 1; transform: scale(1); }
    100% { opacity: 0; transform: scale(0); }
}

/* Pulse Dot */
.pulse-circle {
    width: 40px;
    height: 40px;
    background: #e74c3c;
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Orbital Dots */
.orbital-dots {
    width: 60px;
    height: 60px;
    position: relative;
}

.orbital-dots .dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #9b59b6;
    border-radius: 50%;
    animation: orbit 2s linear infinite;
}

.dot1 { animation-delay: 0s; }
.dot2 { animation-delay: 0.66s; }
.dot3 { animation-delay: 1.33s; }

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(25px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(25px) rotate(-360deg); }
}

/* Clock Loader */
.clock-loader {
    width: 50px;
    height: 50px;
    border: 3px solid #34495e;
    border-radius: 50%;
    position: relative;
}

.clock-hand {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 20px;
    background: #e67e22;
    transform-origin: bottom;
    transform: translate(-50%, -100%) rotate(0deg);
    animation: clockTick 2s linear infinite;
}

@keyframes clockTick {
    0% { transform: translate(-50%, -100%) rotate(0deg); }
    100% { transform: translate(-50%, -100%) rotate(360deg); }
}

/* Gradient Ring */
.gradient-ring .ring {
    width: 50px;
    height: 50px;
    border: 4px solid transparent;
    border-top: 4px solid #f39c12;
    border-right: 4px solid #e74c3c;
    border-bottom: 4px solid #9b59b6;
    border-left: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

/* Origami Crane */
.origami-crane {
    width: 80px;
    height: 80px;
    position: relative;
}

.paper-square {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #ff9999, #66ccff);
    transform: translate(-50%, -50%) rotate(45deg);
    animation: paperFold 4s ease-in-out infinite;
    border-radius: 2px;
}

.crane {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    opacity: 0;
    animation: craneAppear 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes paperFold {
    0%, 100% { 
        transform: translate(-50%, -50%) rotate(45deg) scale(1);
        opacity: 1;
        border-radius: 2px;
    }
    25% { 
        transform: translate(-50%, -50%) rotate(90deg) scale(0.8);
        border-radius: 50% 2px 50% 2px;
    }
    50% { 
        transform: translate(-50%, -50%) rotate(180deg) scale(0.6);
        border-radius: 50%;
        opacity: 0.5;
    }
    75% { 
        transform: translate(-50%, -50%) rotate(270deg) scale(0.4);
        opacity: 0.2;
    }
}

@keyframes craneAppear {
    0%, 45% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    }
    55%, 85% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1) rotate(360deg);
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.3) rotate(720deg);
    }
}

/* Ansel's Ecommerce */
.ansels-ecommerce {
    width: 80px;
    height: 80px;
    position: relative;
}

.rotating-text {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: rotateText 4s linear infinite;
}

.rotating-text span {
    position: absolute;
    left: 50%;
    font-size: 10px;
    font-weight: bold;
    color: #3498db;
    transform-origin: 0 40px;
}

.rotating-text span:nth-child(1) { transform: translate(-50%, 0) rotate(0deg); }
.rotating-text span:nth-child(2) { transform: translate(-50%, 0) rotate(20deg); }
.rotating-text span:nth-child(3) { transform: translate(-50%, 0) rotate(40deg); }
.rotating-text span:nth-child(4) { transform: translate(-50%, 0) rotate(60deg); }
.rotating-text span:nth-child(5) { transform: translate(-50%, 0) rotate(80deg); }
.rotating-text span:nth-child(6) { transform: translate(-50%, 0) rotate(100deg); }
.rotating-text span:nth-child(7) { transform: translate(-50%, 0) rotate(120deg); }
.rotating-text span:nth-child(8) { transform: translate(-50%, 0) rotate(140deg); }
.rotating-text span:nth-child(9) { transform: translate(-50%, 0) rotate(160deg); }
.rotating-text span:nth-child(10) { transform: translate(-50%, 0) rotate(180deg); }
.rotating-text span:nth-child(11) { transform: translate(-50%, 0) rotate(200deg); }
.rotating-text span:nth-child(12) { transform: translate(-50%, 0) rotate(220deg); }
.rotating-text span:nth-child(13) { transform: translate(-50%, 0) rotate(240deg); }
.rotating-text span:nth-child(14) { transform: translate(-50%, 0) rotate(260deg); }
.rotating-text span:nth-child(15) { transform: translate(-50%, 0) rotate(280deg); }
.rotating-text span:nth-child(16) { transform: translate(-50%, 0) rotate(300deg); }
.rotating-text span:nth-child(17) { transform: translate(-50%, 0) rotate(320deg); }

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

/* Heartbeat */
.heartbeat i {
    font-size: 30px;
    color: #e74c3c;
    animation: heartbeat 1.5s ease-in-out infinite;
}

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

/* Horizontal Preloaders */
.horizontal-preloader {
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Progress Bar */
/* Playground Swing */
.playground-swing {
    width: 180px;
    height: 80px;
    position: relative;
}

.playground-scene {
    width: 100%;
    height: 100%;
    position: relative;
    background: linear-gradient(180deg, #b8e6ff 0%, #c8f7c5 70%);
    border-radius: 8px;
    overflow: hidden;
}

/* Slide */
.slide {
    position: absolute;
    right: 10px;
    bottom: 0;
}

.slide-ladder {
    position: absolute;
    width: 3px;
    height: 35px;
    background: #8b4513;
    right: 25px;
    bottom: 0;
}

.slide-ladder::before {
    content: '';
    position: absolute;
    width: 12px;
    height: 2px;
    background: #8b4513;
    top: 8px;
    right: -2px;
    box-shadow: 0 6px 0 #8b4513, 0 12px 0 #8b4513, 0 18px 0 #8b4513;
}

.slide-platform {
    position: absolute;
    width: 22px;
    height: 10px;
    background: linear-gradient(145deg, #ff6b6b, #ff4757);
    right: 14px;
    bottom: 35px;
    border-radius: 3px;
    box-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.slide-platform::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 2px;
    background: #ff4757;
    top: 2px;
    left: 2px;
    border-radius: 1px;
}

.slide-ramp {
    position: absolute;
    width: 35px;
    height: 30px;
    background: linear-gradient(145deg, #ff6b6b, #ff4757);
    right: 35px;
    bottom: 8px;
    border-radius: 8px 0 12px 8px;
    transform: skewX(-12deg);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.slide-ramp::before {
    content: '';
    position: absolute;
    width: 3px;
    height: 20px;
    background: #ddd;
    left: 5px;
    top: 5px;
    border-radius: 1px;
    box-shadow: 8px 0 0 #ddd, 16px 0 0 #ddd;
}

/* Swing Set */
.swing-set {
    position: absolute;
    left: 20px;
    bottom: 0;
}

.swing-frame-left {
    position: absolute;
    width: 3px;
    height: 45px;
    background: #8b4513;
    left: 0;
    bottom: 0;
    transform: rotate(10deg);
    transform-origin: bottom;
}

.swing-frame-right {
    position: absolute;
    width: 3px;
    height: 45px;
    background: #8b4513;
    left: 40px;
    bottom: 0;
    transform: rotate(-10deg);
    transform-origin: bottom;
}

.swing-top-bar {
    position: absolute;
    width: 45px;
    height: 3px;
    background: #8b4513;
    left: 0;
    bottom: 40px;
    border-radius: 2px;
}

.swing-chain-left {
    position: absolute;
    width: 1px;
    height: 25px;
    background: #666;
    left: 15px;
    bottom: 15px;
    transform-origin: top;
    animation: swingChain 3s ease-in-out infinite;
}

.swing-chain-right {
    position: absolute;
    width: 1px;
    height: 25px;
    background: #666;
    left: 25px;
    bottom: 15px;
    transform-origin: top;
    animation: swingChain 3s ease-in-out infinite;
}

.swing-seat {
    position: absolute;
    width: 12px;
    height: 3px;
    background: #8b4513;
    left: 14px;
    bottom: 15px;
    border-radius: 2px;
    animation: swingSeat 3s ease-in-out infinite;
}

.child {
    position: absolute;
    font-size: 12px;
    left: 16px;
    bottom: 18px;
    animation: swingChild 3s ease-in-out infinite;
}

@keyframes swingChain {
    0%, 100% { transform: rotate(25deg); }
    50% { transform: rotate(-25deg); }
}

@keyframes swingSeat {
    0%, 100% { 
        transform: translateX(8px) translateY(-6px) rotate(25deg);
    }
    50% { 
        transform: translateX(-8px) translateY(-6px) rotate(-25deg);
    }
}

@keyframes swingChild {
    0%, 100% { 
        transform: translateX(6px) translateY(-8px) rotate(20deg);
    }
    50% { 
        transform: translateX(-10px) translateY(-8px) rotate(-20deg);
    }
}

/* Number Counter */
.number-counter {
    display: flex;
    justify-content: center;
    align-items: center;
}

.counter-display {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    min-width: 60px;
    text-align: center;
}

/* Wave Loader */
.wave-loader {
    display: flex;
    gap: 4px;
    align-items: center;
}

.wave-bar {
    width: 6px;
    height: 40px;
    background: #3498db;
    animation: wave 1.2s ease-in-out infinite;
}

.wave-bar:nth-child(1) { animation-delay: 0s; }
.wave-bar:nth-child(2) { animation-delay: 0.1s; }
.wave-bar:nth-child(3) { animation-delay: 0.2s; }
.wave-bar:nth-child(4) { animation-delay: 0.3s; }
.wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes wave {
    0%, 40%, 100% { transform: scaleY(0.4); }
    20% { transform: scaleY(1); }
}

/* Typing Dots */
.typing-dots {
    display: flex;
    gap: 8px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    background: #95a5a6;
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(1) { animation-delay: 0s; }
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
    0%, 60%, 100% { transform: scale(1); opacity: 0.5; }
    30% { transform: scale(1.2); opacity: 1; }
}

/* Loading Text */
.loading-text {
    display: flex;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.loading-text span {
    animation: textWave 1.5s ease-in-out infinite;
}

.loading-text span:nth-child(1) { animation-delay: 0s; }
.loading-text span:nth-child(2) { animation-delay: 0.1s; }
.loading-text span:nth-child(3) { animation-delay: 0.2s; }
.loading-text span:nth-child(4) { animation-delay: 0.3s; }
.loading-text span:nth-child(5) { animation-delay: 0.4s; }
.loading-text span:nth-child(6) { animation-delay: 0.5s; }
.loading-text span:nth-child(7) { animation-delay: 0.6s; }

@keyframes textWave {
    0%, 40%, 100% { transform: translateY(0); }
    20% { transform: translateY(-10px); }
}

/* Bouncing Balls */
.bouncing-balls {
    display: flex;
    gap: 8px;
}

.bouncing-balls .ball {
    width: 15px;
    height: 15px;
    background: #f39c12;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.bouncing-balls .ball:nth-child(1) { animation-delay: 0s; }
.bouncing-balls .ball:nth-child(2) { animation-delay: 0.2s; }
.bouncing-balls .ball:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-20px); }
}

/* Sliding Bar */
.sliding-bar {
    width: 200px;
    height: 6px;
    background: #ecf0f1;
    border-radius: 3px;
    position: relative;
    overflow: hidden;
}

.slider {
    width: 50px;
    height: 100%;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 3px;
    animation: slide 2s ease-in-out infinite;
}

@keyframes slide {
    0% { transform: translateX(-50px); }
    50% { transform: translateX(200px); }
    100% { transform: translateX(-50px); }
}

/* ECG Pulse Line */
.pulse-line .line {
    width: 150px;
    height: 70px;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.pulse-line .line::before {
    content: '';
    position: absolute;
    top: 50%;
    left: -250px;
    width: 250px;
    height: 10px;
    background: #e74c3c;
    transform: translateY(-50%);
    clip-path: polygon(
        0% 50%, 
        8% 50%, 
        12% 10%, 
        16% 90%, 
        18% 5%, 
        20% 95%, 
        22% 15%, 
        24% 85%, 
        28% 50%, 
        35% 50%, 
        40% 20%, 
        44% 80%, 
        46% 30%, 
        48% 70%, 
        52% 50%, 
        100% 50%
    );
    animation: ecgZigzag 2.5s linear infinite;
}

@keyframes ecgZigzag {
    0% { 
        left: -250px;
    }
    100% { 
        left: 150px;
    }
}

/* Vertical Preloaders */
.vertical-preloader {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Vertical Progress */
.vertical-progress {
    width: 8px;
    height: 80px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.vertical-progress .progress-fill {
    width: 100%;
    background: linear-gradient(0deg, #e74c3c, #f39c12, #f1c40f, #2ecc71, #3498db, #9b59b6);
    height: 0%;
    position: absolute;
    bottom: 0;
    border-radius: 4px;
    animation: verticalFill 3s ease-in-out infinite;
}

@keyframes verticalFill {
    0%, 100% { height: 0%; }
    50% { height: 100%; }
}

/* Battery Loader */
.battery-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.battery-body {
    width: 30px;
    height: 60px;
    border: 2px solid #34495e;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.battery-fill {
    width: 100%;
    background: #27ae60;
    position: absolute;
    bottom: 0;
    height: 0%;
    transition: height 0.1s ease;
    animation: batteryCharge 5s linear infinite;
}

.battery-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 8px;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.5);
}

.battery-tip {
    width: 15px;
    height: 5px;
    background: #34495e;
    border-radius: 2px;
}

@keyframes batteryCharge {
    0% { height: 0%; }
    100% { height: 100%; }
}

/* Elevator */
.elevator-shaft {
    width: 40px;
    height: 80px;
    border: 2px solid #34495e;
    border-radius: 4px;
    position: relative;
    background: #ecf0f1;
}

.elevator-car {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    color: #e74c3c;
    font-size: 20px;
    animation: elevatorMove 3s ease-in-out infinite;
}

@keyframes elevatorMove {
    0%, 100% { 
        bottom: 2px; 
        transform: translateX(-50%);
    }
    50% { 
        bottom: calc(100% - 25px); 
        transform: translateX(-50%);
    }
}

/* House Assembly */
.house-assembly {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 60px;
}

.construction-site {
    position: relative;
    width: 50px;
    height: 50px;
}

.brick {
    position: absolute;
    font-size: 16px;
    opacity: 0;
    animation: brickLaying 4s ease-in-out infinite;
}

.brick1 { 
    bottom: 0;
    left: 10px;
    animation-delay: 0s; 
}
.brick2 { 
    bottom: 0;
    right: 10px;
    animation-delay: 0.5s; 
}
.brick3 { 
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s; 
}

.final-house {
    position: absolute;
    font-size: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    animation: houseComplete 4s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes brickLaying {
    0%, 12% { opacity: 0; transform: translateY(20px) scale(0.5); }
    25%, 45% { opacity: 1; transform: translateY(0) scale(1); }
    55%, 100% { opacity: 0; transform: translateY(-5px) scale(0.8); }
}

@keyframes houseComplete {
    0%, 45% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
    55%, 85% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
}

/* Thermometer */
.thermometer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.temp-scale {
    width: 15px;
    height: 70px;
    background: #ecf0f1;
    border-radius: 7px;
    position: relative;
    overflow: hidden;
}

.temp-fill {
    width: 100%;
    background: linear-gradient(0deg, #e74c3c, #f39c12, #f1c40f);
    position: absolute;
    bottom: 0;
    height: 0%;
    border-radius: 7px;
    animation: tempRise 4s ease-in-out infinite;
}

.temp-bulb {
    width: 20px;
    height: 20px;
    background: #e74c3c;
    border-radius: 50%;
}

.temp-display {
    margin-top: 10px;
    font-size: 12px;
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
}

@keyframes tempRise {
    0%, 100% { height: 0%; }
    50% { height: 100%; }
}

/* Rocket Launch */
.rocket-launch {
    position: relative;
    height: 100px;
}

.rocket {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    font-size: 24px;
    animation: rocketFly 4s ease-in-out infinite;
}

.flames {
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 16px;
    animation: flameFlicker 0.5s ease-in-out infinite alternate, rocketFly 4s ease-in-out infinite;
}

.smoke {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    opacity: 0.7;
    animation: smokeRise 4s ease-in-out infinite;
}

.trail {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 0;
    background: linear-gradient(0deg, #f39c12, transparent);
    animation: rocketTrail 4s ease-in-out infinite;
}

@keyframes rocketFly {
    0%, 100% { bottom: 0; }
    50% { bottom: 70px; }
}

@keyframes rocketTrail {
    0%, 100% { height: 0; }
    50% { height: 40px; }
}

@keyframes flameFlicker {
    0% { transform: translateX(-50%) scale(1); }
    100% { transform: translateX(-50%) scale(1.2); }
}

@keyframes smokeRise {
    0%, 100% { bottom: -10px; opacity: 0.7; transform: translateX(-50%) scale(1); }
    50% { bottom: 30px; opacity: 0.3; transform: translateX(-50%) scale(1.5); }
}

/* Water Fill */
.water-fill .container {
    width: 50px;
    height: 80px;
    border: 2px solid #3498db;
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.water {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: #3498db;
    height: 0%;
    animation: waterFill 4s ease-in-out infinite;
}

.wave {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, transparent 50%, rgba(52, 152, 219, 0.3) 50%);
    animation: waveEffect 1s ease-in-out infinite;
}

@keyframes waterFill {
    0%, 100% { height: 0%; }
    50% { height: 100%; }
}

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

/* Plant Growth */
.plant-growth {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.plant {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.stem {
    width: 4px;
    height: 0px;
    background: #8B4513;
    border-radius: 2px;
    animation: stemGrow 6s ease-in-out infinite;
}

.leaves {
    display: flex;
    gap: 5px;
    position: absolute;
    top: 0;
    opacity: 0;
    animation: leavesGrow 6s ease-in-out infinite;
    animation-delay: 2s;
}

.leaf {
    font-size: 14px;
    opacity: 0;
    animation: leafAppear 6s ease-in-out infinite;
}

.leaf1 {
    animation-delay: 2.5s;
}

.leaf2 {
    animation-delay: 3s;
}

.flower {
    font-size: 24px;
    opacity: 0;
    animation: flowerBloom 6s ease-in-out infinite;
    animation-delay: 4s;
    position: absolute;
    top: -15px;
}

/* Removed pot styling */

@keyframes stemGrow {
    0%, 100% { height: 0px; }
    30% { height: 35px; }
    70% { height: 35px; }
}

@keyframes leavesGrow {
    0%, 30%, 100% { opacity: 0; transform: translateY(10px); }
    50%, 70% { opacity: 1; transform: translateY(-15px); }
}

@keyframes leafAppear {
    0%, 40%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
    60%, 80% { opacity: 1; transform: scale(1) rotate(15deg); }
}

@keyframes flowerBloom {
    0%, 60%, 100% { opacity: 0; transform: scale(0); }
    80%, 90% { opacity: 1; transform: scale(1.2); }
}

/* Creative Preloaders */
.creative-preloader {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* DNA Helix */
.dna-helix {
    width: 60px;
    height: 80px;
    position: relative;
}

.helix {
    width: 100%;
    height: 100%;
    position: relative;
}

.strand {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    transform-origin: center;
    animation: dnaRotate 3s linear infinite;
}

.strand1 {
    animation-delay: 0s;
}

.strand1::before,
.strand1::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #9b59b6;
    border-radius: 50%;
    left: 0;
}

.strand1::before { top: 10%; }
.strand1::after { top: 30%; }

.strand2 {
    animation-delay: 1.5s;
    animation-direction: reverse;
}

.strand2::before,
.strand2::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 4px;
    background: #e74c3c;
    border-radius: 50%;
    right: 0;
}

.strand2::before { top: 20%; }
.strand2::after { top: 40%; }

/* Create the helix shape with multiple points */
.strand1::before { animation: helixPoint1 3s linear infinite; }
.strand1::after { animation: helixPoint2 3s linear infinite; }
.strand2::before { animation: helixPoint3 3s linear infinite; }
.strand2::after { animation: helixPoint4 3s linear infinite; }

@keyframes dnaRotate {
    0% { transform: translateX(-50%) rotateY(0deg); }
    100% { transform: translateX(-50%) rotateY(360deg); }
}

@keyframes helixPoint1 {
    0%, 100% { transform: translateX(20px) scale(1); }
    50% { transform: translateX(-20px) scale(1.2); }
}

@keyframes helixPoint2 {
    0%, 100% { transform: translateX(-15px) scale(1.2); }
    50% { transform: translateX(15px) scale(1); }
}

@keyframes helixPoint3 {
    0%, 100% { transform: translateX(-20px) scale(1); }
    50% { transform: translateX(20px) scale(1.2); }
}

@keyframes helixPoint4 {
    0%, 100% { transform: translateX(15px) scale(1.2); }
    50% { transform: translateX(-15px) scale(1); }
}

/* Morphing Shapes */
.morphing-shapes .shape {
    width: 40px;
    height: 40px;
    background: #e74c3c;
    animation: morph 3s ease-in-out infinite;
}

@keyframes morph {
    0%, 100% { border-radius: 0; transform: rotate(0deg); }
    25% { border-radius: 50%; transform: rotate(90deg); }
    50% { border-radius: 0; transform: rotate(180deg); }
    75% { border-radius: 50%; transform: rotate(270deg); }
}

/* Solar System */
.solar-system {
    width: 80px;
    height: 80px;
    position: relative;
}

.sun {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    background: #f39c12;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.planet {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    top: 50%;
    left: 50%;
}

.planet1 {
    background: #3498db;
    animation: orbit1 2s linear infinite;
}

.planet2 {
    background: #e74c3c;
    animation: orbit2 3s linear infinite;
}

.planet3 {
    background: #27ae60;
    animation: orbit3 4s linear infinite;
}

@keyframes orbit1 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(25px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(25px) rotate(-360deg); }
}

@keyframes orbit2 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(35px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(35px) rotate(-360deg); }
}

@keyframes orbit3 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(45px) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(45px) rotate(-360deg); }
}

/* 3D Cube */
.cube-flip {
    perspective: 200px;
}

.cube {
    position: relative;
    width: 50px;
    height: 50px;
    transform-style: preserve-3d;
    animation: cubeSpin 3s linear infinite;
}

.face {
    position: absolute;
    width: 50px;
    height: 50px;
    opacity: 0.8;
}

.front { background: #3498db; transform: translateZ(25px); }
.back { background: #e74c3c; transform: rotateY(180deg) translateZ(25px); }
.right { background: #f39c12; transform: rotateY(90deg) translateZ(25px); }
.left { background: #27ae60; transform: rotateY(-90deg) translateZ(25px); }
.top { background: #9b59b6; transform: rotateX(90deg) translateZ(25px); }
.bottom { background: #e67e22; transform: rotateX(-90deg) translateZ(25px); }

@keyframes cubeSpin {
    0% { transform: rotateX(0deg) rotateY(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg); }
}

/* Hourglass */
.hourglass-shape {
    width: 50px;
    height: 70px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.hourglass-top, .hourglass-bottom {
    width: 100%;
    height: 35%;
    border: 3px solid #8B4513;
    position: relative;
    overflow: hidden;
}

.hourglass-top {
    border-bottom: none;
    clip-path: polygon(0 0, 100% 0, 70% 100%, 30% 100%);
}

.hourglass-bottom {
    border-top: none;
    clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%);
}

.hourglass-middle {
    height: 30%;
    width: 8px;
    background: #8B4513;
    align-self: center;
    position: relative;
    border-radius: 2px;
}

.sand-particles {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, #F4A460, #DEB887);
    animation: sandFall 4s ease-in-out infinite;
}

.sand-accumulate {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(0deg, #F4A460, #DEB887);
    animation: sandCollect 4s ease-in-out infinite;
}

@keyframes sandFall {
    0%, 100% { height: 80%; }
    50% { height: 20%; }
}

@keyframes sandCollect {
    0%, 100% { height: 0%; }
    50% { height: 60%; }
}

/* Ocean Swimming */
.ocean-swimming {
    width: 140px;
    height: 80px;
    position: relative;
    background: linear-gradient(180deg, #87ceeb, #4682b4, #191970);
    border-radius: 10px;
    overflow: hidden;
}

.sea-creature {
    position: absolute;
    font-size: 22px;
    animation: swim 6s ease-in-out infinite;
}

.fish1 {
    animation-delay: 0s;
    animation-duration: 4s;
}

.fish2 {
    animation-delay: 1s;
    animation-duration: 5s;
}

.octopus {
    animation-delay: 2s;
    animation-duration: 6s;
    font-size: 20px;
}

.crab {
    animation-delay: 3s;
    animation-duration: 7s;
    font-size: 18px;
}

.fish3 {
    animation-delay: 4s;
    animation-duration: 4.5s;
}

@keyframes swim {
    0% { 
        left: -25px; 
        top: 20%;
        transform: rotate(0deg);
    }
    25% { 
        left: 25%; 
        top: 60%;
        transform: rotate(-10deg);
    }
    50% { 
        left: 60%; 
        top: 30%;
        transform: rotate(10deg);
    }
    75% { 
        left: 80%; 
        top: 70%;
        transform: rotate(-5deg);
    }
    100% { 
        left: 150px; 
        top: 40%;
        transform: rotate(0deg);
    }
}

/* Matrix Rain */
.matrix-rain {
    display: flex;
    gap: 8px;
    height: 80px;
    overflow: hidden;
    justify-content: center;
    align-items: center;
}

.rain-column {
    display: flex;
    flex-direction: column;
    font-family: 'Courier New', monospace;
    font-size: 16px;
    color: #27ae60;
    font-weight: bold;
    animation: matrixFall 2s linear infinite;
}

.rain-column span {
    text-shadow: 0 0 5px #27ae60;
    margin: 2px 0;
}

.rain-column:nth-child(1) { animation-delay: 0s; }
.rain-column:nth-child(2) { animation-delay: 0.5s; }
.rain-column:nth-child(3) { animation-delay: 1s; }

@keyframes matrixFall {
    0% { transform: translateY(-80px); opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { transform: translateY(80px); opacity: 0; }
}

/* Atomic Stuff */
.atomic-stuff {
    width: 80px;
    height: 80px;
    position: relative;
}

.atom {
    width: 100%;
    height: 100%;
    position: relative;
}

.nucleus {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 12px;
    background: #e74c3c;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 10px #e74c3c;
}

.electron-ring {
    position: absolute;
    border: 2px solid #3498db;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    animation: atomRotate 3s linear infinite;
}

.ring1 {
    width: 60px;
    height: 20px;
    transform: translate(-50%, -50%) rotateX(60deg);
    animation-duration: 2s;
}

.ring2 {
    width: 60px;
    height: 20px;
    transform: translate(-50%, -50%) rotateX(-60deg);
    animation-duration: 2.5s;
    animation-direction: reverse;
}

.ring3 {
    width: 60px;
    height: 60px;
    transform: translate(-50%, -50%);
    animation-duration: 3s;
}

.electron {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #f39c12;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px #f39c12;
}

.e1 {
    animation: electronOrbit1 2s linear infinite;
}

.e2 {
    animation: electronOrbit2 2.5s linear infinite reverse;
}

.e3 {
    animation: electronOrbit3 3s linear infinite;
}

@keyframes atomRotate {
    0% { transform: translate(-50%, -50%) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) rotateZ(360deg); }
}

@keyframes electronOrbit1 {
    0% { transform: translate(-50%, -50%) translateX(25px) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) translateX(25px) rotateY(360deg); }
}

@keyframes electronOrbit2 {
    0% { transform: translate(-50%, -50%) translateX(25px) rotateY(0deg); }
    100% { transform: translate(-50%, -50%) translateX(25px) rotateY(360deg); }
}

@keyframes electronOrbit3 {
    0% { transform: translate(-50%, -50%) translateX(25px) rotateZ(0deg); }
    100% { transform: translate(-50%, -50%) translateX(25px) rotateZ(360deg); }
}

/* Footer */
.footer {
    margin-top: 80px;
    padding: 40px 0;
    border-top: 2px solid #ecf0f1;
}

.footer-content {
    text-align: center;
}

.footer-content p {
    margin-bottom: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.social-icon.email { background: #34495e; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-icon.telegram { background: #0088cc; }
.social-icon.whatsapp { background: #25d366; }
.social-icon.wechat { background: #7bb32e; }
.social-icon.linkedin { background: #0077b5; }

/* Tooltip */
.social-icon::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.social-icon::before {
    content: '';
    position: absolute;
    bottom: 112%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #2c3e50;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.social-icon:hover::after,
.social-icon:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Centralization Fixes */
.preloader-item > div {
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.circular-preloader,
.horizontal-preloader,
.vertical-preloader,
.creative-preloader {
    margin: 0 auto;
}

/* Additional centralization for specific preloaders */
.ansels-ecommerce,
.atomic-stuff,
.hourglass-shape,
.matrix-rain {
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .preloader-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .preloader-item {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .description {
        font-size: 1rem;
        padding: 0 20px;
    }
    
    .social-icons {
        gap: 10px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (orientation: landscape) and (max-width: 1024px) {
    .preloader-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (orientation: portrait) {
    .preloader-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Animation Performance Optimization */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
