/* Splash Screen Styles */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #E3FDF5 0%, #FFE6FA 50%, #F6F6FF 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.splash-screen.fade-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.splash-content {
    text-align: center;
    max-width: 400px;
    width: 90%;
    padding: 30px;
    animation: contentFadeIn 0.8s ease-out;
}

@keyframes contentFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Container */
.splash-logo-container {
    margin-bottom: 25px;
    animation: logoFloat 3s ease-in-out infinite;
}

.splash-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #22C0B0, #2EC8A6);
    box-shadow: 
        0 15px 35px rgba(34, 192, 176, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.1),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

@keyframes logoFloat {
    0%, 100% { 
        transform: translateY(0) rotate(0deg); 
    }
    33% { 
        transform: translateY(-10px) rotate(1deg); 
    }
    66% { 
        transform: translateY(5px) rotate(-1deg); 
    }
}

/* Site Name */
.splash-site-name {
    margin-bottom: 30px;
}

.splash-site-name h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    background: linear-gradient(135deg, #22C0B0, #2EC8A6, #20c997);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    line-height: 1.2;
    animation: textGlow 2s ease-in-out infinite alternate;
}

@keyframes textGlow {
    from {
        filter: drop-shadow(0 0 5px rgba(34, 192, 176, 0.3));
    }
    to {
        filter: drop-shadow(0 0 15px rgba(34, 192, 176, 0.5));
    }
}

.splash-tagline {
    color: #666;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
    margin: 0;
}

/* Loader */
.splash-loader {
    width: 100px;
    height: 40px;
    margin: 0 auto 20px;
    --g: radial-gradient(farthest-side, #0000 calc(95% - 3px), #22C0B0 calc(100% - 3px) 98%, #0000 101%) no-repeat;
    background: var(--g), var(--g), var(--g);
    background-size: 30px 30px;
    animation: l9 1.5s infinite alternate;
}

@keyframes l9 {
    0% {
        background-position: 0 50%, 50% 50%, 100% 50%;
    }
    20% {
        background-position: 0 0, 50% 50%, 100% 50%;
        background: 
            radial-gradient(farthest-side, #0000 calc(95% - 3px), #22C0B0 calc(100% - 3px) 98%, #0000 101%) no-repeat,
            radial-gradient(farthest-side, #0000 calc(95% - 3px), #2EC8A6 calc(100% - 3px) 98%, #0000 101%) no-repeat,
            radial-gradient(farthest-side, #0000 calc(95% - 3px), #20c997 calc(100% - 3px) 98%, #0000 101%) no-repeat;
        background-size: 30px 30px;
    }
    40% {
        background-position: 0 100%, 50% 0, 100% 50%;
        background: 
            radial-gradient(farthest-side, #0000 calc(95% - 3px), #20c997 calc(100% - 3px) 98%, #0000 101%) no-repeat,
            radial-gradient(farthest-side, #0000 calc(95% - 3px), #22C0B0 calc(100% - 3px) 98%, #0000 101%) no-repeat,
            radial-gradient(farthest-side, #0000 calc(95% - 3px), #2EC8A6 calc(100% - 3px) 98%, #0000 101%) no-repeat;
        background-size: 30px 30px;
    }
    60% {
        background-position: 0 50%, 50% 100%, 100% 0;
        background: 
            radial-gradient(farthest-side, #0000 calc(95% - 3px), #2EC8A6 calc(100% - 3px) 98%, #0000 101%) no-repeat,
            radial-gradient(farthest-side, #0000 calc(95% - 3px), #20c997 calc(100% - 3px) 98%, #0000 101%) no-repeat,
            radial-gradient(farthest-side, #0000 calc(95% - 3px), #22C0B0 calc(100% - 3px) 98%, #0000 101%) no-repeat;
        background-size: 30px 30px;
    }
    80% {
        background-position: 0 50%, 50% 50%, 100% 100%;
    }
    100% {
        background-position: 0 50%, 50% 50%, 100% 50%;
    }
}

/* Loading Text */
.splash-loading-text {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    animation: loadingTextPulse 2s ease-in-out infinite;
}

@keyframes loadingTextPulse {
    0%, 100% { 
        opacity: 0.7;
        transform: scale(1);
    }
    50% { 
        opacity: 1;
        transform: scale(1.02);
    }
}

/* Particle Animation Background */
.splash-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(34, 192, 176, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(46, 200, 166, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(32, 201, 151, 0.1) 0%, transparent 50%);
    animation: backgroundFloat 20s ease-in-out infinite;
    z-index: -1;
}

@keyframes backgroundFloat {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-10px, -10px) rotate(1deg);
    }
    66% {
        transform: translate(10px, 10px) rotate(-1deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .splash-content {
        padding: 20px;
        max-width: 320px;
    }
    
    .splash-logo {
        width: 100px;
        height: 100px;
        padding: 12px;
        border-radius: 18px;
    }
    
    .splash-site-name h1 {
        font-size: 2.2rem;
    }
    
    .splash-tagline {
        font-size: 1rem;
    }
    
    .splash-loader {
        width: 80px;
        height: 32px;
        background-size: 24px 24px;
    }
}

@media (max-width: 480px) {
    .splash-logo {
        width: 80px;
        height: 80px;
        padding: 10px;
        border-radius: 15px;
    }
    
    .splash-site-name h1 {
        font-size: 1.8rem;
    }
    
    .splash-tagline {
        font-size: 0.9rem;
    }
    
    .splash-loader {
        width: 60px;
        height: 24px;
        background-size: 20px 20px;
    }
    
    .splash-loading-text {
        font-size: 0.9rem;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .splash-screen {
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    }
    
    .splash-logo {
        background: linear-gradient(135deg, #22C0B0, #2EC8A6);
        box-shadow: 
            0 15px 35px rgba(34, 192, 176, 0.2),
            0 5px 15px rgba(0, 0, 0, 0.3),
            inset 0 2px 0 rgba(255, 255, 255, 0.2);
    }
    
    .splash-site-name h1 {
        background: linear-gradient(135deg, #4FD1C5, #38B2AC, #319795);
        -webkit-text-fill-color: transparent;
    }
    
    .splash-tagline,
    .splash-loading-text {
        color: #a0aec0;
    }
}

/* WhatsApp Logo Animation */
.whatsapp-logo {
    margin-bottom: 30px;
}

.logo-square {
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, #34C334, #28a745);
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(52, 195, 52, 0.3);
    animation: logoFloat 2s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.logo-square::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Phone Icon */
.phone-icon {
    position: relative;
    width: 60px;
    height: 60px;
    animation: phonePulse 1.5s ease-in-out infinite;
}

.phone-body {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.phone-screen {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    background: #34C334;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-symbol {
    width: 30px;
    height: 30px;
    position: relative;
    animation: symbolGlow 2s ease-in-out infinite;
}

.message-bubble {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    animation: bubbleBounce 1s ease-in-out infinite;
}

.message-dot {
    width: 4px;
    height: 4px;
    background: #34C334;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.message-dot:nth-child(1) {
    animation-delay: 0s;
}

.message-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.message-dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes phonePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes symbolGlow {
    0%, 100% { 
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    }
    50% { 
        filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.8));
    }
}

@keyframes bubbleBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes dotPulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .logo-square {
        width: 100px;
        height: 100px;
    }
    
    .phone-icon {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-symbol {
        width: 25px;
        height: 25px;
    }
    
    .message-dot {
        width: 3px;
        height: 3px;
    }
} 