/* Splash Screen Styles - Matching AeroVironment Design */

:root {
    --primary-red: #DC143C;
    --dark-red: #B71C1C;
    --purple: #7B2CBF;
    --light-purple: #9D4EDD;
    --white: #FFFFFF;
    --text-dark: #333333;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    touch-action: manipulation;
}

.splash-container {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--dark-red) 100%);
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Elements */
.splash-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(123, 44, 191, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.splash-container::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
    animation: rotate 25s linear infinite reverse;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.splash-content {
    position: relative;
    z-index: 10;
    text-align: center;
    width: 100%;
    max-width: 150px;
    padding: 10px;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Section */
.logo-wrapper {
    margin-bottom: 15px;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.logo-circle {
    width: 40px;
    height: 40px;
    margin: 0 auto 8px;
    position: relative;
    animation: logoRotate 3s linear infinite;
}

@keyframes logoRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    border: 1px solid var(--purple);
    border-top-color: transparent;
    border-radius: 50%;
    animation: borderRotate 2s linear infinite;
}

@keyframes borderRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.logo-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--purple) 0%, var(--light-purple) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 3px 15px rgba(123, 44, 191, 0.4);
    position: relative;
    overflow: hidden;
}

.logo-inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.logo-text {
    font-size: 14px;
    font-weight: 900;
    color: var(--white);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    letter-spacing: 0.5px;
}

.brand-name {
    font-size: 11px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 3px;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1.5s ease-out 0.5s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.brand-tagline {
    font-size: 6px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease-out 1s both;
}

/* Loading Animation */
.loading-wrapper {
    margin: 10px 0;
    animation: fadeIn 1.5s ease-out 1.5s both;
}

.loading-spinner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    height: 12px;
}

.spinner-circle {
    width: 4px;
    height: 4px;
    background: var(--white);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.spinner-circle:nth-child(1) {
    animation-delay: 0s;
}

.spinner-circle:nth-child(2) {
    animation-delay: 0.2s;
}

.spinner-circle:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Footer */
.splash-footer {
    margin-top: 15px;
    animation: fadeIn 1.5s ease-out 2s both;
}

.copyright-text {
    font-size: 5px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    line-height: 1.2;
}

/* Responsive Design */

/* Mobile Devices (up to 576px) */
@media (max-width: 576px) {
    .splash-content {
        max-width: 120px;
        padding: 8px;
    }

    .logo-circle {
        width: 30px;
        height: 30px;
    }

    .logo-text {
        font-size: 10px;
    }

    .brand-name {
        font-size: 8px;
    }

    .brand-tagline {
        font-size: 4px;
        letter-spacing: 0.3px;
    }

    .logo-wrapper {
        margin-bottom: 8px;
    }

    .loading-wrapper {
        margin: 6px 0;
    }

    .splash-footer {
        margin-top: 8px;
    }

    .copyright-text {
        font-size: 4px;
    }

    .spinner-circle {
        width: 3px;
        height: 3px;
    }
}

/* Tablet Devices (577px to 992px) */
@media (min-width: 577px) and (max-width: 992px) {
    .splash-content {
        max-width: 180px;
        padding: 15px;
    }

    .logo-circle {
        width: 50px;
        height: 50px;
    }

    .logo-text {
        font-size: 16px;
    }

    .brand-name {
        font-size: 12px;
    }

    .brand-tagline {
        font-size: 7px;
    }

    .spinner-circle {
        width: 5px;
        height: 5px;
    }

    .copyright-text {
        font-size: 6px;
    }
}

/* Desktop Devices (993px and above) */
@media (min-width: 993px) {
    .splash-content {
        max-width: 200px;
        padding: 20px;
    }

    .logo-circle {
        width: 60px;
        height: 60px;
    }

    .logo-text {
        font-size: 18px;
    }

    .brand-name {
        font-size: 14px;
    }

    .brand-tagline {
        font-size: 8px;
    }

    .spinner-circle {
        width: 6px;
        height: 6px;
    }

    .copyright-text {
        font-size: 7px;
    }
}

/* Large Desktop (1200px and above) */
@media (min-width: 1200px) {
    .splash-content {
        max-width: 220px;
    }
}

/* Fade Out Animation */
.splash-container.fade-out {
    animation: fadeOut 0.5s ease-out forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
