/* Borealis Ultra Footer - Clean & Polished Design */

/* Footer Variables */
.ultra-footer {
    --footer-bg: #0a192f;
    --footer-bg-secondary: #112240;
    --footer-accent: #64ffda;
    --footer-accent-secondary: #00b4d8;
    --footer-text: #e6f1ff;
    --footer-text-muted: #a8b2d1;
    --footer-text-dim: #8892b0;
    --footer-border: rgba(100, 255, 218, 0.1);
    --footer-hover-bg: rgba(100, 255, 218, 0.05);
    --footer-transition: all 0.3s ease;
}

/* Base Footer Structure */
.ultra-footer {
    position: relative;
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 0;
    margin-top: 80px;
    overflow: hidden;
    border-top: 1px solid var(--footer-border);
}

/* Subtle Background Pattern */
.footer-subtle-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(100, 255, 218, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 180, 216, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Container */
.ultra-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* Main Footer Layout */
.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 80px;
    margin-bottom: 60px;
}

/* Company Section */
.footer-company {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-logo-wrapper {
    display: inline-block;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: var(--footer-transition);
}

.footer-logo-link:hover {
    transform: translateY(-2px);
}

.footer-logo {
    filter: drop-shadow(0 2px 8px rgba(100, 255, 218, 0.2));
    transition: var(--footer-transition);
}

.footer-logo-link:hover .footer-logo {
    filter: drop-shadow(0 4px 16px rgba(100, 255, 218, 0.3));
}

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

.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--footer-text);
    letter-spacing: 0.5px;
}

.footer-mission {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--footer-text-muted);
    max-width: 320px;
}

/* Social Links */
.footer-social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--footer-bg-secondary);
    color: var(--footer-text-muted);
    transition: var(--footer-transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--footer-accent);
    color: var(--footer-bg);
    transform: translateY(-2px);
}

/* Links Grid */
.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--footer-text);
    margin: 0;
}

.footer-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-link {
    color: var(--footer-text-dim);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--footer-transition);
    display: inline-block;
}

.footer-link:hover {
    color: var(--footer-accent);
    transform: translateX(4px);
}

/* Contact Section */
.footer-contact-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    margin-bottom: 40px;
    border-top: 1px solid var(--footer-border);
    border-bottom: 1px solid var(--footer-border);
}

.footer-contact-info {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--footer-text-muted);
}

.contact-item i {
    color: var(--footer-accent);
    width: 16px;
    flex-shrink: 0;
}

.contact-item a {
    color: var(--footer-text-muted);
    text-decoration: none;
    transition: var(--footer-transition);
}

.contact-item a:hover {
    color: var(--footer-accent);
}

/* CTA Button */
.footer-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--footer-accent);
    color: var(--footer-bg);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 6px;
    transition: var(--footer-transition);
}

.footer-cta-button:hover {
    background: var(--footer-accent-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(100, 255, 218, 0.3);
}

.footer-cta-button i {
    font-size: 0.875rem;
    transition: var(--footer-transition);
}

.footer-cta-button:hover i {
    transform: translateX(4px);
}

/* Bottom Bar */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 32px;
    padding: 32px 0;
}

/* Certifications */
.footer-certifications {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cert-badge {
    height: 48px;
    width: auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: var(--footer-transition);
}

.cert-badge:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

/* Legal Section */
.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.copyright {
    font-size: 0.875rem;
    color: var(--footer-text-dim);
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.legal-link {
    color: var(--footer-text-dim);
    text-decoration: none;
    font-size: 0.875rem;
    padding: 4px 8px;
    transition: var(--footer-transition);
}

.legal-link:hover {
    color: var(--footer-accent);
}

.separator {
    color: var(--footer-text-dim);
    opacity: 0.3;
    font-size: 0.75rem;
    user-select: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .ultra-footer {
        padding: 60px 0 0;
        margin-top: 60px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .footer-contact-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-contact-info {
        flex-direction: column;
        gap: 16px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-legal {
        align-items: center;
    }

    .footer-certifications {
        justify-content: center;
        order: 2;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-column {
        align-items: center;
    }

    .footer-company {
        align-items: center;
        text-align: center;
    }

    .footer-mission {
        text-align: center;
    }

    .footer-social-links {
        justify-content: center;
    }

    .legal-links {
        justify-content: center;
    }

    .cert-badge {
        height: 40px;
    }
}

/* Smooth animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ultra-footer > * {
    animation: fadeIn 0.8s ease-out;
}