/* COSMOS Footer - Creative Design */

/* Footer Placeholder - Full Width */
#footer-placeholder {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#footer-placeholder > * {
    width: 100%;
}

/* Footer Container - Full Width - Pure Black Theme */
.cosmos-footer {
    background: #000000;
    color: #ffffff;
    padding: 4rem 0 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
    clear: both;
}

/* Remove animated overlay to match about page exactly */
.cosmos-footer::before {
    display: none;
}

@keyframes cosmicFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-20px) rotate(1deg);
    }
    66% {
        transform: translateY(10px) rotate(-1deg);
    }
}

/* Footer Content - Full Width with Responsive Padding */
.footer-content-wrapper {
    position: relative;
    z-index: 2;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 4rem);
    width: 100%;
    box-sizing: border-box;
}

/* Footer Links Section */
.footer-links-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.25rem;
}

.footer-column a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-column a:hover {
    color: #ffffff;
    padding-left: 0.5rem;
}

.footer-column a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, #6366f1, #f59e0b);
    transition: width 0.3s ease;
}

.footer-column a:hover::before {
    width: 0.5rem;
}

/* Privacy Choices Section */
.privacy-choices {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--glass-card);
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
}

.privacy-choices i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.privacy-choices span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

/* COSMOS Text in Container */
.cosmos-brand-section-full {
    text-align: center;
    padding: 2rem 0;
    border-top: none;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.cosmos-brand-text-full {
    font-size: clamp(3rem, 15vw, 8rem);
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: 0.05em;
    text-transform: none;
    position: relative;
    line-height: 0.9;
    white-space: nowrap;
    overflow: hidden;
    word-spacing: 0.05em;
    margin: 0;
    padding: 0 clamp(1rem, 2vw, 2rem);
    display: block;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    transform: scaleX(1);
    transform-origin: center;
}

@keyframes cosmicGlow {
    0% {
        filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.2));
        transform: scaleX(1) scaleY(1);
    }
    100% {
        filter: drop-shadow(0 0 40px rgba(99, 102, 241, 0.4));
        transform: scaleX(1) scaleY(1.02);
    }
}

/* Subtle 3D Effect */
.cosmos-brand-text::before {
    content: 'COSMOS';
    position: absolute;
    top: 2px;
    left: 2px;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: -1;
}

/* Footer Bottom */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    padding-top: 1rem;
    border-top: none;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.footer-legal a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
    opacity: 0.8;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-align: right;
    justify-self: end;
}

/* Social Links */
.footer-social {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--glass-card);
    border-radius: 50%;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.social-link:hover {
    background: linear-gradient(135deg, #6366f1, #f59e0b);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* Floating Particles */
.cosmos-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: floatParticle 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; }
.particle:nth-child(4) { left: 40%; animation-delay: 6s; }
.particle:nth-child(5) { left: 50%; animation-delay: 8s; }
.particle:nth-child(6) { left: 60%; animation-delay: 10s; }
.particle:nth-child(7) { left: 70%; animation-delay: 12s; }
.particle:nth-child(8) { left: 80%; animation-delay: 14s; }
.particle:nth-child(9) { left: 90%; animation-delay: 16s; }

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .cosmos-footer {
        padding: 3rem 0 0;
    }
    
    .footer-content-wrapper {
        padding: 0 clamp(1rem, 3vw, 2rem);
    }
    
    .footer-links-section {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .cosmos-brand-text-full {
        font-size: clamp(2.5rem, 18vw, 6rem);
        transform: scaleX(1);
        letter-spacing: 0.05em;
        padding: 0 1rem;
    }
    
    .cosmos-brand-section-full {
        padding: 1.5rem 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
    
    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cosmos-footer {
        padding: 2rem 0 0;
    }
    
    .footer-content-wrapper {
        padding: 0 1rem;
    }
    
    .footer-links-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cosmos-brand-text-full {
        font-size: clamp(2rem, 20vw, 4rem);
        transform: scaleX(1);
        letter-spacing: 0.03em;
        padding: 0 0.75rem;
    }
    
    .cosmos-brand-section-full {
        padding: 1rem 0;
    }
}

/* Dark mode enhancements - Match website background */
@media (prefers-color-scheme: dark) {
    .cosmos-footer {
        background: var(--bg-primary);
    }
    
    .cosmos-footer::before {
        display: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .cosmos-brand-text {
        background: #ffffff;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
    
    .footer-column a {
        color: #ffffff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .cosmos-footer::before,
    .cosmos-brand-text,
    .particle {
        animation: none;
    }
    
    .cosmos-brand-text {
        transform: none;
    }
}
