/* Ecocycle Launch Screen Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    overflow: hidden;
}

/* Mobile Container */
.mobile-container {
    max-width: 375px;
    min-height: 812px;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    box-shadow: 0 0 30px rgba(0,0,0,0.1);
    border-radius: 0;
}

/* Status Bar */
.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 8px;
    font-size: 17px;
    font-weight: 600;
    color: #000;
    background: transparent;
    position: relative;
    z-index: 10;
}

.status-left {
    font-size: 17px;
    font-weight: 600;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 5px;
}

.signal-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
}

.bar {
    width: 3px;
    background: #000;
    border-radius: 1px;
}

.bar:nth-child(1) { height: 4px; }
.bar:nth-child(2) { height: 6px; }
.bar:nth-child(3) { height: 8px; }
.bar:nth-child(4) { height: 10px; }

.wifi-icon {
    width: 15px;
    height: 15px;
    margin: 0 3px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000'%3E%3Cpath d='M1 9l2 2c4.97-4.97 13.03-4.97 18 0l2-2C16.93 2.93 7.07 2.93 1 9zm8 8l3 3 3-3c-1.65-1.66-4.34-1.66-6 0zm-4-4l2 2c2.76-2.76 7.24-2.76 10 0l2-2C15.14 9.14 8.87 9.14 5 13z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.battery {
    width: 24px;
    height: 12px;
    border: 1px solid #000;
    border-radius: 2px;
    position: relative;
    margin-left: 3px;
}

.battery::after {
    content: '';
    position: absolute;
    right: -3px;
    top: 3px;
    width: 2px;
    height: 6px;
    background: #000;
    border-radius: 0 1px 1px 0;
}

.battery-fill {
    width: 80%;
    height: 100%;
    background: #000;
    border-radius: 1px;
}

/* Launch Screen */
.launch-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: calc(812px - 60px);
    padding: 40px 30px;
    position: relative;
}

/* Logo Container */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    animation: logoFadeIn 1.5s ease-out;
}

.logo-wrapper {
    margin-bottom: 40px;
    animation: logoFloat 3s ease-in-out infinite;
}

.ecocycle-logo {
    width: 160px;
    height: 192px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 8px 16px rgba(74, 229, 74, 0.3));
}

.outer-drop {
    animation: pulseGlow 2s ease-in-out infinite;
}

.recycle-arrows {
    animation: rotateArrows 4s linear infinite;
    transform-origin: 100px 110px;
}

/* Brand Text */
.brand-text {
    text-align: center;
}

.ecocycle-text {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
    letter-spacing: 2px;
    margin: 0;
    animation: textSlideUp 1s ease-out 0.5s both;
}

/* Loading Container */
.loading-container {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 134px;
    animation: loadingFadeIn 1s ease-out 1s both;
}

.loading-bar {
    width: 134px;
    height: 4px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    background: #000;
    border-radius: 2px;
    width: 0%;
    animation: loadingProgress 3s ease-in-out infinite;
}

/* Animations */
@keyframes logoFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(74, 229, 74, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(74, 229, 74, 0.6));
    }
}

@keyframes rotateArrows {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes textSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes loadingFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* Responsive Design */
@media (max-width: 375px) {
    .mobile-container {
        max-width: 100%;
        border-radius: 0;
    }
    
    .launch-screen {
        padding: 30px 20px;
    }
    
    .ecocycle-logo {
        width: 140px;
        height: 168px;
    }
    
    .ecocycle-text {
        font-size: 24px;
        letter-spacing: 1.5px;
    }
    
    .loading-container {
        bottom: 40px;
        width: 120px;
    }
    
    .loading-bar {
        width: 120px;
    }
}

@media (min-width: 768px) {
    .mobile-container {
        border-radius: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    
    .ecocycle-logo {
        width: 180px;
        height: 216px;
    }
    
    .ecocycle-text {
        font-size: 32px;
        letter-spacing: 2.5px;
    }
}

/* Interactive States */
.logo-wrapper:hover {
    animation-play-state: paused;
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.logo-wrapper:hover .outer-drop {
    animation-duration: 1s;
}

.logo-wrapper:hover .recycle-arrows {
    animation-duration: 2s;
}

/* Loading States */
.loading-complete .loading-progress {
    width: 100% !important;
    background: #4AE54A;
    transition: all 0.5s ease;
}

.loading-complete .logo-wrapper {
    animation: logoSuccess 0.6s ease-out;
}

@keyframes logoSuccess {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .logo-wrapper,
    .outer-drop,
    .recycle-arrows,
    .loading-progress {
        animation: none;
    }
    
    .ecocycle-text {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .loading-container {
        animation: none;
        opacity: 1;
        transform: translateX(-50%);
    }
}