/* footer.css */
:root {
    /* These variables may be moved to variables.css */
    --footer-background: rgba(10, 10, 30, 1);
    --footer-border: rgba(85, 85, 155, 0.2);
    --footer-text: var(--text-light);
    --footer-heading: var(--text-white);
    --footer-link: var(--text-light);
    --footer-link-hover: var(--text-white);
    --subscribe-bg: rgba(18, 18, 35, 0.5);
}

/* Main Footer Styles */
.site-footer {
    position: relative;
    background-color: var(--footer-background);
    color: var(--footer-text);
    padding: 6rem 0 2rem;
    overflow: hidden;
    z-index: 1;
}

/* Footer Background */
.footer-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.neural-nodes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.05;
}

/* Footer Wave */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    overflow: hidden;
    line-height: 0;
    z-index: 0;
}

.footer-wave svg {
    position: absolute;
    top: 0;
    width: 100%;
    height: 100px;
}

.wave {
    fill: var(--primary);
}

.wave-1 {
    opacity: 0.1;
    animation: wave-animation 8s ease-in-out infinite alternate;
}

.wave-2 {
    opacity: 0.2;
    animation: wave-animation 12s ease-in-out infinite alternate-reverse;
}

@keyframes wave-animation {
    0% {
        transform: translateX(-25%);
    }

    100% {
        transform: translateX(25%);
    }
}

/* Footer Content */
.footer-content {
    position: relative;
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
    z-index: 1;
}

/* Footer Brand */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    text-decoration: none;
}

.footer-logo-symbol {
    width: 40px;
    height: 40px;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.footer-logo:hover .footer-logo-symbol {
    transform: scale(1.05) rotate(5deg);
}

.footer-logo-svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.footer-logo-path {
    fill: var(--primary);
}

.footer-logo-circuit {
    fill: var(--secondary);
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-name {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--footer-heading);
    line-height: 1;
    letter-spacing: 2px;
}

.footer-logo-io {
    color: var(--secondary);
}

.footer-logo-tagline {
    font-size: 0.7rem;
    color: var(--secondary);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

.footer-mission {
    color: var(--footer-text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-socials {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(98, 0, 238, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--primary);
    color: var(--text-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(98, 0, 238, 0.3);
}

/* Footer Links */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.column-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--footer-heading);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.column-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.column-title:hover::after {
    width: 100%;
}

.column-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.column-list a {
    color: var(--footer-link);
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-block;
    padding: 2px 0;
    position: relative;
    overflow: hidden;
}

.column-list a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--secondary);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.column-list a:hover {
    color: var(--footer-link-hover);
    transform: translateX(5px);
}

.column-list a:hover::before {
    transform: translateX(0);
}

/* Subscribe Section */
.footer-subscribe {
    grid-column: 1 / -1;
    background-color: var(--subscribe-bg);
    border: 1px solid var(--footer-border);
    border-radius: 8px;
    padding: 2rem;
}

.subscribe-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--footer-heading);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: 1px;
}

.subscribe-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--secondary);
    transition: width 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.subscribe-title:hover::after {
    width: 100%;
}

.subscribe-text {
    font-size: 0.95rem;
    color: var(--footer-text);
    margin-bottom: 1.5rem;
    max-width: 600px;
}

.subscribe-form {
    margin-bottom: 1rem;
    max-width: 500px;
}

.subscribe-form .form-group {
    display: flex;
    gap: 0;
    margin-bottom: 0;
}

.subscribe-form .form-control {
    flex: 1;
    padding: 12px 15px;
    background-color: rgba(18, 18, 35, 0.3);
    border: 1px solid var(--footer-border);
    border-right: none;
    border-radius: 4px 0 0 4px;
    color: var(--footer-heading);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.subscribe-form .form-control:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.subscribe-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn-subscribe {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    padding: 0 20px;
    background-color: var(--primary);
    color: var(--text-white);
    border: none;
    border-radius: 0 4px 4px 0;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-subscribe:hover {
    background-color: var(--secondary);
}

.form-privacy {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 0.8rem;
}

/* Footer Bottom */
.footer-bottom {
    position: relative;
    padding: 1.5rem 0;
    border-top: 1px solid var(--footer-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.legal-links {
    display: flex;
    gap: 1.5rem;
}

.legal-links a {
    font-size: 0.9rem;
    color: var(--footer-text);
    transition: color 0.3s ease;
}

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

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

.location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--footer-text);
    font-size: 0.9rem;
}

.location-pin {
    color: var(--secondary);
}

/* Scroll To Top Button */
.scroll-to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: var(--text-white);
    border-radius: 50%;
    position: absolute;
    right: 30px;
    bottom: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 0 15px var(--primary-glow);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: var(--secondary);
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(0, 229, 255, 0.5);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        margin-bottom: 1.5rem;
    }

    .footer-links {
        grid-template-columns: repeat(3, 1fr);
        grid-column: 1 / -1;
    }
}

@media (max-width: 992px) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }

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

    .footer-links {
        grid-template-columns: 1fr;
    }

    .subscribe-form .form-group {
        flex-direction: column;
        gap: 1rem;
    }

    .subscribe-form .form-control {
        border-radius: 4px;
        border-right: 1px solid var(--footer-border);
    }

    .btn-subscribe {
        border-radius: 4px;
        width: 100%;
        padding: 12px;
    }

    .scroll-to-top {
        right: 20px;
        bottom: 20px;
    }
}

@media (max-width: 576px) {
    .legal-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}