/* SGC TECH AI Logo Styles */

/* Header Logo */
.header .logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.header .logo a:hover {
    opacity: 0.85;
}

.header .logo-image {
    display: block;
    height: auto;
    max-width: 240px;
    width: 100%;
    object-fit: contain;
}

.header .logo-tagline {
    display: inline-block;
    font-size: 14px;
    color: var(--electric-cyan, #00FFF0);
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Header scroll state - compact logo */
.header.scrolled .logo-image {
    max-width: 200px;
    transition: max-width 0.3s ease;
}

.header.scrolled .logo-tagline {
    font-size: 10px;
}

/* Mobile - Smaller header logo */
@media (max-width: 768px) {
    .header .logo-image {
        max-width: 180px;
    }
    
    .header .logo-tagline {
        font-size: 10px;
        display: none; /* Hide tagline on very small screens */
    }
    
    .header.scrolled .logo-image {
        max-width: 150px;
    }
}

@media (max-width: 480px) {
    .header .logo-image {
        max-width: 140px;
    }
}

/* Footer Logo */
.footer .footer-logo {
    margin-bottom: 20px;
}

.footer .footer-logo img {
    display: block;
    max-width: 200px;
    height: auto;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 20px rgba(0, 255, 240, 0.2));
    transition: filter 0.3s ease;
}

.footer .footer-logo img:hover {
    filter: drop-shadow(0 0 30px rgba(0, 255, 240, 0.4));
}

.footer .logo-tagline {
    display: block;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Mobile footer logo */
@media (max-width: 768px) {
    .footer .footer-logo img {
        max-width: 160px;
    }
    
    .footer .logo-tagline {
        font-size: 11px;
    }
}

/* Loading spinner with logo */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0c1e34 0%, #1e3a8a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

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

.loading-logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.loading-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    z-index: 2;
    animation: logoPulse 2s ease-in-out infinite;
}

@keyframes logoPulse {
    0%, 100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid rgba(0, 255, 240, 0.1);
    border-top-color: #00FFF0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 30px;
    color: white;
    font-size: 16px;
    font-weight: 500;
    animation: fadeInOut 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Logo print styles */
@media print {
    .header .logo-image,
    .footer .footer-logo img {
        /* Use black version for print */
        filter: grayscale(100%) contrast(1.2);
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .header .logo-image {
        filter: contrast(1.3);
    }
    
    .footer .footer-logo img {
        filter: contrast(1.3) drop-shadow(0 0 20px rgba(0, 255, 240, 0.3));
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .header .logo a,
    .header .logo-image,
    .footer .footer-logo img {
        transition: none;
    }
    
    .loading-logo {
        animation: none;
    }
    
    .loading-spinner {
        animation: none;
    }
}
