/* CSS Design System for HAVIT Wholesale Landing Page (Floating Logo Concept) */

:root {
    --brand-color: #E43E19;
    --brand-color-glow: rgba(228, 62, 25, 0.4);
    --brand-color-light: #ff5f3b;
    --bg-dark: #080808;
    --text-light: #ffffff;
    --text-dimmed: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Grotesk', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body, html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
}

/* Loader Styles */
.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top: 3px solid var(--brand-color);
    border-radius: 50%;
    animation: spin 1s cubic-bezier(0.5, 0.1, 0.4, 0.9) infinite;
    margin-bottom: 20px;
}

.loader-text {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 6px;
    color: var(--text-light);
    animation: pulse 1.5s ease-in-out infinite alternate;
}

/* Video Background */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    transform: scale(1.06); /* Escala el video un 6% para recortar y ocultar la marca de agua de los bordes */
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.15) 0%, rgba(8, 8, 8, 0.85) 100%),
                linear-gradient(to bottom, rgba(8, 8, 8, 0.5) 0%, transparent 40%, rgba(8, 8, 8, 0.75) 100%);
    z-index: 2;
}

/* Layout Container */
.app-layout {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.main-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Logo Wrapper containing elements */
.logo-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
    animation: scaleUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Glowing background effect */
.logo-glow {
    position: absolute;
    width: 320px;
    height: 120px;
    top: 40px;
    background-color: var(--brand-color);
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
    transition: var(--transition-smooth);
    border-radius: 50%;
    z-index: 1;
}

/* Epic Logo Size, electric ray gradient sweep, and animations */
.brand-logo {
    font-size: 120px;
    font-weight: 900;
    letter-spacing: 16px;
    line-height: 1;
    z-index: 2;
    transition: var(--transition-smooth);
    margin-right: -16px;
    cursor: pointer;
    display: inline-block;
    
    /* Electric Ray Gradient Sweep */
    background: linear-gradient(
        110deg,
        #E43E19 0%,
        #E43E19 38%,
        #ffffff 44%,
        #00e5ff 48%,
        #ffffff 52%,
        #E43E19 58%,
        #E43E19 100%
    );
    background-size: 250% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    
    animation: float 6s ease-in-out infinite, electricSweep 5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.brand-logo:hover {
    transform: scale(1.04);
}


/* Wholesale Info Container (Subtle floating overlay) */
.info-container {
    margin-top: 30px;
    max-width: 540px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 0;
    box-shadow: none;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.wholesale-title {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 4px;
    color: var(--text-light);
    text-transform: uppercase;
}

.wholesale-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-dimmed);
    font-weight: 300;
}

/* Contact Button wrapper */
.contact-wrapper {
    margin-top: 15px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* Subtle contact pill button */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
}

.contact-icon {
    font-size: 16px;
    color: #25d366; /* Subtle green for WhatsApp icon initially */
    transition: var(--transition-smooth);
}

.contact-link:hover {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px var(--brand-color-glow);
}

.contact-link:hover .contact-icon {
    color: var(--text-light);
}

/* Corner Mute Toggle */
.mute-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--glass-border);
    color: var(--text-light);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.mute-toggle:hover {
    background-color: var(--brand-color);
    border-color: var(--brand-color);
    transform: scale(1.1);
}

/* Logo Wrapper Hover Interactivity */
.logo-wrapper:hover .logo-glow {
    opacity: 0.35;
    filter: blur(90px);
    background-color: var(--brand-color-light);
}
/* Removed background changes on hover */

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

@keyframes pulse {
    0% { opacity: 0.4; }
    100% { opacity: 1; }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0px); }
}

@keyframes scaleUp {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes electricSweep {
    0% {
        background-position: 150% 0;
        filter: drop-shadow(0 0 15px rgba(228, 62, 25, 0.35));
    }
    30% {
        filter: drop-shadow(0 0 20px rgba(228, 62, 25, 0.45));
    }
    50% {
        filter: drop-shadow(0 0 35px rgba(0, 229, 255, 0.75));
    }
    70% {
        filter: drop-shadow(0 0 20px rgba(228, 62, 25, 0.45));
    }
    100% {
        background-position: -150% 0;
        filter: drop-shadow(0 0 15px rgba(228, 62, 25, 0.35));
    }
}


/* Responsive adjustments */
@media (max-width: 768px) {
    .brand-logo {
        font-size: 80px;
        letter-spacing: 12px;
        margin-right: -12px;
    }


}

@media (max-width: 480px) {
    .brand-logo {
        font-size: 60px;
        letter-spacing: 9px;
        margin-right: -9px;
    }
    .wholesale-title {
        font-size: 12px;
        letter-spacing: 3px;
    }
    .wholesale-description {
        font-size: 13px;
    }
    .contact-link {
        padding: 10px 18px;
        font-size: 13px;
    }
}
