/* style.css - Welcome Page Styling */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
}

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
    color: #333;
}

/* Animated Background Elements */
.bg-decoration {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.4;
    animation: float 20s linear infinite;
    z-index: -1;
}

.bg-dots {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.15) 2px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15) 2px, transparent 2px),
        radial-gradient(circle at 40% 40%, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 300px 300px, 400px 400px, 200px 200px;
    opacity: 0.5;
    z-index: -2;
}

/* Main Container */
.welcome-container {
    width: 100%;
    max-width: 1200px;
    min-height: 700px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Logo Section */
.logo-section {
    text-align: center;
    margin-bottom: 50px;
    animation: slideDown 1s ease-out;
}

.logo {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 
        0 10px 30px rgba(67, 97, 238, 0.4),
        inset 0 4px 8px rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.logo:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 15px 40px rgba(67, 97, 238, 0.6),
        inset 0 4px 8px rgba(255, 255, 255, 0.3);
}

.logo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    transform: rotate(45deg);
}

.logo i {
    font-size: 3.5rem;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    animation: pulse 2s infinite;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(67, 97, 238, 0.2);
}

/* Content Section */
.content-section {
    text-align: center;
    max-width: 600px;
    animation: fadeIn 1.5s ease-out 0.3s both;
}

.welcome-text {
    margin-bottom: 50px;
}

.welcome-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.welcome-text p {
    font-size: 1.3rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    padding: 0 20px;
}

/* Button Styling */
.get-started-btn {
    background: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
    color: white;
    border: none;
    padding: 20px 50px;
    font-size: 1.3rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 
        0 10px 30px rgba(67, 97, 238, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    margin-bottom: 60px;
}

.get-started-btn:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 40px rgba(67, 97, 238, 0.6),
        0 0 0 5px rgba(67, 97, 238, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

.get-started-btn:active {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(67, 97, 238, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.get-started-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.get-started-btn:hover::before {
    left: 100%;
}

.get-started-btn i {
    font-size: 1.2rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
    opacity: 0.9;
}

.get-started-btn:hover i {
    transform: translateX(10px);
    opacity: 1;
}

/* Footer */
.footer {
    position: absolute;
    bottom: 30px;
    width: 100%;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    padding: 0 20px;
}

.footer p {
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer:hover p {
    opacity: 1;
}

/* Animations */
@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    100% {
        transform: translate(50px, 50px) rotate(360deg);
    }
}

@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 
            0 10px 30px rgba(67, 97, 238, 0.4),
            inset 0 1px 1px rgba(255, 255, 255, 0.2);
    }
    50% {
        box-shadow: 
            0 10px 40px rgba(67, 97, 238, 0.6),
            inset 0 1px 1px rgba(255, 255, 255, 0.2);
    }
}

/* Additional Floating Elements (Optional) */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    animation: floatAround 15s infinite linear;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.2) 0%, transparent 70%);
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    bottom: 15%;
    right: 10%;
    animation-delay: -5s;
    background: radial-gradient(circle, rgba(103, 114, 229, 0.15) 0%, transparent 70%);
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 40%;
    right: 20%;
    animation-delay: -10s;
    background: radial-gradient(circle, rgba(58, 12, 163, 0.1) 0%, transparent 70%);
}

@keyframes floatAround {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
    }
    50% {
        transform: translate(0, -40px) rotate(180deg);
    }
    75% {
        transform: translate(-20px, -20px) rotate(270deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .welcome-container {
        margin: 20px;
        padding: 30px 20px;
        min-height: auto;
        border-radius: 20px;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .logo i {
        font-size: 2.5rem;
    }
    
    .logo-text {
        font-size: 2rem;
    }
    
    .welcome-text h1 {
        font-size: 2.5rem;
    }
    
    .welcome-text p {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .get-started-btn {
        padding: 18px 40px;
        font-size: 1.1rem;
        margin-bottom: 40px;
    }
    
    .footer {
        position: relative;
        bottom: 0;
        margin-top: 30px;
    }
}

@media (max-width: 480px) {
    .welcome-container {
        padding: 20px 15px;
        border-radius: 15px;
    }
    
    .logo-section {
        margin-bottom: 30px;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .logo i {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1.8rem;
    }
    
    .welcome-text h1 {
        font-size: 2rem;
    }
    
    .welcome-text p {
        font-size: 1rem;
    }
    
    .get-started-btn {
        padding: 16px 30px;
        font-size: 1rem;
        margin-bottom: 30px;
    }
}

/* Loading Animation (Optional) */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Add this to your HTML if you want loading screen:
<div class="loading-screen">
    <div class="loader"></div>
</div>
*/

/* Additional Interactive Effects */
.get-started-btn:focus {
    outline: none;
    animation: glow 2s infinite;
}

/* Add some floating particles */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    animation: particleFloat 20s infinite linear;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Generate particles with JavaScript or manually add them */
/* 
.particle:nth-child(1) { left: 10%; width: 10px; height: 10px; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; width: 8px; height: 8px; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; width: 12px; height: 12px; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; width: 6px; height: 6px; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; width: 9px; height: 9px; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; width: 11px; height: 11px; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; width: 7px; height: 7px; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; width: 13px; height: 13px; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; width: 5px; height: 5px; animation-delay: 16s; }
.particle:nth-child(10) { left: 95%; width: 10px; height: 10px; animation-delay: 18s; }
*/

/* Add smooth page transitions */
* {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Add this to your PHP file for loading screen:
<script>
    window.addEventListener('load', function() {
        const loadingScreen = document.querySelector('.loading-screen');
        if (loadingScreen) {
            loadingScreen.classList.add('hidden');
            setTimeout(() => {
                loadingScreen.style.display = 'none';
            }, 500);
        }
    });
</script>
*/