/* ===================================
   FOOTER STYLES - Scientific/Tech Theme
   =================================== */

/* Footer Base */
.site-footer {
    position: relative;
    background: #0a0e27;
    padding: 80px 20px 40px 20px;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 50%, #0f1229 100%);
    z-index: 0;
}

/* Footer Background SVG */
.footer-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Node Animations */
@keyframes footerNodePulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.3);
    }
}

@keyframes footerNodePulseDelayed {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.4);
    }
}

@keyframes footerGlow {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 0.5;
    }
}

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

.footer-node-pulse {
    animation: footerNodePulse 3s ease-in-out infinite;
    transform-origin: center;
    transform-box: fill-box;
}

.footer-node-pulse-delayed {
    animation: footerNodePulseDelayed 3s ease-in-out infinite 1.5s;
    transform-origin: center;
    transform-box: fill-box;
}

.footer-node-glow {
    animation: footerGlow 4s ease-in-out infinite;
}

.footer-hex-rotate {
    animation: footerHexRotate 30s linear infinite;
    transform-origin: center;
}

.footer-hex-rotate-reverse {
    animation: footerHexRotate 25s linear infinite reverse;
    transform-origin: center;
}

/* Footer Container */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 60px;
    align-items: start;
    position: relative;
    z-index: 10;
}

/* Footer Columns */
.footer-column {
    color: white;
}

.footer-column h4 {
    font-family: 'Gothic A1', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FA7F31;
    margin-bottom: 5px;
}

/* Address Column */
.footer-address {
    text-align: left;
}

.footer-address address {
    font-family: 'Gothic A1', sans-serif;
    font-size: 15px;
    font-style: normal;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

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

.footer-contact-info a {
    font-family: 'Gothic A1', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-info a:hover {
    color: #FA7F31;
}

/* Brand/Center Column */
.footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    max-width: 280px;
}

.footer-logo img {
    width: 100%;
    height: auto;
    opacity: 0.95;
}

.footer-motto {
    font-family: 'Gothic A1', sans-serif;
    font-size: clamp(18px, 1.8vw, 24px);
    font-weight: 400;
    font-style: italic;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    color: #FA7F31;
    max-width: 400px;
    margin-bottom: 30px;
    border-top: 1px solid #FA7F31;
    padding-top: 0.5em;
}

.footer-copyright {
    font-family: 'Gothic A1', sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    padding-top: 25px;
    
    width: 100%;
    max-width: 400px;
}

/* Links Column */
.footer-links {
    text-align: right;
}

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

.footer-nav a {
    font-family: 'Gothic A1', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 0;
    height: 1px;
    background: #FA7F31;
    transition: width 0.3s ease;
}

.footer-nav a:hover {
    color: #FA7F31;
}

.footer-nav a:hover::after {
    width: 100%;
}

/* Responsive Design - Tablet */
@media (max-width: 968px) {
    .site-footer {
        padding: 60px 20px 40px 20px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 40px 30px;
    }

    /* Address - top left */
    .footer-address {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }

    /* Links - top right */
    .footer-links {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    /* Brand/Logo - bottom, spans both columns, centered */
    .footer-brand {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-logo {
        max-width: 240px;
    }

    .footer-nav a::after {
        right: 0;
        left: auto;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 568px) {
    .site-footer {
        padding: 50px 15px 30px 15px;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 30px 20px;
    }

    /* Address - top left */
    .footer-address {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }

    /* Links - top right */
    .footer-links {
        grid-column: 2;
        grid-row: 1;
        text-align: right;
    }

    /* Brand/Logo - bottom, spans both columns, centered */
    .footer-brand {
        grid-column: 1 / -1;
        grid-row: 2;
        text-align: center;
        padding-top: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .footer-column h4 {
        margin-bottom: 15px;
        font-size: 12px;
    }

    .footer-address address {
        font-size: 13px;
        line-height: 1.7;
    }

    .footer-contact-info a {
        font-size: 12px;
    }

    .footer-logo {
        max-width: 180px;
        /*margin-bottom: 15px;*/
    }

    .footer-motto {
        font-size: 14px;
        margin-bottom: 20px;
        max-width: 300px;
    }

    .footer-copyright {
        font-size: 11px;
        padding-top: 15px;
        border-top: none;
    }

    .footer-nav {
        gap: 10px;
    }

    .footer-nav a {
        font-size: 14px;
    }

    .footer-nav a::after {
        right: 0;
        left: auto;
    }
}

/* Very small screens */
@media (max-width: 380px) {
    .footer-container {
        gap: 25px 15px;
    }

    .footer-column h4 {
        font-size: 11px;
        margin-bottom: 12px;
    }

    .footer-address address {
        font-size: 12px;
    }

    .footer-nav a {
        font-size: 13px;
    }

    .footer-logo {
        max-width: 150px;
    }

    .footer-motto {
        font-size: 13px;
    }
}