/* 
   FOOTER KEYFRAMES
    */
@keyframes ftFadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ftSlideLeft {
    from {
        opacity: 0;
        transform: translateX(-28px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ftLineGrow {
    from {
        width: 0;
    }
    to {
        width: 36px;
    }
}

@keyframes ftLogoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 0px rgba(100, 149, 255, 0));
    }
    50% {
        filter: drop-shadow(0 0 16px rgba(0, 81, 255, 0.52));
    }
}

@keyframes ftSocialPop {
    0% {
        opacity: 0;
        transform: scale(0.4) translateY(10px);
    }
    70% {
        transform: scale(1.15) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes ftOrb1 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(32px, -22px) scale(1.08);
    }
}

@keyframes ftOrb2 {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(-22px, 16px) scale(1.05);
    }
}

@keyframes ftOrb3 {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        transform: translate(-50%, -50%) scale(1.07);
    }
}

@keyframes ftGrid {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 40px 40px;
    }
}

@keyframes ftSweep {
    0% {
        left: -60%;
        opacity: 1;
    }
    60% {
        left: 110%;
        opacity: 1;
    }
    61% {
        left: -60%;
        opacity: 0;
    }
    100% {
        left: -60%;
        opacity: 1;
    }
}

@keyframes ftCopyFade {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 
   FOOTER BASE
    */
.footer {
    position: relative;
    background: #00123A;
    color: #c8cfe0;
    font-family: 'Sen', sans-serif;
    padding: 72px 24px 0;
    overflow: hidden;
    isolation: isolate;
}

.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.034) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.034) 1px, transparent 1px);
    background-size: 40px 40px;
    animation: ftGrid 14s linear infinite;
    z-index: 0;
    pointer-events: none;
}

/* Blue glow orbs */
.footer-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(75px);
}

.footer-bg-orb--1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 80, 255, 0.24) 0%, transparent 70%);
    top: -110px;
    left: -90px;
    animation: ftOrb1 16s ease-in-out infinite;
}

.footer-bg-orb--2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(26, 92, 255, 0.19) 0%, transparent 70%);
    bottom: 20px;
    right: 7%;
    animation: ftOrb2 20s ease-in-out infinite;
}

.footer-bg-orb--3 {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(59, 91, 219, 0.15) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ftOrb3 24s ease-in-out infinite;
}

.footer-container,
.footer-bottom {
    position: relative;
    z-index: 1;
}

/* 
   GRID LAYOUT
    */
.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
    gap: 40px 32px;
    padding-bottom: 52px;
}

/* 
   BRAND COLUMN
    */
.footer-brand {
    opacity: 0;
}

.footer-brand.ft-visible {
    animation: ftSlideLeft 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-logo-link {
    display: inline-block;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
    transition: transform 0.35s ease;
    animation: ftLogoPulse 4s ease-in-out infinite;
}

.footer-logo-link:hover .logo-img {
    transform: scale(1.07);
    filter: drop-shadow(0 0 20px rgba(100, 149, 255, 0.65)) !important;
    animation: none;
}

.footer-brand-desc {
    font-size: 0.84rem;
    color: #dddddd;
    line-height: 1.75;
    max-width: 220px;
}

/* 
   SOCIAL ICONS
    */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition:
        background 0.28s ease,
        border-color 0.28s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.28s ease;
}

.footer-brand.ft-visible .social-link:nth-child(1) {
    animation: ftSocialPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.55s both;
}

.footer-brand.ft-visible .social-link:nth-child(2) {
    animation: ftSocialPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.67s both;
}

.footer-brand.ft-visible .social-link:nth-child(3) {
    animation: ftSocialPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.79s both;
}

.footer-brand.ft-visible .social-link:nth-child(4) {
    animation: ftSocialPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.91s both;
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, 0.14) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.38s ease;
}

.social-link:hover::before {
    transform: translateX(100%);
}

.social-link:hover {
    background: rgba(26, 92, 255, 0.32);
    border-color: rgba(100, 149, 255, 0.55);
    transform: translateY(-4px) scale(1.09);
    box-shadow: 0 8px 24px rgba(26, 92, 255, 0.4);
}

.social-icon {
    width: 17px;
    height: 17px;
    object-fit: contain;
    display: block;
    filter: brightness(0) invert(1) opacity(0.65);
    transition: filter 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.social-link:hover .social-icon {
    filter: brightness(0) invert(1) opacity(1);
    transform: scale(1.15);
}

/* 
   FOOTER COLUMNS
    */
.footer-col {
    opacity: 0;
}

.footer-col.ft-visible {
    animation: ftFadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.footer-col:nth-child(2).ft-visible {
    animation-delay: 0.14s;
}

.footer-col:nth-child(3).ft-visible {
    animation-delay: 0.24s;
}

.footer-col:nth-child(4).ft-visible {
    animation-delay: 0.34s;
}

.footer-col-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.01em;
    margin-bottom: 18px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, rgba(26, 92, 255, 0.9), rgba(100, 149, 255, 0.3));
    border-radius: 2px;
}

.footer-col.ft-visible .footer-col-title:first-child::after {
    animation: ftLineGrow 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.footer-col-title--spaced {
    margin-top: 28px;
}

/* Links */
.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 !important;
}

.footer-links li a {
    font-size: 0.84rem;
    color: #dddddd;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: color 0.22s ease;
    position: relative;
}

.footer-links li a::before {
    content: '›';
    font-size: 14px;
    color: #1a5cff;
    opacity: 0;
    width: 0;
    overflow: hidden;
    display: inline-block;
    transition: opacity 0.22s ease, width 0.22s ease, margin-right 0.22s ease;
    margin-right: 0;
}

.footer-links li a:hover::before {
    opacity: 1;
    width: 10px;
    margin-right: 5px;
}

.footer-links li a:hover {
    color: #ffffff;
}

/* 
   CONTACT LIST
    */
.footer-contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0 !important;
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.84rem;
    color: #dddddd;
    transition: transform 0.22s ease;
    cursor: default;
}

.footer-contact-list li:hover {
    transform: translateX(5px);
}

.footer-contact-list li a {
    color: #dddddd;
    text-decoration: none;
    transition: color 0.22s ease;
}

.footer-contact-list li:hover a {
    color: #ffffff;
}

.contact-icon-img {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
    opacity: 0.65;
    transition: opacity 0.22s ease;
}

.footer-contact-list li:hover .contact-icon-img {
    opacity: 1;
}

.contact-icon-img--top {
    align-self: flex-start;
    margin-top: 2px;
}

.contact-address {
    align-items: flex-start;
    line-height: 1.65;
}

/* 
   BOTTOM BAR
    */
.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.footer-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -60%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #0050FF, transparent);
}

.footer-divider.ft-visible::after {
    animation: ftSweep 10s linear infinite;
}

.footer-copyright {
    text-align: center;
    font-size: 0.82rem;
    color: rgba(200, 207, 224, 0.45);
    padding: 20px 0;
    opacity: 0;
    animation: ftCopyFade 0.6s ease forwards 0.9s;
}

/* 
   RESPONSIVE
    */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 36px 28px;
    }
}

@media (max-width: 580px) {
    .footer {
        padding: 52px 20px 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-brand-desc {
        max-width: 100%;
    }

    .social-link {
        width: 36px;
        height: 36px;
        border-radius: 8px;
    }

    .social-icon {
        width: 15px;
        height: 15px;
    }
}

/* 
   REDUCED MOTION
    */
@media (prefers-reduced-motion: reduce) {
    .footer::before,
    .footer-bg-orb,
    .logo-img {
        animation: none !important;
    }

    .footer-brand.ft-visible,
    .footer-col.ft-visible {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .social-link {
        opacity: 1 !important;
        animation: none !important;
    }
}