/* ==========================================================================
   Total3D Refactored Style
   Theme: Minimalist Night Mode / High-Tech Construct
   ========================================================================== */

:root {
    --bg-dark: #060913;
    --bg-glow: #101626;
    
    /* Neon Accents matching Logo gear colors (cyan, magenta, yellow, gray) */
    --accent-cyan: #00f2fe;
    --accent-purple: #9b51e0;
    --accent-yellow: #f2c94c;
    
    /* Text colors */
    --text-white: #ffffff;
    --text-gray: #94a3b8;
    --text-muted: #64748b;
    
    /* Font */
    --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: radial-gradient(circle at center, var(--bg-glow) 0%, var(--bg-dark) 100%);
    font-family: var(--font-family);
    color: var(--text-gray);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* --- Subtle Background Animation Canvas --- */
#ambient-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* --- Glowing Soft Aura behind Logo --- */
.glow-sphere {
    position: absolute;
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, rgba(155, 81, 224, 0.03) 50%, transparent 100%);
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

/* --- Layout Wrapper --- */
.wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 600px;
    padding: 20px;
    text-align: center;
}

.construction-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --- Logo Section with Y-Axis 3D Rotation --- */
.logo-wrapper {
    margin-bottom: 35px;
    perspective: 1000px; /* Enable 3D space */
}

.rotating-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    filter: drop-shadow(0 15px 30px rgba(0, 242, 254, 0.15));
    animation: spin3D 16s infinite linear;
    transform-style: preserve-3d;
}

/* 3D Spin Animation */
@keyframes spin3D {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

/* Slow down rotation and add scale effect on hover */
.rotating-logo:hover {
    animation-play-state: paused;
    transform: scale(1.08) rotateY(15deg);
    filter: drop-shadow(0 20px 40px rgba(0, 242, 254, 0.25));
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.5s ease;
}

/* --- Typography --- */
.brand-name {
    color: var(--text-white);
    font-size: clamp(2.2rem, 7vw, 3rem);
    font-weight: 900;
    margin-top: -10px;
    margin-bottom: 6px;
    letter-spacing: -0.5px;
    text-shadow: 0 0 40px rgba(0, 242, 254, 0.15);
}

.title {
    color: var(--accent-cyan);
    font-size: clamp(0.9rem, 3.2vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.subtitle {
    color: var(--text-gray);
    font-size: clamp(0.95rem, 3vw, 1.05rem);
    font-weight: 300;
    max-width: 420px;
    margin: 0 auto 30px auto;
    line-height: 1.6;
}

/* --- Progress Bar --- */
.progress-wrapper {
    width: 260px;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

/* Continuous gradient movement representing CNC carving/3D printing state */
.progress-fill {
    height: 100%;
    width: 40%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple), var(--accent-yellow));
    position: absolute;
    top: 0;
    left: -40%;
    animation: load-sweep 2.5s infinite linear;
}

@keyframes load-sweep {
    0% {
        left: -40%;
    }
    100% {
        left: 100%;
    }
}

/* --- Loading Dots --- */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 45px;
}

.dot {
    width: 5px;
    height: 5px;
    background-color: var(--text-muted);
    border-radius: 50%;
    display: inline-block;
    animation: dotPulse 1.6s infinite ease-in-out both;
    opacity: 0.4;
}

.dot:nth-child(1) {
    animation-delay: -0.32s;
}

.dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.4;
        background-color: var(--text-muted);
    }
    40% {
        transform: scale(1.3);
        opacity: 1;
        background-color: var(--accent-cyan);
        box-shadow: 0 0 8px var(--accent-cyan);
    }
}

/* --- Premium Pill Button (WhatsApp CTA) --- */
.button-wrapper {
    margin-bottom: 60px;
}

.btn-whatsapp {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--bg-dark);
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    background-color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.3);
}

.btn-whatsapp:active {
    transform: translateY(-1px);
}

/* --- Status Footer --- */
.status-badge {
    position: relative;
}

.status-label {
    font-size: 0.72rem;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

/* --- Footer Credits --- */
.footer-credits {
    margin-top: 24px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.credit-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.credit-link:hover {
    color: var(--accent-cyan);
}

.bullet {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.15);
}

.powered-by {
    opacity: 0.85;
}
