/* ==========================================
   FOOTER SECTION
   ========================================== */
.main-footer {
    position: relative;
    width: 100%;
    padding: 100px 0 20px 0;
    /* allow levitating logo and decorative elements to be visible */
    overflow: visible;
    z-index: 300;
    color: #2c3e5a;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    background-color: #d0d4dc;
    background-image: radial-gradient(circle, rgba(40, 48, 62, 0.38) 1px, transparent 1px);
    background-size: 22px 22px;
    transform: translateZ(0);
    will-change: transform;
}

.footer-frosted-card {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: saturate(120%);
    -webkit-backdrop-filter: saturate(120%);
    border-top: 1px solid rgba(255, 255, 255, 0.50);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.50);
    padding-top: 40px;
}

.footer-container, .footer-copyright {
    position: relative;
    z-index: 3;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr; 
    align-items: center; 
    gap: 50px;
    width: 90%; 
    max-width: 1400px; 
    margin: 0 auto; 
    padding-top: 20px;
    padding-bottom: 60px;
}

.footer-brand {
    display: flex;
    justify-content: flex-start; 
    align-items: center;
    perspective: 1500px; 
}

.footer-logo {
    height: 220px; 
    width: auto;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.1)); 
    animation: logo-levitate 6s ease-in-out infinite;
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
    cursor: pointer;
}

.footer-logo:hover {
    animation-play-state: paused; 
    transform: scale(1.2) translateY(-20px) rotateY(25deg) rotateX(10deg);
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.2));
}

@keyframes logo-levitate {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
}

.footer-nav, .footer-contact {
    display: flex;
    flex-direction: column; 
    gap: 16px; 
    padding-left: 50px;
    position: relative;
}

.footer-nav::before, .footer-contact::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5%;
    height: 90%;
    width: 2px;
    background: #FFCC00; 
    box-shadow: 0 0 5px rgba(255, 204, 0, 0.3);
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.footer-nav:hover::before, .footer-contact:hover::before { opacity: 1; }

.footer-nav a {
    color: #3d5a80; 
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-shadow: none; 
    position: relative;
    width: max-content;
    padding: 10px 16px;
}

.footer-contact p {
    color: #3d5a80; 
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-shadow: none;
}

/* THE FIX: FA rendering resets on footer icons */
.footer-contact p i {
    color: #FFCC00 !important;
    -webkit-text-fill-color: #FFCC00 !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    font-size: 1.3rem;
    margin-top: 3px;
    filter: drop-shadow(0px 2px 3px rgba(0, 0, 0, 0.15));
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(80, 90, 110, 0.2); 
    padding-top: 25px;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-copyright p {
    color: rgba(44, 62, 90, 0.65); 
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    font-weight: 800;
    margin: 0;
}

@media (max-width: 1050px) {
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 60px; }
    .footer-brand { justify-content: center; }
    .footer-nav, .footer-contact { padding-left: 0; align-items: center; }
    .footer-nav::before, .footer-contact::before { display: none; }
    .footer-contact p { justify-content: center; text-align: center; }
}

@media (max-width: 768px) {
    .footer-logo {
        height: 140px;
    }
    
    .footer-container {
        padding-bottom: 30px;
        gap: 40px;
    }
    
    .footer-nav a {
        font-size: 1rem;
        padding: 8px 12px;
    }
    
    .footer-contact p {
        font-size: 0.95rem;
    }
    
    .footer-contact p i {
        font-size: 1.1rem;
    }
}

