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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #5b9ba1 0%, #4a7f85 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Animated Background Particles */
body::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
    z-index: 0;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 100%;
    max-width: 600px;
    padding: 40px 20px;
}

.content {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    padding: 60px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    animation: fadeInUp 1s ease-out;
}

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

/* Logo Container with Loading Ring */
.logo-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animated Loading Ring */
.loading-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid rgba(91, 155, 161, 0.1);
    border-top: 4px solid #5b9ba1;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

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

/* Logo Image */
.logo {
    width: 85%;
    height: auto;
    position: relative;
    z-index: 2;
    animation: pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Title */
.title {
    font-size: 3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #5b9ba1 0%, #4a7f85 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1.5s ease-out 0.3s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Subtitle */
.subtitle {
    font-size: 1.8rem;
    font-weight: 300;
    color: #4a5568;
    margin-bottom: 30px;
    animation: fadeIn 1.5s ease-out 0.5s both;
}

/* Loading Dots */
.loading-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 30px 0;
    animation: fadeIn 1.5s ease-out 0.7s both;
}

.dot {
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #5b9ba1 0%, #4a7f85 100%);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

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

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

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Tagline */
.tagline {
    font-size: 1.2rem;
    font-weight: 400;
    color: #718096;
    font-style: italic;
    animation: fadeIn 1.5s ease-out 0.9s both;
}

/* Footer */
.footer {
    margin-top: 40px;
    animation: fadeIn 2s ease-out 1.2s both;
}

.footer p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 300;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .content {
        padding: 40px 30px;
    }
    
    .logo-container {
        width: 220px;
        height: 220px;
        margin-bottom: 30px;
    }
    
    .title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.4rem;
    }
    
    .tagline {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .content {
        padding: 30px 20px;
        border-radius: 20px;
    }
    
    .logo-container {
        width: 180px;
        height: 180px;
        margin-bottom: 25px;
    }
    
    .title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .tagline {
        font-size: 0.9rem;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Loading Ring Glow Effect */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(91, 155, 161, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(91, 155, 161, 0.8);
    }
}

.loading-ring {
    animation: spin 2s linear infinite, glow 2s ease-in-out infinite;
}
