/* ===== RESET AND BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fefefe 0%, #f8fafc 25%, #f1f5f9 50%, #e2e8f0 100%);
    color: #1e293b;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* ===== MAIN CONTAINER ===== */
.main-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* ===== LOGO CONTAINER ===== */
.logo-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo {
    width: 50vw;
    height: 50vh;
    max-width: 400px;
    max-height: 400px;
    object-fit: contain;
    filter: drop-shadow(0 4px 20px rgba(14, 165, 233, 0.4));
    transition: all 2.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo.animated {
    width: 10vw;
    height: 10vw;
    min-width: 80px;
    min-height: 80px;
    max-width: 120px;
    max-height: 120px;
}

/* ===== SUNBURST CONTAINER ===== */
.sunburst-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.sunburst-container.visible {
    opacity: 1;
}

.sunburst-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
}

/* ===== LOADING INDICATOR ===== */
.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 15;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.loading-indicator.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(59, 130, 246, 0.3);
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== FOOTER ===== */
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(14, 165, 233, 0.2);
    padding: 12px 0;
    font-size: 0.875rem;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-section {
    display: flex;
    align-items: center;
}

.company-name {
    font-weight: 600;
    color: #0ea5e9;
    font-size: 1rem;
}

.footer-logo-link,
.footer-company-link {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.footer-logo-link:hover {
    transform: scale(1.05);
    filter: brightness(1.2);
}

.footer-company-link:hover .company-name {
    color: #38bdf8;
    transform: translateY(-1px);
}

.company-address {
    color: #475569;
    font-size: 0.8rem;
}

.contact-link {
    color: #0ea5e9;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

.rights-text {
    color: #64748b;
    font-size: 0.75rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .logo {
        width: 60vw;
        height: 60vw;
        max-width: 300px;
        max-height: 300px;
    }
    
    .logo.animated {
        width: 15vw;
        height: 15vw;
        min-width: 60px;
        min-height: 60px;
        max-width: 100px;
        max-height: 100px;
    }
    
    .sunburst-wrapper {
        width: 350px;
        height: 350px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .footer-section {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 70vw;
        height: 70vw;
        max-width: 250px;
        max-height: 250px;
    }
    
    .logo.animated {
        width: 20vw;
        height: 20vw;
        min-width: 50px;
        min-height: 50px;
        max-width: 80px;
        max-height: 80px;
    }
    
    .sunburst-wrapper {
        width: 300px;
        height: 300px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    .logo {
        transition: none;
    }
    
    .sunburst-container {
        transition: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
.logo-container,
.sunburst-container {
    will-change: transform, opacity;
}

.logo {
    will-change: width, height, transform;
}

/* ===== HOVER EFFECTS ===== */
.logo:hover {
    filter: drop-shadow(0 6px 30px rgba(14, 165, 233, 0.6));
}
